I changed some numeric values in Default.unit, rebuilt the cache and all unit names as well as most facilities names were gone.
I read the file in to excel as a csv, made my changes and saved it as csv. Then I renamed it to default.unit and rebuilt the cache. My changes were there but the text was gone. Does anyone know what I might be doing wrong?
Modding Default.Unit and all text disappears in game
Moderators: Balthagor, BattleGoat
-
- Lieutenant
- Posts: 96
- Joined: Aug 05 2014
- Human: Yes
- Balthagor
- Supreme Ruler
- Posts: 22107
- Joined: Jun 04 2002
- Human: Yes
- Location: BattleGoat Studios
Re: Modding Default.Unit and all text disappears in game
Excel is the problem.
It doesn't export .csv properly. If you open it with something like wordpad, you'll find it's added quotation marks around at least the first line.
right = &&Units
wrong = "&&Units"
It doesn't export .csv properly. If you open it with something like wordpad, you'll find it's added quotation marks around at least the first line.
right = &&Units
wrong = "&&Units"
-
- Lieutenant
- Posts: 96
- Joined: Aug 05 2014
- Human: Yes
Re: Modding Default.Unit and all text disappears in game
THANK YOU!! You have sazved my sanity. It works now. Strangely, SOME facilities still showed properly before but whatever.Balthagor wrote:Excel is the problem.
It doesn't export .csv properly. If you open it with something like wordpad, you'll find it's added quotation marks around at least the first line.
right = &&Units
wrong = "&&Units"
-
- Brigadier Gen.
- Posts: 629
- Joined: Aug 10 2017
- Human: Yes
Re: Modding Default.Unit and all text disappears in game
if you like to use a spreadsheet calculator like excel (and i strongly suggest to use such a program for editing the units file) try the free opensource software:
https://www.libreoffice.org/
lets you export to a csv file that can be read by the game without any problems (used it to build my mods)
and for small final edits or textdiff something like notepad++ or pspad (pspad which i used is also freeware)
https://www.libreoffice.org/
lets you export to a csv file that can be read by the game without any problems (used it to build my mods)
and for small final edits or textdiff something like notepad++ or pspad (pspad which i used is also freeware)
my mods
http://www.bgforums.com/forums/viewtopi ... 79&t=25932 (even techs and units for everyone - AI will own you too)
http://www.bgforums.com/forums/viewtopi ... 79&t=29326 (MARSX2)
http://www.bgforums.com/forums/viewtopi ... 79&t=25932 (even techs and units for everyone - AI will own you too)
http://www.bgforums.com/forums/viewtopi ... 79&t=29326 (MARSX2)