The Greatest Modding Question of All Time - Please Help

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Post Reply
Hancock the Superb
Reactions:
Posts: 1436
Joined: Thu Aug 21, 2008 9:06 am

The Greatest Modding Question of All Time - Please Help

Post by Hancock the Superb »

To start off, I hope that what I'm doing sparks some interest first of all.

Second of all, I would appreciate the NorbSoftDev Team to come take a look at this - for I believe that they have the best answers for this.

I am attempting to create a mod that performs at company level - so regiments become companies, brigades become regiments, etc. I have put a lot of time into dissecting formations and am now attempting to replicate them in the drills.csv file. Unfortunately, the game engine doesn't like my style. I'm trying to make it so the companies have fixed ends, but a middle that can have as many privates as it wants in it. Thus I have created this nasty looking drills file that I would like looked over.

Please download the mod files and test out the scenario first, then, look at the drills and the gui and tell me how to fix the game while still maintaining my formations, if possible.

I appreciate everyone's help, so even if you know nothing of this, feel free to download and tinker around.

Thanks.
Attachments
CompanyMod.zip
(17.92 KiB) Downloaded 5 times
Hancock the Superb
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re: The Greatest Modding Question of All Time - Please Help

Post by ADukes »

When the game loads in the formation, it looks in a specific order to determine who to line up on for each slot. First it looks to see if it's behind a lower number, then it looks to see if it's to the right of a lower number, then to the left, and finally ahead. It does not look to find the lowest number that it's around; it looks in the above order. If it cannot find a lower number, then the formation fails.
Hancock the Superb
Reactions:
Posts: 1436
Joined: Thu Aug 21, 2008 9:06 am

Re: The Greatest Modding Question of All Time - Please Help

Post by Hancock the Superb »

I understood that part, but I was wondering if there was a way to get around it...

A suggestion perhaps would be welcome, unless it is impossible.
Hancock the Superb
Jim
Reactions:
Posts: 1082
Joined: Tue Nov 27, 2007 8:53 am

Re: The Greatest Modding Question of All Time - Please Help

Post by Jim »

No the game only populates formations in that exact sequence. Here you must work with the system and not around it. This is such a core function that it must be simple and efficient as this code runs a lot.

-Jim
"My God, if we've not got a cool brain and a big one too, to manage this affair, the nation is ruined forever." Unknown private, 14th Vermont, 2 July 1863
Post Reply