rf900 Posted October 31, 2012 Share Posted October 31, 2012 Visual Perk Editor --------------------------- LINK This tool can help to make changes in the classes ability trees easily. You will then get the HEX changes needed to be done in the uncompressed xcomgame.upk file. You can also copy the string of values to easy share different setups rather than share the HEX changes directly. How to use it: Change the values in the boxes for each tree, on the right you have the corresponding list of values/abilities.Click the Generate Mod link to get the list of HEX old and new replacement values. Actions: Fast Read Values: Get a string of values to share or store current setup.Fast Set Values: To set the values in a fast way if you have a string with a setup already created. Generate Mod: Get the list of HEX old and new replacement values.Reset Values: Reset values to default game ones. Thanks to graaa and Nolanoth for their investigations on this:http://forums.nexusmods.com/index.php?/topic/815794-custom-soldier-ability-trees/ Link to comment Share on other sites More sharing options...
PepprmintButler Posted October 31, 2012 Share Posted October 31, 2012 That is awesome. Kudos. Sudden feature request : could you consider adding the "exotic" perks (those not appearing in any tree) to the list to facilitate testing of these ? That would save me mucho time, and maybe get more people to experiment with those.They're on the wiki : http://wiki.tesnexus.com/index.php/XCOM:EU_Perks Link to comment Share on other sites More sharing options...
BanjoOz Posted October 31, 2012 Share Posted October 31, 2012 Visual Perk Editor --------------------------- LINK This tool can help to make changes in the classes ability trees easily. You will then get the HEX changes needed to be done in the uncompressed xcomgame.upk file. You can also copy the string of values to easy share different setups rather than share the HEX changes directly. How to use it: Change the values in the boxes for each tree, on the right you have the corresponding list of values/abilities.Click the Generate Mod link to get the list of HEX old and new replacement values. Actions: Fast Read Values: Get a string of values to share or store current setup.Fast Set Values: To set the values in a fast way if you have a string with a setup already created. Generate Mod: Get the list of HEX old and new replacement values.Reset Values: Reset values to default game ones. Thanks to graaa and Nolanoth for their investigations on this:http://forums.nexusmods.com/index.php?/topic/815794-custom-soldier-ability-trees/ That's pretty useful, thanks! While I'd prefer an "offline" version personally (one that can apply changes to the unpacked .Function file(s) themselves would be even better), this is certainly better than the previous "guesswork" of trying to find the hex values to change. Great idea! :) If you're up for it, how about creating a tool like this for easily editing "charges" (UpdateItemCharges.Function) like Arc Thrower shots, Smoke Grenades, Medikit uses, Battlescanners, etc? Link to comment Share on other sites More sharing options...
rf900 Posted October 31, 2012 Author Share Posted October 31, 2012 Thanks for the feedback, I would try to improve with your suggestions. I am also in favor of a tool that does the changes in the upk file directly, waiting mostly for the people working on the mod manager to see what the come up with. Just in case they provide something in that direction that I can reuse. Link to comment Share on other sites More sharing options...
BanjoOz Posted October 31, 2012 Share Posted October 31, 2012 Thanks for the feedback, I would try to improve with your suggestions. I am also in favor of a tool that does the changes in the upk file directly, waiting mostly for the people working on the mod manager to see what the come up with. Just in case they provide something in that direction that I can reuse.Cool! That's actually why I mentioned having it edit the .Function file rather than the entire upk... even though that requires the unpack/repack method, it lets an experienced user pre-create mod components and/or redistribute the Function files themselves, which I don't feel should be a problem (but redistributing an entire XComGame.upk would! :) ). Having it edit the upk directly is of course much easier for end users who aren't really wanting to play around with modding so much as just tweak the game (but like you, I'm thinking/hoping a "mod manager" will handle this side of things). Link to comment Share on other sites More sharing options...
rf900 Posted October 31, 2012 Author Share Posted October 31, 2012 (edited) Cool! That's actually why I mentioned having it edit the .Function file rather than the entire upk Done, added to the tool the option to generate the full modified function files, in that case you only need to replace each of them and then repack. Probably easier with the tools we have right now. Will probably end up doing a VB app to generate the files directly and do the repack. Edited October 31, 2012 by rf900 Link to comment Share on other sites More sharing options...
FlyingHigh10000000 Posted October 31, 2012 Share Posted October 31, 2012 Forgive me if I come across as an idiot here, but what steps would someone like me, that knows almost nothing about hex editing and hasn't even touched the UPK files, need to take to modify the perk trees? From what I understand, XShape, and the upk unpacker are necessary for this. Link to comment Share on other sites More sharing options...
miked79 Posted November 1, 2012 Share Posted November 1, 2012 (edited) Awesome stuff Rf900! Thanks for this!! Forgive me if I come across as an idiot here, but what steps would someone like me, that knows almost nothing about hex editing and hasn't even touched the UPK files, need to take to modify the perk trees? From what I understand, XShape, and the upk unpacker are necessary for this. (this could be incorrect but this worked for me)what i did was MAKE BACKUPS OF YOUR STUFF BEFORE YOU DO THIS. Download...1.gildors decompressor - http://www.gildor.org/downloads2.Daemonjax Xshape - http://code.google.com/p/xshape/downloads/list3.Hex Editor - http://download.cnet.com/HxD-Hex-Editor/3000-2352_4-10891068.html Then...1. Make a folder that has your decompressor in there, and then make a text documentand put this line in there... "decompress.exe -lzo -out=upk_unpacked Xcomgame.upk"(minus the quotes) Save as...All Files.... Decompress.bat 2. copy the xcomgame.upk from steam XCOM Enemy Unknown\XComGame\CookedPCConsole 3. paste it inside the folder with ur decompressors, and double click the .bat file you made.(should create a new folder with an uncompressor variant of the Xcomgame.upk) You should notice its bigger insize. 4. Put the Xshape files into the you xcomgame directory. steam\steamapps\common\XCom-Enemy-Unknown(the base directory, NOT the one with your Xcomgame.exe) 5. Go into steam XCOM Enemy Unknown\XComGame\CookedPCConsole and rename Xcomgame.upk to Xcomgame1.upk and XComGame.upk.uncompressed_size to XComGame.upk.uncompressed_size1 ( those will be backups) 6. Paste in that folder, the newly created Xcomgame.upk (the uncompressed one) 7. Double click patcher in your steam\steamapps\common\XCom-Enemy-Unknown (which is the Xshape patcher)you should see that it has changed a hash value. 8. Next go to the ability utility link , and make your changes. For instance put the "16" assault abilitywhich means Lightning reflexes in the sniper tree over the 27 which is Squadsight. (replace the sniper 27 with the number 16) and then scroll down and hit "generate Mod". Now highlight and copy the Old Hex Value. 9. OPen up the uncompressed Xcomgame.upk that is in your steam XCOM Enemy Unknown\XComGame\CookedPCConsolewith Hex Editor. Hit Cntrl-F so you can "Find" the hex values that you have copied. Now hit Cntrl-V to paste into the search bar. (make sure your searching for "hex Values". Once you locate the line of code, go backto the Ability Link website and look at New Hex Values box, Find the values that are different fromthe Old Hex Values box and make those changes in the Hex Editor. Then Click Save. 10. Go back to your steam\steamapps\common\XCom-Enemy-Unknown and double click Patcher again to run Xshape(you should see that it has changed hash values) 11.Now launch the game and see if it worked. That is how I did it. Im new with this stuff so I hope I didnt forget anything. If someone else knows more, please correct me! Edited November 1, 2012 by miked79 Link to comment Share on other sites More sharing options...
zerothenumber Posted November 1, 2012 Share Posted November 1, 2012 Thank you for this step-by-step tutorial :) Link to comment Share on other sites More sharing options...
zerothenumber Posted November 1, 2012 Share Posted November 1, 2012 Hm... hex editor keeps sayin can't find "no matter what I put into". Seems like the OLD hex values from your program are not in the upk itself or I'm doing something wrong... Link to comment Share on other sites More sharing options...
Recommended Posts