Page 1 of 2

[MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Aug 30, 2015 10:10 am
by JamesOFarrell
Type: Mod
Name: Lua Cominator
Description: Run a lua script in response to wire network. Can be used to query and control most in game objects. Basically command blocks for Factorio
License: MIT
Version: 0.0.1
Release: 2015-08-30
Tested-With-Factorio-Version: 0.12.x
Category: Item
Tags: Logistics, Scripting, Lua
Download-Url: Download v0.0.2
Website: Forum Thread (you are here!)
Long description
Version history
License
Example Scripts

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Aug 30, 2015 11:16 am
by JamesOFarrell
This mod only works unzipped for some reason. I am looking into it now but if you have issue just unzip the mod.

Edit fixed i think, also bonus picture

Image

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Aug 30, 2015 12:56 pm
by Adil
Impressive work. Truly impressive. If only those who code were actually playing the game :?

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Aug 30, 2015 7:30 pm
by GopherAtl
nice, this was pretty high on my to-do list, but I'm glad to have someone beat me to it. Too many mods, not enough time, after all :D

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed Sep 16, 2015 11:09 am
by Smarty
Moved to Work in progress by smarty

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed Sep 16, 2015 11:31 am
by JamesOFarrell
Smarty wrote:Moved to Work in progress by smarty
Thanks Smarty!

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Tue Oct 06, 2015 5:11 pm
by British_Petroleum
is it possible to write a script in the lua combinator that (when the conditions are met) will spawn another lua combinator at a specified location on the map with a specified script in the newely spawned lua combinator?

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Tue Oct 06, 2015 8:56 pm
by JamesOFarrell
British_Petroleum wrote:is it possible to write a script in the lua combinator that (when the conditions are met) will spawn another lua combinator at a specified location on the map with a specified script in the newely spawned lua combinator?
You can spawn a lua combinator but you can't set the script. it is a really good idea though so I'll put it on the todo list.

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Mar 20, 2016 6:47 pm
by s0ulcub3
Hello there. I'd very much love to try this mod but it appears that it does not work with the latest Factorio build. Are there any plans to continue updates to this mod? Thanks.

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Thu May 05, 2016 1:18 am
by NoriSilverrage
I'm guessing the author isn't around anymore.. The mod errors on loading a game. I looked into it and it seems pretty simple.
In control.lua lines 119-126 reference game.x and it appears that is no longer in use. Simply changing them to the following allowed the mod to work.
I ran a few basic scripts through the combinator and it worked just fine.

Code: Select all

script.on_event(defines.events.on_gui_click, on_gui_click)

script.on_event(defines.events.on_tick, on_tick)

script.on_load(on_load)

script.on_event(defines.events.on_built_entity, on_built_entity)
script.on_event(defines.events.on_robot_built_entity, on_built_entity)

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed Jun 29, 2016 8:27 am
by xmnovotny
I have upgraded mod for Factorio 0.13.

Both circuit condition and logistic condition works. I have added new script variable - "circuit_network" - it is a table of LuaCircuitNetwork for red and green wire {defines.wire_type.red = .., defines.wire_type.green = ...}.

URL for download will be on the next post due to forum restrictions.

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed Jun 29, 2016 9:52 am
by xmnovotny
I have added another new script variable - circuit_network_signals - table of combined values of signals from both wires.

Here is file to download:
https://www.dropbox.com/s/ef3ierbvco8h5 ... 3.zip?dl=1

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Nov 27, 2016 3:23 am
by aahaxor
I have posted a updated version for factorio version 0.14 on the official factorio mods site.

I will post the URL in the next post due to forum restrictions.

If you have a problem with it please post a bug report or whatever there.

Hope you enjoy and use!

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Sun Nov 27, 2016 3:23 am
by aahaxor
Here is the URL for downloading the mod:

https://mods.factorio.com/mods/aahaxor/LuaCombinator

Hope you enjoy! :D

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed Dec 07, 2016 9:28 am
by nosferato
Thanks to JamesOFarrell, for creating this and aahaxor for updating, I have been using this to work out how lua works

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed May 03, 2017 7:23 pm
by poetter
Hey aahaxor,

hope you are still around. Would it be possible for you to update this mod to 0.15? I would really like to get my hands on this mod in combination with AAI Programmable Vehicles.

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Tue May 23, 2017 5:26 am
by smitty
Hey do you have this up on git hub? I'd like to help maintain it and such. If you like I can put it up there for you. And if you're not around I suppose I can just do that anyway since it's MIT licensed.

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Wed May 24, 2017 8:17 pm
by smitty
I created a reop here. PM me if you want to do anything with it.

https://github.com/smitty42/LuaCombinator

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Thu Jun 01, 2017 5:16 am
by deltaone

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Posted: Thu Jun 15, 2017 11:28 pm
by martijnenco
smitty wrote:I created a reop here. PM me if you want to do anything with it.
How is it going with this project? Looking forward using it :)