Page 1 of 1
[Mod] vacuum cleaner robot 1.6 [aclean]

Posted:
Thu Dec 31, 2015 23:42
by AiTechEye
Auto clean (vacuum cleaner)
This is a vacuum cleaner robot, that cleaning by it self.
Left click to open the dumpster (when its not active)
It will clone it self if its much to clean.
And its locked by owner :-)
You can choose how it will clean:
Mobs / other entitys
Monsters (have the type="monster" setting)
Drops
It will always restore its position, so its not risk it disappear in some way (node > entity > node)
V1.6: fixed a forgotten textstring, from another mod :-)
Re: [Mod] aclean (vacuum cleaner robot)

Posted:
Fri Jan 01, 2016 15:18
by DS-minetest
nice
i would like to have the clean function in simple_robot mod
Re: [Mod] aclean (vacuum cleaner robot)

Posted:
Sat Jan 02, 2016 15:13
by Hybrid Dog
Re: [Mod] aclean 2 (vacuum cleaner robot)

Posted:
Sat Jan 02, 2016 20:05
by AiTechEye
Added :-)
I making all my sounds / effects by myself, that's less problems with licenses
Re: [Mod] aclean 2.1 (vacuum cleaner robot)

Posted:
Sat Jan 23, 2016 03:38
by Sokomine
Funny :-) Where does the oerkki come from? Does it act as a dust mote? :-) Anyway: I'd like to see some of those roam around on servers. Finally no more tedious manual dusting of your carpets and storage areas!
Re: [Mod] aclean 2.1 (vacuum cleaner robot)

Posted:
Sun Feb 21, 2016 01:56
by TailsTheFoxDoes MT
Did you know this thing saved my life? So basically, i spawned a crocodile and flew above it and i tried to spawn a NPC to fight it but then the crocodile started attacking me, then out of nowhere one of those robots came in with that mouth and he killed the crocodile!! It's like a gaurd!!!
Re: [Mod] aclean 2.1 (vacuum cleaner robot)

