[Mod] # Eagle - King of the sky # mob for mobkit [aerotest]

u18398

[Mod] # Eagle - King of the sky # mob for mobkit [aerotest]

by u18398 » Post

Image
Last edited by u18398 on Wed Jul 20, 2022 05:57, edited 10 times in total.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by Lone_Wolf » Post

Nice work!
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by runs » Post

Realy awesome :-)

u18398

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by u18398 » Post

thanks, I am glad someone likes this :)

new updates today:
  • - introduce damage system
    - wayfinding after crash or if no takeoff position found
    - better calculations
    - true new hq behaviors
    - fast takeoff if player nearby
I hope I can do the spawn func tomorrow.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by texmex » Post

Quality.

CalebJ
Member
Posts: 407
Joined: Sat Dec 29, 2018 19:21
GitHub: KaylebJay
IRC: KaylebJay
In-game: CalebJ
Location: Tunnelers' Abyss

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by CalebJ » Post

Very cool! The API is well done, I might port this into TA's mobs somehow :)

u18398

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by u18398 » Post

New update:
  • - eagles spawn at height y > 70 on group:tree, group:leaves and group:stone
    - chatcommand is limited to people with server priv
    - if crash on something eagles will suffer from 5% damage
    - they will drop raw_meat and in very rare cases diamond on death
    - way finding changed
eagles have problems finding way on ground in snowy areas, but wayfinding after crash is still
very wip anyway.
But I think this can be called a mod now and I upgrade from preview status :)

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

there is still no license for code and media, so this would be my recommendation:

License of code: LGPL 2.1
License of media: CC-BY-SA 3.0

Please all participants: Termos, Extex, and Melkor
is that ok for you? I plan to put the licences on monday, next week

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by Extex » Post

I supplied a licence for eagle.
But Termos didn't put it in..
P.S. I wish I could try it but mobile is still on 5.0.1 cross doesn't work
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

u18398

Re: [Preview] aerotest ## Eagle - King of the sky ## [aerote

by u18398 » Post

texmex wrote:Quality.
very appreciate. brief, compact, clear. That is what I like :D

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Extex wrote:I supplied a licence for eagle.
But Termos didn't put it in..
P.S. I wish I could try it but mobile is still on 5.0.1 cross doesn't work
You get the latest Minetest for android on "https://f-droid.org

Latest aerotest also supports minetest 5.0.1

If no other license provided as the mentioned above, I consider it as accepted :)

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Update:
  • - better wayfinding
    - fixed errors in radar implementation
    - more accurate spawning
    - spawn now on group:fence, tree, wall and leaves
    - if played together with my fork of wildlife mod, wolves attack eagles on ground
    - added support of minetest 5.0.1 (checks for vector.cross)
Last edited by u18398 on Sun Jan 26, 2020 04:20, edited 1 time in total.

Termos
Member
Posts: 417
Joined: Sun Dec 16, 2018 12:50

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by Termos » Post

I don't care about licensing that much, picked MIT for mobkit because it seemed the norm here.
If you prefer lgpl and there's no conflict then why not.

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Termos wrote:I don't care about licensing that much, picked MIT for mobkit because it seemed the norm here.
If you prefer lgpl and there's no conflict then why not.
Me neither, I am not that much into licenses.

LPGL2.1 : https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
CC-BY-SA 3.0 : https://creativecommons.org/licenses/by ... /legalcode

I guess they fit, others use it in this combination, too.
Besides one is only for code, the other for media.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by Lone_Wolf » Post

MIT is a lot nicer because it's not a pain to comply with when you're using the code. I tend to completely avoid using code that's licensed something GPL-related just to avoid the hassle
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Lone_Wolf wrote:MIT is a lot nicer because it's not a pain to comply with when you're using the code. I tend to completely avoid using code that's licensed something GPL-related just to avoid the hassle
To me it looks like GPL is more what I would prefer:

https://stackoverflow.com/questions/390 ... pl-license

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

update:

