Andrettin / Wyrmsun

Strategy game based on history, mythology and fiction
http://andrettin.github.io/
GNU General Public License v2.0
301 stars 47 forks source link

Wyrmsun doesn't start due to hero's weird name #138

Closed KroArtem closed 5 years ago

KroArtem commented 7 years ago

I have heroes with such names: autosave.sav.gz'?.lua and autosave.sav.gz'\n. It was possible to create them before but now Wyrmsun fails to start the game at all (plus don't forget this problem)

The output is:

[string ".//wyr/heroes/custom/autosave.sav.gz'..."]:1: unfinished string near '"autosave.sav.gz''
[Thread 0x7fffd7c9e700 (LWP 5307) exited]
[Thread 0x7fffdccbe700 (LWP 5305) exited]
[Thread 0x7fffdb9cf700 (LWP 5308) exited]
[Inferior 1 (process 5301) exited with code 01]

Edit: Actually you can delete your heroes but in that case you won't be able to do it from game.

Andrettin commented 7 years ago

Hmm... One thing, why is the save game in the custom heroes folder?

KroArtem commented 7 years ago

Sorry, these were not the savegames, just usual heroes

Andrettin commented 7 years ago

Ah, thanks for the clarification! I haven't done any changes to the hero loading code lately, so I'm not sure why this is happening now. It looks like the ' is finishing the string, but that is usually done only with ".

KroArtem commented 5 years ago

Closing this issue as of https://github.com/Andrettin/Wyrmsun/issues/21#issuecomment-504457419