Skip to content

alexeckardt/CSV-to-GML-Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSV to GML Map.

Running the python script, (in the directory of an accompaning 3 column soulflamelang.csv), will return a gml script that creates a map with the data of the csv.

Column one of the csv is the map's key. Column two is the generic text. Column three is any additional info. Any info will be split up by commas are stored as an array.

For example, the line in the example csv:

c.cutscene_name.example,generic text,"c,s,v"

Can be written as the GML line:

lang[? "c.cutscene_name.example"]       = [["generic text", "c", "s", "v", ]];

The script will combine similar keys into an arrays of arrays (GML allows for multi variable array sizes),

c.cutscene_name.example,generic text,"c,s,v"
c.cutscene_name.example,generic text 2,"c,s,v, a"

...

lang[? "c.cutscene_name.example"]       = [["generic text", "c", "s", "v", ], ["generic text 2", "c", "s", "v", " a", ]];

And Single Reference Text (where no info is given)

c.cutscene_name.example,generic text,

...

lang[? "c.cutscene_name.example"] = "generic text"

About

Generates a clean .txt file of contents of a 3 lined csv file. File contents is the .gml file of some function which stores the contents of the csv as a map.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages