Page 4 of 11

Re: Bug Reports

Posted: Wed Aug 20, 2014 6:27 am
by drs9999
Airat9000 wrote::( Bug!!! More items in inventory.. fix thanks
:oops: Sorry... :oops:

Solutions:
1) redownload, if you downloaded mod version 1.1.7 before I posted this
2) delete line 18 & 19 of the control.lua file
3) replace line 18 & 19 with the following:

Code: Select all

	--utils.startingItems()
	--utils.startingResearch()
3) enjoy free some items & research at gamestart ;)


EDIT: fixed another bug, so you probably want to redownload it anyway

Re: Bug Reports

Posted: Wed Aug 20, 2014 7:09 am
by bulldog98
drs9999 wrote: EDIT: fixed another bug, so you probably want to redownload it anyway
Hm in my opinion fixing a bug means that you increase the version number, so that everybody can see there was something fixed. You could use a sceme like A.B.C where A is the mayor release number (only increased in case of rewrite), B the minor version number (increased if features are added) and C the bugfix version.

Re: Bug Reports

Posted: Wed Aug 20, 2014 2:12 pm
by Airat9000
drs9999 wrote:
Airat9000 wrote::( Bug!!! More items in inventory.. fix thanks
:oops: Sorry... :oops:

Solutions:
1) redownload, if you downloaded mod version 1.1.7 before I posted this
2) delete line 18 & 19 of the control.lua file
3) replace line 18 & 19 with the following:

Code: Select all

	--utils.startingItems()
	--utils.startingResearch()
3) enjoy free some items & research at gamestart ;)


EDIT: fixed another bug, so you probably want to redownload it anyway
who is file fix?

please link in new version fix,it

Re: Bug Reports

Posted: Wed Aug 20, 2014 2:33 pm
by SHiRKiT
bulldog98 wrote:
drs9999 wrote: EDIT: fixed another bug, so you probably want to redownload it anyway
Hm in my opinion fixing a bug means that you increase the version number, so that everybody can see there was something fixed. You could use a sceme like A.B.C where A is the mayor release number (only increased in case of rewrite), B the minor version number (increased if features are added) and C the bugfix version.
I agree with the OP since I agree with this standard. Easy to understand, pratical and universal.

Re: Bug Reports

Posted: Wed Aug 20, 2014 2:53 pm
by drs9999
Understood. ;)
It's a common scheme that I followed most of the time, but there were exceptions (like the last release, though)
Anyway I'll try to follow it more strictly in the future.

Which leads me to mods-version 1.1.8 which contains nothing new, but the changes I made earlier today
(removing debug-stuff and adding ability to use the mod in god-mode; I consider the last one as a bugfix, too)
Airat9000 wrote: who is file fix?
please link in new version fix,it
You can find the fixed version (1.1.8) in the main-thread.

Re: Bug Reports

Posted: Thu Aug 21, 2014 7:48 pm
by Darlis
Hi,
I seem to have messed up my save somehow: the trees have stopped growing!
The rubber trees from Dytech still grow but normal trees just stay seedlings. I doesn't matter if I place them myself or into a tree farm. Some trees I've planted earlier are stuck in the first growing stage.
When I create a new game the trees there grow again.

Any idea how to rescue my 100h+ save? :cry:

Re: Bug Reports

Posted: Thu Aug 21, 2014 11:07 pm
by Rseding91
Darlis wrote:Hi,
I seem to have messed up my save somehow: the trees have stopped growing!
The rubber trees from Dytech still grow but normal trees just stay seedlings. I doesn't matter if I place them myself or into a tree farm. Some trees I've planted earlier are stuck in the first growing stage.
When I create a new game the trees there grow again.

Any idea how to rescue my 100h+ save? :cry:
I came across this same issue during my testing with treefarm and it's related to adding the mod to an in-progress game.

It can be fixed by modifying the utils.lua inittables function to check each value for "if nil, init the variables" and calling inittables onload as well as oninit.


Also, there's currently a bug with the script interface and dytech that can be seen on the dytech bug reports page. That issue comes from the above issue plus the populateSeedNameToSeedType() function. The function needs to be called when a seed is added so that table is re-populated with the new seed type added.

Re: Bug Reports

Posted: Fri Aug 22, 2014 6:40 am
by Darlis
Hi Rseding91,

