Search found 6 matches
- Mon Mar 28, 2016 11:39 pm
- Forum: Mods
- Topic: [MOD 0.12.x] Electrical Pole Lights
- Replies: 0
- Views: 2635
[MOD 0.12.x] Electrical Pole Lights
Type: Mod Name: Electrical Pole Lights Description: My first attempt at modding. Adds 3 tiers of electrical poles with lights (They act as a single entity). License: MIT License Version: 0.0.1 Release: 29/03/2016 (Mar 29, 2016) Tested-With-Factorio-Version: 0.12.3 Category: SimpleExtension Tags: ele...
- Mon Mar 28, 2016 5:00 pm
- Forum: Modding help
- Topic: Prevent equipment pickup of mined Entity
- Replies: 1
- Views: 888
Prevent equipment pickup of mined Entity
Hello all, I am busy attempting to create a mod that I need to prevent the player from picking up an item after it has been mined. I've left the appropriate code below to give some context. -- 1. Check if the player mined a lamp -- 2. Check if lamp is in combined table -- 3. If so, destroy pole enti...
- Mon Mar 28, 2016 3:55 pm
- Forum: Modding help
- Topic: Cannot access global 'script' (Solved)
- Replies: 7
- Views: 2364
Re: Cannot access global 'script'
Thanks so much. I was being a little stupid thinking I had version 0.12.30 instead of 0.12.3 for some reason. Upgrading sorted this out.
- Mon Mar 28, 2016 1:23 pm
- Forum: Modding help
- Topic: Cannot access global 'script' (Solved)
- Replies: 7
- Views: 2364
Re: Cannot access global 'script'
Im using v 0.12.3
- Sun Mar 27, 2016 9:56 pm
- Forum: Modding help
- Topic: Cannot access global 'script' (Solved)
- Replies: 7
- Views: 2364
Re: Cannot access global 'script'
Yep it is within control.lua - would any external files effect it ? I have a couple custom entities/equipment. They all work fine without my control code. In fact everything works great without the script.on_init
- Sun Mar 27, 2016 9:36 pm
- Forum: Modding help
- Topic: Cannot access global 'script' (Solved)
- Replies: 7
- Views: 2364
Cannot access global 'script' (Solved)
Hi all, pretty new here but I've really been enjoying the modding aspect. I have a problem. I'm trying to access script.on_init so I can save a global variable but I keep getting the error " attempt to index global 'script' (a nil value)" Here is my code: --[[ include used code ]] require ...