Giter Club home page Giter Club logo

aliveai's People

Contributors

aitecheye avatar cure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aliveai's Issues

Runtime error, x is a nil value

AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback luaentity_Step(): ...5.3.0_dedicatedTest\bin..\mods\aliveai\aliveai/base.lua:1569: attempt to perform arithmetic on field 'x' (a nil value)
stack traceback:
...5.3.0_dedicatedTest\bin..\mods\aliveai\aliveai/base.lua:1569: in function 'visiable'
....3.0_dedicatedTest\bin..\mods\aliveai\aliveai/event.lua:4: in function 'folowing'
...-5.3.0_dedicatedTest\bin..\mods\aliveai\aliveai/bot.lua:39: in function 'bot'
...-5.3.0_dedicatedTest\bin..\mods\aliveai\aliveai/bot.lua:16: in function <...-5.3.0_dedicatedTest\bin..\mods\aliveai\aliveai/bot.lua:1>

The error happened right after I died when one of the NPCs used an acid attack. One possibility was that the NPC was trying to attack the dead player. I am using 5.3.0.

Server crashes when aliveai_threats enabled

Probably due to conflict with other mod, but though I should submit the bug anyway. Cool mod.

https://justpaste.it/5o9ya

2021-03-07 23:01:04: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'aliveai_threats' in callback luaentity_Step(): Invalid position (expected table got nil).
2021-03-07 23:01:04: ERROR[Main]: stack traceback:
2021-03-07 23:01:04: ERROR[Main]: [C]: in function 'get_objects_inside_radius'
2021-03-07 23:01:04: ERROR[Main]: /home/minetest/.minetest/mods/aliveai/aliveai/event.lua:600: in function 'searchobjects'
2021-03-07 23:01:04: ERROR[Main]: /home/minetest/.minetest/mods/aliveai/aliveai/bot.lua:40: in function 'bot'
2021-03-07 23:01:04: ERROR[Main]: /home/minetest/.minetest/mods/aliveai/aliveai/bot.lua:16: in function </home/minetest/.minetest/mods/aliveai/aliveai/bot.lua:1>
1 visits · 1 online

/usr/local/share/minetest/mods/aliveai/aliveai/init.lua:83: attempt to perform arithmetic on a nil value

if the version of minetest contains the number "0" (for example 5.6.0), then

ERROR[Main]: ModError: Failed to load and run script from /usr/local/share/minetest/mods/aliveai/aliveai/init.lua:
ERROR[Main]: /usr/local/share/minetest/mods/aliveai/aliveai/init.lua:83: attempt to perform arithmetic on a nil value
ERROR[Main]: stack traceback:
ERROR[Main]: /usr/local/share/minetest/mods/aliveai/aliveai/init.lua:83: in main chunk

this can be fixed with this patch:

