ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Fri Aug 07, 2020 3:16 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon May 14, 2018 3:10 am 
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1863
Location: A shallow water area south of Bree
In my initial tests of the 1.6 alpha built from git, I've run into a pretty big problem going to the worldmap: the player is apparently not placed. Sometimes I can get the player onto the map by attempting to move; it's placed in a location entirely unrelated to the exited zone, changing from one game to the next for the same zone. Sometimes I've ended up in the middle of the mountains or the water on the west of the map, with nowhere to go.

On investigation, the offending code appears to be in Game:changeLevelReal(), lines 1198-1208:
        elseif then
                local x, y = self.player.wild_x, self.player.wild_y
                local blocking_actor =, y, engine.Map.ACTOR)
                if blocking_actor then
                        -- This is mostly protecting the Angolwen Apprentice from misc stuff like leaving Timepoint Zero
                        local newx, newy = util.findFreeGrid(x, y, 2, true, {[Map.ACTOR]=true})
                        if newx and newy then blocking_actor:move(newx, newy, true)
                        else blocking_actor:teleportRandom(x, y, 10) end
        -- Place the player on the level

which AFAICT does not place the player on the map at all. [sound F/X: git diving] Ah, the relevant lines of code appear to have been removed in commit 5bba250f, "support for temporary zone parties". Odd, but fixable.

"Blessed are the yeeks, for they shall inherit Arda..."

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Oxs and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group