
Search found 7 matches
- Tue Jan 23, 2018 9:36 pm
- Forum: Pending
- Topic: [16.16] Multiplayer can't bind to custom port
- Replies: 3
- Views: 1896
Re: [16.16] Multiplayer can't bind to custom port
I will have to get back to you on that. I going on a job trip in a few hours for 2Β½ week. Maybe it has been fixed by then 

- Tue Jan 23, 2018 1:38 pm
- Forum: Pending
- Topic: [16.16] Multiplayer can't bind to custom port
- Replies: 3
- Views: 1896
[16.16] Multiplayer can't bind to custom port
1)
I have server setup with config files using a custom port for the Factorio Server. I only copy that config between server versions and it works great. Except on v16.16, it doesn't matter what I set the "port" to, it always binds to the default port 34197.
2)
If I try to connect to v0.16.16 with ...
I have server setup with config files using a custom port for the Factorio Server. I only copy that config between server versions and it works great. Except on v16.16, it doesn't matter what I set the "port" to, it always binds to the default port 34197.
2)
If I try to connect to v0.16.16 with ...
- Mon Sep 25, 2017 5:28 am
- Forum: Modding discussion
- Topic: What are the Event callback Parameter(s)? [SOLVED]
- Replies: 9
- Views: 3783
Re: What are the Event callback Parameter(s)?
Seeing how that wiki article was last updated two years ago, I doubt that it is better documentation.
Your questions are quite puzzling to me. There are no standardized classes in lua and standard event handlers are passing a simple table with fields described in the api docs. Without whatever ...
Your questions are quite puzzling to me. There are no standardized classes in lua and standard event handlers are passing a simple table with fields described in the api docs. Without whatever ...
- Mon Sep 25, 2017 12:30 am
- Forum: Modding discussion
- Topic: What are the Event callback Parameter(s)? [SOLVED]
- Replies: 9
- Views: 3783
Re: What are the Event callback Parameter(s)?
Yes I know Lua syntax quite well (I have written a Lua Editor/Debugger in C++) and 'object' is a table with a member 'meta' according to the code I found in a mod.
The member 'meta' seems to be a table with another member named 'entity'. I did find the 'entity' class documentation and it has a ...
The member 'meta' seems to be a table with another member named 'entity'. I did find the 'entity' class documentation and it has a ...
- Sun Sep 24, 2017 9:46 pm
- Forum: Modding discussion
- Topic: What are the Event callback Parameter(s)? [SOLVED]
- Replies: 9
- Views: 3783
Re: What are the Event callback Parameter(s)?
Duh, ok thank you I see now...
But what class type is the parameter object?
According to the Wiki there should only be object.name and object.tick so what is object.meta? Is it just a short for Lua's getmetatable(object) ?
But what class type is the parameter object?
According to the Wiki there should only be object.name and object.tick so what is object.meta? Is it just a short for Lua's getmetatable(object) ?
- Sun Sep 24, 2017 9:27 pm
- Forum: Modding discussion
- Topic: What are the Event callback Parameter(s)? [SOLVED]
- Replies: 9
- Views: 3783
Re: What are the Event callback Parameter(s)?
I must be either sever stupid or I haven't been clear enough.
I'm not talking about HOW to register an event, I'm talking about the callback to the registered event.
classes["item-name"] = {
on_tick = function(object)
local control = object.meta.entity.get_control_behavior()
I have been at ...
I'm not talking about HOW to register an event, I'm talking about the callback to the registered event.
classes["item-name"] = {
on_tick = function(object)
local control = object.meta.entity.get_control_behavior()
I have been at ...
- Sun Sep 24, 2017 8:17 pm
- Forum: Modding discussion
- Topic: What are the Event callback Parameter(s)? [SOLVED]
- Replies: 9
- Views: 3783
What are the Event callback Parameter(s)? [SOLVED]
I just started to look at modding and in the Wiki I can only find information on how to register an event. But there is no information on the actual callback of the event.
I had a look at another mod, in control.lua, to see how it work and this is how the callback is called:
on_tick = function ...
I had a look at another mod, in control.lua, to see how it work and this is how the callback is called:
on_tick = function ...