index 50cef7f..a503c5d 100644
--- a/aliveai/init.lua
+++ b/aliveai/init.lua
@@ -80,7 +80,7 @@ aliveai={

local aliveai_v1=string.gsub(minetest.get_version().string,"-","%")
local aliveai_v2=aliveai_v1.split(aliveai_v1,".")
-aliveai.minetest_version={tonumber(aliveai_v2[1]),(tonumber(aliveai_v2[2])*0.1),(tonumber(aliveai_v2[3]))*0.01}
+aliveai.minetest_version={tonumber(aliveai_v2[1]) or 0,(tonumber(aliveai_v2[2]) or 0 )*0.1,( tonumber(aliveai_v2[3]) or 0 )*0.01}

Some houses are placed where the player is.

Sometimes I am suddenly in the complete dark (blackness), and moving doesn't help. Actually, moving more does help: the problem is that a house has appeared where I am!

Minetest 5.0.1 (Debian's 5.0.1+repack-2~bpo10+1 or Flatpak from https://www.minetest.net/).

Threats and similar just deleted.

Other mods activated (I was trying to understand who is building the houses): basic_houses, dmobs, kpgmobs, mg_villages, mobf_trader, mobs_npc, dependencies from Debian).

Lua: Runtime error from mod 'default' in callback luaentity_Step()

I just got a runtime error:

2020-06-16 13:36:22: ACTION[Server]: LuaEntitySAO at (-339.799,72.7085,251.349) (id=3, hp=0) punched LuaEntitySAO at (-339.799,72.7085,251.349) (id=3, hp=0), damage=0 (handled by Lua)
2020-06-16 13:36:22: WARNING[Server]: ScriptApiBase::objectrefGetOrCreate(): Pushing ObjectRef to removed/deactivated object, this is probably a bug.
2020-06-16 13:36:22: WARNING[Server]: ScriptApiBase::objectrefGetOrCreate(): Pushing ObjectRef to removed/deactivated object, this is probably a bug.
2020-06-16 13:36:37: ACTION[Server]: LuaEntitySAO at (-363.83,60.5,257) (id=25, hp=50) punched LuaEntitySAO at (-363.83,60.5,257) (id=25, hp=50), damage=-50 (handled by Lua)
2020-06-16 13:36:44: ACTION[Server]: LuaEntitySAO at (-337.882,19.5625,227) (id=92, hp=7) punched LuaEntitySAO at (-337.882,19.5625,227) (id=92, hp=7), damage=13 (handled by Lua)
2020-06-16 13:36:57: ACTION[Server]: LuaEntitySAO at (-363.83,60.5,257) (id=25, hp=0) punched LuaEntitySAO at (-363.83,60.5,257) (id=25, hp=0), damage=0 (handled by Lua)
2020-06-16 13:37:18: ACTION[Server]: singleplayer right-clicks object 127: LuaEntitySAO at ```
(-323,26.0125,240)
2020-06-16 13:37:20: ACTION[Server]: singleplayer right-clicks object 127: LuaEntitySAO at (-323,26.0125,240)
2020-06-16 13:37:21: ACTION[Server]: LuaEntitySAO at (-337.039,19.5927,227.15) (id=92, hp=7) punched LuaEntitySAO at (-337,16,226) (id=267, hp=0), damage=1
2020-06-16 13:37:27: ACTION[Server]: CHAT: hi
2020-06-16 13:37:28: ACTION[Server]: LuaEntitySAO at (-337.001,7.5625,225.112) (id=92, hp=10) punched LuaEntitySAO at (-337.001,7.5625,225.112) (id=92, hp=10), damage=-3 (handled by Lua)
2020-06-16 13:37:38: ACTION[Server]: singleplayer right-clicks object 127: LuaEntitySAO at (-323,26.0125,240)
2020-06-16 13:37:42: ACTION[Server]: singleplayer right-clicks object 127: LuaEntitySAO at (-323,26.0125,240)
2020-06-16 13:37:53: ACTION[Server]: singleplayer right-clicks object 127: LuaEntitySAO at (-323,26.0125,240)
2020-06-16 13:37:58: ACTION[Server]: singleplayer right-clicks object 127: LuaEntitySAO at (-323,26.0125,240)
2020-06-16 13:38:05: ACTION[Server]: LuaEntitySAO at (-322,9.0125,228.015) (id=127, hp=0) punched LuaEntitySAO at (-322,9.0125,228.015) (id=127, hp=0), damage=10 (handled by Lua)
2020-06-16 13:38:05: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback luaentity_Step(): ...-5.2.0-win64\bin..\mods\aliveai-master\aliveai/base.lua:1358: attempt to index a nil value
2020-06-16 13:38:05: ERROR[Main]: stack traceback:
2020-06-16 13:38:05: ERROR[Main]: ...-5.2.0-win64\bin..\mods\aliveai-master\aliveai/base.lua:1358: in function 'jumping'
2020-06-16 13:38:05: ERROR[Main]: ...t-5.2.0-win64\bin..\mods\aliveai-master\aliveai/bot.lua:34: in function 'bot'
2020-06-16 13:38:05: ERROR[Main]: ...t-5.2.0-win64\bin..\mods\aliveai-master\aliveai/bot.lua:16: in function <...t-5.2.0-win64\bin..\mods\aliveai-master\aliveai/bot.lua:1>

2020-06-16 13:38:05: ACTION[Server]: singleplayer leaves game. List of players:
2020-06-16 13:38:05: ACTION[Main]: Server: Shutting down

Minetest 5.2.0 - Creative
Other Mods: Smart inventory

: Runtime error from mod 'aliveai_trader' in callback luaentity_Step(): /root/.minetest/mods/aliveai/aliveai/base.lua:22: attempt to index local 'pos'

Sometimes minetest server crashes when aliveai bot falls down

minetest-server_1  | 2021-02-14 02:51:06: ACTION[Server]: LuaEntitySAO "aliveai_trader:trader" at (2,-64,-2) (id=6, hp=40) punched LuaEntitySAO "aliveai_trader:trader" at (2,-64,-2) (id=6, hp=40), damage=0 (handled by Lua)
minetest-server_1  | 2021-02-14 02:51:06: ACTION[Main]: Server: Shutting down
minetest-server_1  | 2021-02-14 02:51:06: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'aliveai_trader' in callback luaentity_Step(): /root/.minetest/mods/aliveai/aliveai/base.lua:22: attempt to index local 'pos' (a nil value)
aliveai.mp4

Server crash(one of)

2021-06-02 02:09:56: ACTION[Server]: LuaEntitySAO "aliveai_aliens:alien5" at (-1493,3,982) (id=328, hp=0) punched LuaEntitySAO "aliveai_aliens:alien5" at (-1493,3,982) (id=328, hp=0), damage=0 (handled by Lua)
2021-06-02 02:09:56: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'aliveai_aliens' in callback luaentity_Step(): ...ft2/minetest-5.4.1/bin/../mods/aliveai/aliveai/items.lua:947: attempt to index local 'pos' (a nil value)
2021-06-02 02:09:56: ERROR[Main]: stack traceback:
2021-06-02 02:09:56: ERROR[Main]:       .../minetest-5.4.1/bin/../mods/aliveai/aliveai/items.lua:947: in function 'pickup'
2021-06-02 02:09:56: ERROR[Main]:       .../minetest-5.4.1/bin/../mods/aliveai/aliveai/bot.lua:50: in function 'bot'
2021-06-02 02:09:56: ERROR[Main]:       .../minetest-5.4.1/bin/../mods/aliveai/aliveai/bot.lua:16: in function <.../minetest-5.4.1/bin/../mods/aliveai/aliveai/bot.lua:1>
2021-06-02 02:09:56: ACTION[Server]: singleplayer leaves game. List of players:
2021-06-02 02:09:57: ACTION[Main]: Server: Shutting down

P.S. The mod have too much crashes (collisions etc... )especcially with other games or mods(draconis, better_fauna or games: whynot, a planet alive, dreambuilder game) Just install and gather a lot of bugs.

How do you use this?

I've installed the mods and set them to load. I've opened the aliveai in game menu but I have 0 bots. When/where do I issue the create_bot() commands?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.