Indigoblade Posted January 28, 2013 Share Posted January 28, 2013 (edited) Hi, I'm trying to figure out how to add new names to the list of words used to make the mission names. So far all I can do is edit existing names into different ones, but not add in new ones along with the existing ones. I know that I have to edit the int files both in the documents localization file and the steam directory localization file. I'm thinking that the game only pulls the names up to the default list of names (0-52 for the first part of the name and 0-75 for the second part of the name) I'm sure the key is m_strOpRandom=Operation <XGParam:StrValue0/> <XGParam:StrValue1/> but I'm not sure what to do from here Edited January 28, 2013 by Indigoblade Link to comment Share on other sites More sharing options...
johnnylump Posted January 29, 2013 Share Posted January 29, 2013 (edited) Hi, I'm trying to figure out how to add new names to the list of words used to make the mission names. So far all I can do is edit existing names into different ones, but not add in new ones along with the existing ones. I know that I have to edit the int files both in the documents localization file and the steam directory localization file. I'm thinking that the game only pulls the names up to the default list of names (0-52 for the first part of the name and 0-75 for the second part of the name) I'm sure the key is m_strOpRandom=Operation <XGParam:StrValue0/> <XGParam:StrValue1/> but I'm not sure what to do from here It will take UPK editing. In XComStrategyGame.upk, class XGMission, there are two constants: NUM_FIRST_OP_NAMES = 53 and NUM_SECOND_OP_NAMES = 76. You'll need to open up the upk in UEExplorer, locate the those constants and the hex that represents them, and find those bytes in a hex editor and change them to whatever number you want (remembering that hex is in base 16, not base 10). Then you'll need to edit the hex for the function GenerateOpName (in the same class) so it searches the full range of names. In fact, I'm not sure those constants affect anything, but better safe than sorry. Edited January 29, 2013 by johnnylump Link to comment Share on other sites More sharing options...
Drakous79 Posted February 5, 2013 Share Posted February 5, 2013 Editing GenerateOpName() function, as Johnny pointed, should be enough.else { kTag.StrValue0 = m_aFirstOpName[Rand(53)]; kTag.StrValue1 = m_aSecondOpName[Rand(76)]; }Search for these hexadecimal values in XComStrategyGame.upk and change the last number to an amount of new names +1. Run XShape after.0F 19 00 5E 37 00 00 09 00 EF F9 FF FF 00 01 EF F9 FF FF 1A A7 2C 35 // 35 hex = 53 decimal 0F 19 00 5E 37 00 00 09 00 EE F9 FF FF 00 01 EE F9 FF FF 1A A7 2C 4C // 4C hex = 76 decimal Link to comment Share on other sites More sharing options...
Recommended Posts