

REMSG_Converter.exe -h Convert json / txt / csv to msgĭrag. Note: if you want to add a new custom msg file and let the game function call it, you may need to edit the GUIConfig.gcf file (IDK if this is possible) Usage Command Line Usage It can also be a single object of name/value pairs or a single object with a single property with an array of name/value pairs. (but IDK if the game works fine when you add/delete an entry for the existing msg) Convert JSON to CSV THIS CONVERSION is NOW AVAILABLE as an API at ConvertCsv.io Your JSON input should contain an array of objects consistings of name/value pairs. That means you can modify the attribute, guid, and number of entries, for json file modification. Thus json format can convert to msg on its own (but you still need to pass a dummy. Call the ‘writer’ function passing the CSV file as a parameter and use the ‘writerow’ method to write the JSON file content (now converted into Python dictionary) into the CSV file. I think this helps for research purposes.įor json, I made it similar to mhrice's, but also added some file format information. You have to convert the JSON data into a Python dictionary using the ‘load’ method.

That means one lang one txt file.įor csv, I put all the languages into one file, with the msg entry name, its guid, and attributes. Descriptionįor txt, I let it stay similar format to the msg tool. As you can see, my solution is not memory efficient since I'm reading all the file into memory. I won't describe the functionality in too much detail since I have reasonable docstrings for that. Python library for converting from RE engine msg text file to json/csv/txt and back. Simply take a JSON file as input and convert the data in it into a CSV file.
