Page 21 of 22

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Oct 23, 2015 3:34 am
by Bizz Keryear
If I try to use Treefarm-Lite 0.2.0 (and that only) I get an

Code: Select all

_ _ Treefarm-Lite_ _/control.lua:18:attempt to index global 'game' (a nil value)
error.
Game version is 0.12.12

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Oct 23, 2015 8:34 am
by SuperSandro2000
Treefarm only works until 0.12.10.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Oct 23, 2015 3:04 pm
by Bizz Keryear
Then it should said so ...

(thought maybe the treefarm mod decides to work if I use both, but same error)
But something is odd ... after I decided to live without I disabled them and lazy as I am I tried to play without restarting the game ... then the mod worked. ... well kinda ... I can research stuff and I made all sorts of stuff from it ... but trees don't grow and the cokery ... I dunno how to bring it to work ... (I wanted to try if the fertilizer makes the trees grow) .... but think I skip the whole mod now since it is now incompatible ... well ... if I take your word for it.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Oct 23, 2015 3:18 pm
by PiggyWhiskey
The mod author hasn't posted to these forums since July. The only reason it broke was the devs made some API changes (for the better) unfortunately for users of this mod, it broke a bit. The tree growth and some t2 farm functionality isn't working.

Ive only played with lite, so I can't be sure about the rest.

If you like you could learn to mod and fix it? :-)

Otherwise as posted a few posts ago, try the greenhouse mod.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sat Oct 24, 2015 3:08 am
by Bizz Keryear
PiggyWhiskey wrote:The mod author hasn't posted to these forums since July. The only reason it broke was the devs made some API changes (for the better) unfortunately for users of this mod, it broke a bit. The tree growth and some t2 farm functionality isn't working.

Ive only played with lite, so I can't be sure about the rest.

If you like you could learn to mod and fix it? :-)

Otherwise as posted a few posts ago, try the greenhouse mod.
Thanks a bunch, that is a cool tip. And for the info about the changes, too. I want to grow trees ... so that I can protect my factory ... (remove the little pollution that I have)

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sat Oct 24, 2015 10:38 pm
by Afforess
I have ported TreeFarm to 0.12.11+. I fixed the on_load, and renamed the game.on_events to script.on_event.

I haven't tested too much, but my game managed to load, so there's that. If a few other people confirm it works, I might add a post in the Unofficial Updates section.


Removed - Non functional.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sat Oct 24, 2015 11:01 pm
by PiggyWhiskey
With no forum activity from the mod author and if you plan on maintaining it, it might be better to make a new thread so you'd have control of the original post.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sat Oct 24, 2015 11:05 pm
by Afforess
PiggyWhiskey wrote:With no forum activity from the mod author and if you plan on maintaining it, it might be better to make a new thread so you'd have control of the original post.
Probably. I will do that in a day or so.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Mon Oct 26, 2015 4:32 pm
by crazylionator
Afforess wrote:
PiggyWhiskey wrote:With no forum activity from the mod author and if you plan on maintaining it, it might be better to make a new thread so you'd have control of the original post.
Probably. I will do that in a day or so.
Thank you very much.
But it works until load game. When loading trees are not growing.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Mon Oct 26, 2015 5:33 pm
by Afforess
crazylionator wrote:
Afforess wrote:
PiggyWhiskey wrote:With no forum activity from the mod author and if you plan on maintaining it, it might be better to make a new thread so you'd have control of the original post.
Probably. I will do that in a day or so.
Thank you very much.
But it works until load game. When loading trees are not growing.
Alright. I didn't notice because I hadn't gotten to treefarms in my game yet. Sounds like it still needs some work. I will take a look.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Oct 30, 2015 10:27 pm
by sarcolopter
I went through and edited all instances of "game.on" to "script.on", this fixed the mod, but for some reason it only works on my notebook. On my main computer, I still get the "attempt to index global 'game' (nil value)" error.

Update: Starting a new game works, and functions normally, but trying to load any saved game throws the error, even if it's a brand new start.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sun Nov 01, 2015 10:12 pm
by Kadaban
Afforess wrote:I have ported TreeFarm to 0.12.11+. I fixed the on_load, and renamed the game.on_events to script.on_event.

