[mod] Nodebox Mob API [nmobs]

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by azekill_DIABLO » Post

+1 they are very nice!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Scarecrowman
Member
Posts: 40
Joined: Sun Nov 19, 2017 14:48
In-game: Scarecrowman
Location: The Ranch, S4, on a secure government computer...

Re: [mod] Nodebox Mob API [nmobs]

by Scarecrowman » Post

I really like what you've got started here. I think I'll try to install this tonight.

Maybe this would be the wrong place to ask, but I'm seriously considering making my own mods, (particularly mobs right now,) ... and I have no idea where to begin. I've done some entry level programming. (My strength is with graphics.) Would this NodeBox API be a good engine to use for making those custom mobs? And what programs would I be using to create them?
"Those who dream by day are cognizant of many things that escape those who only dream at night..."
-EDGAR ALLAN POE

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Scarecrowman wrote:I really like what you've got started here. I think I'll try to install this tonight.

Maybe this would be the wrong place to ask, but I'm seriously considering making my own mods, (particularly mobs right now,) ... and I have no idea where to begin. I've done some entry level programming. (My strength is with graphics.) Would this NodeBox API be a good engine to use for making those custom mobs? And what programs would I be using to create them?
This api is very extendable. I made it so that every function can be easily overridden for a type of mob or an individual. However, Mobs Redo is much more complete -- including farming functions, among other things -- and has documentation. This api has no documentation to speak of, though I'm working on some.

Nmobs is also intended for nodebox mobs, which don't have animation (but are easier to make). You can use regular mobs with it, including animation, but there may be some features missing. (I can't think of any.) Nodeboxes are entirely code, and you can jot them down from your head easily enough, though the Nodebox Editor makes it easier. However, they will always be statues that move around like monopoly pieces.

If you want to make animated mobs, you're going to need a 3D modeling program that can spit out MS DirectX 3D files or Blitz3D format files. Blender can do both with some coaxing, and I recommend it, but I don't find it easy or fun to use (hence the nodebox thing). If you only want to use others' models (and there are dozens or hundreds scattered about), any api will do as a start. Obviously I like mine best, but most people prefer Mobs Redo.

As for how to make mods in general -- the best way to learn is by doing. Read the doc/lua_api.txt as a reference, but first pick a mod you like, copy it, and start ripping it apart and putting it back together. If you want to do something, look for a mod that does it already, but don't expect to find one; this game has more possibilities than anyone has thought of yet. If you run into a snag, don't hesitate to post a question on the forum, but don't immediately accept anyone's statement that something is impossible.
Believe in people and you don't need to believe anything else.

User avatar
Scarecrowman
Member
Posts: 40
Joined: Sun Nov 19, 2017 14:48
In-game: Scarecrowman
Location: The Ranch, S4, on a secure government computer...

Re: [mod] Nodebox Mob API [nmobs]

by Scarecrowman » Post

THANKS SO MUCH DUANE! At least now I have something to get started with. ;)
"Those who dream by day are cognizant of many things that escape those who only dream at night..."
-EDGAR ALLAN POE

Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [mod] Nodebox Mob API [nmobs]

by Sokomine » Post

duane wrote: Added kangaroos and lizards.
I like the kangaroo in particular. Very nice! Thank you. I hope they'll show up on servers. At least the smaller mobs. The larger ones may seem a bit odd due to not having any animation.
A list of my mods can be found here.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Changes 201905

by duane » Post

I've rewritten the status mod, so I had to make some changes to nmobs as well.

I've finally gotten around to fixing the taming code so that you must be holding wheat to tame pigs, goats, cows, and sheep. Several require more than one wheat to tame. You must also be holding wheat to tether and untether them. You still don't have to feed them.

Right-clicking cows and sheep will give you milk and wool. You can only right-click once every three minutes, and you must be holding a bucket to get milk -- you don't need shears for the sheep though. nmobs supports my wooden_bucket mod, naturally.

I still use nmobs as my only mobs, and still love them, so I may eventually get around to making everything work.

Edit: Bees don't drop honey anymore. They build hives which contain a load of honey and wax.

Edit: I've (probably) fixed the altitude and time limits on mob spawning, and changed some more mobs to be nocturnal. (I didn't know that the brown bear is mainly nocturnal.)

Image
Attachments
screenshot_20190601_041438.jpg
screenshot_20190601_041438.jpg (291.47 KiB) Viewed 427 times
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Nuisance Damage

by duane » Post

I've added a bit of random damage that cannot be stopped by armor. In Tunnels and Trolls, we called this spite damage. I don't think it should be safe to ignore any opponent, no matter how weak.

Skeletons now drop bonedust (similar to bonemeal), which causes plants to grow instantly. This makes hunting skeletons a lot more worthwhile. Leather now drops rarely from sheep, pigs, and goats. I also added some candles, made from beeswax and string.

Image
Attachments
screenshot_20190724_000520.jpg
screenshot_20190724_000520.jpg (91.17 KiB) Viewed 427 times
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Time's Up

by duane » Post

I've added an interesting feature. If you set the nmobs_worlds_end setting to a number, all mobs will be spawned tougher as time goes by. The number should be the number of hours before they reach maximum difficulty. The maximum is a multiplier of eight, by default.

This can make for a lively game if you set it to one hour -- within fifteen minutes, every mob will be twice as tough as it would normally be.

On an open server, this will mean that players who join later on will be dependent on older players or better starting equipment to keep up. Losing all of your equipment can be devastating. World's end is disabled (zero) by default.
Believe in people and you don't need to believe anything else.

User avatar
sirrobzeroone
Member
Posts: 593
Joined: Mon Jul 16, 2018 07:56
GitHub: sirrobzeroone
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by sirrobzeroone » Post

this is really cool, I know no animations but the ability to add entities quickly and easily without blendering>>animating>>meshing, makes the engine far more accessible to users quickly :).

Just really cool.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Thanks. It doesn't do much, but it does everything I need, so I use it full-time.
Believe in people and you don't need to believe anything else.

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

Re: [mod] Nodebox Mob API [nmobs]

by runs » Post

I am going to use you kangooro in my Petz. cos it is so cute! :-D

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests