Page 1 of 1

Possible error

Posted: Sat May 07, 2011 3:33 pm
by Green_Knight
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.

Posted: Sat May 07, 2011 3:48 pm
by Nirran
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

Posted: Sun May 08, 2011 1:55 am
by Green_Knight
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]

Posted: Sun May 08, 2011 7:59 am
by Nirran
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

Posted: Sun May 08, 2011 10:43 am
by Green_Knight
Yes, now it makes sense!

Posted: Mon Jun 20, 2011 2:05 am
by Overlord2
I have updated picks, now they show correctly. I was changing the max picks in different location.

Posted: Mon Jun 20, 2011 10:28 am
by Nirran
thank you Overlord2,will save me some confusion about the ocl programs i wrote

Belated Happy Fathersday everyone

Nirran