[Mod] 3D Animated NPC [1.5]

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Dec 13, 2012 20:30

Around line 170 add this to get an image in your inventory.
image = "mobspawnegg.png",
inventory_image = "mobspawnegg.png", <add this
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Dec 13, 2012 21:14

A new version is out:
-they are "smarter"
-they can open doors (wooden ones so use metal doors)
-they will chase you when they are punched and will mob up on you
-from 12:00pm to 6:00am they are super hostile
-they use random skins

Disabled features: (don't enable)
-collision detection
collision detection is starting to get there but isn't finished
-spawning
I have to come up with a spawning function because the current one causes them to cluster

Have fun!
If you can think it, you can make it.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Dec 13, 2012 21:23

Look at the vombie spawner. http://minetest.net/forum/viewtopic.php?id=2764 I changed it for myself and is it possible to give them a different skin than me because when i choose them to have a different skin it also became mine?
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Dec 13, 2012 21:24

jojoa1997 wrote:Look at the vombie spawner. http://minetest.net/forum/viewtopic.php?id=2764 I changed it for myself and is it possible to give them a different skin than me because when i choose them to have a different skin it also became mine?

Honestly, i have no idea what you just said
If you can think it, you can make it.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Dec 13, 2012 21:27

Also when i change the Npc skin it overides the one in default/models for minetset0.4.4.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Dec 13, 2012 21:29

jordan4ibanez wrote:
jojoa1997 wrote:Look at the vombie spawner. http://minetest.net/forum/viewtopic.php?id=2764 I changed it for myself and is it possible to give them a different skin than me because when i choose them to have a different skin it also became mine?

Honestly, i have no idea what you just said


I downloaded this mod, edited it to spawn npcs.
Change all the vombie(minetest zombie) names to npc names.
Here is the vombie link. http://minetest.net/forum/viewtopic.php?id=629
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Dec 13, 2012 21:31

They should be able to fight with you against another enemy.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

Doc
Member
 
Posts: 75
Joined: Sun Nov 04, 2012 00:21

by Doc » Thu Dec 13, 2012 21:31

Now you just need some A* algorithms and some simple goal discovery. I will have to look through the src some time, and possibly I will make a pathfinding contribution ;) Great work on the mod btw!

+100
 

markveidemanis
Member
 
Posts: 211
Joined: Thu Sep 27, 2012 15:41

by markveidemanis » Thu Dec 13, 2012 21:49

can you make it so you can CHOOSE the texture?
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Dec 13, 2012 22:09

jojoa1997 wrote:
jordan4ibanez wrote:
jojoa1997 wrote:Look at the vombie spawner. http://minetest.net/forum/viewtopic.php?id=2764 I changed it for myself and is it possible to give them a different skin than me because when i choose them to have a different skin it also became mine?

Honestly, i have no idea what you just said


I downloaded this mod, edited it to spawn npcs.
Change all the vombie(minetest zombie) names to npc names.
Here is the vombie link. http://minetest.net/forum/viewtopic.php?id=629

That's probably not going to work at all, ever lol.
If you can think it, you can make it.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Dec 13, 2012 22:09

markveidemanis wrote:can you make it so you can CHOOSE the texture?

Eventually, this is work in progress
If you can think it, you can make it.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Dec 13, 2012 22:11

Doc wrote:Now you just need some A* algorithms and some simple goal discovery. I will have to look through the src some time, and possibly I will make a pathfinding contribution ;) Great work on the mod btw!

+100

That'd be nice, right now they are very simple, I'd like to have a version of this be villagers that find their houses at night kind of like in minecraft.

or bosses that have an area that they spawn, like a giant arena, that can't leave it or something.
If you can think it, you can make it.
 

User avatar
babe223
Member
 
Posts: 141
Joined: Mon Nov 14, 2011 13:36

by babe223 » Thu Dec 13, 2012 22:46

would be interesting if it had an animal such as a horse: D
or even a cow or a pig or a sheep or a mouse
Bem vindos Brasileiros,eu sou primeiro brasileiro daqui do forum, espero que tragam bastante mods

[MOD] torch http://minetest.net/forum/viewtopic.php?id=3021
[MOD]HATCHE:http://minetest.net/forum/viewtopic.php?id=3458
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Dec 13, 2012 23:02

babe223 wrote:would be interesting if it had an animal such as a horse: D
or even a cow or a pig or a sheep or a mouse

That's kind of funny you say that, i was going to make a pig and a ridable horse just now
If you can think it, you can make it.
 

User avatar
Chinchow
Member
 
