Possible error

Information, How-to's, and discussion about mod'ing Master of Orion II.
User avatar
Green_Knight
Posts:61
Joined:Wed Jul 18, 2007 3:10 am
Contact:
Possible error

Postby Green_Knight » Sat May 07, 2011 3:33 pm

I may have found an error. After extracting the vdcgm2 file set i found this:

[NUMBEROFPICKS]
"Maximum Positive Picks" , 10;

That doesn't ad up, because when I start up a game you've got the full 31 positive picks.

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

Postby Nirran » Sat May 07, 2011 3:48 pm

that is because the VDC was not altered with ocl,it was hand edited in the 1.31 release code,ocl reads the pick amount through the code that is written for the command line switches in patch 1.40(and they still work),it does not alter the original 1,31 code(it does for negative picks tho),convinience is why i coded it that way

edit : and also coded that way to allow multiplayer command line switches to be usable,11 12 13 14 picks will still over-ride what is inserted by ocl

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

User avatar
Green_Knight
Posts:61
Joined:Wed Jul 18, 2007 3:10 am
Contact:

Postby Green_Knight » Sun May 08, 2011 1:55 am

that is because the VDC was not altered with ocl,it was hand edited in the 1.31 release code,ocl reads the pick amount through the code that is written for the command line switches in patch 1.40(and they still work),it does not alter the original 1,31 code(it does for negative picks tho),convinience is why i coded it that way

edit : and also coded that way to allow multiplayer command line switches to be usable,11 12 13 14 picks will still over-ride what is inserted by ocl

Nirran
This I do not quite understand.

I set OCL_Improved (using the GUI) to read the VDCGM2.exe, using the 140 version. Then I extract to a text file. The text file reads 10 race picks, not 31.

I understand that VDC wasn't made using OCL_Improved, but it's still the same bytes being manipulated, no?

All the other values seem to be VC values though, for example:

[PLANETARYSHIELDS]
"No Shield" , 0, 0, 0;
"Planetary Radiation Shield" , 134, 0, 13;
"Planetary Flux Shield" , 130, 0, 23;
"Planetary Barrier Shield" , 129, 0, 56;
[END]

And it's even managed to extract the negative picks:


[NUMBEROFPICKS]
"Maximum Positive Picks" , 10;
"Maximum Negative Picks" , -11;
[END]

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

Postby Nirran » Sun May 08, 2011 7:59 am

iirc the bytes in the unmodded moo2 are in 5+ locations,for patch 140 it alters those addresses with data from one locations,that number is default picks if the command line switch is not used,i simply alter the default picks,instead of writting code to atler the 5 locations,VDC altered the 5+ locations

hope this is easier to understand

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

User avatar
Green_Knight
Posts:61
Joined:Wed Jul 18, 2007 3:10 am
Contact:

Postby Green_Knight » Sun May 08, 2011 10:43 am

Yes, now it makes sense!

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

Postby Overlord2 » Mon Jun 20, 2011 2:05 am

I have updated picks, now they show correctly. I was changing the max picks in different location.

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

Postby Nirran » Mon Jun 20, 2011 10:28 am

thank you Overlord2,will save me some confusion about the ocl programs i wrote

Belated Happy Fathersday everyone

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


Return to “Game Modifications”

Who is online

Users browsing this forum: No registered users and 27 guests