Finding offset help

Information, How-to's, and discussion about mod'ing Master of Orion II.
DocCox
Posts:3
Joined:Fri May 06, 2011 6:39 am
Finding offset help

Postby DocCox » Fri May 20, 2011 11:26 pm

I attempted to read up on some of the work done by modders in the past, and it looks to be almost entirely related to locating offsets and changing the values

I decided to attempt to do the same today, I downloaded a hex editor and began my work looking for the colony ship production cost offset

I found nothing in the 1.4 patched version of moo2. I only looked inside of the 1.4exe because I assumed if it was located elsewhere ocl_plus would have identified it.

I need some help, I was under the impression the colony ship costs 500 to build, so I searched the exe for

Code: Select all

01 f4
It found quite a few results so I spent an hour changing each and every one to a different value, in this case

Code: Select all

07 d0
or 2,000

My first question: Does anybody know where the colony ship value is stored?

Second, was I even searching for the correct values?

Third, was I searching in the correct place for these values, or should I look inside a .lbx file?

Any helps appreciated
Doc

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

Postby Overlord2 » Sun May 22, 2011 7:57 am

Here is an offset for colony ship building cost:
F8 98 C7 45 F8 F4 01 00 00
F4 01 = 01 F4 = 500

DocCox
Posts:3
Joined:Fri May 06, 2011 6:39 am

Postby DocCox » Sun May 22, 2011 8:15 am

Thanks a million Overlord2, there were something like 600 results for F4 01, that could have taken forever

Nirran
Posts:80
Joined:Wed Dec 01, 2010 7:35 pm
Location:california
Contact:

Postby Nirran » Tue Jun 21, 2011 9:47 pm

if anyone knows of a debugger that actualy works in win7 from inside dosbox(not debug dosbox but the running program Inside dosbox) please post a link

thnx

Nirran
Fastest way for evil to triump is for good people to do nothing

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

Postby Overlord2 » Thu Sep 15, 2011 9:03 am

Here is an offset for colony ship building cost:
F8 98 C7 45 F8 F4 01 00 00
F4 01 = 01 F4 = 500
Looks like previous information was wrong. It changes only graphical info about colony ship cost, while real cost is hidden in different place, namely:
75 10 C7 45 FC F4 01 00 00
So you need to change both...

PS. It was added to OCL_Improved & GUI under Colony Product category.


Return to “Game Modifications”

Who is online

Users browsing this forum: Google [Bot] and 32 guests