• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

language-gamescript

GameScript language support in Atom
  • #language
  • #gamescript
  • #trainz
  • #trainzscript
  • #gs
agmike
0.4.0 624
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

GameScript support in Atom

Add syntax highlighting snippets, and lints via trainzutil compile to GameScript files in Atom.

GameScript is a scripting language used in Trainz Simulator.

Example

Install

Using apm:

apm install language-gamescript

Or search for gamescript in Atom Settings -> Install Packages.

Lint

linter is required for lint feature. To enable you need to specify path to TrainzUtil and scripts folder of your Trainz installation.

You can also specify additional include directories if you are using script-include feature to include scripts from other assets.

By using a package like project-manager you can manage different include paths for different projects, for example:

"lse-log":
  title: "lse-log"
  group: "Trainz"
  paths: [
    "D:\\TrainzDev\\lse-log"
  ]
  settings:
    "language-gamescript.includePath": ["D:\\TrainzDev\\lse\\src", "D:\\TrainzDev\\lse-test\\src"]

Now invoking Project Manager: Reload Project Settings command will set the include paths as you specified for this project.

Trainz: A New Era Note

TrainzUtil bundled with TANE currently does not support compile command. You will need prior version of Trainz for lints to work.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by