Page 1 of 1

[0.13.2] use as tool called on item that is not tool

Posted: Fri Jul 01, 2016 3:19 pm
by chronix
Version:
0.13.2

Error:
"Internal error: use as tool called on item that is not tool."

Screenshot:
https://www.dropbox.com/s/vf1rgqf589w4v ... 1.jpg?dl=0

Video:
https://youtu.be/cVYIxypVO68

Recreation:
Load the save. Place the blueprint 3 times (in the book, contains laser turrets, walls, and a big power pole). Error pops up. If it doesn't, reload the save (perhaps a few times). I've recreated several times. I haven't seen it happen on the first try, only after reloading.

Other:
I don't know if it requires placing 3 times (I doubt it). I didn't find anything useful for you in the log file. Let me know if you want more information or anything else.

Save:
https://www.dropbox.com/s/z62vio5yvoy35 ... r.zip?dl=0

Re: [0.13.2] use as tool called on item that is not tool

Posted: Fri Jul 01, 2016 10:24 pm
by Rseding91
Thanks for the report. Fixed for 0.13.4 with a test to ensure at least that particular bug doesn't happen again :)

Re: [0.13.2] use as tool called on item that is not tool

Posted: Sun Jul 03, 2016 3:16 am
by chronix
Glad to help, I'm a programmer too so I'll give what information seems pertinent. :)

Re: [0.13.2] use as tool called on item that is not tool

Posted: Sun Jul 03, 2016 8:58 am
by Rseding91
chronix wrote:Glad to help, I'm a programmer too so I'll give what information seems pertinent. :)
There's a method on the character called "transfer item to" and it takes an ItemID - the robots use this to get stuff from the character when he's acting like a roboport. Except when they'd ask for repair packs it ignored the filter ID and just called "transfer to" on the cursor stack so it would just put the first available item into the robot - which wasn't a repair pack :)

Re: [0.13.2] use as tool called on item that is not tool

Posted: Sun Jul 03, 2016 11:31 pm
by chronix
Haha I hear you. I'm our groups stickler for corner cases. :)