Primasprit wrote:Hi!
Very important for the csv files is that the field delimiter is a semicolon and there is no text delimiter. Before you start it might be a good idea to create a backup of your game directory. So you can revert all changes if something goes wrong.
Creating the model files:
- Open the csv splitter.
- Select the first tab: Convert Data
- Select as Output ext. the file extension mdl. For the other fields the default values are good.
- Select as Input CSV file your csv file containing the model data
- Select Convert. This may take a few moments. The csv-splitter creates now from the models csv file the single model files.
- Delete all files in the game directory
Napoleon's Campaigns\NCP\GameData\Models\ - Copy all files with the extension mdl to the game directory
Napoleon's Campaigns\NCP\GameData\Models\ - Copy the file mdl_Alias.ini (which was also created by the csv splitter) to the game directory \Napoleon's Campaigns\NCP\Aliases\
The process to create the unit files is similar. Choose in the csv-splitter as file extension
uni. Copy the unit files to
\Napoleon's Campaigns\NCP\GameData\Units\ and the alias file to
\Napoleon's Campaigns\NCP\Aliases\Cheers
Norbert
Thanks a lot Norbert.
I think that this is exactly what I did. But this produced .uni files which have values a bit different from those expected by the game (some $variable values being replaced by character strings), and this produces loads of errors when running the game.
I guess there must be some data transformation to do on the xls leader/unit file BEFORE saving it to CSV format. But I don't know what exactly.
I'll try again tonight.
Thanks for your kind help.