Page 1 of 1

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

PostPosted: Sun May 12, 2013 04:04
by ds-2k
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

PostPosted: Sun May 12, 2013 08:23
by Zeg9
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

PostPosted: Sun May 12, 2013 13:34
by Inocudom
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.

PostPosted: Sun May 12, 2013 14:19
by Sokomine
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).

PostPosted: Sun May 12, 2013 18:42
by Inocudom
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.)

PostPosted: Sat Mar 29, 2014 09:11
by pop_harte
OH MY GOSH THAT IS AWESOME +1

PostPosted: Sat Mar 29, 2014 09:12
by pop_harte
IT ADDS ME PLAYERS AND THAT'S WHAT I WANT.

PostPosted: Sat Mar 29, 2014 09:14
by pop_harte
I have too many mods and the multiplayer servers slowing down XD

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

PostPosted: Mon Aug 10, 2015 04:23
by wilkgr76
Could you please make it compatible with unified_inventory?