The following warnings occurred:
Warning [2] Undefined array key "previewpost" - Line: 164 - File: inc/plugins/htmlposts.php PHP 8.3.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/htmlposts.php 164 errorHandler->error_callback
/inc/class_plugins.php 142 htmlposts_parse
/inc/class_parser.php 153 pluginSystem->run_hooks
/inc/functions_post.php 829 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "previewpost" - Line: 164 - File: inc/plugins/htmlposts.php PHP 8.3.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/htmlposts.php 164 errorHandler->error_callback
/inc/class_plugins.php 142 htmlposts_parse
/inc/class_parser.php 153 pluginSystem->run_hooks
/inc/functions_post.php 829 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "previewpost" - Line: 164 - File: inc/plugins/htmlposts.php PHP 8.3.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/htmlposts.php 164 errorHandler->error_callback
/inc/class_plugins.php 142 htmlposts_parse
/inc/class_parser.php 153 pluginSystem->run_hooks
/inc/functions_post.php 829 postParser->parse_message
/showthread.php 1121 build_postbit




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PlaySound Constants Decompile to Value, Not Constant [Unreal 227h]
#1
Code:
PlaySound(Roam, SLOT_Talk, 0.02 * Mass,,, VoicePitch);

decompiles to:

Code:
PlaySound(Roam, 5, 0.02 * Mass,,, VoicePitch);

I think this is how it works:

Code:
1 = SLOT_Misc
2 = SLOT_Pain
3 = SLOT_Interact
4 = SLOT_Ambient
5 = SLOT_Talk
6 = SLOT_Interface

It won't recompile with the value, it needs the constant.

Edit:

I think 0 is SLOT_None
Reply
#2
I'm aware of this. This is because it actually is compiled as numbers and not constants. Decompiling this back might easily contain false positives, I've done it before with NetMode but when it comes to switch's and cases with multiple switches or if's it gets quite complicated to relate these numbers back to the constants!

It should recompile fine, but perhaps that's something to do with the fact that's an older version of the Engine.
Reply
#3
(04-07-2012, 05:24 AM)eliot Wrote: I'm aware of this. This is because it actually is compiled as numbers and not constants. Decompiling this back might easily contain false positives, I've done it before with NetMode but when it comes to switch's and cases with multiple switches or if's it gets quite complicated to relate these numbers back to the constants!

It should recompile fine, but perhaps that's something to do with the fact that's an older version of the Engine.

Maybe it's because it's an older version. I'm not sure! It would be nice if there was some way to decompile it and get the constants but I see what you mean.

It would be very difficult unless it checked the function for the type of parameter it's filling in and then cross-referenced it with an array of strings (which are the constants) to write into the parameter instead of the number. Which I'd imagine would be kind of hackish.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)