XCOM 2
[LEGACY] Random Nickname Button
正在显示第 1 - 10 项,共 19 项条目
< 1  2 >
更新于:2016 年 5 月 31 日 下午 7:13

Final touches on resource clean-up.

(b4920e2)

更新于:2016 年 5 月 18 日 下午 5:40

Sometimes, mods that adds flags/countries aren't removed cleanly when they're unplugged, leaving countries that don't exist attached to soldiers. Clicking the Random Country button on such a soldier would cause a crash; this is because my mod grabs the current country to use it in updating the soldier's bio (as bios at times have references to the soldier's country).

I added a check for invalid country (by reference and name size) to try and avoid this; instead of a crash, the bio won't be updated.

更新于:2016 年 5 月 17 日 下午 6:59

This patch fixes the "Soldier stance override lost on Random Nickname Button press" bug.

更新于:2016 年 5 月 16 日 下午 8:12

I've added asset cleanup at the request of one user, in the hopes that it might alleviate the "Stuck under the avenger bug." This hypothesis is loosely supported by chatter between @/dev/null and @Synthorange at this link:

https://psteamcommunity.yuanyoumao.com/app/268500/discussions/0/392184522721123152/?ctp=2

Note that I can't find any way to explicitly release the XComCharacterGenerator that I spawn, as that doesn't seem to be done anywhere else in the provided source code where Generators are spawned. Up to now I'd assumed this was because it was just handing me a reference, but since 1. it uses a call .Spawn and 2. I'm concerned about asset cleanup here, I'm not sure that assumption's safe anymore.

I did what testing I could with this patch, which isn't much as I don't have a memory profiler for XCOM 2. Hopefully it's alright; easy enough to rollback if this starts blowing up people's installs.

更新于:2016 年 5 月 14 日 上午 9:27

Fixed a bug reported by @glowaru and @Baronessa: the < and > buttons in the in-game Armory no longer result in wonky behavior when using this mod.

更新于:2016 年 3 月 27 日 下午 5:15

Added an INI file so you can move the button panel around if you like.

Finally got the button label justification working, but I couldn't get the buttons to be precisely the same width because...well, I actually don't know, but I prefer this nitpick annoyance to the weird justification the Random Bio button had previously. :)

更新于:2016 年 2 月 28 日 下午 8:12

Removed all the cruft that snuck in, dramatically reducing the footprint. Thanks to the user that pointed out the size. :)

更新于:2016 年 2 月 25 日 上午 10:50

I've added ToolTips to explain when the Random Nickname button is disabled in different contexts. It won't work for:
* Rookies. (This is because the game's nickname generator doesn't work for Rookies.)
* Soldiers with too low a rank. (Mods can override this.)
* Super Soldiers. (Cheat characters.)

更新于:2016 年 2 月 25 日 上午 10:14

The "Random Nickname" button will now be disabled if a soldier is a Rookie (has no class); this disable should override even mods like Full Customization. The auto generate functions won't work for Rookies because random nickname lists are under soldier class templates (there is no non-classed list for Nicknames that I've seen).

By default, the Random Nickname button is disabled for soldiers Sgt. or lower except in the Character Pool. To get the button to work there, assign the soldier a class. Rank is irrelevant in the Character Pool, of course.

更新于:2016 年 2 月 23 日 下午 5:08

Removed two vestigial function headers from the code that I thought harmless, but having done so I haven't seen the "camera stuck under the Avenger" bug in a while; I'm not convinced this was the fix though.