XCOM 2
251 ratings
[WOTC] Photobooth Poses UI List Fix
6
3
2
3
2
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
508.544 KB
11 Aug, 2024 @ 6:02pm
15 Jul @ 5:38pm
28 Change Notes ( view )

Subscribe to download
[WOTC] Photobooth Poses UI List Fix

Description
Mod Description
This mod does three things:

1. It provides a fix for a longstanding issue with the Photobooth, wherein if more than a few hundred poses were installed at the same time, the game would crash to desktop when selecting one (this was due to a bad flash call which evidently caused a stack overflow when removing too many child items individually from the from photobooth panel, rather than more crudely just calling to dispose of the list in its entirety).

2. It provides an updated UI for the photobooth with proper pagination and some next/previous buttons so you can better select soldier poses from your astronomically long lists :)

3. It tweaks the Photobooth Cameras to allow for better close-up shots and lowers the Zoom step on the tactical camera for more granular control. Variables for the camera (zoom steps, min & max zoom distance) have been added to the mod's config folder and can be adjusted easily.

I've done a reasonable amount of preliminary testing with this & and it certainly looks OK but please let me know if you experience any bugs and I'll do my best to squash them!

Enjoy!

Nice Mission Debriefing
The mod is now fully compatible with Nice Mission Debriefing. Many thanks to Atamize for making the necessary changes to enable these two to place nicely together!

Credits
Thanks to all on the XCom2 modding discord for help debugging & constructing the mod, in particular:
-RustyDios (coding support, advice, mod preview image)
-RoboJumber (coding support, analysing crash dumps to help pinpoint where the crash was originating)
-Zelfana, Iridar, TePa, Hailst0rm, (coding support & advice)
92 Comments
Dragon32 3 hours ago 
OK
william09703 4 hours ago 
@Dragon32 I'm sure it has no problem. I followed all the lines in original int file, and that's it. also the code is correct
Dragon32 5 hours ago 
OK. I'd double-check your .cht, that sounds like where the problem is.
william09703 6 hours ago 
@Dragon32 hmm, I never touched XComContent.ini. I only made a new cht files beside the original int file in Localization folder. more weird thing is that, if I just decide to go with original en texts, all new poses would just get blank space without name in the list
Dragon32 8 hours ago 
@william09703
If you've commented out a pose in a mod's XComContent.ini you also need to comment out the corresponding entry in the localisation file. That can get poses and their names out of step.

Poses seem to be unique in that way, can just edit XComContent.ini for other cosmetic types.
william09703 12 hours ago 
@RustyDios I was suspecting that first. but I can't see if there's any missing entry in localization file though. I need some details
RustyDios 21 Jul @ 9:47pm 
It might be the pose pack missing a localisation entry, which would make every pose after ""the gap"" appear out of sync
william09703 21 Jul @ 6:36pm 
@BlackDog just mouse and keyboard. And also, the misplaced name issue is only occur to new poses from Tactical Pose Pack. Vanilla poses is perfectly fine in the list
BlackDog  [author] 21 Jul @ 1:37pm 
@Oniwabanshu - changing the photobooth output resolution is quite challenging. Many of the functions that deal with this are relatied to the rendering & filesystems so they have lots of native components, which makes it difficult to completely understand what the downstream code is doing. More likely than not it'd also involve changes to X2Photobooth and UIPhotoboothBase, both of which are fairly invasive classes to over-ride, which means some kind of behavior to over-ride how the base-game does things would probably be required in highlander. I'm not saying it will never happen, but it's not something I can fix in a matter of days either.
BlackDog  [author] 21 Jul @ 1:29pm 
@william09703 - I'm not able to reproduce this. Are you using a controller?