Editor is changing the unit type???

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

Editor is changing the unit type???

Post by GottaLove88s »

Guys,

This is a strange one.

I've duplicated several rows of units in squads.csv, copying all of the data, but with lower morale (to simulate an "out of supply" penalty).
For example, my squads.csv has a normal Volksgrenadier, with morale 75, and an "out of supply" *Volksgrenadier (with a star in the name) with morale 50.
All of the new ID numbers run from 200-250.
The new *Volksgrenadier shares the same Icon ID and Asset Filename as the normal Volksgrenadier.

The thing is, the Editor will let me place these new *Volksgrenadiers on the map, no problem.
But, if I save and reload the map, they've all magically become normal Volksgrenadiers (no star).

Huh??!! What's going on?

Any ideas appreciated. It's driving me nuts...

:shock: :?
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
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Editor is changing the unit type???

Post by GottaLove88s »

Haha! Solved it... The rumours are true... GL88 is, in fact, a moron... I forgot that I had to change the unit "name" as well as give it a unique unit ID... Otherwise the Editor just transposes it for the first thing that occurs in squads.csv with the same unit name, regardless of ID... Obvious when one figures it out... Well at least it rained all day over here, lol... DOH!! :-)
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
Richcat
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 219
Joined: Sun Nov 07, 2010 10:09 pm

Re: Editor is changing the unit type???

Post by Richcat »

Hi GL88 Glad you got it sorted
Don't kick yourself to much :roll: - I couldn't understand when I made my test tank why I kept getting a sherman, again and again. I had copied and pasted as you, but I hadn't spotted that AssetfileName column, buried deep in the squads file. :wink:
It been raining here all day as well, but got very wet when had to some quick pointing repairs to my parapet wall to flat roof to stop it dribbling in.
Cheers
Richcat
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Editor is changing the unit type???

Post by GottaLove88s »

As always, thanks heaps for your help Richcat.
Uh oh? Sounds nasty? Hope you stopped the water now!! Take care mate.
PS. Thanks for admitting to making goofs too... Makes me feel (marginally) less of a twit... :-)
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 ”