Debug.Trace("Player is " + Game.GetPlayer()) Prints

Post » Thu Jun 21, 2012 3:00 pm

I'm guessing that isn't correct? I thought it would print out my chars name.

I ran into a problem where I couldn't finish the "Unfathomable Depths" quest which is the first time I've run into any problems, so I started looking into the code and it seemed it was crapping out anytime it got to "game.getPlayer()" so I decided to print out what it was getting and it's returning "[Actor".

Any help is appreciated.
User avatar
LADONA
 
Posts: 3290
Joined: Wed Aug 15, 2007 3:52 am

Post » Thu Jun 21, 2012 4:46 pm

According to the wiki there is a SKSE function, GetName() - which suggests there isn't a vanilla function to do it. But maybe you could use http://www.creationkit.com/Text_Replacement in a message?
User avatar
Lew.p
 
Posts: 3430
Joined: Thu Jun 07, 2007 5:31 pm

Post » Thu Jun 21, 2012 8:37 am

Text Replacement works

See here for more: http://www.creationkit.com/Text_Replacement
User avatar
Nomee
 
Posts: 3382
Joined: Thu May 24, 2007 5:18 pm

Post » Thu Jun 21, 2012 2:13 pm

Not sure I was understood. This is a script that Bethesda wrote. It is their quest, I'm just trying to figure out why it's failing to work properly. "game.getPlayer()" is returning "[Actor" and I'm guessing that it shouldn't be. Can anyone tell me what it should be returning? I'm wondering if my save game is corrupted.
User avatar
Shannon Lockwood
 
Posts: 3373
Joined: Wed Aug 08, 2007 12:38 pm

Post » Thu Jun 21, 2012 4:13 am

thats how Debug always returns Actors for me. I don't think I've ever been able to get an ID out of it, just variable values.
User avatar
Jessica White
 
Posts: 3419
Joined: Sun Aug 20, 2006 5:03 am

Post » Thu Jun 21, 2012 2:02 pm

I'm guessing that isn't correct? I thought it would print out my chars name.

No, it returns an object of type actor.
User avatar
Oyuki Manson Lavey
 
Posts: 3438
Joined: Mon Aug 28, 2006 2:47 am

Post » Thu Jun 21, 2012 5:37 pm

That's weird, it only gets cut off for me when I use Debug.Notification. Using Debug.Trace prints the whole string for me.
User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am

Post » Thu Jun 21, 2012 5:40 am

That's weird, it only gets cut off for me when I use Debug.Notification. Using Debug.Trace prints the whole string for me.

Yeah... I actually used notification not trace as I couldn't find the freakin log file. So I would get something else if I used trace?
User avatar
Kelly James
 
Posts: 3266
Joined: Wed Oct 04, 2006 7:33 pm

Post » Thu Jun 21, 2012 2:51 am

I got logging working now and I get this from the trace.. "Player is [Actor < (00000014)>]". So, if that is normal output I guess I will breath a sigh of relief and assume my game isn't completely hosed and it really is just a bugged out quest. At this point I have managed to "fix" the script so that I can complete the quest, but I will have to manually give myself the perk via the console as was suggested. Thanks for the help.
User avatar
Love iz not
 
Posts: 3377
Joined: Sat Aug 25, 2007 8:55 pm


Return to V - Skyrim