I haven't tested too much, but my game managed to load, so there's that. If a few other people confirm it works, I might add a post in the Unofficial Updates section.
Your modifications work well even with Factorio 0.12.16 until you place down the first MK2 treefarm (the logistics one).
The following error pops up as soon as placing it:

Code: Select all

Notice
Error while running the even handler: __Treefarm-Lite__/control.lua:664: LuaGameScript doesn't contain key get_localised_entity_name.
The game then boots you to the main screen.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Thu Nov 05, 2015 10:34 am
by rubixqubed
sarcolopter: sounds like you may have missed a 'game.on_load' to 'script.on_load' change
Kadaban wrote:
Afforess wrote:I have ported TreeFarm to 0.12.11+. I fixed the on_load, and renamed the game.on_events to script.on_event.

I haven't tested too much, but my game managed to load, so there's that. If a few other people confirm it works, I might add a post in the Unofficial Updates section.
Your modifications work well even with Factorio 0.12.16 until you place down the first MK2 treefarm (the logistics one).
The following error pops up as soon as placing it:

Code: Select all

Notice
Error while running the even handler: __Treefarm-Lite__/control.lua:664: LuaGameScript doesn't contain key get_localised_entity_name.
The game then boots you to the main screen.
The line in control.lua that is being referenced needs the caption parameter removed (luckily it's an optional parameter). It should look like this:

Code: Select all

local rootFrame = player.gui.center.add{type = "frame", name = "fieldmk2Root", direction = "vertical"}
Instead of this:

Code: Select all

 local rootFrame = player.gui.center.add{type = "frame", name = "fieldmk2Root", caption = game.get_localised_entity_name("tf-fieldmk2"), direction = "vertical"}

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sat Nov 07, 2015 11:29 am
by Mordred
Can someone upload a file with the necessary changes done to get it up n running in newer builds again?

Would be cool, 'cause i'm not sure if i found all the necessery changes in the board.

[Edit]
Nvm. found it out. The files are in the attachments.

[Edit2]
Tried to fix the error "on load", i added a check if "game is Nil" and the following 2 lines are not called as Long as that's the case. But i'm honestly not sure about the Long term effects from that Change. The game loads, saves, loads again even with running tree farms, but there may be resulting Errors later on due to that Change.

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Sat Nov 07, 2015 10:12 pm
by TimmPure
Thanks for the effort Mordred, I'll give that attachment a shot :).

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Nov 13, 2015 9:37 pm
by Mordred
TimmPure wrote:Thanks for the effort Mordred, I'll give that attachment a shot :).
Hey TimmePure, you're welcome, and thanks for taking the time to say "thanks" :) i hope it worked for you (and the 54 others that downloaded it :P)

In my case i havent had any issues yet, and i played it several hours with my own "hotfix".

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Thu Nov 19, 2015 10:28 pm
by roy7
Mordred wrote:Can someone upload a file with the necessary changes done to get it up n running in newer builds again?

Would be cool, 'cause i'm not sure if i found all the necessery changes in the board.

[Edit]
Nvm. found it out. The files are in the attachments.

[Edit2]
Tried to fix the error "on load", i added a check if "game is Nil" and the following 2 lines are not called as Long as that's the case. But i'm honestly not sure about the Long term effects from that Change. The game loads, saves, loads again even with running tree farms, but there may be resulting Errors later on due to that Change.
Thanks!

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Nov 27, 2015 8:58 am
by goku90504
whats the difference between lite and AC?

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Nov 27, 2015 9:11 am
by Kayanor
goku90504 wrote:whats the difference between lite and AC?
Lite is just Treefarm MK1 and MK2 with germling production, AC adds Fertilizer production, a coke coal production chain, medicine (healing stuff) production chain, and "organic warfare" - that is glue turrets, glue rockets, and glue capsule (or something like that).

Re: [MOD 0.12.x] Treefarm REDUX

Posted: Fri Nov 27, 2015 2:15 pm
by n9103
Unless you're in a huge desert biome, or are using another mod that uses wood, (or the fields) there's very little need for the Lite version.
Most of the time you'll hear Treefarm mentioned, it'll be the All Content version being referenced.