the mod was added mid-game indeed, however everything worked fine back then (probably until I've updated Treefarm and/or DyTech). I've now added the function to the onload funtion and then renamed "charcoal2" to "charcoal" as the game complained about it ("charcoal2" doesn't seem to be defined anywhere).
Now the newly plant trees grow again :D

However, during the same game session, the trees suddenly stopped growing, including the rubber trees! Newly planted trees will grow zero or three stages but then stop. :evil:

Re: Bug Reports

Posted: Fri Aug 22, 2014 7:59 am
by drs9999
Adding the mod to an already started game shouldn't be a problem. However it seems that something went wrong while updating the mod.

Could you provide a save-game? When did you noticed that the first time, after updating the mod? If yes, from what version?

To your second post:
If you didn't make any adjustments in the initTable-function and just added the function call in the onLoad then it can't work. This way the data (for fields, planted trees, etc) is reseted everytime after you save/load the game.

Re: Bug Reports

Posted: Fri Aug 22, 2014 6:42 pm
by Darlis
I've upgraded from 1.1.6 to 1.1.8 That seemed to when the problem started.
And I can in fact reproduce it: I've downgraded to 1.1.6 and newly planted trees kept growing, the treefarms worked like a charm again. :D
Then as soon as I upgrade to 1.1.8, the trees - even newly planted ones - stopped growing (I used the original .zip again). There seems to be either a problem with 1.1.8 or the migration from 1.1.6 to 1.1.8. Or my save is somehow corrupt.
Should I upload a save so can reproduce this?

Re: Bug Reports

Posted: Fri Aug 22, 2014 6:47 pm
by Rseding91
Darlis wrote:I've upgraded from 1.1.6 to 1.1.8 That seemed to when the problem started.
And I can in fact reproduce it: I've downgraded to 1.1.6 and newly planted trees kept growing, the treefarms worked like a charm again. :D
Then as soon as I upgrade to 1.1.8, the trees - even newly planted ones - stopped growing (I used the original .zip again). There seems to be either a problem with 1.1.8 or the migration from 1.1.6 to 1.1.8. Or my save is somehow corrupt.
Should I upload a save so can reproduce this?

Uploading the save would probably help. It for sure can't hurt.

Re: Bug Reports

Posted: Fri Aug 22, 2014 7:42 pm
by Darlis
I've uploaded the save: https://www.dropbox.com/s/92xz5drzw4egc8g/bbb4.zip?dl=0
It's saved with the 1.1.6 in use. After upgrading to 1.1.8 and loading the save the trees will grow to the next stage but then stop.

Re: Bug Reports

Posted: Sat Aug 23, 2014 8:47 am
by drs9999
No good news so far. I did some testing on my own yesterday before you uploaded your savegame and everytime the migration between 1.1.6 and 1.1.8 worked fine. After trying your savegame I was able to reproduce it, however while trying I ran into some issues described here: https://forums.factorio.com/forum/vie ... f=7&t=5511

So could you try to disable all mods (except base and treefarm) and save & upload it please?

Re: Bug Reports

Posted: Sat Aug 23, 2014 2:32 pm
by darkminaz
Image

dytech (just downloaded it today)
game version 0.10.2

Re: Bug Reports

Posted: Sat Aug 23, 2014 2:52 pm
by drs9999

Re: Bug Reports

Posted: Sat Aug 23, 2014 3:29 pm
by darkminaz
thanks for the fast answer. Now i only have to figure out why my farm does nothing somehow :)
nevermind, i'm just to impatient sometimes

Re: Bug Reports

Posted: Sat Aug 23, 2014 3:48 pm
by Darlis
I've now managed to remove all the mods one by one (I also ran into the same errors you described). This save now has no mods except treefarm 1.1.6: https://www.dropbox.com/s/3vzqtr95300h7 ... 2.zip?dl=0
However, upgrading to 1.1.8, the trees still do not grow.

Using this save, I've remove treefarm, saved and installed 1.1.8 and trees are now growing like normal. That also means that all trees and facilities are gone too, and if that's the only solution to the problem I'd say that I stick with 1.1.6 for now and start a new game somewhere in the future.

Thanks for the help so far.

Re: Bug Reports

Posted: Sat Aug 23, 2014 6:50 pm
by drs9999
Got it!
Actually it was quiet easy to fix, I just didn't considered some circumstances.

The bug appears in connection with the roadworks mod (or any other mod that add new tiles).
To calculate the growing time I used the underground to determine the "growing-speed" (trees in deserts should grow slower than trees on grassland,right?). If a tree is placed on a roadwork-tile it leads to a divison by zero in the calculation which is (by definition in lua) infinity. So the tree will reach its next growing stage in infinity, which will never happen and so it is blocking the whole system.

Long story short: I'll send you a dl-link for a fixed version, if you can confirm that the bug is fixed I'll release it to the public.

Re: Bug Reports

Posted: Sun Aug 24, 2014 8:42 am
by darkminaz
i don't know if it's because of dytech
but as soon as i try to make a big biomass setup it tells me "bad allocation" -> stuffs full my grafic memory and kills the game. (can't create sprite x not enough memory)
Might be because there are 2 ways to create liquid air and the game might have a issue with that.

i just added a 2nd biolab for liquid co2 when it happend again.

facturio v: 0.10.2
1,7gb ram used, 8,1 avaliable (12 total)


(it also crashed when i try to make a biolab circle since 1 biomass costs 0.1 and create 2x 0.1 i figured i could make a loop but that also kills the game.)

my current treefarm setup
Image

Re: Bug Reports

Posted: Sun Aug 24, 2014 12:07 pm
by drs9999
So far I had no luck to reproduce it. Tested in both Factorio 0.10.2 & 0.10.8.