Jump to content

Modding starting base layout


AxlDave

Recommended Posts

So, I'm trying to edit the starting base layout such that the OTS and Satellite Uplink you start with are in different locations.

 

This is the code I'm working with, located in XComStrategyGame.upk --> XGBase.GenerateTiles

    SetFacility(1, 0, 0);
    SetFacility(3, 2, 0);
    SetFacility(2, 4, 0);
    SetFacility(4, 6, 0);
    SetFacility(6, 3, 1);
    m_arrTiles[TileIndex(3, 1)].iTileState = 1;
    SetFacility(9, 2, 1);
    // End:0x4BC
    if(Game().GetDifficulty() <= 1)
    {
        SetFacility(12, 0, 1);
        Game().m_arrFacilityUnlocks[12] = 1;
    }
    UpdateTiles();
    //return;    

 

What I want to do is change these...

SetFacility(9, 2, 1);
SetFacility(12, 0, 1);

into these...

SetFacility(9, 4, 2);
SetFacility(12, 4, 1);

 

But here's the problem:

(235-239;455/311) [1B DB 2A 00 00 00 00 00 00 2C 09 2C 02 26 16]
	VFT(15/15)
	SetFacility(9, 2, 1)

    (236-236;45E/31A) [2C 09]
    	ICBT(2/2)
    	9

    (237-237;460/31C) [2C 02]
    	ICBT(2/2)
    	2

    (238-238;462/31E) [26]
    	IOT(1/1)
    	1

    (239-239;463/31F) [16]
    	EFPT(1/1)



(249-253;48A/342) [1B DB 2A 00 00 00 00 00 00 2C 0C 25 26 16]
	VFT(14/14)
	SetFacility(12, 0, 1)

    (250-250;493/34B) [2C 0C]
    	ICBT(2/2)
    	12

    (251-251;495/34D) [25]
    	IZT(1/1)
    	0

    (252-252;496/34E) [26]
    	IOT(1/1)
    	1

    (253-253;497/34F) [16]
    	EFPT(1/1)

Two of the three variables I want to change are those single byte tokens (IZT/IOT), but I need them to be the two byte tokens that begin with 2C (ICBT).

I'm aware that probably requires doing something fiddly with memory/file sizes, I just can't seem to figure out what I need to do - or if it's even possible.

 

Can someone shed some light on this?  Ideally clear instructions telling me exactly what I need to do.

 

Thanks in advance.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...