Python code to extract dialogue spoken by a specified character from the hit game Girl's Frontline.
Just run the .exe file or run extract.py from command line, will output both a .txt file and .csv file of character dialogue
Important stuff:
- Some characters speak under two names.
- For example: RO635 is both RO and RO635 in dialogue. Same problem for Ange, she is both Ange and Angelia.
- For this edge case, run the program again to cover dialogue for both aliases.
- Or hope and pray your character does not speak under multiple aliases
All event text copy pasted from https://gfl.amaryllisworks.pw/
- Disclaimer: Some stuff not included yet, im too lazy to copy them all.
To-Do:
read all dialogue text files from separate folder (Prob have to import os)doneoutput specific character dialogue text files to separate folderdone... kindahandle ascii characters or at least this thing: �donefigure out how to convert from text file to csv without errorsdonedynamic character dialogue extracting, specify which character to extract dialogue for on program startdoneStill creates a dialogue file for characters that don't exist, if character does not exist -> dont make the file and quit program or return to beginningdoneMaybe incorporate functions / defs just for fundoneexe filedone- GUI
Was originally going to be used to extract only AK-12 dialogue. But I figured I could do better than that.