Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New file extensions
#5
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
Code:
chmod +x somescript.txt # or any other extension
./somescript.txt
(although there is probably no practical reason you'd ever want to do this)


Messages In This Thread
New file extensions - by Simbax - 07-31-2017, 11:58 AM
RE: New file extensions - by tomangelo - 07-31-2017, 12:18 PM
RE: New file extensions - by RaptorParkowsky - 07-31-2017, 12:34 PM
RE: New file extensions - by tomangelo - 07-31-2017, 12:48 PM
RE: New file extensions - by krzys_h - 07-31-2017, 03:57 PM
RE: New file extensions - by radioactivity - 07-31-2017, 04:30 PM
RE: New file extensions - by Simbax - 07-31-2017, 05:20 PM
RE: New file extensions - by krzys_h - 07-31-2017, 09:31 PM
RE: New file extensions - by Simbax - 08-01-2017, 07:38 AM
RE: New file extensions - by tomaszkax86 - 08-01-2017, 01:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)