Page 1 of 1

[Minetest-0.4.10] 3D model problem

PostPosted: Wed Aug 20, 2014 12:38
by Minetestforfun
Hi,

I found a problem on my minetest server(0.4.10-dev) when a player's nickname have more than 19 letters, the game takes it very badly.

Example :
Name => "testmessagebienvenue" (client side pseudonym)
The first problem is server side, it doesn't display "testmessagebienvenue" but "testmessagebienvenu" (without the "e")
For now, nothing major, but the suite is surprising :
http://youtu.be/38ccVOYLRT8
Indeed, a 3D model follow me everywhere "on my position"...
i can hurt me, i can't build if i don't always move, etc...

For an another example :
With a character name "orange", there is no problem
http://youtu.be/NNhsQ7iXyDo

Can i put in place a restriction on the max size of pseudonym ?

(Sorry for my english)

Re: [Minetest-0.4.10] 3D model problem

PostPosted: Wed Aug 20, 2014 13:46
by twoelk
ooooh a Doppelgaenger feature. You might want to press F7 for a nice 3d person view :-D

Re: [Minetest-0.4.10] 3D model problem

PostPosted: Wed Aug 20, 2014 18:07
by Krock
New mod:
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
minetest.register_on_prejoinplayer(function(name, ip)
   if #name > 18 then
      return "Too long username. "..
            "Please pick a name with less than 18 letters and try again."
   end
end)

Solved.

Re: [Minetest-0.4.10] 3D model problem

PostPosted: Wed Aug 20, 2014 18:13
by Minetestforfun
Thank you for your code Krock, but i don't know how i can use it, im sorry :S

Can you explain me the steps ?

Re: [Minetest-0.4.10] 3D model problem

PostPosted: Wed Aug 20, 2014 18:28
by Krock
Minetestforfun wrote:Can you explain me the steps ?

1) create minetest_folder/mods/dummymod
2) create file "init.lua"
3) put copypasta from my post above onto "init.lua"
4) enable the mod

Re: [Minetest-0.4.10] 3D model problem

PostPosted: Wed Aug 20, 2014 23:23
by Minetestforfun
It works. Thank you very much !

(can a moderator lock this topic ?)

Re: [Minetest-0.4.10] 3D model problem

PostPosted: Thu Aug 21, 2014 10:07
by rubenwardy
This should be fixed in core.