Page 1 of 1

[0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Dec 28, 2013 2:00 am
by Ardagan
Don't think image will help here.

At some point got 4.3G electric poles at my active slot. Had same issue eventually with destroyer bots, but don't have savegame atm.

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Dec 28, 2013 11:39 am
by Tami
ive noticed it too, its independend from item in the slot. So instead of number count of items in the slot, there is listen 4.3G. I think its limited to the new toolbelt research, but dont know. You can still use the item in the given slot and also the intern number reduced too, but you dont c it.

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Dec 28, 2013 12:12 pm
by Ardagan
internally, the amount of items become -1 in slot. The check is for 0. So starting from -1 it decreases. Basically this means that you get about 2^64 items. I don't know what will happen when count will become positive though. If game will try to split the chunks -- this will cause big problems.

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Tue Dec 31, 2013 9:28 am
by slpwnd
Some bugs in this logic has been done for the 0.8.5. Though we couldn't reproduce the issue and therefore we couldn't test whether this has helped (though it probably had).

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Jan 04, 2014 3:24 am
by Ardagan
Running [0.8.5] still have the bug. Approximate steps to reproduce (I tested on distractor capsules):

1) select additional row on belt
2) reserve left 5 slots for distractor capsules and put 1 distractor capsule in each slot
3) add logistic bots that bring more capsules to you
4) set hotkey for leftmost slot
5) shoot distractor bots from first slot using hotkey.

I just managed to get -1 in first slot using this logic. One thing to point: i had 60 more capsules on primary belt row.
This seem to be pretty stable bug for me. Will try to get this once again ^_^

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Jan 04, 2014 3:27 am
by Ardagan
Ok.
1) i did have that once.
2) I can't repro that using steps above, but that's what worked :(

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Jan 04, 2014 3:30 am
by Ardagan
Ok. Got it.


Steps from above, then do next:
6) make second left slot (or two slots) empty (but reserved), make first slot empty
7) wait for logistic bot to bring you item => all empty slots show that they have items in them, but do not show count
8) shoot distractor bot from first slot => first slot has -1 items :P

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Jan 04, 2014 8:27 am
by ssilk
100 points for duration to find a bug at Ardagan. :)

Only 50 points in B-note for triple post. :twisted:

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sat Jan 04, 2014 10:08 am
by kovarex
Ardagan wrote:Ok. Got it.


Steps from above, then do next:
6) make second left slot (or two slots) empty (but reserved), make first slot empty
7) wait for logistic bot to bring you item => all empty slots show that they have items in them, but do not show count
8) shoot distractor bot from first slot => first slot has -1 items :P
Hallelujah :)
Thank you I was able to reproduce and fix it.

Re: [0.7.5]and[0.8.*] got 4.3G items in active slot

Posted: Sun Jan 05, 2014 4:58 am
by Ardagan
^_^ Great. I can also provide sample fix code and unittest in case if I have sources :P