Lunatrius / InGame-Info-XML

Display various information directly on the in-game GUI.
MIT License
34 stars 27 forks source link

Unknown Error when trying to save #73

Open CritFlaw opened 5 years ago

CritFlaw commented 5 years ago

I was told that I have to save the xml file from in-game in order to create an xml file that is then editable. When trying to run the /igi save command, I get "An unknown error occured while attempting to perform this command".

Forge 2796 Mod 2.8.2,95 Minecraft 1.12.2

brisingraerowing commented 5 years ago

Does your instance name have spaces in it? The filename is being (incorrectly) URL encoded, turning spaces into %20, and is passed like that to the file handling stuff, causing the directory to not be found (as it's looking in the wrong place). I'm not sure if this mod is doing the encoding, or if some underlying API is.

straef commented 4 years ago

i know this is old, but the answer to this question is:

after typing "/igi save " into the chat, before pressing anything else, press the TAB key on your keyboard to have the command autocomplete for you. the first TAB should get you to "/igi save InGameInfo." and a second will complete the command in a valid way to "/igi save InGameInfo.xml" which is the complete and valid command.

i have not tested but it is likely that as long as you specify any valid filename.[xml,txt,json], and you are not experiencing the error that @BrisingrAerowing is describing, that you will be able to successfully save a config to a custom file.

alternatively, you could just get or create a "InGameInfo.xml" file and put it in your configs folder. the benefit to saving a config from the game is that it gives a starting point for the edits.