Giter Site home page Giter Site logo

water_life's Introduction

water_life

Codewars

water mobs for mobkit/minetest

This mod will add some animals to your waters:

riverwater:

riverfish and piranha

seawater:

whale,shark and sea urchin

there is also an api available to use with your own mods. See lua_api.txt for documentation. If you need only the api and not the mobs you can set api_only to true in settings.

water_life's People

Contributors

berengma avatar gundul42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

water_life's Issues

deprecation warning with 5.8.0

WARNING[Main]: GenericCAO::addToScene(): Model water_life_crocodile.b3d loaded with 9 mesh buffers but only 1 texture(s) specified, this is deprecated.

Deaktivateable Mobs

Hello Gundul,
perhaps is it possible to make single mobs switchable if activated or not?

On my server, it seems i have a problem with one mob, but as i tried to deactivate some mobs,
the result was, that the mod crashed.

Greetings, Clyde.

server crash: attempt to compare number with nil

2021-04-11 10:43:49: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '??' in callback luaentity_Step(): /opt/minetest/bin/../mods/water_life/behaviors.lua:509: attempt to compare number with nil
2021-04-11 10:43:49: ERROR[Main]: stack traceback:
2021-04-11 10:43:49: ERROR[Main]: /opt/minetest/bin/../mods/water_life/behaviors.lua:509: in function 'func'
2021-04-11 10:43:49: ERROR[Main]: /opt/minetest/bin/../mods/mobkit/init.lua:621: in function 'execute_queues'
2021-04-11 10:43:49: ERROR[Main]: /opt/minetest/bin/../mods/mobkit/init.lua:848: in function 'func'
2021-04-11 10:43:49: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:106: in function 'func'
2021-04-11 10:43:49: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:106: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100>

minetest: latest master as of 2020-04-11 (now)
water_life: latest master as of 2020-04-11 (now)

steps to reproduce: I don't know, it just happens. A few seconds after the first player logs in. It helps to disable the water_life mod, play for some time and re-enable it.

I dunno

It's done this like 5 times. Crashes the whole game. At first I thought the game thought I was drowning, even though damage is turned off. This time I actually read the thing, and I guess it's your mod doing it:

AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): ...s\Games\minetest-5.3.0-win64\bin..\mods\mobkit\init.lua:1472: attempt to index local 'node3' (a nil value)
stack traceback:
...s\Games\minetest-5.3.0-win64\bin..\mods\mobkit\init.lua:1472: in function 'is_in_deep'
...est-5.3.0-win64\bin..\mods\water_life/animals/shark.lua:67: in function 'logic'
...s\Games\minetest-5.3.0-win64\bin..\mods\mobkit\init.lua:940: in function <...s\Games\minetest-5.3.0-win64\bin..\mods\mobkit\init.lua:921>

On a seperate note, are the seagulls in your mod? Because my seagulls keep trying to fly in the sand. Pretty morbid, actually.

vector.lua:67: attempt to index local 'pos2' (a nil value) api.lua:445: in function 'get_yaw_to_object'

Not sure what happened. There were no water_life related lines in the log the minutes before.

2021-03-23 22:50:18: ACTION[Main]: Server: Shutting down
2021-03-23 22:50:44: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): ...ve1/5.3.0/Minetest_live/bin/../builtin/common/vector.lua:67: attempt to index local 'pos2' (a nil value)
2021-03-23 22:50:44: ERROR[Main]: stack traceback:
2021-03-23 22:50:44: ERROR[Main]: 	...ve1/5.3.0/Minetest_live/bin/../builtin/common/vector.lua:67: in function 'direction'
2021-03-23 22:50:44: ERROR[Main]: 	/home/mtlive1/.minetest/mods/water_life/api.lua:445: in function 'get_yaw_to_object'
2021-03-23 22:50:44: ERROR[Main]: 	/home/mtlive1/.minetest/mods/water_life/behaviors.lua:1220: in function 'func'
2021-03-23 22:50:44: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:621: in function 'execute_queues'
2021-03-23 22:50:44: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'func'
2021-03-23 22:50:44: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function 'old_on_step'
2021-03-23 22:50:44: ERROR[Main]: 	/home/mtlive1/.minetest/mods/monitoring/builtin/on_step.lua:17: in function </home/mtlive1/.minetest/mods/monitoring/builtin/on_step.lua:15>

For my reference 365

Beavers are immortal

I had a beaver spawn in a player's base last night, and they were unable to kill it. I was also unable to kill it even with the death scythe from nssm and there was no indicator that it even took damage.

moskito plague

Hi,

I have an underground / cave area in a tropical biome - it's completely filled with moskitos.

