Pacific General executable patches

Pacific General: Strategies, Tactics, Equipment Files, Customization.
Post Reply
AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Pacific General executable patches

Post by AndO3131 » 2020-07-22 18:44, Wednesday

I've succesfully decompiled Pacific General executable. If there are people interested in my findings, I've put all the files on dropbox.

Latest executable can be found here. Full changelog for this executable is here. Some of the features it introduces:
  1. Increased number of files accessible in campaign play to 48
  2. Possibility to create scenarios with up to 400 map names
  3. AI controlled forts WILL fire at naval units
  4. Access to ingame map editor in /hondarules mode
  5. Fixed prestige bug that occurs when campaign progress is saved after current scenario is completed
  6. Battle Honors for core units in campaign saved and displayed in goto unit screen

User avatar
Radoye
Royal Navy Battlecruiser Sqn
Royal Navy Battlecruiser Sqn
Posts: 399
Joined: 2019-09-30 11:21, Monday

Re: Pacific General executable patches

Post by Radoye » 2020-07-23 14:14, Thursday

This is most interesting, thank you. Might be just what i need to get back into PacGen :)

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2020-07-23 20:14, Thursday

One more thing worth mentioning - documentation of various file formats for Pacific General.

Contains some loose thoughts about possible changes and documents PACEQUIP.EQP, TFONT1.DAT and SVG (savegame) file formats.

HexCode
First Lieutenant
First Lieutenant
Posts: 831
Joined: 2019-09-30 18:54, Monday

Re: Pacific General executable patches

Post by HexCode » 2020-07-28 17:53, Tuesday

AndO3131 wrote:
2020-07-22 18:44, Wednesday
I've successfully decompiled Pacific General's executable ... Latest executable ...
Did you just hex-edit the executable ? Alternatively, did you recompile the executable ?

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2020-07-28 18:05, Tuesday

Just hexedited the executable, but in the process I've been able to identify some functions and variables. If you have IDA Freeware Version 5.0, you can check Pacific General executable database I've created in the process.

HexCode
First Lieutenant
First Lieutenant
Posts: 831
Joined: 2019-09-30 18:54, Monday

Re: Pacific General executable patches

Post by HexCode » 2020-07-28 18:33, Tuesday

Is this a long-term project during which successive waves of additional, technical discoveries will be made and publicly communicated, including further hex-editing of the executable ?

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2020-07-28 18:50, Tuesday

It's a hobby project, so no promises :dunno

If I discover something new, I'll put it on dropbox.

gdemetrios20
Private
Private
Posts: 1
Joined: 2020-11-01 10:03, Sunday

Re: Pacific General executable patches

Post by gdemetrios20 » 2020-11-01 10:04, Sunday

One question

How does all of this work?

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2020-12-23 09:38, Wednesday

You download latest executable from dropbox and run it. If it doesn't run, you will need armory 4.71 data updated.zip and unpack it to data folder in pacific general installation folder (MAKE BACKUP FIRST).

Bruceleeroy2021
Private
Private
Posts: 1
Joined: 2021-12-13 12:51, Monday

Re: Pacific General executable patches

Post by Bruceleeroy2021 » 2021-12-13 12:53, Monday

That is amazing.

I look forward to finishing the resolution changes from like 15 years ago, lol.

What tools did you use to decompile the .exe?

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2021-12-28 10:25, Tuesday

I've used IDA Freeware Version 5.0 (you can find it on the internet).

Database is available on dropbox.

IDA can also be used to mark breakpoints and run executable, but at the time I've used olly debugger.

Also, nice to meet you :) I've found your mod and also tried to include some parts of it.

B29
Private
Private
Posts: 9
Joined: 2022-04-09 03:53, Saturday

Re: Pacific General executable patches

Post by B29 » 2022-04-09 04:35, Saturday

Good Lord, man, where were you in 2004 when there was still a PacGen community and we desperately needed these fixes!

I haven't been able to play in ten years since I moved to Windows 10. It'll load up but when it takes a plane almost ten seconds to fly across the screen, it's over. Anything you can do to make it run smoothly with more advanced modern graphics cards and displays would be appreciated.

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2022-04-09 07:58, Saturday

To run it on modern computer I used ddraw wrapper. This version worked.

I've read this program can also work, but I haven't tried it myself ddrawcompat.

B29
Private
Private
Posts: 9
Joined: 2022-04-09 03:53, Saturday

Re: Pacific General executable patches

Post by B29 » 2022-04-09 17:49, Saturday

Thanks but that link goes to a beta program called DxWnd, not "ddraw wrapper", or is the latter a generic term? :huh

User avatar
Radoye
Royal Navy Battlecruiser Sqn
Royal Navy Battlecruiser Sqn
Posts: 399
Joined: 2019-09-30 11:21, Monday

Re: Pacific General executable patches

Post by Radoye » 2022-04-09 22:54, Saturday

I think DxWnd is the wrapper he's referring to. This is a tool used to run older fullscreen apps in windowed mode, which helps sometimes with older games that refuse to run on modern OS's

AndO3131
Private
Private
Posts: 8
Joined: 2019-12-26 09:29, Thursday

Re: Pacific General executable patches

Post by AndO3131 » 2022-04-10 10:29, Sunday

Just like both of you said - I've used ddraw wrapper as generic term.

Recently, I've learned more about code injection. It's possible to rewrite those code alterations and prepare a dll library, that will include almost all of those changes. Only changes to the executable would be memory management stuff.

Post Reply