Squads.csv - which unit IDs are available?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Squads.csv - which unit IDs are available?

Post by GottaLove88s »

Pip/Andrew,

Am working up a squads.csv for a Dieppe map, essentially adding back early 1940's units, plus warships, assault craft & coastal guns to the GJS'44 squads.csv

However, several units are showing with different names (often italian) and graphics in the Editor.

Please remind me which IDs are available to use for new units in squads.csv? Are any ID ranges reserved, eg for Husky? Is there a maximum ID number that can't be exceeded, eg. Could I just start super high, say 500, to avoid conflicts?

Thanks...
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
pipfromslitherine
Site Admin
Site Admin
Posts: 9929
Joined: Wed Mar 23, 2005 10:35 pm

Re: Squads.csv - which unit IDs are available?

Post by pipfromslitherine »

The IDs in the squads file are pretty much just string indexes, so you can pretty much use any IDs you like. There are indeed probably a good number that are in use for later expansions, although your local campaign text file should override them.

Cheers

Pip
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Squads.csv - which unit IDs are available?

Post by GottaLove88s »

Thanks Pip, that makes sense... So if I number all of my new IDs from 1000 onwards, they would all work without conflicts...?
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
pipfromslitherine
Site Admin
Site Admin
Posts: 9929
Joined: Wed Mar 23, 2005 10:35 pm

Re: Squads.csv - which unit IDs are available?

Post by pipfromslitherine »

One would hope so :)

Cheers

Pip
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Squads.csv - which unit IDs are available?

Post by GottaLove88s »

Lol... Silly question, great answer...

One never knows how many new units you're creating for Eastern Front? ;-)
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
pipfromslitherine
Site Admin
Site Admin
Posts: 9929
Joined: Wed Mar 23, 2005 10:35 pm

Re: Squads.csv - which unit IDs are available?

Post by pipfromslitherine »

BA2 uses a different approach for squads files, which hopefully will avoid almost all conflicts.

Cheers

Pip
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Squads.csv - which unit IDs are available?

Post by GottaLove88s »

Thanks Pip,

Have done that, but I'm getting mNumSquadTemplates error... <MAX_SQUAD_TEMPLATES/Users/Philipveale/Dev/BBC/Legion2/sidearena.cpp(212)

Is that because I've used high ID numbers... 1,000 onwards?
Or because my squads.csv has too many rows... 140 so far?
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Squads.csv - which unit IDs are available?

Post by AndrewGardner »

There is a limit of 128 rows in the squads.csv. Hopefully there are some units you aren't using in this campaign.
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Squads.csv - which unit IDs are available?

Post by GottaLove88s »

Aha! that figures... thanks Andrew...

Was trying to tailor too much for my own good... adding 'Rileys', 'Royal Marines', 'Montreal Fusiliers', 'Essex Scottish', 'Cameron Highlanders', etc...

Have learned to keep it simple, lol... Very much less than 128 units now :D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”