07-31-2017, 03:57 PM
I don't think this change is really needed. The fact that everything is immediately openable as simple text files is a part of what makes this game so eaisly moddable, and that's partially what initially got me interested in digging into it deeper. If your main goal is to detect file type automatically, why not just an optional header at the top, like what shell scripts on Linux usually use? It's slightly harder to implement everywhere but makes backward compatibility easier, keeps opening them easy, and most editors should be able to understand these for language detection.
offtop: Would anyone be interested in finished external CBot interpreter? If we made the headers compatible with Linux shebangs, you could launch them with
(although there is probably no practical reason you'd ever want to do this)
offtop: Would anyone be interested in finished external CBot interpreter? If we made the headers compatible with Linux shebangs, you could launch them with
Code:
chmod +x somescript.txt # or any other extension
./somescript.txt