Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Can PACG be tweaked by the player/user?
Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH2 Pacific Aces
View previous topic :: View next topic  
Author Message
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Fri May 27, 2005 12:49 pm    Post subject: Can PACG be tweaked by the player/user? Reply with quote

I was curious can PACG be tweaked by the user. I assume it uses some variant of the Kriegstanz code base, since the same folks appear to have been involved in both projects.

For example, I find when on patrol that there are too many lone merchants roaming around. I am able to get decent tonnage with minimum risk. Although I could just play house rules and leave them be, I would rather be forced to take on convoys and task forces in order to achieve the required tonnage. So, is there just a probability I can adjust in some file somewhere or and edit which can be done to turn the lone merchants into lone destroyers?

Thanks.
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Fri May 27, 2005 12:53 pm    Post subject: Reply with quote

More generally ... I have read the KD manual, Koralle editor tutorial, and Neal's hand editting guide ... is there any documentation (even if only internal for the PA dev team) on how PACG operates? If so, might I get a copy?

FYI - I have 20+ years in systems development. So, I am computer literate.

Thanks.
Back to top
View user's profile Send private message Send e-mail
Floater



Joined: 14 Sep 2002
Posts: 2300
Location: England

PostPosted: Fri May 27, 2005 1:09 pm    Post subject: Reply with quote

Although I wrote the software for PACG, it was Hitman who devised the concept and provided the data. You'd do better speaking to him - I was just following orders. Very Happy

If you understand SH2 data files, you could rummage through the PACG sub-folders to find the data for the missions. You'll need to know how templates work, though - Hitman used those a huge amount to get the effect he wanted.
Back to top
View user's profile Send private message Send e-mail
Hitman



Joined: 14 Sep 2002
Posts: 3059
Location: Spain

PostPosted: Sat May 28, 2005 3:33 am    Post subject: Reply with quote

Mark,

basically all lone merchants are spawned from airbases. Those airbases are defined in the SDFs for the patrol zones, which can be found in the Topp/Data directory. If you want less merchant traffic, all you need to do is lower the probability on all bases, or increase the timer.

This will not affect the convoys (There are always four roaming around), but will decrease/increase as much as you want the lone merchants, destroyers, aircraft and small ship columns (2-3 ships)

Good hunting
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Sat May 28, 2005 8:36 am    Post subject: Reply with quote

Thanks. I'll look into that!
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Sat May 28, 2005 4:53 pm    Post subject: Reply with quote

I have just been browsing through the files.

Wow, PACG is really a highly moddable mod if one wants to! Smile

Are the BASE1-10 parameter blocks the same for every SDF file as it seems that there are about 124 SDF files? Then, I could easily write a text processing program to quickly traverse the file tree, find the appropriate parameter blocks, find the appropriate lines, and alter the appropriate values.

Very cool!

I do have a question: It seems that you folks already are using quite a bit of parameter file expansion in your implementation. With just a little more parameter expansion or pre-processing you could have made PACG very user configureable. Either with a custom front end application or just allow the user to edit a PACG meta-text file. Had you considered that? It would have added a lot more customization potential to PA.

For me, I see adjusting things like lone merchant frequency (down), patrol frequency (up), ...

Thanks for everything! I personally think it is quite brilliant how you folks managed to make a fairly limited game like the stock SH2 into a very replayable product.

