EDIT: straight_world_1.0.2.zip
Sorry but it's not as easy as it looks.
Since 0.12.11 the game.onevent command is called script.on_event -> easy fix
The onchunkgenerated event is now called on_chunk_generated -> easy fix.
This are already in the code posted by me.
Thanks for the warning ...
Search found 3 matches
- Sat May 28, 2016 3:28 pm
- Forum: Mods
- Topic: [MOD 0.10.x+] Straight world (1.0.2)
- Replies: 31
- Views: 29876
- Sat May 28, 2016 10:50 am
- Forum: Mods
- Topic: [MOD 0.10.x+] Straight world (1.0.2)
- Replies: 31
- Views: 29876
Re: [MOD 0.10.x+] Straight world (1.0.2)
Using the 1.02 update (I'm assuming this is the 0.12.x update mentioned; it was the latest listed) I get the following error:
Notice:
__straight_world__/control.lua:19: attempt to index global 'game' (a nil value)
I'm using 0.12.26 (Build 17762, win64)
Just replace game.on_event(defines.events ...
Notice:
__straight_world__/control.lua:19: attempt to index global 'game' (a nil value)
I'm using 0.12.26 (Build 17762, win64)
Just replace game.on_event(defines.events ...
- Mon Aug 17, 2015 7:31 am
- Forum: Mods
- Topic: [MOD 0.10.x+] Straight world (1.0.2)
- Replies: 31
- Views: 29876
Re: [MOD 0.10.x+] Straight world (1.0.2)
Mod updated for Factorio 0.12.X
- only one problem.. when the user is put near water it ends the game.
require "defines"
local blocksize=8
local blocksizem1=blocksize-1
local blocksized2=math.floor(blocksize/2)
local ti=table.insert
local function fill(x0,y0,name,amount,step,shift)
step=step ...
- only one problem.. when the user is put near water it ends the game.
require "defines"
local blocksize=8
local blocksizem1=blocksize-1
local blocksized2=math.floor(blocksize/2)
local ti=table.insert
local function fill(x0,y0,name,amount,step,shift)
step=step ...