What can I do to get rid of them? Are there mosquito eating animals / plants? Fire? Weapons?

ERROR

2023-01-25 08:34:12: ERROR[Main]: ModError: Failed to load and run script from F:\TW\minetest-5.6.1-win64\bin..\mods\water_life\init.lua:
2023-01-25 08:34:12: ERROR[Main]: Number of registerable nodes (32768) exceeded (water_life:coralmagenta)
2023-01-25 08:34:12: ERROR[Main]: stack traceback:
2023-01-25 08:34:12: ERROR[Main]: [C]: in function 'register_item_raw'
2023-01-25 08:34:12: ERROR[Main]: F:\TW\minetest-5.6.1-win64\bin..\builtin\game\register.lua:184: in function 'register_item'
2023-01-25 08:34:12: ERROR[Main]: F:\TW\minetest-5.6.1-win64\bin..\builtin\game\register.lua:210: in function 'register_node'
2023-01-25 08:34:12: ERROR[Main]: ...test-5.6.1-win64\bin..\mods\water_life/flora/corals.lua:40: in main chunk
2023-01-25 08:34:12: ERROR[Main]: [C]: in function 'dofile'
2023-01-25 08:34:12: ERROR[Main]: F:\TW\minetest-5.6.1-win64\bin..\mods\water_life\init.lua:77: in main chunk

Seagull spawning

On my server (5.5 version) the seagulls were spawning unlimitedly, causing heavy lag. What I was doing to mitigate this is using the wl_kill command routinely in ocean areas, but now I've forced a temporary limit with an if ("if getcount(animal[mobname]) < 15 then"). I suggest an evaluation of this problem

server crash: attempt to index local 'pos2' (a nil value)

Minetest version
Minetest 5.5.0-dev-69c70dd31 (OSX)
Using LuaJIT 2.0.5
BUILD_TYPE=Release
OS / Hardware

Operating system: MacOS
CPU: intel

Summary

2021-05-14 23:29:16: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '??' in callback luaentity_Step(): /opt/minetest/bin/../builtin/common/vector.lua:83: attempt to index local 'pos2' (a nil value)
2021-05-14 23:29:16: ERROR[Main]: stack traceback:
2021-05-14 23:29:16: ERROR[Main]: /opt/minetest/bin/../builtin/common/vector.lua:83: in function 'direction'
2021-05-14 23:29:16: ERROR[Main]: /opt/minetest/bin/../mods/water_life/api.lua:447: in function 'get_yaw_to_object'
2021-05-14 23:29:16: ERROR[Main]: /opt/minetest/bin/../mods/water_life/behaviors.lua:1220: in function 'func'
2021-05-14 23:29:16: ERROR[Main]: /opt/minetest/bin/../mods/mobkit/init.lua:621: in function 'execute_queues'
2021-05-14 23:29:16: ERROR[Main]: /opt/minetest/bin/../mods/mobkit/init.lua:848: in function </opt/minetest/bin/../mods/mobkit/init.lua:825>

Steps to reproduce

did not find a reliable way to reproduce the issue

Farming dependecy

Farming mode is now a mandatory dependency.


2020-11-20 01:10:16: WARNING[Main]: Undeclared global variable "farming" accessed at /home/user/.minetest/mods/water_life/crafts.lua:96
2020-11-20 01:10:16: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/water_life/init.lua:
2020-11-20 01:10:16: ERROR[Main]: /home/user/.minetest/mods/water_life/crafts.lua:96: attempt to index global 'farming' (a nil value)
2020-11-20 01:10:16: ERROR[Main]: stack traceback:
2020-11-20 01:10:16: ERROR[Main]: 	/home/user/.minetest/mods/water_life/crafts.lua:96: in main chunk
2020-11-20 01:10:16: ERROR[Main]: 	[C]: in function 'dofile'
2020-11-20 01:10:16: ERROR[Main]: 	/home/user/.minetest/mods/water_life/init.lua:41: in main chunk

"default" dependency missing

When I try to activate the mod in another game (Mineclone2) it crashes:

Undeclared global variable "default" accessed at ...p\minetest-5.3.0-win64\bin\..\mods\water_life/crafts.lua:84 2020-09-04 20:20:18: ERROR[Main]: ModError: Failed to load and run script from \minetest-5.3.0-win64\bin\..\mods\water_life\init.lua: 2020-09-04 20:20:18: ERROR[Main]: ...p\minetest-5.3.0-win64\bin\..\mods\water_life/crafts.lua:84: attempt to index global 'default' (a nil value) 2020-09-04 20:20:18: ERROR[Main]: stack traceback: 2020-09-04 20:20:18: ERROR[Main]: ...p\minetest-5.3.0-win64\bin\..\mods\water_life/crafts.lua:84: in main chunk 2020-09-04 20:20:18: ERROR[Main]: [C]: in function 'dofile' 2020-09-04 20:20:18: ERROR[Main]: ...top\minetest-5.3.0-win64\bin\..\mods\water_life\init.lua:33: in main chunk

