| QUOTE (TLFdjobaw @ Friday, Sep 14 2012, 09:25) |
i use CLEO 4.. and when i use this
| CODE | | 00A5: 0@ = create_car #RCCAM from_actor $PLAYER_ACTOR with_offset 0.0 5.5 0.3 |
when i compile it.. it turn to this
| CODE | | 0@ = Car.Create(#RCCAM, $PLAYER_ACTOR, 0.0, 5.5) |
and it make the script wont spawn the rccam.. why?? |
you mean recompiling
Option: different view of the decompiled codeChoose TOOLS, then options
in option menu GENERAL you can find the feature to switch between 2 ways for decompiling
either decompile by
writing opcodesor decompiling
without opcodes
1. Writing OpcodesAll entries are shown with their opcodes
The opcodes are the real programm codes of the script functions
and by showing them is like to see the name of the command
Script
with opcodes:| CODE |
:CARSL_6439 00D6: if 00E1: player 0 pressed_key 16 004D: jump_if_false @CARSL_6535 010B: 5@ = player $PLAYER_CHAR money 00D6: if 002D: 5@ >= 14@ // (int) 004D: jump_if_false @CARSL_6512 0012: 14@ *= -1 0109: player $PLAYER_CHAR money += 14@ 0002: jump @CARSL_6700 |
2. Without OpcodesThe script is more slim, maybe more clear (but not for me)
especially
004D: jump_if_false will be now
jfBut not all opcodes are disappeared. Many codes must be used furthermore by applying their opcodes.
Script
without opcodes:| CODE |
:CARSL_6439 if 00E1: player 0 pressed_key 16 jf @CARSL_6535 5@ = Player.Money($PLAYER_CHAR) if 002D: 5@ >= 14@ // (int) jf @CARSL_6512 14@ *= -1 Player.Money($PLAYER_CHAR) += 14@ jump @CARSL_6700 |
By compiling it doesnt matter if you use codes
with opcodes or
without opcodesYou can merge everything and sanny compile it as well,
provided that the code is correct and codelines which includes opcodes by decompiling
without opcodesmust be used furthermore by using opcodes
A special feature by decompiling
without opcodes is to translate opcode based commands into
Classes[ and
Keywords For a couple of codes can be used CLASSES
Read more about classes in Sannybuilder-HELP theme: Coding >> Classes
This code by decompiling with
writing opcodes00AB: put_car 22@ at -1577.942 52.6333 40.0will by shown by decompiling with
without opcodes in this kind:
Car.PutAt(22@, -1577.942, 52.6333, 40.0)