Page 1 of 1

died at spawn!

PostPosted: Thu Sep 19, 2013 14:19
by leetelate
spawned appreantly in mid-air, fell an amazing distance, and died!!!!!!

you really should fix the spawn area a'la the 360, or find the ground before spawning the player

i'm trying to make a patch/hack in joinplayer - i'll let you know

PostPosted: Thu Sep 19, 2013 14:40
by PilzAdam
You are spawned at ground level, except when you modify static_spawnpoint in minetest.conf or have any mods that change the spawnpoint.

PostPosted: Thu Sep 19, 2013 14:57
by leetelate
regular spawn is fine - this was the first spawn in a new world - i may have been spawned at ground level but there was nothing under me but a lot of down - i have also first-spawned inside a tree (black screen, punch breaks the tree and fixes it) and also have first-spawned into a ravine (totally black screen, nothing can be done but go to creative mode and drop some torches)

i play on damage=true and creative = false

this fixes the problem: (brings the player down to the ground or w/e that is not "air" - could possibly put the player in an ignore block but otherwise shouldn't be a problem

--spawnfix
minetest.register_on_joinplayer(function(player)
minetest.after(1, function()
local pos = player:getpos()
local p1 = {x=math.floor(pos.x),y=math.floor(pos.y),z=math.floor(pos.z)}
for y=p1.y,p1.y-50,-1 do
local p2 = {x=p1.x,y=p1.y,z=p1.z}
local znode = minetest.get_node(p2).name
if znode ~= "air" then
player:setpos(p2)
break
end --if
end --for
end) --after
end) --function

PostPosted: Thu Sep 19, 2013 15:00
by PilzAdam
What mapgenerator do you use?
What mods do you have installed?

PostPosted: Thu Sep 19, 2013 15:04
by leetelate
no mods, and minetest-game - this is at the first spawn into a totally new world - um, I guess whatever mapgenerator mindtest-game-master uses

i'll see if I can get some video

PostPosted: Thu Sep 19, 2013 15:21
by leetelate
video: http://1337318.zymichost.com/spawnfix.mp4.tar.gz

it's the fall at the first spawn - this time it was small

video is in a tar.gz - download, double-click, watch from the archive

thanks, love the game!