[FIXED] Can't Exit Multilevel Buildings

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
User avatar
ckirmser
UOX3 Newbie
Posts: 7
Joined: Sat Aug 26, 2006 8:59 pm
Location: Hurst, Texas
Has thanked: 0
Been thanked: 0

Can't Exit Multilevel Buildings

Post by ckirmser »

I haven't done anything with UOX for a long time and recently got the itch to goof around some in it.

While wandering - in GM or Player mode - I discovered I could not leave a multilevel building.

As soon as I try to go through the door, I am suddenly transported to the top level of the building. It looks like the program is restoring the levels before moving the character outside. Since the level is restored to view, the character is placed on the topmost floor and, once that happens, there is no longer any door to go through.

Just a guess at what's happening, anyway.

I'm not using Razor, since it wouldn't cooperate, but UOGateway v1.9.1266 seems to be working fine and my UOX version is 0.98-4.0.

I'm using the Default UOX Worldfiles v0.15 to populate the world.

This was not a problem for my GM guy - he just used "tele' to get off the roof - but, my player guy is stuck...
To go is to return...
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Is this true for all multi-level buildings, or only some in particular? I'm suspecting is has to do with a bug in the walking code which doesn't really move you down/up stairs properly on the server.
-= Ho Eyo He Hum =-
User avatar
ckirmser
UOX3 Newbie
Posts: 7
Joined: Sat Aug 26, 2006 8:59 pm
Location: Hurst, Texas
Has thanked: 0
Been thanked: 0

Post by ckirmser »

Xuri wrote:Is this true for all multi-level buildings, or only some in particular? I'm suspecting is has to do with a bug in the walking code which doesn't really move you down/up stairs properly on the server.
So far, it seems to be only for those that do not have doors over the entrances. But, I noticed that it only happens if you have visited the upper levels. My player got stuck in a building, and I had to log on as Admin to teleport him out. But, my admin guy - who had the problem elsewhere, was able to leave the building; but he hadn't gone to the higher levels.

So, I relogged in as a player, and found that he, too could reenter the same building, and then turn around and walk out. The problem was gone. So, I had a hunch and took the guy up one level. I went back down to the first level, tried to walk out and - bang bam zoom - *poof!* back to the upper level he went.

So, I seem to have narrowed it down to those buildings that don't have entrance doors and only if you have visited an upper level floor of that building.

Hope that helps.
To go is to return...
Ghostwolf
UOX3 Novice
Posts: 73
Joined: Mon Feb 11, 2008 9:41 am
Location: Hanging Around
Has thanked: 0
Been thanked: 0
Contact:

Post by Ghostwolf »

If your using your admin character do a 'where command at the top of the stairs then do it near or at the bottom. The Z level is the third number, if it's related to the Z level bug then the Z level will be the same at the top or bottom.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Which buildings?

I've noticed a similar problem, and it is related to the custom teleport locations, I believe it is JSteleport.scp?

The best place to see this bug is the hidden tavern below the leather shop in Vesper. Players can climb down the stairs (because the JSteleport allows them too), but when they climb back up, they are teleported back to the lower lever. We have effectively "boxed" them in.

There are many other instances, but I can't think of them off the top of my head.

There is no way around this, because if you put a JSteleport.scp level to teleport you back up, you will have this problem when you go down. The only think you could do is hard-code those locations in, or create a JSscript for those locations that checks which direction the PC is facing so it knows whether to teleport you up or down.

Lucky for me, my players have teleport privileges, so we only find this a minor nuisance. But on a large shard, it would be a critical problem.
User avatar
ckirmser
UOX3 Newbie
Posts: 7
Joined: Sat Aug 26, 2006 8:59 pm
Location: Hurst, Texas
Has thanked: 0
Been thanked: 0

Post by ckirmser »

Ghostwolf wrote:If your using your admin character do a 'where command at the top of the stairs then do it near or at the bottom. The Z level is the third number, if it's related to the Z level bug then the Z level will be the same at the top or bottom.
That must be it. When I enter the building, my location is 1261 887 16. I trot on up to the second level and then to the same square, it is 1261 887 32. When I return to that same square on the first level, as soon as I enter it, I pop back to the second floor. So, I returned to the opening, and stopped one tile short, checked my location and the Z is, indeed, still set to 32.

Why would this not happen if there is a door involved? Does using the door cause Z to be reset?

I'm not familiar with the 'Z bug,' but I hope this information helps towards its resolution.

I think, for the moment, I'll just block off access to these buildings.
To go is to return...
Ghostwolf
UOX3 Novice
Posts: 73
Joined: Mon Feb 11, 2008 9:41 am
Location: Hanging Around
Has thanked: 0
Been thanked: 0
Contact:

Post by Ghostwolf »

viewtopic.php?t=1743 It effects several areas in the game. I haven't compiled a list but it effects other maps such as ilshenar as well
RandallFlagg26
UOX3 Newbie
Posts: 16
Joined: Wed May 18, 2011 1:25 am
Has thanked: 0
Been thanked: 0

Post by RandallFlagg26 »

Does anyone (stranf) how I can give players teleport privileges?
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Still around Randall?

I haven't touched the teleport code in years, but when I get home, I'll take a peek for you.

Basically, you open the teleport script (teleport.js?) and set the flag to "0", I believe it is currently set to "1" so that GMs and councilors can use it. Remember, I'm going off of memory, since I haven't touched the teleport script in nigh on 5 years!

The best way to figure out how to do it is run a search. Use "teleport" as your query and "stranf" as the member and you should get my 5 year old post asking the same question.

It was one of the big 3 (Xuri, Grimson, Giwo) if I remember right who taught me how to do it.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Fixed on CVS and in UOX3 0.99.
-= Ho Eyo He Hum =-
Locked