Jump to content

Drakous79

Supporter
  • Posts

    765
  • Joined

  • Last visited

Everything posted by Drakous79

  1. But I bet you can use open file, search and replace, save. 1. Backup the exe file. 2. Get some hex editor like HxD, install, run it, File | Open the exe. 3. Time for changes. Search | Replace or CTRL+R, switch Datatype to Hex-values, tick Search direction all and input: Search for: 44 24 08 C7 00 01 00 00 00 C2 08 00 8B 4C 24 08 Replace with: 44 24 08 C7 00 00 00 00 00 C2 08 00 8B 4C 24 08Click Replace all. Should return: Replaced 1 ocurrences. Replace again: Search for: C7 01 01 00 00 00 C2 08 00 CC CC CC CC CC CC CC Replace with: C7 01 00 00 00 00 C2 08 00 CC CC CC CC CC CC CCClick Replace all. Should return: Replaced 1 ocurrences. Or you can just search for using CTRL+F, then hit F3 to make sure there are no more similar entries and change just one byte you see is different. 01 to 00.
  2. Try editing the one in Users\YourUserName\Documents\My Games\XCOM - Enemy Unknown\XComGame\Localization\INT\
  3. Check, if you have file XComGame.upk.uncompressed_size in XCom-Enemy-Unknown\XComGame\CookedPCConsole and rename it, if yes. Run xshape Try the game Edit: Glad you got it sorted omegadk1. Start the game with XCOM icon (that starts Steam and then game).
  4. I know you wrote you have it, but still, can you please http://www.java.com/en/download/testjava.jsp make sure? Also the error can be java entry is missing in system environment variables. You can try to reinstall java or google for how to fix it.
  5. Great info and great mod bokauk :) Maybe Daemonjax could add the pause in next release, as it's good for troubleshooting.
  6. In windows - start - run - type cmd and hit enter. Then navigate to your XCOM game folder. X: where X is drive letter cd Steam\SteamApps\common\XCom-Enemy-Unknown\ where after cd is patch to the game root folder xshape Or right click xshape.bat and edit it, put one more line at the end: pause Save and run it. Edit: So far I think you've done everything right, but not having XSHAPE extracted at the right place. Edit 2: Or this:
  7. Did Selective recruitment finish with "Changes applied to XComGame.upk successfuly? Please try running xshape.bat from command line and post what is says. Edit: Should say 1 SHA hash(es) updated.
  8. True, but if you're familiar with doing changes in hex editor, here's how to. I think it's a good idea to backup and delete you config/save files, at "Documents\My Games\XCOM - Enemy Unknown"
  9. Do you have the latest java installed? Run XSHAPE.bat
  10. The 2nd slot on heavy has some strange requirements. eAbility_RocketLauncher, eWP_Heavy, eWP_AnyClass, eItemSize_Large made it available at loadout screen. Bugged ingame swapping of weapons, heavy couldn't fire the pistol and others had rocket launcher icon.
  11. Done. Wonder, if it would make XCOM EU modding community bigger :) if ppl see, they can play another way or fix stuff themselves. Edit: Not sure, but I'm quite positive I posted the info in support section of 2K Forums, but the post disappeared without notification. So I reposted without link to Nexus forum... so much for modder friendly approach and appreciation of being helped. I want to be proven wrong on previous statement.
  12. Hunker down keybind is still broken. I hope it gets fixed soon, but meanwhile there's a way how to use reload keybind instead. Only downside is there's no key for reloading weapons after the change. So ask yourself a question first: "Do I hunker down more than reload?". File XComGame.upk, class XComTacticalInput, state ActiveUnit_Moving function bool Key_R(int Actionmask) { local XGUnit kActiveUnit; kActiveUnit = GetActiveUnit(); if(kActiveUnit.IsPanicked()) { return false; } if((Actionmask & 32) != 0) { if((kActiveUnit.GetAction() == none) || !kActiveUnit.GetAction().AllObjects('XGAction_Fire')) { kActiveUnit.PerformAbility(45); Outer.PlaySound(soundcue'MenuSelectCue', true); return true; } } return false; }Changing PerformAbility(45) to 38 does the job. Search for: 2D 16 19 01 F5 F9 FF FF 09 00 00 00 00 00 00 1C 54 FC FF FF 20 A6 Replace with: 26 16 19 01 F5 F9 FF FF 09 00 00 00 00 00 00 1C 54 FC FF FF 20 A6Start the game, bind a key to Reload and you're set to go. Soldiers will now hunker down instead of reloading weapon. Tested functionality and works as supposed. XCOM Enemy Within changes First of all, hunker down was completely removed from options - keyboard bindings tactical shortcuts. That's what I call hot fix. Key_R function didn't change much in XCOM Enemy Within. A conditional newly reflects strangle and the ability has different number. if((kActiveUnit.IsPanicked() || kActiveUnit.IsStrangled()) || kActiveUnit.IsStrangling()) kActiveUnit.PerformAbility(33); XCOM EW vanilla, Patch 1 - 19 00 1A 81 00 00 0C 00 00 00 00 00 00 1B 86 63 00 00 00 00 00 00 24 21 16 Replace 21 with 1B. The code will change to PerformAbility(27), which is eAbility_TakeCover. Removing Menu Select sound I don't like hearing Menu Select sound before Hunker Down sound (it is the same for overwatch) so I removed soundcue line. Outer.PlaySound(soundcue'MenuSelectCue', true);Here's hex for the change - use it instead of hex above: // XCOM EW vanilla, Patch 1 Search for: 32 81 00 00 76 5F 00 00 00 00 00 00 19 81 00 00 E5 5B 00 00 00 00 00 00 1C 81 00 00 00 00 00 00 F8 03 00 00 93 80 00 00 52 01 00 00 02 01 00 00 0F 00 1A 81 00 00 1B F7 36 00 00 00 00 00 00 16 07 80 00 84 84 19 00 1A 81 00 00 0A 00 B2 3A 00 00 00 1B 43 45 00 00 00 00 00 00 16 18 20 00 19 00 1A 81 00 00 0A 00 39 C6 00 00 00 1B AC 45 00 00 00 00 00 00 16 16 18 20 00 19 00 1A 81 00 00 0A 00 3B C6 00 00 00 1B AD 45 00 00 00 00 00 00 16 16 04 28 07 45 01 9B 9C 00 1C 81 00 00 2C 20 16 25 16 07 45 01 84 72 19 00 1A 81 00 00 0A 00 07 C9 00 00 00 1B F0 36 00 00 00 00 00 00 16 2A 16 18 39 00 81 19 19 00 1A 81 00 00 0A 00 07 C9 00 00 00 1B F0 36 00 00 00 00 00 00 16 0B 00 CB FF FF FF 00 C5 21 D5 80 00 00 00 00 00 00 16 16 16 19 00 1A 81 00 00 0C 00 00 00 00 00 00 1B 86 63 00 00 00 00 00 00 24 21 16 19 01 BF F9 FF FF 09 00 00 00 00 00 00 1C 39 FC FF FF 20 73 DA 00 00 27 4A 4A 4A 4A 16 04 27 04 28 04 3A 1B 81 00 00 53 00 00 00 02 00 02 00 44 48 00 00 00 00 00 00 Replace with: 32 81 00 00 76 5F 00 00 00 00 00 00 19 81 00 00 E5 5B 00 00 00 00 00 00 1C 81 00 00 00 00 00 00 F8 03 00 00 93 80 00 00 42 01 00 00 02 01 00 00 0F 00 1A 81 00 00 1B F7 36 00 00 00 00 00 00 16 07 80 00 84 84 19 00 1A 81 00 00 0A 00 B2 3A 00 00 00 1B 43 45 00 00 00 00 00 00 16 18 20 00 19 00 1A 81 00 00 0A 00 39 C6 00 00 00 1B AC 45 00 00 00 00 00 00 16 16 18 20 00 19 00 1A 81 00 00 0A 00 3B C6 00 00 00 1B AD 45 00 00 00 00 00 00 16 16 04 28 07 18 01 9B 9C 00 1C 81 00 00 2C 20 16 25 16 07 45 01 84 72 19 00 1A 81 00 00 0A 00 07 C9 00 00 00 1B F0 36 00 00 00 00 00 00 16 2A 16 18 39 00 81 19 19 00 1A 81 00 00 0A 00 07 C9 00 00 00 1B F0 36 00 00 00 00 00 00 16 0B 00 CB FF FF FF 00 C5 21 D5 80 00 00 00 00 00 00 16 16 16 19 00 1A 81 00 00 0C 00 00 00 00 00 00 1B 86 63 00 00 00 00 00 00 24 1B 16 04 27 04 28 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 04 3A 1B 81 00 00 53 00 00 00 02 00 02 00 44 48 00 00 00 00 00 00Remaining space was nulled and function's virtual size was updated. Changing Reload string to Hunker Down in Options | Interface | Keyboard Bindings | Tactical Shortcuts Edit XCom-Enemy-Unknown\XEW\XComGame\Localization\INT\XComGame.int and change: m_arrTacticalBindableLabels[eTBC_AbilityReload]="RELOAD" // to m_arrTacticalBindableLabels[eTBC_AbilityReload]="HUNKER DOWN"Funny m_arrTacticalBindableLabels[eTBC_AbilityHunkerDown] is still listed, but was removed from enum in XComGame.upk. Future plans I'd like to enable the key for Head Down (escorted civilian's version).
  13. Details make the difference :) Have you managed to get it working?
  14. Not for me. Edit: check thread Hunker down keybind is still broken, but there's a way by sacrificing reload keybind Reload keybind can be changed to hunker down using UPK surgery.
  15. Sounds horrible. What I can think of is mouse problem - wheel changes level.
  16. Hello. Do you have a saved game file of it?
  17. Great! I'm using Modpatcher 0.12 and seems to be working fine with the 2nd patch. Also if there are modded upks, it is always good to run XSHAPE after Modpatcher.
  18. The first month felt like usual - few abductions, 2 outsiders - and transition to the next month was okay. You're right, UFO schedule is set monthly. File XComSTrategyGame.upk, class XGstrategyAI function FillUFOPool() { local int iMonth; iMonth = GetMonth(); // End:0x53 Loop:False if(iMonth >= 0) { AddUFOToPool(MakeUFO(4, 1)); AddUFOToPool(MakeUFO(4, 1)); } // End:0xaa Loop:False if(iMonth >= 1) Edit: Also squads are done similar way. File XComSTrategyGame.upk, class XGstrategyAI function TPossibleAlienSquad GetPossibleAliens() { local int iMonth; local TPossibleAlienSquad kSquad; iMonth = GetMonth(); AddPossible(GetCommanderType(), 100, kSquad.arrPossibleCommanders); // End:0xda Loop:False if(iMonth <= 0) { AddPossible(4, 100, kSquad.arrPossibleSoldiers); AddPossible(13, 100, kSquad.arrPossibleSecondaries); AddPossible(17, 100, kSquad.arrPossibleRoaming); } // End:0xdea else { // End:0x1c4 Loop:False if(iMonth <= 1)
  19. I am sorry to say, but it is not possible at the moment. But it should be possible to decrease an amount of required stuff to make aircraft consumables. File XComStrategyGame.upk, class XGFacility_Engineering, function TProjectCost GetItemProjectCost if(eItem == 135) { kCost.arrItems.AddItem(144); kCost.arrItemQuantities.AddItem(ItemAmount(3)); } // End:0x584 else { // End:0x2c1 Loop:False if(eItem == 133) { kCost.arrItems.AddItem(146); kCost.arrItemQuantities.AddItem(ItemAmount(3)); } // End:0x584 else { // End:0x326 Loop:False if(eItem == 134) { kCost.arrItems.AddItem(152); kCost.arrItemQuantities.AddItem(ItemAmount(2)); } What you see are conditionals applying additional costs to aircraft consumables. As we cannot edit that script atm, it's possible to change (ItemAmount(int) or maybe skip those conditionals entirely. Changing AddItem(int) is not an option, because there is not enough heavy floaters or sectoid commanders in early stages of the game. Also the amount can be changed to zero resulting in no additional cost, but still there will be text 0x Sectoid/Floater Corpse, Cyberdisc Wreck in engineering build/buy item list info. Thinking about it, I like the consumables cost something more, but IMO the cost should scale with difficulty, because on impossible a player is swarmed with sectoids resulting in stores full of smelly corpses. In order to decrease the amount, you need to backup XComStrategyGame.upk and its uncompressed size, decompress copy of XComStrategyGame.upk you will be working with, make changes using hex editor, delete (if having backup) or rename XComStrategyGame.upk_BACKUP.uncompressed_size and update exe hash with XSHAPE. Please check this step by step tutorial for detailed info, how to do the change. 133 Defense Matrix (Dodge), 1x Floater Corpse Search for: 24 85 16 55 35 05 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 03 00 2C 92 16 55 35 04 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 0D 00 1B 0E 15 00 00 00 00 00 00 2C 03 Replace with: 24 85 16 55 35 05 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 03 00 2C 92 16 55 35 04 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 0D 00 1B 0E 15 00 00 00 00 00 00 2C 01 134 UFO Tracking (Boost), 1x Cyberdisc Wreck Search for: 24 86 16 55 35 05 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 03 00 2C 98 16 55 35 04 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 0D 00 1B 0E 15 00 00 00 00 00 00 2C 02 Replace with: 24 86 16 55 35 05 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 03 00 2C 98 16 55 35 04 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 0D 00 1B 0E 15 00 00 00 00 00 00 2C 01 135 Uplink Targeting (Aim), 1x Sectoid Corpse Search for: 24 87 16 55 35 05 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 03 00 2C 90 16 55 35 04 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 0D 00 1B 0E 15 00 00 00 00 00 00 2C 03 Replace with: 24 87 16 55 35 05 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 03 00 2C 90 16 55 35 04 03 00 00 09 03 00 00 00 00 00 20 2A 00 00 0D 00 1B 0E 15 00 00 00 00 00 00 2C 01 The last 03 or 02 is (ItemAmount(int). Changeing it 05 makes the consumable cost more. Hope it works for you :) as it worked for me.
  20. You can edit XSHAPE.bat and add pause at the end. When running the tool, command windows pops up showing what is going on. Exit the window by pressing any key.
  21. Looks great :thumbsup: release it soon! :) Can't wait for multi file support. Are spaces allowed in mod name? Can mods be created using the tool and comparison between edited UPK and decompressed untouched UPK?
  22. Seems like you got different result. I also ended at skin color 0, but soldier's skin was dark black asphalt :)
  23. I have edited hosts + steam online and works great. Try the same. Also you can try to reinstall Steam. What's Modloader? Do you mean Dreadylein's Modpatcher? If yes, version 0.12 works okay after the second patch.
  24. It's not hard, after done few times. And after setting all tools and stuff, it is just files and bytes juggling. Will be a lot easier later with XCOM Mod Manager. Will try to guide you so you can do it yourself. 1. Create some work directory. 2. Copy file from Steam\SteamApps\common\XCom-Enemy-Unknown\XComGame\CookedPCConsole\ to the work directory: XComSTrategyGame.upk 3. THE MOST IMPORTANT PART is to backup files in Steam\SteamApps\common\XCom-Enemy-Unknown\XComGame\CookedPCConsole\: XComStrategyGame.upk XComStrategyGame.upk.uncompressed_size I usually just rename them to name_BACKUP.extension, because it serves as backup and I don't have to delete name.uncompressed_size later in order to make the game load uncompressed upk. 4. Get Gildor's Unreal Package Decompressor listed under other tools, extract from zip to the work directory. Fire up command line, navigate to your work directory and type decompress -lzo XComStrategyGame.upk. Should decompress the file. That's for preparation :) 5. Get some hex editor like HxD, install, run it, File | Open unpacked XComStrategyGame.upk from the work directory\unpacked. 6. Now it's time to change 2015 to 1999. Search | Replace or CTRL+R, switch Datatype to Hex-values, tick Search direction all and input: Search for: 03 26 1D DF 07 Replace with: 03 26 1D CF 07Click Replace all. Should return: Replaced 3 ocurrences. Replace again: Search for: 00 00 1D DF 07 Replace with: 00 00 1D CF 07Click Replace all. Should return: Replaced 1 ocurrences. Now FILE | Save as to Steam\SteamApps\common\XCom-Enemy-Unknown\XComGame\CookedPCConsole\XComStrategyGame.upk 7. Get XSHAPE and extract it to the game's root directory. My is S:\Steam\SteamApps\common\XCom-Enemy-Unknown\ Run XSHAPE from command line. I added pause at the end of XSHAPE.bat to see results, so no longer need to run it from cmd. XSHAPE should report 1 SHA hash(es) updated. 8. Remove (if you have backup) or rename XComStrategyGame.upk.uncompressed_size in Steam\SteamApps\common\XCom-Enemy-Unknown\XComGame\CookedPCConsole\ 9. Run the game and verify the change. Good idea to start new game. If the game crashes, either editing upk failed or hash was not updated. Date should be stored in save file. Redo steps 6-9, if starting new game after official patch that changed XComStrategyGame.upk. If the patch changed just XComGame.exe, run XSHAPE. Also can happen, that some tools alter the exe and would be needed to update SHA hash again (XSHAPE) ... well, should be obvious, if the game crashes after mod installation. Let me know if it works for you. Guys are already working on XCOM Mod Manager to make mod distribution easier. But meanwhile, they have my thanks for tools they already gave us :thumbsup: Edit: Typos
  25. Hopefully yes :) It worked for me fine, but will be great, if more people put it to test. I am trying to fully understand panic in XGunit class codewise to verify it works. Haven't tested SquadSight for snipers and am suspicious about random tossed grenades. Will be happy, if the fix can be included in Warspace! Well, maybe the most annoying is we don't have localized maps like Egypt with pyramids hehe. And not so annoying but my favorite - not customizable country with name next to flag. *stops whinning*
×
×
  • Create New...