Jump to content

Recommended Posts

Posted

I've recently decompiled k_pdan_saber17.ncs and got the below: 

void main() {
    ActionPauseConversation();
    ActionDoCommand(ExecuteScript("k_pdan_player01", GetFirstPC(), 0xFFFFFFFF));
    DelayCommand(2.0, SetDialogPlaceableCamera(30));
}

Is 0xFFFFFFFF an error? 

Posted

More specifically, you can enter integers in multiple number systems:

  • Binary - e.g. 0b10101010 (starts with 0b or 0B, valid digits are 0 and 1)
  • Octal - e.g. 0252 (starts with 0, valid digits are 0-7)
  • Decimal - e.g. 170 (starts with 1-9, valid digits are 0-9)
  • Hexadecimal - e.g. 0xAA (starts with 0x or 0X, valid digits are 0-9,A-F,a-f)

Remember, all values are 32-bit. Values are signed, with the exception of object types (they are unsigned pointers).

I think DeNCS gave you hex output because that is the default value for the last parameter of void ExecuteScript(string sScript, object oTarget, int nScriptVar = -1).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.