Updating Player Position on World Map

Post » Thu Jun 21, 2012 11:55 am

I'm teleporting the player to an Interior cell with http://www.creationkit.com/ObjectReference.MoveTo_%28Papyrus%29 which goes fine. Yet I noticed that if I bring up the World Map the player's "I Am Here" arrow is still at the location prior to the MoveTo. How do I get that to update? I need some sort of WorldMap.UpdateLocation() function.

I did look over the http://www.creationkit.com/Game_Script script but didn't see anything. Note sure where to look next so I would appreciate any hints. :blink:
User avatar
remi lasisi
 
Posts: 3307
Joined: Sun Jul 02, 2006 2:26 pm

Post » Thu Jun 21, 2012 12:15 pm

Why do you need that? It's how the game calculates where you are in relativity to the world.

One thing that comes to mind is to move the player to where you want them to show up on the map in the worldspace, then move them to your interior. It would be a double-load screen, but it should achieve what you want.
User avatar
Naomi Lastname
 
Posts: 3390
Joined: Mon Sep 25, 2006 9:21 am

Post » Wed Jun 20, 2012 11:54 pm

I'm just thinking of the user experience. I noticed the behavior when I was in Avanchnzel, which is sorta near Riften, and I ported to Vlindrel Hall. When I pulled up the World Map it centered out in the Rift even though I was in Markarth. Awkward.

I do think your idea would work yet that sure would be a performance hit. *lol* Does give me an idea... looking at the Fast Travel code. Maybe there's an update there I could use. Or perhaps there's a way I can change the player's current Tamriel world space x/y/z coordinates even though the player is in an interior cell.

Hrm.... :)
User avatar
Emilie Joseph
 
Posts: 3387
Joined: Thu Mar 15, 2007 6:28 am

Post » Thu Jun 21, 2012 12:25 pm

As an interior isn't "on the map" - not in the Tamriel Worldspace - then you will have to fake it and I can't think of another way (with the vanilla ck, anyway) other than that suggested by Alex.
User avatar
Darren Chandler
 
Posts: 3361
Joined: Mon Jun 25, 2007 9:03 am

Post » Thu Jun 21, 2012 1:54 am

As an interior isn't "on the map" - not in the Tamriel Worldspace - then you will have to fake it and I can't think of another way (with the vanilla ck, anyway) other than that suggested by Alex.
You two might be right. I haven't found anything yet. Might be lack of documentation though. I still find new things as I tinker.

Trying to think of any quests that might do something like what I've described. Going to go back to the Dark Brotherhood starting quest. As I recall you fall asleep wherever and Astrid ports you to the shack. I want to see what the world map looks like there.
User avatar
Megan Stabler
 
Posts: 3420
Joined: Mon Sep 18, 2006 2:03 pm

Post » Wed Jun 20, 2012 9:55 pm

I been thinking a bit more about this ... When you are in a walled city, you aren't in "Tamriel", but I don't remember the map marker being out of place

Just before you enter a walled city you are in Tamriel, though ... so maybe there is a slight offset, which no one notices?

But then your DB idea is also worth a look, as I agree that is a transport to an Interior Cell ... But if it doesn't work, check out whether there is some fancy map-marker gizmo in whiterun, or somewhere similar ...

(... I can't see anything in the scripting reference that would force the player map-marker to a new location ...)
User avatar
roxxii lenaghan
 
Posts: 3388
Joined: Wed Jul 05, 2006 11:53 am

Post » Wed Jun 20, 2012 9:54 pm

I been thinking a bit more about this ... When you are in a walled city, you aren't in "Tamriel", but I don't remember the map marker being out of place

Oh that's true. Totally forgot that in vanilla all of the cities are actually in their own world space. So the World Map must really be it's own animal. Which makes me think it should be update-able from anywhere.

I went back and did the start of the Dark Brotherhood line. That transport is somewhere between http://www.uesp.net/wiki/Skyrim:Innocence_Lost and http://www.uesp.net/wiki/Skyrim:With_Friends_Like_These.... But I didn't bother to look at any scripts since the world map behaved the same. I went to sleep in Breezehome. After Astrid did her opening chat I opened up the world map. Even though I was in the Abandoned Shack the player marker still showed me in Whiterun.

Meh! :bonk:
User avatar
suniti
 
Posts: 3176
Joined: Mon Sep 25, 2006 4:22 pm

Post » Thu Jun 21, 2012 12:09 am

I been thinking a bit more about this ... When you are in a walled city, you aren't in "Tamriel", but I don't remember the map marker being out of place

Just before you enter a walled city you are in Tamriel, though ... so maybe there is a slight offset, which no one notices?

But then your DB idea is also worth a look, as I agree that is a transport to an Interior Cell ... But if it doesn't work, check out whether there is some fancy map-marker gizmo in whiterun, or somewhere similar ...

(... I can't see anything in the scripting reference that would force the player map-marker to a new location ...)
Cities are in their own worldspaces, which are parented to the Tamriel worldspaces so it continues to update your position.
User avatar
Trista Jim
 
Posts: 3308
Joined: Sat Aug 25, 2007 10:39 pm

Post » Thu Jun 21, 2012 3:23 am

Cities are in their own worldspaces, which are parented to the Tamriel worldspaces
I agree ...

... but - given Aenara's post above yours - I'll probably have to disagree that the map is auto-updated

(Unless the shack interior is not parented? I'll check in a while ... just in case!)

OR, is the problem with INTERIOR cells only?
User avatar
Brittany Abner
 
Posts: 3401
Joined: Wed Oct 24, 2007 10:48 pm

Post » Thu Jun 21, 2012 4:48 am

I agree ...

... but - given Aenara's post above yours - I'll probably have to disagree that the map is auto-updated

(Unless the shack interior is not parented? I'll check in a while ... just in case!)

OR, is the problem with INTERIOR cells only?
Yes, interiors show your last position in the worldspace no matter what. The parented worldspaces like cities, continue updating your position on the map no problem. This problem only exists with interiors because of how they're set up.
User avatar
Maria Garcia
 
Posts: 3358
Joined: Sat Jul 01, 2006 6:59 am

Post » Wed Jun 20, 2012 9:26 pm

Ah. Thanks for the info, Alex.

(So I think you're fake move is probably the only way to "correct" the "problem")
User avatar
Alan Cutler
 
Posts: 3163
Joined: Sun Jul 01, 2007 9:59 am


Return to V - Skyrim