• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Battlecry

Field Marshal
16 Badges
Feb 22, 2007
2.530
4
  • Arsenal of Democracy
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
Twice now, I've tried to incorporate new .csv files into the localization folder of my mod, and it has borked the game. I have this units.csv that I want to put in (new more authentic unit names) and when I put it in, the game freezes after a month. I've run the two files through a comparison to see if there's any mistakes, and there aren't...I just don't get it. Is there something "with" the .csv files? This has happened before.


Okay there's another issue. This comes up in the error.log:

Code:
Clausewitz Error[persistent.cpp:48]: Error: "Malformed token: 95, near line: 4
" in file: "mod\Rome-Enhanced\common\countries/Dumnonii Revolt.txt".

But I can't figure out what's wrong with the country file:
Code:
civil_war_faction = DUM
graphical_culture = celticgfx
color = { 30 30 145 }
color2 = { 10 10 95 }
 
Last edited:
Really, none of you brilliant scripters have an idea what I'm doing wrong?
 
battlecry said:
Twice now, I've tried to incorporate new .csv files into the localization folder of my mod, and it has borked the game. I have this units.csv that I want to put in (new more authentic unit names) and when I put it in, the game freezes after a month. I've run the two files through a comparison to see if there's any mistakes, and there aren't...I just don't get it. Is there something "with" the .csv files? This has happened before.


Okay there's another issue. This comes up in the error.log:

Code:
Clausewitz Error[persistent.cpp:48]: Error: "Malformed token: 95, near line: 4
" in file: "mod\Rome-Enhanced\common\countries/Dumnonii Revolt.txt".

But I can't figure out what's wrong with the country file:
Code:
civil_war_faction = DUM
graphical_culture = celticgfx
color = { 30 30 145 }
color2 = { 10 10 95 }

As for the .csv have no idea. I have had no similar problems. But as for the other issue, try recreating the file, in case there is some invisible character or something that ended up there and messes things up.
 
Oh crap I figured it out, Revolt factions aren't supposed to have a second colour.

But I'm still perplexed by the .csv issue.
 
Okay .csv issue is fixed, and I think how I fixed it is important.

In a few modded .csv files, Ive found people have added separators like this:

Code:
##################

If you do this, the #####s need the closing ;;;;;;x , or it will create random errors.

For example: There was a separator added to event.csv which looked like this:

Code:
####################


and should have looked like this:


Code:
#################;;;;;;;;;;;;x



This caused errors in my modded units.csv , while affecting the events in event.csv not at all!

So if you've added separators anywhere, take a look at them and make sure they've got the semicolons & x after them. Its a really odd problem but it fixed all my text problems and crashes when I corrected it.
 
battlecry said:
This caused errors in my modded units.csv , while affecting the events in event.csv not at all!

So if you've added separators anywhere, take a look at them and make sure they've got the semicolons & x after them. Its a really odd problem but it fixed all my text problems and crashes when I corrected it.

This is all a bit freaky but explains why I've been having problems with my localisation files.

This problem is present in the events.csv of both SPQR and TheLand's Mod, and wll be until I fix it this weekend!