Aller au contenu

Photo

Jumping within an area


  • Veuillez vous connecter pour répondre
21 réponses à ce sujet

#1
maliagante

maliagante
  • Members
  • 9 messages

I wonder if someone knows a console command to "teleport" your character(s) within an area? I remember doing this frequently in NWN when some bug got me stuck or a trigger for opening a door wouldn't work, etc. I think it was "dm_jumptopoint" or something like that, but I can't get that to work in NWN2.

 

I've also seen suggestions to point the cursor and press the numpad enter/+, but weirdly I got that to work only in one of the expansion campaigns and then never before or after. Is there such a command? Would really appreciate any info, if someone's got it. :)



#2
Tchos

Tchos
  • Members
  • 5 030 messages

I don't know about most DM console commands.  I'm more knowledgeable about scripting, so I would tend to use scripting to do what you want to do.  I believe it would be possible to write a script that would teleport you to a spot where you place your cursor.  I may have actually seen that done in a module testing kit, which you may be able to install as an override and use for that purpose without the author having to integrate it.

 

It would definitely be possible to write a script that would teleport you to any usable object that you select with your mouse.  The solutions that I can think of right now, however, require you to know the tag of something so you can teleport to that tagged object.

 

As for what's available right now, there's a rough solution that might be convenient.  If you open the console and type

rs gr_dm

you'll summon the Dungeon Master NPC, who can do many debugging things, including teleporting you to a safe location in any area whose tag you know (and type in), or to any waypoint or other object whose tag you know.



#3
4760

4760
  • Members
  • 1 204 messages

Or use a teleportation rod (similar to M. Rieder's in The Wizard Apprentice), but for a game in progress, it involves modifying the character file (.bic in \localvault).



#4
kevL

kevL
  • Members
  • 4 052 messages

dm_jumptopoint <float> <float>

eg. dm_jumptopoint 30.0 25.0

the first value, x, seems to be measured from west to east
the second value, y, seems to measure from south to north


note there is typically a border of 20.0 on all sides of an area. The numbers are roughly meters.

I had to use this in SoZ when my PC got bumped into some sort of unwalkable plant-thing...



#5
Dann-J

Dann-J
  • Members
  • 3 161 messages

 

I had to use this in SoZ when my PC got bumped into some sort of unwalkable plant-thing...

 

It sounds like 'makesafe' might have also worked for you:

http://gameofthrones...e-commands.html



#6
kevL

kevL
  • Members
  • 4 052 messages

didn't have much luck with makesafe,
perhaps the PC got popped to a small walkable area cut off from the rest of the mesh



#7
Dann-J

Dann-J
  • Members
  • 3 161 messages

Or perhaps you got stuck inside a placeable that had collision turned on. That's happened to me before. Thankfully I wasn't soloing, so it was just a matter of having another party member transition out of the area. I was sure glad NWN2 didn't have the "you must gather your party before venturing forth" warning from the original Baldur's gate!

 

http://www.youtube.c...h?v=93XFxKXdbqY



#8
kevL

kevL
  • Members
  • 4 052 messages

haha, yeah,

Spoiler


where i got stuck was the entrance to
Spoiler

and PC got shoved back into a batch of them. They may have been dynamic placeables and I just sorta popped in among them.

have tried makesafe on a number of occasions and it never worked for me. dm_jumptopoint always does the trick after a bit of trail & error.



#9
maliagante

maliagante
  • Members
  • 9 messages

Thanks for the help, everyone :) -- the "dm_jumptopoint" (that I had originally tried) DOES work, but only if you know (and type) the area name of the map after the coordinates. It doesn't just move you on the current map.

 

On that note: Does anyone know how to find the name/code of the current area without opening the toolset? I've seen claims that you could just press X on the keyboard, but that does nothing on my PC.



#10
kevL

kevL
  • Members
  • 4 052 messages

heya,

dm_jumptopoint works for me w/out areaname. Use "loc" to find the current location


( if the input is unwalkable, nothing happens )



#11
Tchos

Tchos
  • Members
  • 5 030 messages