-new spawning: they just spawn in the air now, no expensive node checks, player must be above 60m high
- fix no panic bug: when a player is near an idle eagle, it will try to escape by panic takeoff (it should have done this already before)
- add checks for server settings, that eagles are really spawned

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by Codesound » Post

+1

Amazing mod, Thanks!

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Codesound wrote:+1

Amazing mod, Thanks!
Happy you like it. Thanks also go to Termos for the fabulous mobkit and the flying behaviors and Extex and Melkor for the mighty eagle and it's animations.


little update today:

- cleanup and separate code
- add eagle_cry sound which will be played randomly
- add function to search for prey
- licenses for code and media added

until now only "wildlife:deer" is a registered prey for eagle, that will change in the future and you will be able
to register own prey by an api.
The next days I will try to add an attack behavior so prey can be followed and killed

User avatar
Melkor
Member
Posts: 372
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by Melkor » Post

nice work. i love it!

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Hunting Update

Image

Eagles go for hunting now.
in init.lua you can change checktime intervall or even turn hunting off.

At the moment the following mods are supported: petz and wildlife

in detail they prey is wildlife:deer and

Code: Select all

"petz:kitty"
"petz:puppy"
"petz:ducky"
"petz:lamb"
"petz:calf"
"petz:chicken"
"petz:piggy"
"petz:pigeon"
"petz:hamster"
"petz:chimp"
"petz:beaver"
"petz:turtle"
"petz:frog"
"petz:penguin"
you can easily add other mobs to eagle's menu by:
aerotest.register_prey("my:mob")

This is not yet working for mobs in water.


So far it already works pretty well, there still are hunt fails. But that is not too bad I think. There can be expect
changes in the future, this is only the first version which is kind of releasable :)
Targeting moving prey with an flying eagle isn't too easy :D

Bastrabun
Member
Posts: 211
Joined: Mon Nov 04, 2019 19:48

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by Bastrabun » Post

Looks awesome. That has to go on my server, too :)

Do you already have an idea on performance impact?
Whatever I say is CC0

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

Bastrabun wrote:Looks awesome. That has to go on my server, too :)

Do you already have an idea on performance impact?
Thanks to Termos' mobkit, this can be even run on a Raspberry II and bigger.
(depends on max players, of course :) )

I only use raytracing for radar. Biggest impact is the search for prey and sorting it out.
All other is just vector calculation.
Last edited by u18398 on Tue Feb 04, 2020 03:48, edited 1 time in total.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by runs » Post

Gundul wrote:Hunting Update

Image

Eagles go for hunting now.
in init.lua you can change checktime intervall or even turn hunting off.

At the moment the following mods are supported: petz and wildlife

in detail they prey is wildlife:deer and

Code: Select all

"petz:kitty"
"petz:puppy"
"petz:ducky"
"petz:lamb"
"petz:calf"
"petz:chicken"
"petz:piggy"
"petz:pigeon"
"petz:hamster"
"petz:chimp"
"petz:beaver"
"petz:turtle"
"petz:frog"
"petz:penguin"
you can easily add other mobs to eagle's menu by:
aerotest.register_prey("my:mob")

This is not yet working for mobs in water.


So far it already works pretty well, there still are hunt fails. But that is not too bad I think. There can be expect
changes in the future, this is only the first version which is kind of releasable :)
Targeting moving prey with an flying eagle isn't too easy :D
Oh, cool, thanx 4 supporting Petz :-D

Now terror also from the air. :-D

I think only lamb-sized animals should be attacked

https://www.youtube.com/watch?v=ukCfbm9xuHw

But of course Minetest is not the real life ;D

u18398

Re: [Mod] aerotest ## Eagle - King of the sky ## [aerotest]

by u18398 » Post

runs wrote: Oh, cool, thanx 4 supporting Petz :-D

Now terror also from the air. :-D

I think only lamb-sized animals should be attacked

But of course Minetest is not the real life ;D
That is what they do :)
Apart from that, in your mod even elephants are lamb-sized XD

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests