How to flip vehicle

Started by Murdock, Jun 24, 2015, 09:21 AM

Previous topic - Next topic

Murdock

I always used this code to flip a vehicle when it's upside down:
player.Vehicle.Rotation = Vector( 1.0, 0.0, 0.0 );
But since the last few client updates all players keep crashing when trying to flip their vehicle, and the same crashlog is produced every time:
[spoiler]Address: 005C2D01 error C0000005
EAX 80000000 EBX 0018F200 ECX 80000000 EDX 80000000
EBP 00000000 ESP 0018F1B0 ESI 084F4FA0 EDI 00000000
Stack:
0A5011D4
0042007F
80000000
FF800000
0A500BF8
00585C48
7F800000
FF800000
415B1FDE
0018F200
00000000
0000000D
00000000
C2C80000
7F800000
FF800000
416EF6E8
7F800000
FF800000
415B1FDE
005C97C8
7F800000
FF800000
416EF6E8
7F800000
FF800000
415B1FDE
0A500BF8
0069AD90
0C73A1F1
00000000
00593911
00000000
00000000
00000000
0018F94C
00000000
00000000
00000001
00000002
00000003
00000000
00000001
00000000
00000003
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
084F4FA0
00000001
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
3B449BA6
3A6BEDFB
3BA3D70A
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000001
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
Net version 66215, build version 5586D64B.
00400000 S 00614000 N L:\Vice City_04\gta-vc.exe
08230000 S 0004D000 N C:\Users\Murdock\AppData\Local\Vice City Multiplayer\04rel002\bass.dll
0FDB0000 S 00232000 N C:\Users\Murdock\AppData\Local\Vice City Multiplayer\04rel002\vcmp-game.dll
1E440000 S 00105000 N C:\Windows\system32\d3d8.dll
21100000 S 0005C000 N L:\Vice City_04\mss32.dll
22100000 S 00014000 N L:\Vice City_04\mss\Mssa3d.m3d
22200000 S 00015000 N L:\Vice City_04\mss\Mssa3d2.m3d
22300000 S 00011000 N L:\Vice City_04\mss\Mssds3ds.m3d
22400000 S 00014000 N L:\Vice City_04\mss\Mssds3dh.m3d
22500000 S 00014000 N L:\Vice City_04\mss\Msseax.m3d
22600000 S 00016000 N L:\Vice City_04\mss\Mssfast.m3d
22D00000 S 00062000 N L:\Vice City_04\mss\Mssrsx.m3d
22E00000 S 00019000 N L:\Vice City_04\mss\msseax3.m3d
24600000 S 00011000 N L:\Vice City_04\mss\Reverb3.flt
26F00000 S 0002A000 N L:\Vice City_04\mss\Mp3dec.asi
527F0000 S 00045000 N C:\Users\Murdock\AppData\Local\Vice City Multiplayer\04rel002\libpng15.dll
64330000 S 0073E000 N C:\Windows\system32\atiumdva.dll
64A70000 S 006BA000 N C:\Windows\system32\atiumdag.dll
65150000 S 00003000 N C:\Windows\system32\sfc.dll
66160000 S 00117000 N C:\Windows\system32\aticfx32.dll
66430000 S 0001B000 N C:\Windows\system32\atiu9pag.dll
6E1F0000 S 0000D000 N C:\Windows\system32\sfc_os.DLL
6FC40000 S 00036000 N C:\Windows\system32\AUDIOSES.DLL
6FC80000 S 00072000 N C:\Windows\system32\DSOUND.DLL
6FE70000 S 00014000 N C:\Windows\system32\MSACM32.dll
6FF10000 S 00030000 N C:\Windows\system32\dinput8.dll
6FFF0000 S 00010000 N C:\Windows\system32\NLAapi.dll
70010000 S 00006000 N C:\Windows\system32\rasadhlp.dll
70020000 S 00038000 N C:\Windows\System32\fwpuclnt.dll
70060000 S 00021000 N C:\Program Files (x86)\Bonjour\mdnsNSP.dll
70090000 S 00024000 N C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
700C0000 S 00012000 N C:\Windows\system32\pnrpnsp.dll
700E0000 S 00010000 N C:\Windows\system32\napinsp.dll
700F0000 S 00008000 N C:\Windows\System32\winrnr.dll
708F0000 S 00012000 N C:\Windows\system32\MPR.dll
70FD0000 S 000E7000 N C:\Windows\system32\ddraw.dll
71300000 S 00039000 N C:\Windows\System32\MMDevApi.dll
71460000 S 0004B000 N C:\Windows\system32\apphelp.dll
71520000 S 000F5000 N C:\Windows\System32\PROPSYS.dll
71B60000 S 0003C000 N C:\Windows\System32\mswsock.dll
71BD0000 S 00005000 N C:\Windows\System32\wshtcpip.dll
722B0000 S 00007000 N C:\Windows\system32\avrt.dll
72350000 S 00032000 N C:\Windows\system32\winmm.dll
72550000 S 0000F000 N C:\Windows\system32\samcli.dll
72B50000 S 00025000 N C:\Windows\system32\POWRPROF.dll
72D80000 S 0000E000 N C:\Windows\system32\RpcRtRemote.dll
732A0000 S 00017000 N C:\Windows\system32\USERENV.dll
73450000 S 0003B000 N C:\Windows\system32\rsaenh.dll
73490000 S 00016000 N C:\Windows\system32\CRYPTSP.dll
73780000 S 0000B000 N C:\Windows\system32\profapi.dll
73830000 S 00007000 N C:\Windows\system32\WINNSI.DLL
73840000 S 0001C000 N C:\Windows\system32\Iphlpapi.DLL
73860000 S 00044000 N C:\Windows\system32\DNSAPI.dll
73DB0000 S 00009000 N C:\Windows\system32\HID.DLL
749C0000 S 00218000 N C:\Windows\AppPatch\AcGenral.DLL
74E90000 S 00080000 N C:\Windows\system32\UxTheme.dll
74F40000 S 00006000 N C:\Windows\system32\DCIMAN32.dll
74F50000 S 00006000 N C:\Windows\system32\d3d8thk.dll
74F60000 S 00013000 N C:\Windows\system32\dwmapi.dll
75570000 S 00009000 N C:\Windows\system32\VERSION.dll
75650000 S 0000C000 N C:\Windows\syswow64\CRYPTBASE.dll
75660000 S 00060000 N C:\Windows\syswow64\SspiCli.dll
756C0000 S 00012000 N C:\Windows\syswow64\DEVOBJ.dll
756E0000 S 00019000 N C:\Windows\SysWOW64\sechost.dll
75700000 S 00135000 N C:\Windows\syswow64\urlmon.dll
75840000 S 000A0000 N C:\Windows\syswow64\advapi32.dll
758E0000 S 000CC000 N C:\Windows\syswow64\MSCTF.dll
75A30000 S 0000A000 N C:\Windows\syswow64\LPK.dll
75A40000 S 000F0000 N C:\Windows\syswow64\RPCRT4.dll
75B40000 S 0009D000 N C:\Windows\syswow64\USP10.dll
75BE0000 S 00027000 N C:\Windows\syswow64\CFGMGR32.dll
75C10000 S 0019D000 N C:\Windows\syswow64\SETUPAPI.dll
75DB0000 S 00100000 N C:\Windows\syswow64\USER32.dll
75EB0000 S 0002D000 N C:\Windows\syswow64\WINTRUST.dll
75EE0000 S 000AC000 N C:\Windows\syswow64\msvcrt.dll
76020000 S 0000C000 N C:\Windows\syswow64\MSASN1.dll
76030000 S 0011C000 N C:\Windows\syswow64\CRYPT32.dll
76250000 S 00005000 N C:\Windows\syswow64\PSAPI.DLL
76260000 S 00060000 N C:\Windows\system32\IMM32.DLL
762C0000 S 00100000 N C:\Windows\syswow64\kernel32.dll
763C0000 S 0015C000 N C:\Windows\syswow64\ole32.dll
76520000 S 001F9000 N C:\Windows\syswow64\iertutil.dll
76720000 S 00090000 N C:\Windows\syswow64\GDI32.dll
767B0000 S 00046000 N C:\Windows\syswow64\KERNELBASE.dll
76860000 S 0008F000 N C:\Windows\syswow64\OLEAUT32.dll
76970000 S 00035000 N C:\Windows\syswow64\WS2_32.dll
769B0000 S 00083000 N C:\Windows\syswow64\CLBCatQ.DLL
76A40000 S 00057000 N C:\Windows\syswow64\SHLWAPI.dll
76AA0000 S 00C49000 N C:\Windows\syswow64\SHELL32.dll
77AC0000 S 00006000 N C:\Windows\syswow64\NSI.dll
77AF0000 S 00180000 N C:\Windows\SysWOW64\ntdll.dll[/spoiler]

What is a proper way to achieve this?

dEaN

I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

Sebastian

Quote from: [NYB]fast on Jun 24, 2015, 10:35 AMthx!



He is asking for an alternative to flip the vehicle, since the old way crashes now.

Stormeus

Rotation is supposed to be a Quaternion. Did you mean EulerRotation? As for the crash I'll look into it.

Murdock

Quote from: Stormeus on Jun 24, 2015, 12:09 PMRotation is supposed to be a Quaternion. Did you mean EulerRotation? As for the crash I'll look into it.

player.Vehicle.Rotation = Quaternion( 0.0, 0.0, 0.0, 0.0 );
This seems to work, though a vector used to work in older builds as well.
Thanks :)