IDE's and Factorio API

Place to get help with not working mods / modding interface.
Post Reply
beerworm
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Aug 11, 2019 9:49 pm
Contact:

IDE's and Factorio API

Post by beerworm »

Is there any IDE which supports importing Factorio's API documentation? For example, typing

Code: Select all

player.
will bring up a list of available functions and descriptions. Or can API only be referenced manually?

Choumiko
Smart Inserter
Smart Inserter
Posts: 1314
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: IDE's and Factorio API

Post by Choumiko »

There is an extension for vscode
https://marketplace.visualstudio.com/it ... tocomplete

It's not a real autocomplete most of the time, since it will happily suggest invalid functions (it works for game. ). But i guess that's more due to lua being lua.

beerworm
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Aug 11, 2019 9:49 pm
Contact:

Re: IDE's and Factorio API

Post by beerworm »

Choumiko wrote:
Tue Aug 13, 2019 7:34 am
There is an extension for vscode
https://marketplace.visualstudio.com/it ... tocomplete

It's not a real autocomplete most of the time, since it will happily suggest invalid functions (it works for game. ). But i guess that's more due to lua being lua.
Hmm seems alright, I'll keep this one in mind. Thanks.

slippycheeze
Filter Inserter
Filter Inserter
Posts: 575
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: IDE's and Factorio API

Post by slippycheeze »

Choumiko wrote:
Tue Aug 13, 2019 7:34 am
There is an extension for vscode
https://marketplace.visualstudio.com/it ... tocomplete

It's not a real autocomplete most of the time, since it will happily suggest invalid functions (it works for game. ). But i guess that's more due to lua being lua.
Given that the god object, LuaEntity, has approximately a million functions that only work on one particular type of it knowable only at runtime, I don't think that is really going to be a solvable problem. Even strict static typing can't tell you if this is a combinator or a train in that context, it'd need more information somewhere that was a human overlay on the in-game runtime state. :)

User avatar
jockeril
Filter Inserter
Filter Inserter
Posts: 343
Joined: Sun Feb 08, 2015 11:04 am
Contact:

Re: IDE's and Factorio API

Post by jockeril »

Choumiko wrote:
Tue Aug 13, 2019 7:34 am
There is an extension for vscode
https://marketplace.visualstudio.com/it ... tocomplete

It's not a real autocomplete most of the time, since it will happily suggest invalid functions (it works for game. ). But i guess that's more due to lua being lua.
Is there one that does the same for notepad plus plus ? That would be so great for my simple attempts at modding - now I'm going to look for one ! :ugeek:
[request] RTL support please

My mods

Formally Hebrew translator for FARL & EvoGUI mods

join me on
- Twitter[@jockeril],
- Twitch.tv/jockeril,
- Youtube/jocker-il (or JoCKeR-iL)
- and steam !
Image

Post Reply

Return to “Modding help”

Who is online

Users browsing this forum: No registered users