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!
Problems in creating new units
Moderators: rbodleyscott, Slitherine Core, Gothic Labs
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Problems in creating new units
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: Problems in creating new units
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)
- Virgilius
(Good luck favours the brave)
Re: Problems in creating new units
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 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!
...
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: Problems in creating new units
In effect, the SQUADS.CSV files contain in the first cell te locution "#REPLACE".
Is it right or wrong?
Is it right or wrong?
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
Re: Problems in creating new units
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 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?
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: Problems in creating new units
Sorry, it was just a writing mistake ...
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: Problems in creating new units
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)
- Virgilius
(Good luck favours the brave)
Re: Problems in creating new units
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.
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: Problems in creating new units
Hi Cronos09,
I've just sent you a PM wth all the required stuff!
I've just sent you a PM wth all the required stuff!
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)