Main.pdx

Please post here for questions and discussion about general game modding

Moderator: Jason Petho

Post Reply
TAIL GUNNER
Posts: 1156
Joined: Wed Apr 27, 2005 5:10 am
Location: Los Osos, CA

Main.pdx

Post by TAIL GUNNER »

Curious what you can mod with this file....what do all these numbers mean?

Image
Attachments
main.jpg
main.jpg (42.5 KiB) Viewed 675 times
"If you want peace, prepare for war."
User avatar
Crossroads
Posts: 18596
Joined: Sun Jul 05, 2009 8:57 am

RE: Main.pdx

Post by Crossroads »

This is the best info I've found on the topic: http://www.theblitz.org/message_boards/ ... ?tid=60327
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.10.20 Available Now (Dec 03, 2025)
CS: Middle East 1948-1985 < v3.10.20 Available Now (Dec 03, 2025)
User avatar
Warhorse
Posts: 5373
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Main.pdx

Post 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!!
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
TAIL GUNNER
Posts: 1156
Joined: Wed Apr 27, 2005 5:10 am
Location: Los Osos, CA

RE: Main.pdx

Post 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'.
"If you want peace, prepare for war."
User avatar
Warhorse
Posts: 5373
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Main.pdx

Post 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...
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Main.pdx

Post 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! [;)]
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
Warhorse
Posts: 5373
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Main.pdx

Post by Warhorse »

Heh, heh! There is that!!
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
TAIL GUNNER
Posts: 1156
Joined: Wed Apr 27, 2005 5:10 am
Location: Los Osos, CA

RE: Main.pdx

Post by TAIL GUNNER »

that's slightly disappointing...but thanks any way Mike!
"If you want peace, prepare for war."
TAIL GUNNER
Posts: 1156
Joined: Wed Apr 27, 2005 5:10 am
Location: Los Osos, CA

RE: Main.pdx

Post 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
Attachments
untitled.jpg
untitled.jpg (8.15 KiB) Viewed 673 times
"If you want peace, prepare for war."
User avatar
Warhorse
Posts: 5373
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Main.pdx

Post 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!!
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Main.pdx

Post 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!)
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
TAIL GUNNER
Posts: 1156
Joined: Wed Apr 27, 2005 5:10 am
Location: Los Osos, CA

RE: Main.pdx

Post 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!
"If you want peace, prepare for war."
Post Reply

Return to “Mods and Scenarios”