died at spawn!

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

died at spawn!

by leetelate » Thu Sep 19, 2013 14:19

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
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Sep 19, 2013 14:40

You are spawned at ground level, except when you modify static_spawnpoint in minetest.conf or have any mods that change the spawnpoint.
 

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

by leetelate » Thu Sep 19, 2013 14:57

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
Last edited by leetelate on Thu Sep 19, 2013 15:03, edited 1 time in total.
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Sep 19, 2013 15:00

What mapgenerator do you use?
What mods do you have installed?
 

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

by leetelate » Thu Sep 19, 2013 15:04

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
Last edited by leetelate on Thu Sep 19, 2013 15:06, edited 1 time in total.
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

by leetelate » Thu Sep 19, 2013 15:21

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!
Last edited by leetelate on Thu Sep 19, 2013 15:48, edited 1 time in total.
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 13 guests