generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Roblox CFrame.Angles Snapshot

Previous Thread :: Next Thread 
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 12:52 PM
http://pastebin.com/yZF1iWa7

Erm... I'm not sure how low it actually is... But it's over 1000 instructions... and less than 10000........

:/
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 12:53 PM
long*

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
30 Oct 2011 12:55 PM
What am I reading besides a long list of instructions and their subsequent effects on the registers?
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
30 Oct 2011 12:55 PM
You're not very subtle with your offsite links :3
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 12:56 PM
@Necro, that's exactly what you're reading. ;3

I have no idea what outside functions would get called, so I just ran a trace until the end of the CFrame.Angles subroutine. xD

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 12:57 PM
CFrame.Angles analyzed by IDA Pro:

sub_75D100 proc near

var_70= dword ptr -70h
var_6C= dword ptr -6Ch
var_68= dword ptr -68h
var_58= dword ptr -58h
var_54= dword ptr -54h
var_30= byte ptr -30h
var_C= dword ptr -0Ch
var_8= dword ptr -8
var_4= dword ptr -4
arg_0= dword ptr 4

sub esp, 58h
push ebx
push esi
push edi
lea ecx, [esp+64h+var_30]
call sub_554BF0
mov ebx, [esp+64h+arg_0]
push 3 ; float
push ebx
call sub_74D6D0
fstp [esp+6Ch+var_68]
add esp, 4
push 2 ; float
push ebx
call sub_74D6D0
fstp [esp+70h+var_6C]
add esp, 4
push 1 ; float
push ebx
call sub_74D6D0
fstp [esp+74h+var_70]
add esp, 4
lea eax, [esp+70h+var_54]
push eax ; int
call sub_554480
mov esi, eax
sub esp, 20h
mov ecx, 9
lea edi, [esp+94h+var_30]
rep movsd
mov esi, esp
lea ecx, [esp+94h+var_30]
mov [esp+94h+var_58], esp
push ecx
mov ecx, esi
call sub_553350
mov edx, [esp+94h+var_C]
mov [esi+24h], edx
mov eax, [esp+94h+var_8]
mov [esi+28h], eax
mov ecx, [esp+94h+var_4]
push ebx
mov [esi+2Ch], ecx
call sub_74DB60
add esp, 34h
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 58h
retn
sub_75D100 endp

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 12:58 PM
Fixed the var_??s:

sub_75D100 proc near

var_70= dword ptr -70h
var_6C= dword ptr -6Ch
var_68= dword ptr -68h
var_58= dword ptr -58h
var_54= dword ptr -54h
var_30= byte ptr -30h
var_C= dword ptr -0Ch
var_8= dword ptr -8
var_4= dword ptr -4
arg_0= dword ptr 4

sub esp, 58h
push ebx
push esi
push edi
lea ecx, [esp+34h]
call sub_554BF0
mov ebx, [esp+68h]
push 3 ; float
push ebx
call sub_74D6D0
fstp dword ptr [esp+4]
add esp, 4
push 2 ; float
push ebx
call sub_74D6D0
fstp dword ptr [esp+4]
add esp, 4
push 1 ; float
push ebx
call sub_74D6D0
fstp dword ptr [esp+4]
add esp, 4
lea eax, [esp+1Ch]
push eax ; int
call sub_554480
mov esi, eax
sub esp, 20h
mov ecx, 9
lea edi, [esp+64h]
rep movsd
mov esi, esp
lea ecx, [esp+64h]
mov [esp+94h+var_58], esp
push ecx
mov ecx, esi
call sub_553350
mov edx, [esp+88h]
mov [esi+24h], edx
mov eax, [esp+8Ch]
mov [esi+28h], eax
mov ecx, [esp+90h]
push ebx
mov [esi+2Ch], ecx
call sub_74DB60
add esp, 34h
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 58h
retn
sub_75D100 endp

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:00 PM
Notice:
push INDEX
push ebx
call sub_74D6D0
fstp dword ptr [esp+4]

Looks like they're getting floats off the stack.

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:03 PM
Where does fstp put the floats that it pulls out of the stack?

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
30 Oct 2011 01:06 PM
at "dword ptr [esp+4]", silly.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:07 PM
... xD

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
30 Oct 2011 01:09 PM
@shobobo: y u no be in master scripter
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:10 PM
Thx necro. You're a life saver. @_@

So it retrieves the three arguments, and keeps them on the stack...

*continues to process*

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
30 Oct 2011 01:15 PM
asm

y u asm
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:17 PM
mov ecx, 9 ; number of loops?
lea edi, [esp+64h] ; No idea
rep movsd ; Move from ESI to EDI

Sample:

0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000009
EDX=0075D100
ESI=00D1FFDC
EDI=0018F4EC
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00000202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000008
EDX=0075D100
ESI=00D1FFE0
EDI=0018F4F0
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000007
EDX=0075D100
ESI=00D1FFE4
EDI=0018F4F4
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000006
EDX=0075D100
ESI=00D1FFE8
EDI=0018F4F8
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000005
EDX=0075D100
ESI=00D1FFEC
EDI=0018F4FC
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000004
EDX=0075D100
ESI=00D1FFF0
EDI=0018F500
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000003
EDX=0075D100
ESI=00D1FFF4
EDI=0018F504
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000002
EDX=0075D100
ESI=00D1FFF8
EDI=0018F508
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202

-
0055335F - repe movsd
EAX=0018F4EC
EBX=1A528320
ECX=00000001
EDX=0075D100
ESI=00D1FFFC
EDI=0018F50C
EBP=00000020
ESP=0018F4A0
EIP=0055335F

EFLAGS=00010202


~+[CROOKITY BANDED SNAKES]+~
Report Abuse
Destroyer97 is online. Destroyer97
Joined: 11 Jul 2008
Total Posts: 438
30 Oct 2011 01:18 PM
hello
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
30 Oct 2011 01:18 PM
hi
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
30 Oct 2011 01:23 PM
Hey.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:27 PM
0055450B, 0055453C, 00554567 - fsin

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:28 PM
0055449A, 00554534, 00554563 - fcos

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:31 PM
My eyes are fried.

http://pastebin.com/VXUR98G0
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
30 Oct 2011 01:35 PM
Popin, you really have no clue about assembly do you ?

    mov ecx, 9 ; ECX is often the loop counter, so yes.
    lea edi, [esp+64h] ; EDI := the memory address of esp+64h
    rep movsd ; Move Dword from ESI to EDI 9 times, each time incrementing ESI & EDI by 4
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
30 Oct 2011 01:37 PM
so if i put this in my code it will make me have CFrame Angles, no?
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
30 Oct 2011 01:38 PM
Oh, whoops, it's actually "Move Dword from DS:ESI to ES:EDI" I believe.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Oct 2011 01:39 PM
@Necro

I tend to stick to my luaz and mah c++z kthx.

~+[CROOKITY BANDED SNAKES]+~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image