You can also use the script gr_where_am_i to get all kinds of information, such as the module name, module tag, area name, area tag, vector position, and facing angle.  You need to enable the debug text as well as debug mode in the console, because it prints its results using PrettyDebug instead of putting it in the chat window.

debugmode 1
debugtext (need to type 1 here too?  Can't remember)
rs ga_where_am_i


#12
maliagante

maliagante
  • Members
  • 9 messages

Many thanks again! As noted, the dm_jumptopoint works with tags in some areas, but not all. I'm playing the Wulverheim community made campaign, and having impossible trouble in the last labyrinth -- but trying to dm_jumptopoint there simply brings me to another empty area (and in that one, I can use dm_jumptopoint where I want). Perhaps thats by design, I don't know.

 

Anyway, thanks to all again. :)



#13
maliagante

maliagante
  • Members
  • 9 messages

Well, seems that didn't help me all that much anyway... the command "loc" or "wami" gives me my coordinates, and that's not the problem. It doesn't give me the name of the area I'm in.

 

I tried the debugtext (enabled, it says), and then the rs gr_where_am_i -- it says "successfully executed", but there is no info that follows. Ideas, anyone?



#14
kevL

kevL
  • Members
  • 4 052 messages

Close the game and enable debugging

After that rs gr_where_am_i
should print the information to

\Docs\<user>\Local Settings\Temp\NWN2\LOGS\nwclientLog1.txt

(note, these files get overwritten every time the game is restarted)

Try the areatag given for your area ...



#15
Tchos

Tchos
  • Members
  • 5 030 messages

Maybe I picked the wrong debugtext command, but one of them prints the info to the screen in addition to writing it to the log file.  I can never remember what I did to enable it in those times I've used it...

 

Oh, there it is in that link kevL gave.  Make sure it's set to print the debug text to the screen.



#16
kevL

kevL
  • Members
  • 4 052 messages

( i just put that up there because that's how mine's set up and it works fer me )

 

curious how this jumptopoint thing works out tho. Tbh on one of my tests it jumped me into a different area ( but no area spec'd, just locs ). I thought it had landed me in a trigger, but without checking am sure there was no trigger, but only a door to click for trans.



#17
maliagante

maliagante
  • Members
  • 9 messages

Thank you! That DID work, I got the info onscreen...

 

Still... turns out it doesn't help me at all though, because weirdly the two areas of the labyrinth that I'm running around in have the exact same area tag. I've managed to get to the portal in the first area that takes me to the second area. But in the second, if I use the dm_jumptopoint with the area tag, it loads up the first area and takes me there instead. If I use dm_jumptopoint without any tags, I get taken to an empty unrelated map. A labyrinth in more than one sense, this rubbish...

 

Ah well, but you helped me with what I asked for, really appreciate it, I'm sure I can use that info in the next module I play -- one I can actually finish, one hopes. :D



#18
kevL

kevL
  • Members
  • 4 052 messages

=]



#19
Tchos

Tchos
  • Members
  • 5 030 messages

Yes, it's up to the builder to make sure that tags for different areas are unique, but it's entirely possible for several areas to have the same tag, which would make things more difficult for you.  Most of the time, people jump to waypoints instead of only specifying the area, so it can easily be overlooked.



#20
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 585 messages

I have a Rod of Teleportation and a Ring of Teleportation that allow short distance teleportation when used. You can download them from my blog. Go to my blog (link in the signature line below), click on the right side link to "Silverwand Software Downloads", and then click on the link to "Neverwinter Nights 2 Enhancements", and then click on "All Neverwinter Nights 2 Mods and Campaigns". About halfway down is a link to my teleportation items. I don't recommend using teleportation frequently though as you can teleport past triggers that you were really supposed to encounter.

 

Regards


  • maliagante aime ceci

#21
maliagante

maliagante
  • Members
  • 9 messages

Kaldor: You're a lifesaver... Wish I knew about it before I spent days in that labyrinth (got through it eventually, with the help of the creator), but it's still useful. And yes, I'm well aware of the trigger points for scripted events, this is a module that has vertually none of that. Thanks a million! :)


  • blablabla aime ceci

#22
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 585 messages

My pleasure. Happy gaming.

 

Regards