Wow. I am at loss for words. Just wow. thank you so much
Wow. I am at loss for words. Just wow. thank you so much
There may or may not be a Discord server from which vast knowledge of Shockwave bytecode and other Habbo ramblings occur.
Great release @Quackster, dont forget to give a shoutout to our loving friend ThuGie. ;)
The decompilation process has been improved slightly to fix order of operations decompilation.
Sums that do division/modulo/multiplication will now put brackets around such statements to indicate the correct way to interpret these statements.
Lets say you decompile "5 + (10 * 30)" it would decompile as:
5 + 10 * 30 which could give the result:
15 * 30 = 450
When it's actually 5 + (10 * 30) which is 5 + 300 which gives you 305 instead, this is why order of operations is important!
Commit: https://github.com/Quackster/habbo_s...e13b76cf7dfc82
![]()
Sigh, I need to update it again, in theory it should be instead:
And yes they are overkill, but that's one of the downsides of reinterpreting bytecode to ensure the sums are the same.Code:tTemp = ((1 * (pTempPercent + pLoadedSoFar)) / pCastcount)
I have other bytecode fixes shortly, fixing more 'undefined' variables etc.![]()
Last edited by Joorren; 21-10-19 at 02:48 PM.
I'm going to redo all of the source code for every Habbo version with ProjectorRays as there's been improvements over my own decompiler.
Not to mention, of the improvements was a pull request recently by me as well! https://github.com/ProjectorRays/ProjectorRays/pull/28
Stay tuned.
Last edited by Quackster; 18-08-22 at 01:02 PM.
Apologies for the double post, but every single Habbo version has now been updated with the new decompiler.
Link for those who aren't aware: https://github.com/Quackster/habbo_src
Enjoy!
Last edited by Quackster; 23-08-22 at 04:47 AM.
That first scripting reference link doesn't work, not for me anyway. I think this is the same file
Director Scripting Dictionary 11.5