Amineri Posted March 11, 2013 Author Share Posted March 11, 2013 damage reduction for the berserkers sounds ok... but for chryssalids? we'd better turn then some smoke grenades into insecticide gas, otherwise we're screwed... but hey, I cannot think of a better use for that space left, so why not?just got it working now, but there's so many tweaks to do before I can get into proper playtesting... Well, for the Chryssalids, the thought was more to tie damage reduction to later in the game to keep them interesting after you get plasma weapons. I also have this vague idea about giving Chryssalids some form of regeneration, but I think that would also require some changes to their AI. Link to comment Share on other sites More sharing options...
johnnylump Posted March 11, 2013 Share Posted March 11, 2013 (edited) My thought for melee monsters is that this would an interesting upgrade midgame. IMO, a problem with X-Com is that whole battalions of interesting aliens with unique talents -- thin men, chrysallids, etc -- are incredibly dangerous at first, but they become only a nuisance later on. As I was unable to add hit points to aliens in the late game (see the R&D on four enhancements thread), I figured damage reduction would be a fantastic way to get them to upgrade. The issue here, though, is that I haven't found a way to tell XComGame.upk how far the player has made it in the strategy game. The strategy game has several markers -- GetAct(), GetMonth(), even EverHadItem() -- which could be used to alert the tactical game of the status of the strategy game, but I haven't found if they can be accessed from XComGame. It's not ruled out, though! Edited March 11, 2013 by johnnylump Link to comment Share on other sites More sharing options...
Amineri Posted March 12, 2013 Author Share Posted March 12, 2013 My apologies ... the 1.1 version appears to have a nasty little side effect of causing the game to hang when a tank-type unit actually takes damage. I'm looking into it now, but figured I'd warn people :o Link to comment Share on other sites More sharing options...
Amineri Posted March 12, 2013 Author Share Posted March 12, 2013 Found and fixed ... updated the first post with the new version Link to comment Share on other sites More sharing options...
Yzaxtol Posted March 15, 2013 Share Posted March 15, 2013 seems firaxis has actually changed the .upk file where your damage reduction code is... it won't find it anymore. Link to comment Share on other sites More sharing options...
Amineri Posted March 15, 2013 Author Share Posted March 15, 2013 Looks like three local / class variable were removed in XGUnit, so all of the variable references had to be decreased by 3. New version updated for patch 5 (although you'll need to wait for the ToolBoks update to apply it ^_^). Functionality is unchanged. Custom mod hidden below: MOD_NAME=Tank Damage ReductionAUTHOR=amineriUPK_FILE=XComGame.upkDESCRIPTION=Gives tank units damage reductionVersion: 1.1.2Works with XCOM Enemy Unknown version:Patch 5 ( Wednesday, February 20, 2013 12:47 PM - Changelist: 356266 )[FIND]0B 07 58 00 9B 38 3A 19 01 E9 F9 FF FF 09 00 AB FE FF FF 00 01 AB FE FF FF 38 3A 24 00 16 07 58 00 82 9A 00 98 B4 00 00 1D 40 42 0F 00 16 18 0B 00 2D 01 74 AF 00 00 16 14 2D 00 89 B4 00 00 27 07 AF 01 82 77 00 96 B4 00 00 2A 16 18 38 00 19 19 00 96 B4 00 00 0A 00 63 B4 00 00 00 1B 7B 31 00 00 00 00 00 00 16 0C 00 EA A2 00 00 00 1B B8 36 00 00 00 00 00 00 2C 5B 16 16 07 AF 01 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 3E 00 97 0F 00 00 00 1B 0D 10 00 00 00 00 00 00 35 D3 0D 00 00 D5 0D 00 00 00 00 19 1B 7B 31 00 00 00 00 00 00 16 09 00 C3 A2 00 00 00 01 C3 A2 00 00 2C 03 16 9F 00 98 B4 00 00 38 3F 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 02 00 F0 2C 00 00 00 2C 02 16[REPLACE]07 AF 01 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 3E 00 97 0F 00 00 00 1B 0D 10 00 00 00 00 00 00 35 D3 0D 00 00 D5 0D 00 00 00 00 19 1B 7B 31 00 00 00 00 00 00 16 09 00 C3 A2 00 00 00 01 C3 A2 00 00 2C 03 16 07 57 01 82 77 00 96 B4 00 00 2A 16 18 38 00 19 19 00 96 B4 00 00 0A 00 63 B4 00 00 00 1B 7B 31 00 00 00 00 00 00 16 0C 00 EA A2 00 00 00 1B B8 36 00 00 00 00 00 00 2C 5B 16 16 9F 00 98 B4 00 00 38 3F 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 02 00 F0 2C 00 00 00 2C 02 16 A2 00 98 B4 00 00 FA 91 92 1B 32 35 00 00 00 00 00 00 16 2C 06 16 2C 0A 16 2C 00 16 16 0F 00 98 B4 00 00 FA 00 98 B4 00 00 2C 00 16 00 98 B4 00 00 00 98 B4 00 00 00 98 B4 00 00 0B 0B 0B 0B 0B Link to comment Share on other sites More sharing options...
Yzaxtol Posted March 15, 2013 Share Posted March 15, 2013 Us who modify the .upk manually thank you :biggrin: Link to comment Share on other sites More sharing options...
kara42 Posted May 27, 2013 Share Posted May 27, 2013 I've been unsuccessfully looking for the 1.1.1 version of the hex code (the one before the March 15th patch), anyone able to help me out by any chance? thanks in advance Link to comment Share on other sites More sharing options...
Amineri Posted May 27, 2013 Author Share Posted May 27, 2013 Here it is from my archives: Version 1.1.1 ToolBoks Custom Mod (this is using the old ToolBoks 1.0-style Custom mod definition) MOD_NAME=Tank Damage Reduction AUTHOR=amineri UPK_FILE=XComGame.upk DESCRIPTION=Gives tank units damage reduction Version: 1.1.1 Works with XCOM Enemy Unknown version: Patch 3 ( Tuesday, December 11, 2012 4:36 PM - Changelist: 347752 ) [FIND] 0B 07 58 00 9B 38 3A 19 01 E9 F9 FF FF 09 00 AB FE FF FF 00 01 AB FE FF FF 38 3A 24 00 16 07 58 00 82 9A 00 95 B4 00 00 1D 40 42 0F 00 16 18 0B 00 2D 01 71 AF 00 00 16 14 2D 00 86 B4 00 00 27 07 AF 01 82 77 00 93 B4 00 00 2A 16 18 38 00 19 19 00 93 B4 00 00 0A 00 60 B4 00 00 00 1B 7B 31 00 00 00 00 00 00 16 0C 00 E7 A2 00 00 00 1B B8 36 00 00 00 00 00 00 2C 5B 16 16 07 AF 01 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 3E 00 97 0F 00 00 00 1B 0D 10 00 00 00 00 00 00 35 D3 0D 00 00 D5 0D 00 00 00 00 19 1B 7B 31 00 00 00 00 00 00 16 09 00 C0 A2 00 00 00 01 C0 A2 00 00 2C 03 16 9F 00 95 B4 00 00 38 3F 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 02 00 F0 2C 00 00 00 2C 02 16 [REPLACE] 07 AF 01 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 3E 00 97 0F 00 00 00 1B 0D 10 00 00 00 00 00 00 35 D3 0D 00 00 D5 0D 00 00 00 00 19 1B 7B 31 00 00 00 00 00 00 16 09 00 C0 A2 00 00 00 01 C0 A2 00 00 2C 03 16 07 57 01 82 77 00 93 B4 00 00 2A 16 18 38 00 19 19 00 93 B4 00 00 0A 00 60 B4 00 00 00 1B 7B 31 00 00 00 00 00 00 16 0C 00 E7 A2 00 00 00 1B B8 36 00 00 00 00 00 00 2C 5B 16 16 9F 00 95 B4 00 00 38 3F 19 19 2E FE 2C 00 00 19 12 20 4F FE FF FF 0A 00 D8 F9 FF FF 00 1C F6 FB FF FF 16 09 00 98 F9 FF FF 00 01 98 F9 FF FF 09 00 F0 2C 00 00 00 01 F0 2C 00 00 02 00 F0 2C 00 00 00 2C 02 16 A2 00 95 B4 00 00 FA 91 92 1B 32 35 00 00 00 00 00 00 16 2C 06 16 2C 0A 16 2C 00 16 16 0F 00 95 B4 00 00 FA 00 95 B4 00 00 2C 00 16 00 95 B4 00 00 00 95 B4 00 00 00 95 B4 00 00 0B 0B 0B 0B 0B Link to comment Share on other sites More sharing options...
Recommended Posts