Aller au contenu

Photo

Stupid question regarding logging a script


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

#1
Avalost12

Avalost12
  • Members
  • 1 messages

So, I'm recently breaking into nwn2 scripting on behalf of a server, I know enough to be able to do what I'm setting out to do, but I've encountered an issue, and because I'm a derp I can't find the solution.

An existing script isn't working as intended (unless you're an elf, despite making no calls to check race), but looking at the code itself there is no apparent reason for it to be behaving unexpectedly. So, I figure if I can get a log of precisely what is happening when the script runs that might point me in the right direction, but I seem to be unable to generate the necessary information.

How would I go about getting this log generated from the server, do I need to have DM privileges to do so, and if so how would a DM go about doing this so they can pass on the relevant information to me?

Thanks in advance.



#2
rjshae

rjshae
  • Members
  • 4 497 messages

Would debug mode show you what you need to know? (See my toolset guide, vol. 1, p. 116.)



#3
Loki_999

Loki_999
  • Members
  • 430 messages

Why don't you test locally rather than on the server?

 

Put some debugging in your script.  I generally just use: SendMessageToPC(GetFirstPC(), feedback text); to find out what is happening, although there are other ways.



#4
4760

4760
  • Members
  • 1 212 messages

(unless you're an elf, despite making no calls to check race)

I don't know what the script is supposed to do, but even if it doesn't check the race, the game engine does (when you equip/unequip items: some item properties include race restrictions; when you change appearance: the new appearance has to be compatible with the character skeleton; when you play animations: the animation has to exist for the character skeleton).



#5
Loki_999

Loki_999
  • Members
  • 430 messages

And why not post your script here with an explanation of what you are trying to do?



#6
kamal_

kamal_
  • Members
  • 5 254 messages
There's no test environment? If not your server needs one.
  • Loki_999 aime ceci

#7
Loki_999

Loki_999
  • Members
  • 430 messages

If he is a builder he should be able to test on his local system though, unless its something requiring the DB, then its always possible to get a copy of the DB as well.