{Well, as I babble away ... when SH3 came out ... I got interested in WWII subsims. However, I am opposed to SF in principle, but, of course, I knew SH3 wasn't the first WWII sub sim ever marketted. So, I reloaded AOD which I had purchased back in the mid-90s, but never got into. I found AOD to be pretty good and thought about grabbing another classic from Ebay, but something more recent than AOD. I looked at SH1 and SH2. It seemed SH1 had a lot more going for it. So, I put in a bid for it. However, someone on the subsim forums was giving away some of his old games for simply the cost of shipping. So, at that price, I said how could I loose. So, he sent me his SH2. What a pleasant surprise after getting SH2 up and running with PA; as I had relatively low expectactions initially.}
Back to top
View user's profile Send private message Send e-mail
Floater



Joined: 14 Sep 2002
Posts: 2300
Location: England

PostPosted: Sat May 28, 2005 5:49 pm    Post subject: Reply with quote

Thanks for the kind comments. PACG was always intended to be as externally moddable as it could be, even down to the screen layout and graphics, colours, etc.

I don't anticipate any further development on PACG. I'll continue to support it, of course, but I doubt if I'll be changing the code any more. As you've probably noticed, interest in SH2 (and hence PA) has dwindled greatly since SH3 came out.
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Sat May 28, 2005 6:18 pm    Post subject: Reply with quote

Quote:
Are the BASE1-10 parameter blocks the same for every SDF file as it seems that there are about 124 SDF files?


If you can tell me ... this will save the time checking if I want to write a script to process them.

Thanks.
Back to top
View user's profile Send private message Send e-mail
Floater



Joined: 14 Sep 2002
Posts: 2300
Location: England

PostPosted: Sat May 28, 2005 6:59 pm    Post subject: Reply with quote

Sorry, I meant to address this and forgot.

As far as I can tell (Hitman will hopefully confirm or deny), they're separate between each SDF, so if you want to make global changes, you'll need to change all the SDF files.
Back to top
View user's profile Send private message Send e-mail
Hitman



Joined: 14 Sep 2002
Posts: 3059
Location: Spain

PostPosted: Sun May 29, 2005 3:18 am    Post subject: Reply with quote

Mark

yes the bases are independent for every mission. SH2 has an empty world defined only with geographic coordinates of land/water by default. Then when the mission is loaded, only the parameters in the SDF are loaded into the memory. There are no "default" layouts which apply to any mission you create (Which is a pity). However, I made recently a discovering that would make mission editing on PACG much simplier: The game will assign you in campaign mode whatever class of boat is scripted in the matching block of the Atlantic.cam capaign file INDEPENDENTLY of what submarine is scripted in the sdf. That means that for campaign mode it would be enough to have folders for year and for base, and no subfolders for submarines are needed. This reduces enormously the amount of files needed.

Good hunting
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Sun May 29, 2005 4:19 am    Post subject: Reply with quote

Okay, after doing some more looking around. I came to the conclusion that perhaps the best and easiest place to tweak might just be in the Pacg_00?.sdf files. This would vastly reduce the amount of files needing to be processed (it could even easily be done by hand). Also, it would have the benefit of leaving the PA installation unaltered, since it is effectively post-processing PACG's output.

However, there is one thing that confuses me about this whole base thing. I have commented on the fact that you can achieve a nice tonnage score (30,000-40,000 tons) off of just attacking lone ships. I have had this experience in patrols of about 2-3 weeks time periods.

Now, I just looked at the bases ... For example:

Quote:

[BASE6]
;Tanker Base
Alignment = ALLIES
Location = 121.516472,30.61559
AirRadius = 1400000.0000
AirProbability = 0.03000
Timer = 1200.000000
Group=19
NightAir=TRUE
Oneshot=FALSE


That says roughly that there is a 3% chance per day of seeing a tanker in an area with a 70nm radius. And yet I have had up to three lone tankers on a single patrol. That would seem somewhat high based on these parameters. What is going on?

From the values that have been set in PACG, one would expect encounters with lone ships to maybe happen one tanker, one Q-ship, one sub ... maybe once per patrol of say 20-30 days. Is that what was intended? I think I have seen higher frequencies.

So, if I want to alter this (to reduce), I could either lower the probability, increase the timer, or simply delete the block?

Thanks.
Back to top
View user's profile Send private message Send e-mail
Floater



Joined: 14 Sep 2002
Posts: 2300
Location: England

PostPosted: Sun May 29, 2005 7:04 am    Post subject: Reply with quote

In a word, yes. Every $TIMER, there's a $PROBABILITY that the base will spawn, so increasing $TIMER or decreasing $PROBABILITY will give you less spawns.
Back to top
View user's profile Send private message Send e-mail
Hitman



Joined: 14 Sep 2002
Posts: 3059
Location: Spain

PostPosted: Sun May 29, 2005 1:13 pm    Post subject: Reply with quote

The PACG_X files you find in Shell/Campaignfiles are the generated campaign. So once you generate another campaign, any changes done on them will be lost :down: If you want the change to work for all missions you create later with PACG, you must tweak the templates in the "Topp" folder

As for bases probability, yes the game makes the ships appear more frequently than one could think at first sight. I left it high enough for casual players to get nice tonnage figures, but of course too high for ultimate realism. I did it because I knew that the more hardcore players are also the most interested in tweaking, and they would easily addapt it to their wishes. Smug
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Sun May 29, 2005 1:49 pm    Post subject: Reply with quote

Hitman,

I fully understand that the Pacg_00?.sdf are the output of PACG and get recreated each time it is run, but I intend to write a script to quickly zap them after running PACG. I see two advantages to this approach as opposed to editting the templates:

(1) I am disinclined to permanently alter the PA environment. I would rather leave it in its stock configuration if I can still accomplish what I want.

(2) If I write a script to edit the templates, then there are 100+ files to alter. If I really wanted to completely check that my script is working properly, that's a lot of checking. If my script instead alters the Pacg_00?.sdf, then that is at most six files to check to see that it works properly.

Thanks for confirming that the appearance rates are higher than what the parameters imply. I thought so. I want to cut it down, since I want the campaign to put me in a dangerous environment and force me to take risks. Smile

I am off to write a script.

---

PA Team,

I know I've already thanked you for the PA mod, but I do also greatly appreciate your willingness to answer my questions and assist me. Especially since the we are now living in the Post-SH3 Exodus Period. Smile

Thank you.
Back to top
View user's profile Send private message Send e-mail
MarkShot



Joined: 07 Jul 2002
Posts: 491

PostPosted: Sun May 29, 2005 4:30 pm    Post subject: Reply with quote

Here is the implementation of my post processor for campaign patrol files. This is implemented in a scripting language for WinBatch (Windows scripting) and WinEdit (text editor). The language is called WIL.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH2 Pacific Aces All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group