They Are Billions

They Are Billions

Custom Levels for They Are Billions
Add custom levels to They Are Billions by subscribing to these workshop items!
Learn More
IdealIdeas 5 31 Jan, 2020 @ 1:29am
How to get Strings and CVS files to work?
I followed the guide and I cant get strings to work. Right now im just testing it to understand how it works and nothing seems to be working.

I made a "Strings.cvs" file
I put the Strings.cvs file into the same folder as the TabProject file.

It looks exactly like this in Notepad
ID;EN @Pie;A Tasty Pie @Attack;You attack with vigor

I tried
Choose Option Block @Pie Display Message (Title) @Pie Block @Attack Display Message (Title) @Attack

The blocks in the options only show @Pie or @Attack instead of "A Tasty Pie" or "You attack with vigor"
The titles in the Display messages only show @Pie or @Attack instead of "A Tasty Pie" or "You attack with vigor"

How do I get this thing to work? Am I formatting the cvs file wrong or something? Ive also tried making a .cvs file with Libre Office's version of Excel and it also didnt work.
< >
Showing 1-9 of 9 comments
JustGoFly 6 31 Jan, 2020 @ 6:53am 
Just guessing at this, but try {@Pie} I'll take a deeper look though.
JustGoFly 6 31 Jan, 2020 @ 6:55am 
They say to use "@Pie", so give that a try too.
POBmaestro 61 31 Jan, 2020 @ 12:24pm 
I use CSV files for my maps (because of the Chinese translation aspect) and have found it to be extremely frustrating to figure out what works and what breaks it, especially when I have 300+ lines of text, but by my 6th map I think I have sussed it! But anyway looking at what you've done I can't see anything obviously wrong but would have 2 suggestions to try:

1. Put a space after the ; on each line, so it would be:

ID; EN
@Pie; A Tasty Pie
@Attack; You attack with vigor

This before has broken it for me.

2. Edit the CSV file with Notepad+. It was 6+ months ago but I have a feeling Excel never worked for me because of the Chinese language text, but still if nothing else works it's worth a try.

HTH
Last edited by POBmaestro; 31 Jan, 2020 @ 12:25pm
IdealIdeas 5 31 Jan, 2020 @ 7:34pm 
Originally posted by POBmaestro:
I use CSV files for my maps (because of the Chinese translation aspect) and have found it to be extremely frustrating to figure out what works and what breaks it, especially when I have 300+ lines of text, but by my 6th map I think I have sussed it! But anyway looking at what you've done I can't see anything obviously wrong but would have 2 suggestions to try:

1. Put a space after the ; on each line, so it would be:

ID; EN
@Pie; A Tasty Pie
@Attack; You attack with vigor

This before has broken it for me.

2. Edit the CSV file with Notepad+. It was 6+ months ago but I have a feeling Excel never worked for me because of the Chinese language text, but still if nothing else works it's worth a try.

HTH
I have tried all these combinations with no results:
- Ive tried Spaces after the ";"
- Ive tried using "," as LibreOffice excel turns the cells into "," when changing to cvs.
- Ive tried spaces with ","
- I have directly copied and pasted their example in their guide with no results.
- I have tried doing "@Pie"
- I have tried doing {@Pie} and it returns an error

@POBmaestro, any chance you would be interested in friending me and sending me a copy of the .cvs file that worked for you so I can examine it?
Last edited by IdealIdeas; 31 Jan, 2020 @ 7:36pm
POBmaestro 61 1 Feb, 2020 @ 2:08pm 
Just for anyone wondering we found the problem was the file was saved as .CVS rather than .CSV :)
Gomez 3 Feb, 2020 @ 3:03am 
Originally posted by POBmaestro:
Just for anyone wondering we found the problem was the file was saved as .CVS rather than .CSV :)

So finally the string with csv file is working?

Regards
POBmaestro 61 3 Feb, 2020 @ 1:28pm 
Originally posted by Gomez:
Originally posted by POBmaestro:
Just for anyone wondering we found the problem was the file was saved as .CVS rather than .CSV :)

So finally the string with csv file is working?

Regards

Yes it was just a typo that caused the problem. I use CSV in my maps all the time.
Gomez 4 Feb, 2020 @ 11:34pm 
Ok!

Good to know it.

Enjoy guys!

Regards
Mr_Darwoo 12 1 Apr, 2021 @ 4:47am 
Hi.
I am trying to use the strings because I had a request from a Chinese user to add Chinese text to my map. I am having the same troubles, and I haven't even started using Chinese yet.
I have tried everything listed above. I have deleted the Excel created CSV, and saved it from Notepad. I've put spaces, commas, semi colons in a million and one variants. I've saved it as strings.csv and Strings.csv and I can't get the bloody things to work.

When the map starts in the game,
The opening title always displays as "@StartGameTitle"
and the text text displays as "@StartGameText" (Without the commas though.)

These were my ID names for the strings.
< >
Showing 1-9 of 9 comments
Per page: 1530 50