Factorio's Lua API autocompletition for Atom.
An autocomplete for Factorios LUA-API 0.18.6.
Their Documentation can be found HERE or under /docs-html in your local Factorio installation.
![ScreenShot](https://github.com/Yokmp/atom-autocomplete-factorio/raw/master/github/shot_1.jpg)
The Factorio version in this Package is 0.15.34. To create one for your version please read the [HowTo](#How to create Suggestions for another Version?) below.
If you want to contribute please read the contribution File.
Updates
- Rewrote from scratch and switched from coffee to js
- Removed Snippets
- automatically (de)activates when editing LUA-files
- Fixed autogeneration Scripts
Known Issues
- Due to Factorios incoherent html files it is not always possible to get everything at it's place
- Toggle doesn't work atm
- When the Devs update their Docs then expect the autogen Script to fail
ToDo
- [x] rewrite autogeneration Scripts
- [x] use only one Language in autogeneration Script
- [ ] testing new way to get the Type
- [ ] a better Solution for Braces
- [ ] implement the posibility to use the local Documentation as source
Forum topic - Autocomplete for Atom
How to create Suggestions for another Version?
You need PHP 5.x, so get that first (see below).
I didn't test it with PHP7 so expect the script to fail. There is an option to enable debug mode.
To enable this, open up the settings.inc.php file and set DEBUG = true
This will download both HTML files, converts them, creates the json file and saves everything under
./autogen/builtins.xml
./autogen/classes.xml
./autogen/test.json
- Get this Repository (here or via Atom's Package Manager).
- Download and install PHP5+.
- Start a Shell and navigate to
.atom/packages/autocomplete-lua-factorio/autogen/
.
- Start a shell and type
php start.php
.
- You can do some configurations in
settings.inc.php
.
- Wait.
- Restart Atom or press [CTRL]+[SHIFT]+[F5] to reload.
How to contribute?
Please read the CONTRIBUTING.md File.