vector.lua:67: attempt to index local 'pos2' (a nil value)

Server crash for no apparent reason.

2021-08-18 20:18:20: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): ...ve1/5.4.1/Minetest_live/bin/../builtin/common/vector.lua:67: attempt to index local 'pos2' (a nil value)
2021-08-18 20:18:20: ERROR[Main]: stack traceback:
2021-08-18 20:18:20: ERROR[Main]: 	...ve1/5.4.1/Minetest_live/bin/../builtin/common/vector.lua:67: in function 'direction'
2021-08-18 20:18:20: ERROR[Main]: 	/home/mtlive1/.minetest/mods/water_life/api.lua:447: in function 'get_yaw_to_object'
2021-08-18 20:18:20: ERROR[Main]: 	/home/mtlive1/.minetest/mods/water_life/behaviors.lua:1222: in function 'func'
2021-08-18 20:18:20: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:621: in function 'execute_queues'
2021-08-18 20:18:20: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'func'
2021-08-18 20:18:20: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>

behaviors.lua:511: attempt to compare number with nil

I do not know what exactly the player did before. It only happened once.

2021-07-16 11:50:48: WARNING[Server]: Assignment to undeclared global "noob" inside a function at /home/mtlive1/.minetest/mods/water_life/behaviors.lua:505.

2021-04-06 00:25:36: ACTION[Server]: Player leaves game. List of players: 
2021-04-06 00:25:51: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): /home/mtlive1/.minetest/mods/water_life/behaviors.lua:511: attempt to compare number with nil
2021-04-06 00:25:51: ERROR[Main]: stack traceback:
2021-04-06 00:25:51: ERROR[Main]: 	/home/mtlive1/.minetest/mods/water_life/behaviors.lua:511: in function 'func'
2021-04-06 00:25:51: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:621: in function 'execute_queues'
2021-04-06 00:25:51: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'func'
2021-04-06 00:25:51: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function <...inetest_live/bin/../builtin/profiler/instrumentation.lua:100>

For my reference 396

Poisoned even after death

Hi,

if you get poisoned and die, you stay poisoned even after respawn.
I means you get into death loop.
After respawn, this should be removed.

Maybe the poison should not be that fatal and let you at least 1 HP.

attempt to index local 'tgtpos' (a nil value)

Happened twice, but I don't know where the entity wanted to fly to in both cases.

2021-02-05 15:27:05: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): /home/mtlive1/.minetest/mods/water_life/behaviors.lua:1076: attempt to index local 'tgtpos' (a nil value)
2021-02-05 15:27:05: ERROR[Main]: stack traceback:
2021-02-05 15:27:05: ERROR[Main]: 	/home/mtlive1/.minetest/mods/water_life/behaviors.lua:1076: in function 'func'
2021-02-05 15:27:05: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:621: in function 'execute_queues'
2021-02-05 15:27:05: ERROR[Main]: 	/home/mtlive1/.minetest/mods/mobkit/init.lua:848: in function 'func'
2021-02-05 15:27:05: ERROR[Main]: 	...inetest_live/bin/../builtin/profiler/instrumentation.lua:106: in function 'old_on_step'
2021-02-05 15:27:05: ERROR[Main]: 	/home/mtlive1/.minetest/mods/monitoring/builtin/on_step.lua:17: in function </home/mtlive1/.minetest/mods/monitoring/builtin/on_step.lua:15>

For my reference: 241

waterbased mobs spawn depsite protection

A player of mine has a swimming pool in a savanna biome, in a protected area of his. He often gets snakes spawned in there.

Please make them respect protections

Renewable seagrasses/kelp

Greetings! In Waterlife mod, the corals are currently renewable, via artificial reef blocks, however it would be great if the different types of seagrasses and kelp could have a method of renewability as well. Especially since there's the seagrass salad food item, seagrass farms could be made to obtain more ingredients. Perhaps, when mined, the player could aquire 1-4 seagrass/kelp items (of the same color variant) from a single plant? This would help avoid the need for ABM spreading mechanics.

wl_lb requires only interact

The chatcommand wl_lb requires nothing but interact, but writes a whole list of biomes to the public chat.

In my opinion it should require server as well or send the list only to the player who sent the command

Suggest chatcommands.lua, line 80

privs = {interact = true},

change to

privs = {server = true},

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.