Jump to content

Enemy Within Discovery Thread


Krazyguy75

Recommended Posts

  • Replies 248
  • Created
  • Last Reply

Top Posters In This Topic

Still looking for info on Zhang's class. Modifying the old DLC files in the Enemy Unknown directory doesn't do anything in EW, and the file that used to be edited to change Zhang's class isn't present in the EW directory.

I guess it's in XComStrategyGame.upk under XGFundingCouncil class, BuildMission function, at least it's the only reference I could find so far.

kMission.ECountry = 2;
            kMission.eType = 5;
            kMission.strMapName = "DLC1_1_LowFriends";
            CustomSoldier.firstName = "Shaojie";
            CustomSoldier.lastName = "Zhang";
            CustomSoldier.NickName = "Chilong";
            CustomSoldier.Country = 2;
            CustomSoldier.Appearance.iRace = 2;
            CustomSoldier.Appearance.iFlag = 2;
            CustomSoldier.Appearance.iHead = 308;
            CustomSoldier.Appearance.iFacialHair = 16;
            CustomSoldier.Appearance.iHaircut = 307;
            CustomSoldier.Appearance.iHairColor = 22;
            CustomSoldier.Appearance.iSkinColor = 0;
            CustomSoldier.Appearance.iVoice = 20;
            CustomSoldier.Appearance.iGender = 1;
            CustomSoldier.soldierClass = 2;
            CustomSoldier.SoldierRank = 4;
            CustomSoldier.bPsiGift = false;
            CustomSoldier.HP = 9;
            CustomSoldier.Aim = 75;
            CustomSoldier.Will = 70;

Look for this line.

03 00 00 00 01 00 8A 02 00 00 24 02 0F 35 DF 03

Last "02" from this line is what you are looking for. Change it to whatever class you want.

 

Warning: I did not test it, it's just a guess so take it into account before you start changing values, make a backup etc.

Edited by Tiress
Link to comment
Share on other sites

Those of you poking around the DGC.ini likely already noticed this, but for those who haven't gotten the upgrade yet...

 

The ItemBalance entries (which control cost/time for building/selling every item in the strategy game) has been broken out into four separate categories based on difficulty. Instead of just ItemBalance there is now:

  • ItemBalance_Easy
  • ItemBalance_Normal
  • ItemBalance_Hard
  • ItemBalance_Classic

The naming system is as with BalanceMod entries ("_Hard" is the Classic difficulty and "_Classic" is the Impossible difficulty).

 

Vanilla does tweak some values a bit, although fairly minorly. Firestorm costs 150 cash on Easy, and 200 cash on Normal and higher. Heavy Plasmas cost 250 cash on Easy and Normal, but 375 Cash on Classic and Impossible.

 

FacilityBalance, FoundryBalance, OTSBalance, and TechBalance were not broken down by difficulty. Increased tech costs on Classic and Impossible were hard-coded directly into XGTechTree.BalanceTechs via:

            if(((((!ISCONTROLLED() && kBalance.eTech != 1) && kBalance.eTech != 10) && kBalance.eTech != 9) && kBalance.eTech != 13) && kBalance.eTech != 11)
            {
                switch(Game().GetDifficulty())
                {
                    case 2:
                        m_arrTechs[kBalance.eTech].iHours *= 1.40;
                        break;
                    case 3:
                        m_arrTechs[kBalance.eTech].iHours *= 1.70;
                        break;
                    default:
                        break;
                    }

Note the increased tech times don't apply to 5 of the tech projects (Xenobiology, Weapon Fragments, Alien Materials, Experimental Warfare and Meld)

Edited by Amineri
Link to comment
Share on other sites

Concerning silent patching, My Games\XCOM - Enemy Within\XComGame\Logs\EMS\XComGameCore.ini contains only [XComGame.XGTacticalGameCore] entry - no ClearArray for Armor, Characters and Weapons as in EU.

 

Edit: Also disabled phone home did not crash the game. There are chunks from a log in the spoiler.

 

 

 

Enabled Phone Home
---------
[0009.38] DevHTTP: Performing DNS lookup for prod.xcom-ew.firaxis.com
[0009.42] DevHTTP: FHttpDownload resolve complete to: 65.118.245.139:80
[0009.42] DevHTTP: FHttpDownload resolve complete to: 65.118.245.139:80
[0009.69] DevHTTP: FHttpDownload request (/ew/PlayerInfo.ashx) started
[0009.71] DevHTTP: FHttpDownload request (/ew/Dict.ashx?keyz=XComGameCore.ini) started
[0009.73] DevHTTP: HTTP POST payload sent, waiting for response
[0010.36] DevHTTP: FHttpDownload request (/ew/PlayerInfo.ashx?) completed
[0010.38] DevHTTP: FHttpDownload request (/ew/Dict.ashx?keyz=XComGameCore.ini) completed
[0010.41] Log: Updating config/loc from XComGameCore.ini took 0.028294 seconds
[0010.41] DevOnline: TitleFile XComGameCore.ini Download Succeeded!
[0010.88] DevOnline: Obtained steam user stats

Disabled Phone Home
---------
[0010.28] DevHTTP: Performing DNS lookup for prod.xcom-ew.firaxis.com
[0010.28] DevHTTP: FHttpDownload resolve complete to: 127.0.0.1:80
[0010.28] DevHTTP: FHttpDownload resolve complete to: 127.0.0.1:80
[0010.31] DevHTTP: FHttpDownload request (/ew/PlayerInfo.ashx) started
[0010.31] DevHTTP: FHttpDownload request (/ew/Dict.ashx?keyz=XComGameCore.ini) started
[0010.34] DevHTTP: HTTP POST payload sent, waiting for response
[0010.47] Error: 404: Failed to GET the requested file: http://prod.xcom-ew.firaxis.com:80/ew/PlayerInfo.ashx
[0010.47] Error: 404: Failed to GET the requested file: http://prod.xcom-ew.firaxis.com:80/ew/Dict.ashx
[0010.47] DevOnline: TitleFile XComGameCore.ini Download Failed
[0010.78] DevOnline: Obtained steam user stats

 

 

 

PlayerInfo.ashx seems connected to Multiplayer. In XComGame.XComMCP is native function UploadPlayerInfo.

Edited by Drakous79
Link to comment
Share on other sites

That is helpful to know. I'll update the wiki "Steam and mods" article. Any idea as to why the earlier report that disabling the EW 'phone home' froze the game? For instance, might it be needful at least once?

 

-Dubious-

The earlier report was solved by turning off Steam automatic updates, as I recall. Phoning home doesn't seem like it would be stopped by turning off automatic updates, otherwise we wouldn't have had something as complicated as the hosts file edit.

 

I believe either that the crashing was unrelated to the game phoning home, or a corruption/error (or a firewall issue, maybe?) in his data somewhere that caused the game to throw an exception when it tried to obtain the file from the local machine.

 

Also, as I reported earlier, my game has been phoning home each time I play it (I forgot to switch my hosts file for the new IP address) and I haven't crashed. Someone should independently test to verify that it isn't some fluke of my computer, and maybe check what happens if you try to play multiplayer with a modded game.

 

Edit: Forgot to mention, I played through EW once (ran the game 4 or 5 times vanilla) before modding it, but it has been modded for the subsequent dozen or so times I've run it. It's never crashed.

Edited by fardriel
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...