Search found 5 matches
- Mon Nov 07, 2016 10:33 pm
- Forum: Modding help
- Topic: Creating new prototypes
- Replies: 2
- Views: 1689
Re: Creating new prototypes
Shame, but I found a workaround and made my sign a container with an inventory size of one.
- Mon Nov 07, 2016 6:23 pm
- Forum: Modding help
- Topic: Storing variables
- Replies: 1
- Views: 825
Storing variables
Currently working on a mod that should add editable text signs and I am almost done. After a while I realized that the texts were stored on a table that was client side, but I want my mod to work for servers as well and I want to store the sign texts on the server and preferably even in a way the ...
- Mon Nov 07, 2016 5:33 pm
- Forum: Modding help
- Topic: Creating new prototypes
- Replies: 2
- Views: 1689
Creating new prototypes
I'm currently working on a mod that should eventually add a sign that can be edited and viewed to "comment" the interesting "solutions" some "engineers" come up in multiplayer. However the thing is this page https://wiki.factorio.com/index.php?title=Prototype_definitions is very stubby. None of the ...
- Sun Oct 30, 2016 2:24 pm
- Forum: Modding help
- Topic: Proper gui usage and entity based variables
- Replies: 3
- Views: 1872
Re: Proper gui usage and entity based variables
For opening GUI upon entity placement, listen to the on_built_entity event (assuming you only want the gui to open when player places the entity). In the event handler, check the event.created_entity .type and .name to determine if it's your entity that was built.
As for proper way to do entity ...
As for proper way to do entity ...
- Sun Oct 30, 2016 12:38 pm
- Forum: Modding help
- Topic: Proper gui usage and entity based variables
- Replies: 3
- Views: 1872
Proper gui usage and entity based variables
I've found out about the prototypes and the events, but none of them seem to suit my need. I am currently making my first mod (mod should add a sign with editable text that can be edited by opening the gui and viewed by hovering the sign) I have so far managed to make a gui pop up anytime a player ...