Problems in creating new units

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

Post Reply
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Problems in creating new units

Post by Lysimachos »

Hy guys,
while trying to create a new unit in a modded campaign folder I incurred in some problem.
In detail, I firstly copied in the SQUADS.CSV file a "Bavarian_Bayonet_Veteran,404,Allies,..." unit at the bottom of the file renaming it "Grenadier,491,Axis,..." and letting unalterd all the other parameters.
Then I added at the bottom of the TEXT.1 file the following indication:
IDS_UNITNAME491, "Grenadiers",
IDS_UNITINFO491, "Grenadiers",
When tried to launch the mod in the game, however, it crashed and two messages appeared of this content:

Duplicate unit name in custom campaign squads file:
BLUE_PIKE_AND_SHOT
(0)

*** Unhandled Exception! ExpCode: 0x80000003
ExpFlags:
ExpAddress: 0x00490240 Please report!

Of course, I didn't duplicate the Pike and Shot unit so I'm stucked having no idea where the problem is.
Has anyone of you any hint to solve the problem?
Thank's for all your help!
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Problems in creating new units

Post by Lysimachos »

Or maybe should I insert the aforementioned information (IDS_UNITNAME491, "Grenadiers" and IDS_UNITINFO491,"Grenadiers",) also in the TEXT4.TXT, TEXT5.TXT AND TEXT10.TXT files?
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Cronos09
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 326
Joined: Thu Feb 22, 2018 4:28 pm

Re: Problems in creating new units

Post by Cronos09 »

Lysimachos wrote: Thu Aug 22, 2024 5:23 pm ...
When tried to launch the mod in the game, however, it crashed and two messages appeared of this content:

Duplicate unit name in custom campaign squads file:
BLUE_PIKE_AND_SHOT
(0)

*** Unhandled Exception! ExpCode: 0x80000003
ExpFlags:
ExpAddress: 0x00490240 Please report!
...
It seems very much that the SQUADS.CSV file duplicates - it is possible because of your changes in the file. The 1st cell of it (A1) should containes #REPLACE - check it.
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Problems in creating new units

Post by Lysimachos »

In effect, the SQUADS.CSV files contain in the first cell te locution "#REPLACE".
Is it right or wrong?
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Cronos09
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 326
Joined: Thu Feb 22, 2018 4:28 pm

Re: Problems in creating new units

Post by Cronos09 »

Lysimachos wrote: Thu Aug 22, 2024 9:15 pm In effect, the SQUADS.CSV files contain in the first cell te locution "#REPLACE".
Is it right or wrong?
It is right. But why do you mention the SQUADS.CSV file in plural? There should only be one file with that name in your mod folder.
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Problems in creating new units

Post by Lysimachos »

Sorry, it was just a writing mistake ...
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Problems in creating new units

Post by Lysimachos »

Cronos09 wrote: Thu Aug 22, 2024 7:03 pm It seems very much that the SQUADS.CSV file duplicates - it is possible because of your changes in the file. The 1st cell of it (A1) should containes #REPLACE - check it.
Given the fact that in the SQUADS.CSV file the "#REPLACE" mention is correctly inserted, why the file should duplicate the units?
That remain a mistery to me ...
And there's something that I could do in order to avoid the problem?
If you haveany hint I would be really grateful!!
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Cronos09
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 326
Joined: Thu Feb 22, 2018 4:28 pm

Re: Problems in creating new units

Post by Cronos09 »

Lysimachos wrote: Fri Aug 23, 2024 9:58 pm
The changes you described in your first post should not cause any problems when running the mod (if they are done correctly).
If you want me to figure out why this error occurs, send me a link to the mod with your changes.
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1368
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Problems in creating new units

Post by Lysimachos »

Hi Cronos09,
I've just sent you a PM wth all the required stuff!
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Post Reply

Return to “Modders Corner”