is it possible to create new nations in the editor?
Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design
is it possible to create new nations in the editor?
Hi!
Ive been browsing this forum for a while now but cant find a solution to this problem. How do you create a new nation so that it would appear in the scenario editors nations list? I tried adding it to the nations.pzdat file but nothing happened. Also I cant make a custom flag to appear in the editor (is it possible to add new flags or I just have to change the old ones?). Otherwise it's a great product and everything is working well.
Thanx
P
Ive been browsing this forum for a while now but cant find a solution to this problem. How do you create a new nation so that it would appear in the scenario editors nations list? I tried adding it to the nations.pzdat file but nothing happened. Also I cant make a custom flag to appear in the editor (is it possible to add new flags or I just have to change the old ones?). Otherwise it's a great product and everything is working well.
Thanx
P
Well, adding a flag to the flags.png works flawlessly for me. I just put a blank one after the Turkey flag and it appeared just fine in the editor.
Getting the actual nation names is a bit complicated since - wait for it - they HARDCODED the lists.
This means you have to manually edit the htm files that are responsible for filling those fields, they are in the UI subdirectory and start with editor_ (such as editor_scnparams.htm).
Just search for an existing nation (Free France is the last entry in the existing list) and it should be pretty easy to add entries.
_____
rezaf
Getting the actual nation names is a bit complicated since - wait for it - they HARDCODED the lists.
This means you have to manually edit the htm files that are responsible for filling those fields, they are in the UI subdirectory and start with editor_ (such as editor_scnparams.htm).
Just search for an existing nation (Free France is the last entry in the existing list) and it should be pretty easy to add entries.
_____
rezaf
-
- Panzer Corps Moderator
- Posts: 2119
- Joined: Tue Jun 03, 2008 9:32 am
Just a caution: I did this and PzC would not run (at work and can't remember the error - something about arrays). I knew what I had changed and was able to revert back. Strongly suggest back up of any files that are modified. That said, like rezaf has indicated, I think editing the right files and adding images to the right folders will allow new nations. Personally, I would start by modding an existing one that is not used much, like Sweden.
-
- Staff Sergeant - StuG IIIF
- Posts: 273
- Joined: Mon Aug 01, 2011 11:18 pm
That's odd, I could swear I ran the game afterwards. But maybe I will also have to revert my changes ... thanks for the head's up.El_Condoro wrote:Just a caution: I did this and PzC would not run (at work and can't remember the error - something about arrays). I knew what I had changed and was able to revert back. Strongly suggest back up of any files that are modified. That said, like rezaf has indicated, I think editing the right files and adding images to the right folders will allow new nations. Personally, I would start by modding an existing one that is not used much, like Sweden.
I will report when/if I manage to pull this off.
Those hardcoded list are a bit of an embarassment for the developers, imo, though...
_____
rezaf
Hi
I tried to add a new nation to the editor and the program itselfe, and it worked - halfway
I added a flag in ui/flags as well as one in ui/purchase/flags
I added / copied the corresponding entries in ui/
editor_condmap
editor_scnparams
editor_unitfilter
editor_unitparam
and added an entry in data/nations.pzdat and a unit in the equipment file for that nation
I could choose the country in the editor and deplay it in the map. In pc, this unit is displayed correctly, with the correct (new) (round) flag. But when I conquer a city, the old flag disappears and no new one is set (it seems there is none available).
The problem is, I can not add the new flag for hex-fields in the editor, it is not displayed there (I can not even choose it as an option). Even when I try to replace an existing flag with my new one (name wise), there is no change to be seen in the editor 0o). So my question is: what did i miss? In which file can i add the correpsonding flags or entries for my new nation, for "territorial" issues?
Best regards
Ranta
I tried to add a new nation to the editor and the program itselfe, and it worked - halfway
I added a flag in ui/flags as well as one in ui/purchase/flags
I added / copied the corresponding entries in ui/
editor_condmap
editor_scnparams
editor_unitfilter
editor_unitparam
and added an entry in data/nations.pzdat and a unit in the equipment file for that nation
I could choose the country in the editor and deplay it in the map. In pc, this unit is displayed correctly, with the correct (new) (round) flag. But when I conquer a city, the old flag disappears and no new one is set (it seems there is none available).
The problem is, I can not add the new flag for hex-fields in the editor, it is not displayed there (I can not even choose it as an option). Even when I try to replace an existing flag with my new one (name wise), there is no change to be seen in the editor 0o). So my question is: what did i miss? In which file can i add the correpsonding flags or entries for my new nation, for "territorial" issues?
Best regards
Ranta
Ok, I created this mainly for rivvendarke, but it might be of use to somebody else as well, so here goes.
This is an achive containing all neccessary files and changes to add Switzerland, Turkey and Denmark to the game.
Just unzip in your PC folder and you're good to go.
_____
rezaf
This is an achive containing all neccessary files and changes to add Switzerland, Turkey and Denmark to the game.
Just unzip in your PC folder and you're good to go.
_____
rezaf
-
- Lance Corporal - SdKfz 222
- Posts: 22
- Joined: Fri Aug 19, 2011 1:51 am
-
- Lance Corporal - SdKfz 222
- Posts: 22
- Joined: Fri Aug 19, 2011 1:51 am
Actually I have found an issue. Not sure if I missed an entry in the .htm files or not but.... when you go to create scenarios using Nations added, the scenario editor will not save for some reason whether the are axis or allied. you can set it, but as soon as you tab away from it in scenario parameters, it immediately forgets what you just set. I'm not sure how to fix that...
How it works?
I tried to create a new nation. But it was not successful. 
1.,
- Modified the four editor_.....htm files, inserted the new nation (copied + modified an existing one + gave a new number for it).
- Added the new row to the nations.pzdat file
Still the scenario editor shows only "IDS_NATION30" (used already a modified version with plus nations).
2., Tried to modify an existing one. Overwrote all name entries in the four editor_ file + in tha nation.pzdat file (from "Denmark" to "Etiophia"). Still the scenario editor shows Denmark.
Why? Where else has to be an entry given? I know, that flags has to be also added/changed, but I think, the scenario editor don't looks into graphical files, when it search for nations.
+ Otherways, I also tried to draw a plus flag to the graphics/overlays/flags.png - of cause in the next place, with the same size -, but when I than used the scenario editor, there were no flags (not even another ones) shown, but black hexes.
Is there a spezial method, how to insert a new flag in this file?

