Page 1 of 1

Main.pdx

Posted: Wed Jan 08, 2014 12:37 am
by TAIL GUNNER
Curious what you can mod with this file....what do all these numbers mean?

Image

RE: Main.pdx

Posted: Wed Jan 08, 2014 5:39 pm
by Crossroads
This is the best info I've found on the topic: http://www.theblitz.org/message_boards/ ... ?tid=60327

RE: Main.pdx

Posted: Wed Jan 08, 2014 9:13 pm
by Warhorse
Remember, any work you do on it, please have Jason encrypt it for you!! Also, goes without saying, work on a backup copy!!

RE: Main.pdx

Posted: Thu Jan 09, 2014 1:46 am
by TAIL GUNNER
Thanks guys.

Follow-up question..

Is there any way to change the name of terrain? Say I want to change terrain 'Orchard' into 'Light Woods'.

RE: Main.pdx

Posted: Thu Jan 09, 2014 7:38 am
by Warhorse
You must edit the exe's with a resource editor to do that. All the menu stuff can be messed with that way as well. I use Reshack, and PEresource as my editors, and a good hexeditor as well. Of course, if you are a C++ guy, and have a compiler...

RE: Main.pdx

Posted: Thu Jan 09, 2014 9:45 am
by berto
ORIGINAL: Warhorse

Of course, if you are a C++ guy, and have a compiler...
... and the source code. But he doesn't, and won't. Sorry! [;)]

RE: Main.pdx

Posted: Thu Jan 09, 2014 7:14 pm
by Warhorse
Heh, heh! There is that!!

RE: Main.pdx

Posted: Sat Jan 11, 2014 3:56 am
by TAIL GUNNER
that's slightly disappointing...but thanks any way Mike!

RE: Main.pdx

Posted: Sun Jan 26, 2014 11:19 pm
by TAIL GUNNER
Well I can change the menu and tool bar to display "Light Forest" instead of "Orchard" using Resource Hacker....but when the actual hex is selected in the map editor, it still displays "Orchard" at the bottom. Can you shed any insight Warhorse?

I'm guessing what I'm trying to do is buried too far in the .exe...

Image

RE: Main.pdx

Posted: Mon Jan 27, 2014 6:36 pm
by Warhorse
Hey Juggalo, with a hex editor, open the files, and do a search for orchard, the problem is the amount of bytes, whenever you try to extend or anything beyond what they are, no go, less bytes, no problem. A good programmer knows what to do, but that is not my skill set, unfortunately! I self taught myself step by step, but still not a programmer!!

RE: Main.pdx

Posted: Mon Jan 27, 2014 7:11 pm
by berto

So this substitution should work

Orchard ->
LForest

since they have the same number of chars.

With the new update due out soon, note that by means of The -X NoEncryption Option, you will be able to modify and use the unencrypted main.pdt file, no need to mess around with the encrypted main.pdx file. (For private use only, not for PBEM!)

RE: Main.pdx

Posted: Tue Jan 28, 2014 2:50 am
by TAIL GUNNER
Thanks for the guidance fellas...much appreciated.


berto, I'm well aware of your NoEncryption Option...can hardly wait to tinker with this baby!