[Mod] Player model changing [0.1] [models]

ds-2k
Member
 
Posts: 17
Joined: Sat Jan 26, 2013 05:18

[Mod] Player model changing [0.1] [models]

by ds-2k » Sun May 12, 2013 04:04

Player models
Version 0.1
Code license: WTFPL (Based on Zeg9's skins mod)
Texture license: CC-BY-SA (portions of preview textures (screenshots) are from the default player model and node textures and Pilzadam's simple mobs mod)
Dependencies: modmenu (http://forum.minetest.net/viewtopic.php?id=5824) or inventory_plus
Optional dependencies: Simple mobs (http://forum.minetest.net/viewtopic.php?id=3063)
Minetest version: 0.4.5 or later
Image

This mod is a modification of Zeg9's skins mod (http://forum.minetest.net/viewtopic.php?id=4147) that allows players to switch between available player models (instead of player skins) in an in-game menu. This allows players to use different styles of characters that can be exported to 3d model formats that irrlicht can load.

As a demonstration of this, the mod can load the sheep and dungeon master models from the simple mobs mod and use them as selectable player models. (Shown above: the player on the left is playing as a sheep, and the 1st-person player is choosing the dungeon master model.)

However, there are currently some issues with custom models that I have encountered when testing this mod:
  • Using a model from the simple mobs mod makes a player "float" about one node above ground. (possibly something different in how the models were made; The same problem occurs if the sheep model is copied directly to character.x/character.png.)
  • Other mods that modify the player model/skin may interfere (for example, the wieldview mod).

Adding more models:
More models can be added by calling the function models.register_model(name, modeldef). Documentation for this function and examples are available here: https://github.com/bhull2010/minetest-mod-models/blob/master/models/list.lua#L8


Download the latest version: https://github.com/bhull2010/minetest-mod-models/archive/master.zip
Browse the code: https://github.com/bhull2010/minetest-mod-models
 

User avatar
Zeg9
Member
 
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Sun May 12, 2013 08:23

Nice, is this compatible with my skins mod ? (I don't think so but it's more my fault than yours)
I thought about doing that a while ago but felt too lazy, good job :P
Using a model from the simple mobs mod makes a player "float" about one node above ground. (possibly something different in how the models were made; The same problem occurs if the sheep model is copied directly to character.x/character.png.)

Probably a problem with visual size and/or collision box
Last edited by Zeg9 on Sun May 12, 2013 08:26, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).
 

User avatar
Inocudom
Member
 
Posts: 3018
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sun May 12, 2013 13:34

This mod can make playing on servers much more interesting. The models themselves (most of them) would have to be smaller than 3MB in order to keep servers from slowing down too much. However, a mod like this can make it possible to use custom player models for Quake 3 Arena and Half Life in Minetest.
Last edited by Inocudom on Sun May 12, 2013 13:35, edited 1 time in total.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

by Sokomine » Sun May 12, 2013 14:19

Playing as a sheep (which has its eye much further down at ground level) might require setting the camera lower for that player. I don't know if it's possible. It would certainly offer a new view on the world.
Some of the 2d-images for players are already very intresting. If they could become 3d, that would be great (e.g. the alien).
A list of my mods can be found here.
 

User avatar
Inocudom
Member
 
Posts: 3018
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sun May 12, 2013 18:42

Sokomine wrote:Playing as a sheep (which has its eye much further down at ground level) might require setting the camera lower for that player. I don't know if it's possible. It would certainly offer a new view on the world.
Some of the 2d-images for players are already very intresting. If they could become 3d, that would be great (e.g. the alien).


The green alien entity (what used to be the default player skin) could make a nice (and scary) 3D model, especially if done in the fashion that Pavel_S and Zeg9 do models. Redcrab's old skin from his main server is another fine example of what could be a good 3D model (the skin is hilarious.) Maybe custom skins could be made for these models as well (the green alien entity could have different color schemes and even visible eyes in some skins.)
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

User avatar
pop_harte
Member
 
Posts: 27
Joined: Sun Mar 23, 2014 07:39

by pop_harte » Sat Mar 29, 2014 09:11

OH MY GOSH THAT IS AWESOME +1
 

User avatar
pop_harte
Member
 
Posts: 27
Joined: Sun Mar 23, 2014 07:39

by pop_harte » Sat Mar 29, 2014 09:12

IT ADDS ME PLAYERS AND THAT'S WHAT I WANT.
 

User avatar
pop_harte
Member
 
Posts: 27
Joined: Sun Mar 23, 2014 07:39

by pop_harte » Sat Mar 29, 2014 09:14

I have too many mods and the multiplayer servers slowing down XD
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod] Player model changing [0.1] [models]

by wilkgr76 » Mon Aug 10, 2015 04:23

Could you please make it compatible with unified_inventory?
N/A
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 1 guest