Default Orion Death Ray can be modded.

Information, How-to's, and discussion about mod'ing Master of Orion II.
User avatar
Rocco
Posts: 229
Joined: Sat Mar 29, 2008 9:16 am
Contact:

Default Orion Death Ray can be modded.

Postby Rocco » Thu Feb 26, 2015 8:17 pm

The code for changing the default tech (Death Ray) when you capture Orion, starts at 11D813 in 140 and 11D7D3 in DOS.

A1 98 FF 01 00 BA 2F 00 00 00 01 F8 66 C7 03 00 00 E8 96 BF 04 00 84 C0 74 1D A1 98 FF 01 00 BA 2F 00 00 00 01 F8 E8 5A C0 04 00 0F BF 03 66 C7 04 46 2F 00

There is 3x '2F' in this block.
2F = tech #47, which is Death Ray.

11D819: 2F: This checks if the tech is available in game.
11D833: 2F: This will give you Death Ray, you can change to any tech# also non-Xenon tech*
11D845: 2F: Influences what you see in the textbox after you captured Orion. You can write any tech here and you will see it on screen, but you will actually get what is on place of 2nd F

When changing the tech you need to change all 3.
When you choose Dimensional Portal and "Antaran Attack" is off, you will only get 3 techs.

@Nirran, this might be a cool addition to OCL. I have read that some modders would like to change to Xentronium Armor. My little plan to make it D.Portal is unfort. not gonna fly, due to the issue with games without 'antarans attack'.
Last edited by Rocco on Tue Sep 01, 2015 4:44 am, edited 6 times in total.

User avatar
Overlord2
Posts: 654
Joined: Wed Jun 13, 2007 5:25 pm

Re: Default Orion Death Ray can be modded.

Postby Overlord2 » Wed Mar 04, 2015 7:01 am

* When changing the tech, you need to consider that some techs are not always available; Dimensional Portal when Antaran Attack is off; Food buildings when you are Lithovore race, or pollution stuff when you are tolerant. If you do pick such a tech, two things can happen: game wont give you the tech and you get only 3 randoms or you get nothing at all. Havent fully tested yet which scenario happens when, but both are not desirable anyway.

Food techs are given to Lithovore OK - no crash or etc. They are just not present in the tech tree for lith race with one exception of Weather Control.

@Nirran, this might be a cool addition to OCL. I have read that some modders would like to change to Xentronium Armor.

Wasn't it you? :roll:
Rocco wrote:thanks for that link!
it means from today i will need a hex editor to proceed...

update: have found HxD hex editor .. and did my first edit.. playing with the fast fade :)

q1: when capturing Orion, Death Ray (47) is always tech#1.
Iis there anyway to change that in hex, say to xentronium armor (201)?

q2. could you share how you fixed the leader spying bonus bug?
(001860D7 Compute_Spy_Bonuses_ )

thanks again

User avatar
Rocco
Posts: 229
Joined: Sat Mar 29, 2008 9:16 am
Contact:

Re: Default Orion Death Ray can be modded.

Postby Rocco » Fri Mar 06, 2015 6:44 pm

Wasn't it you? :roll:

busted hehe :) - or so it seems - used xentronium as an example coz i read couple times that people rather have the 'super armor' than the Death Ray. I like to change the default to dimensional portal coz i like that story line. just not sure atm what to think of the "antaran attack off" scenario.

Food techs are given to Lithovore OK - no crash or etc. They are just not present in the tech tree for lith race with one exception of Weather Control.

you are right. did some more tests and the game will just give the tech you choose as long as it is not taken out with '-1' or it is dim. portal and antarans are off. Then you will only get 3 techs. (have updated my post above)

User avatar
Rocco
Posts: 229
Joined: Sat Mar 29, 2008 9:16 am
Contact:

Re: Default Orion Death Ray can be modded.

Postby Rocco » Fri Aug 21, 2015 7:41 am

When conquering Orion, you get the Death Ray plus 3 extra random xenon techs.
The offset for this value is located at [DOS] 11D80B and [140/VDC/ICE] 11D84B.
3 is the default value. The value can be set from 0-3.
At 0 you only get the default Death Ray and nothing else.
Setting it at 4 resulted in a crash in my test.


Instruction to change default tech Death Ray to Dimensional Portal:
Open icemod.exe in a HEX editor and change '2F' to '34' at the following 3 locations:
11D819: 2F > 34
11D833: 2F > 34
11D845: 2F > 34
Save the exe and finished.


Return to “Game Modifications”

Who is online

Users browsing this forum: No registered users and 1 guest