1.,
- Modified the four editor_.....htm files, inserted the new nation (copied + modified an existing one + gave a new number for it).
- Added the new row to the nations.pzdat file
Still the scenario editor shows only "IDS_NATION30" (used already a modified version with plus nations).
2., Tried to modify an existing one. Overwrote all name entries in the four editor_ file + in tha nation.pzdat file (from "Denmark" to "Etiophia"). Still the scenario editor shows Denmark.
Why? Where else has to be an entry given? I know, that flags has to be also added/changed, but I think, the scenario editor don't looks into graphical files, when it search for nations.
+ Otherways, I also tried to draw a plus flag to the graphics/overlays/flags.png - of cause in the next place, with the same size -, but when I than used the scenario editor, there were no flags (not even another ones) shown, but black hexes.
Is there a spezial method, how to insert a new flag in this file?
Re: How it works?
Had similar probs a while ago, got it to work with hints from rezaf.
In any case better backup anything before changing original game files. I hope that when the new DLC comes monday it means we also get the new patch then, so there could be further improvements for modding or the editor specifically.
Did you also edit the "Strings" file? Look for "IDS_NATION##" entries and add your own below.Uhu wrote:I tried to create a new nation. But it was not successful.
1.,
- Modified the four editor_.....htm files, inserted the new nation (copied + modified an existing one + gave a new number for it).
- Added the new row to the nations.pzdat file
Still the scenario editor shows only "IDS_NATION30" (used already a modified version with plus nations).
This occured to me after I had done everything correctly, but had all my files as custom campaign under My files/etc, because the editor accesses certain files from the main game. Do you use GME? Well, could still be needed to put your edited flag files etc in the main game folder (I'm still not very routined with this, but got it to work somehow).2., Tried to modify an existing one. Overwrote all name entries in the four editor_ file + in tha nation.pzdat file (from "Denmark" to "Etiophia"). Still the scenario editor shows Denmark.
Why? Where else has to be an entry given? I know, that flags has to be also added/changed, but I think, the scenario editor don't looks into graphical files, when it search for nations.
In any case better backup anything before changing original game files. I hope that when the new DLC comes monday it means we also get the new patch then, so there could be further improvements for modding or the editor specifically.
Re: How it works?
Thanks for helping!
In the meantime, I found out, that in the strings.pzdat, the entry of the given nation has also to be placed.
At least, now I see the new nation. Now I will look for the flags...
In the meantime, I found out, that in the strings.pzdat, the entry of the given nation has also to be placed.
At least, now I see the new nation. Now I will look for the flags...
bebro wrote:Had similar probs a while ago, got it to work with hints from rezaf.
Did you also edit the "Strings" file? Look for "IDS_NATION##" entries and add your own below.Uhu wrote:I tried to create a new nation. But it was not successful.
1.,
- Modified the four editor_.....htm files, inserted the new nation (copied + modified an existing one + gave a new number for it).
- Added the new row to the nations.pzdat file
Still the scenario editor shows only "IDS_NATION30" (used already a modified version with plus nations).
This occured to me after I had done everything correctly, but had all my files as custom campaign under My files/etc, because the editor accesses certain files from the main game. Do you use GME? Well, could still be needed to put your edited flag files etc in the main game folder (I'm still not very routined with this, but got it to work somehow).2., Tried to modify an existing one. Overwrote all name entries in the four editor_ file + in tha nation.pzdat file (from "Denmark" to "Etiophia"). Still the scenario editor shows Denmark.
Why? Where else has to be an entry given? I know, that flags has to be also added/changed, but I think, the scenario editor don't looks into graphical files, when it search for nations.
In any case better backup anything before changing original game files. I hope that when the new DLC comes monday it means we also get the new patch then, so there could be further improvements for modding or the editor specifically.