Posts: 683
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Thu Dec 13, 2012 23:54

Do you mind if I attempt a very simple village mod that uses parts of this code?
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Fri Dec 14, 2012 00:10

Chinchow wrote:Do you mind if I attempt a very simple village mod that uses parts of this code?

Go ahead
If you can think it, you can make it.
 

User avatar
Chinchow
Member
 
Posts: 683
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Fri Dec 14, 2012 00:16

Would be nice if you could equip them with swords to fight off future default hostile mobs
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Dec 14, 2012 00:29

that would get rid of my vombie's YAY
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Fri Dec 14, 2012 03:14

I am currently working on pathfinding.
If you can think it, you can make it.
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19

by Ragnar » Fri Dec 14, 2012 04:49

*a npc comes near you* you gottb help us, there is a dangerous beast in the village! *pulls you*see? please kill him! *you see what it is and you say* its a cow -.- *the villager gets angry* no it isnt, its a deamon from a very dark and horrible place, the nether *your brother sees this and sais* wait, you look familiar *flashback* oh yeah, pigs are indigeos to the terrain *the villagers are like* wtf, is he retarded???
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Dec 14, 2012 05:06

Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Dec 14, 2012 05:08

jordan4ibanez wrote:
jojoa1997 wrote:
jordan4ibanez wrote:Honestly, i have no idea what you just said


I downloaded this mod, edited it to spawn npcs.
Change all the vombie(minetest zombie) names to npc names.
Here is the vombie link. http://minetest.net/forum/viewtopic.php?id=629

That's probably not going to work at all, ever lol.


By the way I got it to spawn now I just need to tidy it up and fix the spawn blocks themselves really.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
babe223
Member
 
Posts: 141
Joined: Mon Nov 14, 2011 13:36

by babe223 » Fri Dec 14, 2012 16:09

Image
the horse could be?
I took this image of the mod minecraft see here the link of the mod
http://www.minecraftforum.net/topic/1078787-144-simply-horses-mod-alpha-053a-smp-or-bust-part-a-new-old-steering-is-back/
Bem vindos Brasileiros,eu sou primeiro brasileiro daqui do forum, espero que tragam bastante mods

[MOD] torch http://minetest.net/forum/viewtopic.php?id=3021
[MOD]HATCHE:http://minetest.net/forum/viewtopic.php?id=3458
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Dec 14, 2012 16:14

Ride horse= fast
Ride horse with saddle= mega fast
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Dec 14, 2012 17:49

jordan4ibanez wrote:
Chinchow wrote:Do you mind if I attempt a very simple village mod that uses parts of this code?

Go ahead


This might help. http://minetest.net/forum/viewtopic.php?id=557
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Fri Dec 14, 2012 17:51

Minetest 0.4.3:
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
21:49:21: ERROR[main]: ServerError: LuaError: error running function 'on_step': ..../games/minetest_36c17b0/mods/addn_mods/npc/init.lua:173: attempt to call method 'set_animation' (a nil value)


Do I need 0.4.4?
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Dec 14, 2012 18:21

4aiman wrote:Minetest 0.4.3:
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
21:49:21: ERROR[main]: ServerError: LuaError: error running function 'on_step': ..../games/minetest_36c17b0/mods/addn_mods/npc/init.lua:173: attempt to call method 'set_animation' (a nil value)


Do I need 0.4.4?

Sure.
 

markveidemanis
Member
 
Posts: 211
Joined: Thu Sep 27, 2012 15:41

by markveidemanis » Sun Dec 16, 2012 07:45

can you make the villagers atand still, and when clicked on with a sitting device, they will follow you. maybe you can an admin npc and give tools: stay, follow, sit. i know its not a dog, but it's kinda fun, as i said on irc
Last edited by markveidemanis on Sun Dec 16, 2012 07:46, edited 1 time in total.
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Mon Dec 17, 2012 06:00

I don't know, whether it's a bug, or my game just glitching, but whenever I hit an NPC with a steel sword (didn't check other weapons/items) that very NPC becomes unlimited-hostile.
By @unlimited@ I mean that, even if I'm flying in the air, the NPC somehow is able to hit me and decrease my HP.
Here's a little picture (800x600, 81.22 KB):
Image
I'm VERY far from the NPC, but it still hurts!

PS: Is it normal when I hit 1 NPC and all NPCs that surround him became hostile?
Last edited by 4aiman on Tue Dec 18, 2012 05:58, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Mon Dec 17, 2012 21:31

is there a way to turn hostile off
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

PreviousNext

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron