#1 19-05-2011 13:32

fastman92
Registered: 16-02-2011
Posts: 11
Website

CLEO VC 05F6: ret 0 opcode crashes

My no-cd gta-vc.exe MD5 checksum: 167a5c8b31b3e0dbefa033ca24453d4e

{$CLEO}
0000: NOP

:error
wait 0
if
05EE:  key_pressed 48  // press 0
else_jump @error
05F5: call_scm_func @function params_count 0 
jump @error

:function
16@ = 0
    while 16@ < 5000 
    wait 0
    01E5: show_text_1number_highpriority GXT 'NUMBER' number 16@ time 5000 flag 1  // ~s~You need $~1~ to compete.
    end
05F6: ret 0

Game works until 05F6 is executed. Everything is written well in sample script, CLEO opcode causes problem.

Last edited by fastman92 (19-05-2011 13:33)

Offline

#2 27-12-2011 23:18

Planepics
Registered: 29-06-2010
Posts: 7

Re: CLEO VC 05F6: ret 0 opcode crashes

Hey, I'm having a similar problem, in addition to 05F5 not working work for me. My test script

05F5: call_scm_func @test_1 0
...
:test_1
05F6: ret 0

crashes the game at extremely random points depending on what's in the parameters, like 0x5ace89, 0x4bc2a3, etc. I am running CLEO v1.1.1.6, VC US v1.0

Last edited by Planepics (27-12-2011 23:20)

Offline

#3 31-12-2011 11:43

fastman92
Registered: 16-02-2011
Posts: 11
Website

Re: CLEO VC 05F6: ret 0 opcode crashes

Replace to

05F5=-1,call_scm_func %1p%
05F6=-1,ret

in Sanny Builder\vc\VICESCM.INI

Then compile your project again, it will work.

Offline

#4 02-01-2012 12:26

Planepics
Registered: 29-06-2010
Posts: 7

Re: CLEO VC 05F6: ret 0 opcode crashes

Ok, it works in a .cs external script file, but it continues to fail miserably when used in a .scm file.

Offline

Board footer

Powered by FluxBB