[Minetest-0.4.10] 3D model problem

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

[Minetest-0.4.10] 3D model problem

by Minetestforfun » Wed Aug 20, 2014 12:38

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)
Last edited by Minetestforfun on Wed Aug 20, 2014 18:02, edited 1 time in total.
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: [Minetest-0.4.10] 3D model problem

by twoelk » Wed Aug 20, 2014 13:46

ooooh a Doppelgaenger feature. You might want to press F7 for a nice 3d person view :-D
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Minetest-0.4.10] 3D model problem

by Krock » Wed Aug 20, 2014 18:07

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Minetest-0.4.10] 3D model problem

by Minetestforfun » Wed Aug 20, 2014 18:13

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 ?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Minetest-0.4.10] 3D model problem

by Krock » Wed Aug 20, 2014 18:28

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
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Minetest-0.4.10] 3D model problem

by Minetestforfun » Wed Aug 20, 2014 23:23

It works. Thank you very much !

(can a moderator lock this topic ?)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Minetest-0.4.10] 3D model problem

by rubenwardy » Thu Aug 21, 2014 10:07

This should be fixed in core.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 8 guests