[Mod] vacuum cleaner robot 1.6 [aclean]

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

[Mod] vacuum cleaner robot 1.6 [aclean]

by AiTechEye » Thu Dec 31, 2015 23:42



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 :-)
Last edited by AiTechEye on Sun Nov 13, 2016 20:23, edited 14 times in total.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
GitHub: DS-Minetest
In-game: DS

Re: [Mod] aclean (vacuum cleaner robot)

by DS-minetest » Fri Jan 01, 2016 15:18

nice
i would like to have the clean function in simple_robot mod
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] aclean (vacuum cleaner robot)

by Hybrid Dog » Sat Jan 02, 2016 15:13

Could you loop a vacuum cleaner sound?
http://freesound.org/search/?q=vacuum+cleaner
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] aclean 2 (vacuum cleaner robot)

by AiTechEye » Sat Jan 02, 2016 20:05

Added :-)

I making all my sounds / effects by myself, that's less problems with licenses
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod] aclean 2.1 (vacuum cleaner robot)

by Sokomine » Sat Jan 23, 2016 03:38

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!
A list of my mods can be found here.
 

User avatar
TailsTheFoxDoes MT
Member
 
Posts: 415
Joined: Mon Jan 18, 2016 20:50
In-game: TailsTheFox

Re: [Mod] aclean 2.1 (vacuum cleaner robot)

by TailsTheFoxDoes MT » Sun Feb 21, 2016 01:56

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!!!
I'm the TailsTMM of minetest, in other words, i rock.
BRAAAAAZZZZAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
BTW it means TailsTheMeseMinecart, but that isn't my name, it's just a way of saying that i basically do the same thing Dantdm does but i do it with minetest And you problably can't see the invisible ink.
My mods:
My first mod:tails_boss

Mob_pack now has voice acting! Do you want YOUR VOICE included? Look in my posts for the thread!
 

lincy
Member
 
Posts: 39
Joined: Tue Dec 29, 2015 19:37

Re: [Mod] aclean 2.1 (vacuum cleaner robot)

by lincy » Sun Feb 21, 2016 08:53

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 ?
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] aclean 2.1Rfix (vacuum cleaner robot)

by AiTechEye » Sun Feb 21, 2016 16:51

Looks like it tried to change the health on a void object ... fixed!
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

lincy
Member
 
Posts: 39
Joined: Tue Dec 29, 2015 19:37

Re: [Mod] aclean 2.1Rfix (vacuum cleaner robot)

by lincy » Sun Feb 21, 2016 18:01

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)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] aclean 2.1 Refix2 (vacuum cleaner robot)

by AiTechEye » Mon Feb 22, 2016 19:46

it was a ) too much in the if-block, fixed
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

lincy
Member
 
Posts: 39
Joined: Tue Dec 29, 2015 19:37

Re: [Mod] aclean 2.1 Refix2 (vacuum cleaner robot)

by lincy » Mon Feb 22, 2016 20:37

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

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

by AiTechEye » Mon Feb 22, 2016 21:48

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 :-)
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
mahmutelmas06
Member
 
Posts: 355
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

by mahmutelmas06 » Tue Feb 23, 2016 01:06

maybe it could clean unknown objects :)
My Mods:

Beverage
 

lincy
Member
 
Posts: 39
Joined: Tue Dec 29, 2015 19:37

Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

by lincy » Tue Feb 23, 2016 06:05

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
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] aclean 2.1 Refix3 (vacuum cleaner robot)

by AiTechEye » Mon Mar 28, 2016 18:15

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.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

by Hybrid Dog » Tue Mar 29, 2016 10:26

After it cloned itself, does it eat its clone?
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] vacuum cleaner robot 1.5 [aclean]

by AiTechEye » Tue Mar 29, 2016 13:48

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
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] vacuum cleaner robot 1.5 [aclean]

by azekill_DIABLO » Tue Mar 29, 2016 15:45

Nice mod!

you should do more of them!(robots)
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] vacuum cleaner robot 1.6 [aclean]

by AiTechEye » Tue May 10, 2016 17:31

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.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 64 guests

cron