Page 2 of 4

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Mon Mar 23, 2015 3:39 pm
by spworwell
great mod!

bug: sometimes the personal roboport disappears before all the bots have made it back in. this seems to happen most often when I do X, then do Y w/o waiting for all the bots dispensed to do X to get back in.
bug: construction bots won't fly out of your inventory if there are active, unfulfilled (i.e. "5 items are missing construction bots") construction requests outside of pocketbot range
usability: construction bots in your inventory will fly out and fulfill requests that are under the construction area of normal roboports. They don't come back afterwords.
usability: research to increase the range of the pocket port would be nice. I modded the range from 20 to 50 (the same as a normal port) and it made plopping blueprints down WAY easier.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Fri Apr 03, 2015 5:24 am
by mieze :3
I have gotten an error:
Factorio error dialogue wrote:Error while running the event handler: __PocketBots__/control.lua:70: LuaInventory doesn't contain key getitemstack.
I replaced line 70 ("playerSettings.armorStack = player.getinventory(defines.inventory.playerarmor).getitemstack(1)") with "... = player.getinventory( ... ).getcontents()"

It does not throw the error anymore but until someone confirmed this as the right fix, I will not use it, yet. I do not want my world being ruined. ;)

Also, before I completely forget: Awesome mod; It will make tower creep soo much easier. :x :D
And I hope, it is dynamic enough for useing any logistics compatible storage, that comes into range. :?:

P.S. Here it is morning now and in the morning, I tend to be more verbose and use a lot of emoticons.
P.P.S.I think, there should be some Factorio specific graphics in the Smilies box. Although These are my favourite ever!
I'll stop now...

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Fri Apr 03, 2015 5:36 am
by MasterBuilder
mieze :3 wrote:I replaced line 70 ("playerSettings.armorStack = player.getinventory(defines.inventory.playerarmor).getitemstack(1)") with "... = player.getinventory( ... ).getcontents()"

It does not throw the error anymore but until someone confirmed this as the right fix, I will not use it, yet. I do not want my world being ruined. ;)
I've been using the following and have had no issues:

Code: Select all

playerSettings.armorStack = player.getinventory(defines.inventory.playerarmor)[1]

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Fri Apr 03, 2015 6:52 am
by mieze :3
MasterBuilder wrote:
mieze :3 wrote:I replaced line 70 ("playerSettings.armorStack = player.getinventory(defines.inventory.playerarmor).getitemstack(1)") with "... = player.getinventory( ... ).getcontents()"

It does not throw the error anymore but until someone confirmed this as the right fix, I will not use it, yet. I do not want my world being ruined. ;)
I've been using the following and have had no issues:

Code: Select all

playerSettings.armorStack = player.getinventory(defines.inventory.playerarmor)[1]
Cool, thanks!

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Sat Apr 04, 2015 9:11 am
by Ziggurat
Cool mod!

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Thu Apr 09, 2015 9:14 am
by kovarex
I stick it, just because I thing this is super useful and something we would eventually want to have even in the vanilla.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Thu Apr 09, 2015 9:28 am
by Degraine
Well that's a seal of approval, if ever I saw one.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Thu Apr 09, 2015 11:59 am
by quinor
Kovarex, does it mean you're gonna implement it soon? Can't wait :)

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Thu Apr 09, 2015 3:05 pm
by SHiRKiT
psorek wrote:Kovarex, does it mean you're gonna implement it soon? Can't wait :)
Maybe not soon, but I guess it means someday :D

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Thu Apr 09, 2015 11:52 pm
by JamesOFarrell
kovarex wrote:I stick it, just because I thing this is super useful and something we would eventually want to have even in the vanilla.
Wow, that is awesome. Glad people are enjoying this mod.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Fri Apr 10, 2015 6:09 pm
by aRatNamedSammy
kovarex wrote:I stick it, just because I thing this is super useful and something we would eventually want to have even in the vanilla.
:mrgreen: woohoo :D

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Fri Apr 10, 2015 6:15 pm
by aRatNamedSammy
opps..got a bug
on a fresh start

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Fri Apr 10, 2015 9:19 pm
by MasterBuilder
aRatNamedSammy wrote:opps..got a bug
on a fresh start
Just do a find & replace in control.lua
Replace:

Code: Select all

.getitemstack(1)
With:

Code: Select all

[1]
This has bee known about for quite a while and there are numerous posts about it in the thread already.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Sat Apr 11, 2015 1:42 am
by JamesOFarrell
MasterBuilder wrote: Just do a find & replace in control.lua
This change has been made and the first post updated.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Sat Apr 11, 2015 12:47 pm
by quinor
What bug is causing desync in MP while using pocket bots? Is it factorio bug or rather mod one?

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Sat Apr 11, 2015 1:15 pm
by FishSandwich
psorek wrote:What bug is causing desync in MP while using pocket bots? Is it factorio bug or rather mod one?
Desync's are always factorio bug.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Sun Apr 12, 2015 1:45 am
by Rseding91
FishSandwich wrote:
psorek wrote:What bug is causing desync in MP while using pocket bots? Is it factorio bug or rather mod one?
Desync's are always factorio bug.
Not always, it's very easy to use local variables and cause desyncs with a mod.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Sun Apr 12, 2015 10:03 am
by FishSandwich
Yeah.. And if the factorio client handled it correctly it wouldn't desync right?

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Mon Apr 13, 2015 12:13 am
by Degraine
You overestimate the ability of the game to deal with modders' bad code.

Re: [MOD 0.11.x] Pocket Bots. Construction bots for your pocket.

Posted: Mon Apr 13, 2015 12:50 am
by SHiRKiT
Degraine wrote:You overestimate the ability of the game to deal with modders' bad code.
You can't ask the game to not desync when you are trying to break things.