Bug Reports

Looking for a mod? Have a review on a mod you'd like to share?
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post 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

bulldog98
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Tue Apr 08, 2014 6:40 am
Contact:

Re: Bug Reports

Post 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.

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Bug Reports

Post 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

User avatar
SHiRKiT
Filter Inserter
Filter Inserter
Posts: 706
Joined: Mon Jul 14, 2014 11:52 pm
Contact:

Re: Bug Reports

Post 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.

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post 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.

Darlis
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Aug 03, 2014 1:03 pm
Contact:

Re: Bug Reports

Post 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:

Rseding91
Factorio Staff
Factorio Staff
Posts: 13202
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Bug Reports

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Darlis
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Aug 03, 2014 1:03 pm
Contact:

Re: Bug Reports

Post 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:

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post 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.

Darlis
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Aug 03, 2014 1:03 pm
Contact:

Re: Bug Reports

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13202
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Bug Reports

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Darlis
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Aug 03, 2014 1:03 pm
Contact:

Re: Bug Reports

Post 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.

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post 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?

User avatar
darkminaz
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Aug 04, 2014 6:23 pm
Contact:

Re: Bug Reports

Post by darkminaz »

Image

dytech (just downloaded it today)
game version 0.10.2

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post by drs9999 »


User avatar
darkminaz
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Aug 04, 2014 6:23 pm
Contact:

Re: Bug Reports

Post 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

Darlis
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Aug 03, 2014 1:03 pm
Contact:

Re: Bug Reports

Post 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.

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post 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.

User avatar
darkminaz
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Aug 04, 2014 6:23 pm
Contact:

Re: Bug Reports

Post 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

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: Bug Reports

Post by drs9999 »

So far I had no luck to reproduce it. Tested in both Factorio 0.10.2 & 0.10.8.

Post Reply

Return to “Questions, reviews and ratings”