Posted:
Sun Feb 21, 2016 08:53
by lincy
when try to test some drop items.
server was crash ...
2016-02-21 16:50:36: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2016-02-21 16:50:36: ERROR[main]: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): Double fault error from mod '*builtin*' in callback luaentity_Punch(): error in error handling
2016-02-21 16:50:36: ERROR[main]: stack traceback:
2016-02-21 16:50:36: ERROR[main]: [C]: in function 'punch'
2016-02-21 16:50:36: ERROR[main]: /usr/share/games/minetest/mods/aclean/init.lua:374: in function </usr/share/games/minetest/mods/aclean/init.lua:346>
In thread 7f401059f780:
/build/minetest-_pkXwf/minetest-0.4.13+repack/src/server.cpp:511: void Server::step(float): A fatal error occurred: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): Double fault error from mod '*builtin*' in callback luaentity_Punch(): error in error handling
stack traceback:
[C]: in function 'punch'
/usr/share/games/minetest/mods/aclean/init.lua:374: in function </usr/share/games/minetest/mods/aclean/init.lua:346>
Debug stacks:
DEBUG STACK FOR THREAD 7f4001acc700:
#0 virtual void* EmergeThread::Thread()
(Leftover data: #1 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #2 void ServerMap::loadBlock(std::__cxx11::string*, v3s16, MapSector*, bool))
(Leftover data: #3 void ItemStack::deSerialize(std::istream&, IItemDefManager*))
DEBUG STACK FOR THREAD 7f4003fff700:
#0 virtual void* ServerThread::Thread()
#1 void Server::Receive()
(Leftover data: #2 void Server::SendBlocks(float))
(Leftover data: #3 void RemoteClient::GetNextBlocks(ServerEnvironment*, EmergeManager*, float, std::vector<PrioritySortedBlockTransfer>&))
(Leftover data: #4 void ItemStack::serialize(std::ostream&) const)
(Leftover data: #5 bool getCraftingResult(Inventory*, ItemStack&, std::vector<ItemStack>&, bool, IGameDef*))
(Leftover data: #6 void ItemStack::deSerialize(std::istream&, IItemDefManager*))
DEBUG STACK FOR THREAD 7f401059f780:
#0 int main(int, char**)
#1 Dedicated server branch
#2 void dedicated_server_loop(Server&, bool&)
#3 void Server::step(float)
any idea ?
Re: [Mod] aclean 2.1Rfix (vacuum cleaner robot)

Posted:
Sun Feb 21, 2016 16:51
by AiTechEye
Looks like it tried to change the health on a void object ... fixed!
Re: [Mod] aclean 2.1Rfix (vacuum cleaner robot)

Posted:
Sun Feb 21, 2016 18:01
by lincy
UjEdwin wrote:Looks like it tried to change the health on a void object ... fixed!
Thanks your help.
After apply the FIX version. I get this log when restart server
2016-02-22 01:41:54: ERROR[main]: ========== ERROR FROM LUA ===========
2016-02-22 01:41:54: ERROR[main]: Failed to load and run script from
2016-02-22 01:41:54: ERROR[main]: /usr/share/games/minetest/mods/aclean/init.lua:
2016-02-22 01:41:54: ERROR[main]: /usr/share/games/minetest/mods/aclean/init.lua:372: 'then' expected near ')'
2016-02-22 01:41:54: ERROR[main]: ======= END OF ERROR FROM LUA ========
2016-02-22 01:41:54: ERROR[main]: Server: Failed to load and run /usr/share/games/minetest/mods/aclean/init.lua
So, I try to change the code of line 372 from
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
if math.sqrt((pos.x-o.x)*(pos.x-o.x) + (pos.y-o.y)*(pos.y-o.y)+(pos.z-o.z)*(pos.z-o.z)) <=0.4
and (self.target:is_player() or self.target:get_luaentity())) then
to
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
if math.sqrt((pos.x-o.x)*(pos.x-o.x) + (pos.y-o.y)*(pos.y-o.y)+(pos.z-o.z)*(pos.z-o.z)) <=0.4
and (self.target:is_player() or self.target:get_luaentity()) then
after restart server an test it. still same result ..
2016-02-22 01:51:53: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2016-02-22 01:51:53: ERROR[main]: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): Double fault error from mod '*builtin*' in callback luaentity_Punch(): error in error handling
2016-02-22 01:51:53: ERROR[main]: stack traceback:
2016-02-22 01:51:53: ERROR[main]: [C]: in function 'punch'
2016-02-22 01:51:53: ERROR[main]: /usr/share/games/minetest/mods/aclean/init.lua:375: in function </usr/share/games/minetest/mods/aclean/init.lua:346>
In thread 7f8cfd58e780:
/build/minetest-_pkXwf/minetest-0.4.13+repack/src/server.cpp:511: void Server::step(float): A fatal error occurred: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): Double fault error from mod '*builtin*' in callback luaentity_Punch(): error in error handling
stack traceback:
[C]: in function 'punch'
/usr/share/games/minetest/mods/aclean/init.lua:375: in function </usr/share/games/minetest/mods/aclean/init.lua:346>
Debug stacks:
DEBUG STACK FOR THREAD 7f8cf4fe7700:
#0 virtual void* EmergeThread::Thread()
(Leftover data: #1 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #2 void ServerMap::loadBlock(std::__cxx11::string*, v3s16, MapSector*, bool))
(Leftover data: #3 void ItemStack::deSerialize(std::istream&, IItemDefManager*))
DEBUG STACK FOR THREAD 7f8cf57e8700:
#0 virtual void* ServerThread::Thread()
#1 void Server::Receive()
(Leftover data: #2 void Server::SendBlocks(float))
(Leftover data: #3 void RemoteClient::GetNextBlocks(ServerEnvironment*, EmergeManager*, float, std::vector<PrioritySortedBlockTransfer>&))
(Leftover data: #4 void ItemStack::serialize(std::ostream&) const)
(Leftover data: #5 bool getCraftingResult(Inventory*, ItemStack&, std::vector<ItemStack>&, bool, IGameDef*))
DEBUG STACK FOR THREAD 7f8cfd58e780:
#0 int main(int, char**)
#1 Dedicated server branch
#2 void dedicated_server_loop(Server&, bool&)
#3 void Server::step(float)
Re: [Mod] aclean 2.1 Refix2 (vacuum cleaner robot)

Posted:
Mon Feb 22, 2016 19:46
by AiTechEye
it was a ) too much in the if-block, fixed
Re: [Mod] aclean 2.1 Refix2 (vacuum cleaner robot)

Posted:
Mon Feb 22, 2016 20:37
by lincy
UjEdwin wrote:it was a ) too much in the if-block, fixed
already download the new refix2 version. same error message. Sorry ....
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
2016-02-23 04:30:17: ERROR[main]: ========== ERROR FROM LUA ===========
2016-02-23 04:30:17: ERROR[main]: Failed to load and run script from
2016-02-23 04:30:17: ERROR[main]: /usr/share/games/minetest/mods/aclean/init.lua:
2016-02-23 04:30:17: ERROR[main]: /usr/share/games/minetest/mods/aclean/init.lua:372: 'then' expected near ')'
2016-02-23 04:30:17: ERROR[main]: ======= END OF ERROR FROM LUA ========
2016-02-23 04:30:17: ERROR[main]: Server: Failed to load and run /usr/share/games/minetest/mods/aclean/init.lua
I have remove the last "
)" from line 372 and restart server. server work. But crash when I try to drop an cobblestone to test it ......
Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

Posted:
Mon Feb 22, 2016 21:48
by AiTechEye
If it keep crashing, it's nothing i can do right now (it works fine in windows)
This is a unstable mod, and the only way to clear all problems is to start from beginning... something I didn't do voluntarily :-)
Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

Posted:
Tue Feb 23, 2016 01:06
by mahmutelmas06
maybe it could clean unknown objects :)
Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

Posted:
Tue Feb 23, 2016 06:05
by lincy
UjEdwin wrote:If it keep crashing, it's nothing i can do right now (it works fine in windows)
This is a unstable mod, and the only way to clear all problems is to start from beginning... something I didn't do voluntarily :-)
It's ok... :Q
Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

Posted:
Mon Mar 28, 2016 18:15
by AiTechEye
mahmutelmas06 wrote:maybe it could clean unknown objects :)
It can eat all objects (entities) even the most powerful mobs have no chance to beat it, the only way to kill it is to remove its base (the node) then it cant respawn.
It can also clone it self when it detect many objects at same time (on spawn)
ok, i will examine the code (soon) to try to fix all the problems, I have ideas about what it could be.

Posted:
Tue Mar 29, 2016 10:26
by Hybrid Dog
After it cloned itself, does it eat its clone?
Re: [Mod] vacuum cleaner robot 1.5 [aclean]

Posted:
Tue Mar 29, 2016 13:48
by AiTechEye
They returning to the base and disappear, then when the base not finding some of the bots it replacing the node (to that white one), so it can respawn :-)
I checked the code and added a few extra checks in the "for loops", replaced all the ":remove()" with ":set_hp(0)" and ":punch()" because attached objects have a tendency to crash with it.
If you still have problems with crashs, this maybe will be better
Re: [Mod] vacuum cleaner robot 1.5 [aclean]

Posted:
Tue Mar 29, 2016 15:45
by azekill_DIABLO
Nice mod!
you should do more of them!(robots)
Re: [Mod] vacuum cleaner robot 1.6 [aclean]

Posted:
Tue May 10, 2016 17:31
by AiTechEye
if i had more time, i would make a subgame, that would be pretty technical. but it seems to be a really big job. like the default mod need at least 80 textures to generally work with other mods.