Python library for converting from RE engine msg text file to json/csv/txt and back.
For txt, I let it stay similar format to the msg tool. That means one lang one txt file.
For csv, I put all the languages into one file, with the msg entry name, its guid, and attributes.
I think this helps for research purposes.
For json, I made it similar to mhrice's, but also added some file format information.
Thus json format can convert to msg on its own (but you still need to pass a dummy .msg file with json file together)
that means you can modify the attribute, guid, and number of entries, for json file modification.
(but IDK if the game works fine when you add/delete an entry for the existing msg)
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)
print help for command line args usage:
REMSG_Converter.exe -h
drag .msg.* file/folder to msg2{csv/json/txt}.bat
drag .csv/.json/.txt file/folder AND .msg.* file/folder to {csv/json/txt}+msg2msg.bat
# use case could be find at main.py. under DebugTest() or worker()
import REMSGUtil
msg = REMSGUtil.importMSG("abcd.msg.123456") # get MSG object as msg
REMSGUtil.exportMSG(msg, "efgh.msg.123456") # export as msg file
REMSGUtil.exportCSV(msg, "abcd.msg.123456") # export as csv file