Difference between revisions of "Opcodes Restoration Project"
Jump to navigation
Jump to search
(Created page with "The '''Opcodes Restoration Project''' is a plugin for CLEO v2.0.0.3 and above for GTA III and Vice City that aims to restore functionality to many List of unsupp...") |
|||
Line 1: | Line 1: | ||
− | The '''Opcodes Restoration Project''' is a plugin for [[CLEO]] v2.0.0. | + | The '''Opcodes Restoration Project''' is a plugin for [[CLEO]] v2.0.0.4 and above for [[GTA III]] and [[Vice City]] that aims to restore functionality to many [[List of unsupported opcodes|unsupported opcodes]]. Only US v1.0 has been thoroughly tested. v1.1 for Vice City is supported and Steam for Vice City is partially supported but none have been tested. |
== Files == | == Files == | ||
− | *[https://www.dropbox.com/s/7niqd0us5u1s1j2/VC.Opcodes.cleo?dl=0 VC.Opcodes.cleo]: The plugin. Place in VC\CLEO\CLEO_PLUGINS. | + | *[https://www.dropbox.com/s/yw34xo81j902lxt/III.Opcodes.cleo?dl=0 III.Opcodes.cleo]: The plugin for GTA III. Place in III\CLEO\CLEO_PLUGINS. |
+ | *[https://www.dropbox.com/s/7niqd0us5u1s1j2/VC.Opcodes.cleo?dl=0 VC.Opcodes.cleo]: The plugin for Vice City. Place in VC\CLEO\CLEO_PLUGINS. | ||
*[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/demo_plugins/Opcodes/Opcodes/dllmain.cpp dllmain.cpp]: The source code for the plugin. | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/demo_plugins/Opcodes/Opcodes/dllmain.cpp dllmain.cpp]: The source code for the plugin. | ||
− | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/test_scripts/VC.OpcodesTest.cs VC.OpcodesTest.cs]: The test script for the plugin. Place in VC\CLEO. | + | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/test_scripts/III.OpcodesTest.cs III.OpcodesTest.cs]: The test script for the plugin for GTA III. Place in III\CLEO. |
− | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/test_scripts/VC.OpcodesTest.txt VC.OpcodesTest.txt]: The source code for the test script. | + | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/test_scripts/III.OpcodesTest.txt III.OpcodesTest.txt]: The source code for the test script for GTA III. |
− | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/scm.txt scm.txt]: Let [[Sanny Builder]] recognize the new opcodes. Add onto [[Sanny Builder/VCSCM.INI|VCSCM.INI]] in SB\data\vc. | + | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/test_scripts/VC.OpcodesTest.cs VC.OpcodesTest.cs]: The test script for the plugin for Vice City. Place in VC\CLEO. |
− | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/opcodes.txt opcodes.txt]: For reference. Add onto opcodes.txt in SB\data\vc. | + | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/test_scripts/VC.OpcodesTest.txt VC.OpcodesTest.txt]: The source code for the test script for Vice City. |
+ | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/scm.txt scm.txt]: Let [[Sanny Builder]] recognize the new opcodes. Add onto [[Sanny Builder/SCM.INI|SCM.INI]] in SB\data\gta3 amd [[Sanny Builder/VCSCM.INI|VCSCM.INI]] in SB\data\vc. | ||
+ | *[https://raw.githubusercontent.com/spaceeinstein/III.VC.CLEO/master/CLEO_SDK/opcodes.txt opcodes.txt]: For reference. Add onto opcodes.txt in SB\data\gta3 and SB\data\vc. | ||
+ | |||
+ | == GTA III == | ||
+ | This is a list of opcodes that have been restored and extended in GTA III. | ||
+ | {|class="wikitable mw-collapsible mw-collapsed sortable" | ||
+ | !Opcode ||Command name ||Notes | ||
+ | |- | ||
+ | |[[0116]] ||IS_<wbr>PLAYER_<wbr>STILL_<wbr>ALIVE || | ||
+ | |- | ||
+ | |[[02BD]] ||SET_<wbr>FBI_<wbr>REQUIRED || | ||
+ | |- | ||
+ | |[[02BE]] ||SET_<wbr>ARMY_<wbr>REQUIRED || | ||
+ | |- | ||
+ | |[[050F]] ||GET_<wbr>MAX_<wbr>WANTED_<wbr>LEVEL || | ||
+ | |- | ||
+ | |0511 ||PRINT_<wbr>HELP_<wbr>WITH_<wbr>NUMBER || | ||
+ | |- | ||
+ | |[[0546]] ||IS_<wbr>PLAYER_<wbr>TOUCHING_<wbr>VEHICLE || | ||
+ | |- | ||
+ | |0547 ||IS_<wbr>CHAR_<wbr>TOUCHING_<wbr>VEHICLE || | ||
+ | |} | ||
== Vice City == | == Vice City == | ||
− | This is a list of 100 opcodes that have been restored in Vice City. The "non-plugin alternative" column offers an equivalent or closely similar behavior of the opcode independent of the plugin. | + | This is a list of over 100 opcodes that have been restored in Vice City. The "non-plugin alternative" column offers an equivalent or closely similar behavior of the opcode independent of the plugin. |
{|class="wikitable center-col-3 mw-collapsible mw-collapsed sortable" | {|class="wikitable center-col-3 mw-collapsible mw-collapsed sortable" | ||
!Opcode ||Command name ||Non-plugin<br>alternative ||Notes | !Opcode ||Command name ||Non-plugin<br>alternative ||Notes | ||
Line 125: | Line 148: | ||
|- | |- | ||
|[[032D]] ||SET_<wbr>CAR_<wbr>BLOCK_<wbr>CAR || ||Has the same bug as GTA III | |[[032D]] ||SET_<wbr>CAR_<wbr>BLOCK_<wbr>CAR || ||Has the same bug as GTA III | ||
+ | |- | ||
+ | |[[0346]] ||SET_<wbr>TEXT_<wbr>BACKGROUND_<wbr>COLOUR || || | ||
|- | |- | ||
|0351 ||IS_<wbr>NASTY_<wbr>GAME || || | |0351 ||IS_<wbr>NASTY_<wbr>GAME || || | ||
Line 161: | Line 186: | ||
|- | |- | ||
|0389 ||SET_<wbr>6_<wbr>PHONE_<wbr>MESSAGES || || | |0389 ||SET_<wbr>6_<wbr>PHONE_<wbr>MESSAGES || || | ||
+ | |- | ||
+ | |0393 ||SET_<wbr>CHAR_<wbr>ANIM_<wbr>SPEED || || | ||
|- | |- | ||
|[[03A0]] ||IS_<wbr>CRANE_<wbr>LIFTING_<wbr>CAR || || | |[[03A0]] ||IS_<wbr>CRANE_<wbr>LIFTING_<wbr>CAR || || | ||
Line 171: | Line 198: | ||
|- | |- | ||
|[[03C9]] ||IS_<wbr>CAR_<wbr>VISIBLY_<wbr>DAMAGED ||✓ ||CLEO [[03C9#For Vice City|code snippet]] alternative | |[[03C9]] ||IS_<wbr>CAR_<wbr>VISIBLY_<wbr>DAMAGED ||✓ ||CLEO [[03C9#For Vice City|code snippet]] alternative | ||
+ | |- | ||
+ | |03DB ||ADD_<wbr>BLIP_<wbr>FOR_<wbr>PICKUP_<wbr>OLD || || | ||
+ | |- | ||
+ | |03DD ||ADD_<wbr>SPRITE_<wbr>BLIP_<wbr>FOR_<wbr>PICKUP || || | ||
+ | |- | ||
+ | |03E9 ||IS_<wbr>CHAR_<wbr>IN_<wbr>CONTROL || || | ||
|- | |- | ||
|[[03EC]] ||HAS_<wbr>MILITARY_<wbr>CRANE_<wbr>COLLECTED_<wbr>ALL_<wbr>CARS || || | |[[03EC]] ||HAS_<wbr>MILITARY_<wbr>CRANE_<wbr>COLLECTED_<wbr>ALL_<wbr>CARS || || | ||
+ | |- | ||
+ | |0410 ||SET_<wbr>GANG_<wbr>PED_<wbr>MODEL_<wbr>PREFERENCE || || | ||
|- | |- | ||
|[[0413]] ||SET_<wbr>GET_<wbr>OUT_<wbr>OF_<wbr>JAIL_<wbr>FREE ||✓ ||CLEO [[0413#For Vice City|code snippet]] alternative | |[[0413]] ||SET_<wbr>GET_<wbr>OUT_<wbr>OF_<wbr>JAIL_<wbr>FREE ||✓ ||CLEO [[0413#For Vice City|code snippet]] alternative | ||
+ | |- | ||
+ | |[[041B]] ||REGISTER_<wbr>KILL_<wbr>FRENZY_<wbr>PASSED || || | ||
+ | |- | ||
+ | |[[041C]] ||SET_<wbr>CHAR_<wbr>SAY || || | ||
+ | |- | ||
+ | |[[041F]] ||OVERRIDE_<wbr>HOSPITAL_<wbr>LEVEL || || | ||
+ | |- | ||
+ | |[[0420]] ||OVERRIDE_<wbr>POLICE_<wbr>STATION_<wbr>LEVEL || || | ||
|- | |- | ||
|[[0421]] ||FORCE_<wbr>RAIN || || | |[[0421]] ||FORCE_<wbr>RAIN || || | ||
Line 181: | Line 224: | ||
|- | |- | ||
|042A ||IS_<wbr>THREAT_<wbr>FOR_<wbr>PED_<wbr>TYPE || || | |042A ||IS_<wbr>THREAT_<wbr>FOR_<wbr>PED_<wbr>TYPE || || | ||
+ | |- | ||
+ | |0432 ||GET_<wbr>CHAR_<wbr>IN_<wbr>CAR_<wbr>PASSENGER_<wbr>SEAT || || | ||
+ | |- | ||
+ | |[[0444]] ||SET_<wbr>SCRIPT_<wbr>FIRE_<wbr>AUDIO || || | ||
|- | |- | ||
|[[0447]] ||IS_<wbr>PLAYER_<wbr>LIFTING_<wbr>A_<wbr>PHONE || || | |[[0447]] ||IS_<wbr>PLAYER_<wbr>LIFTING_<wbr>A_<wbr>PHONE || || | ||
Line 193: | Line 240: | ||
|- | |- | ||
|[[04C8]] ||IS_<wbr>CHAR_<wbr>IN_<wbr>FLYING_<wbr>VEHICLE || || | |[[04C8]] ||IS_<wbr>CHAR_<wbr>IN_<wbr>FLYING_<wbr>VEHICLE || || | ||
+ | |- | ||
+ | |04CC ||ADD_<wbr>SHORT_<wbr>RANGE_<wbr>BLIP_<wbr>FOR_<wbr>COORD_<wbr>OLD || || | ||
+ | |- | ||
+ | |04CD ||ADD_<wbr>SHORT_<wbr>RANGE_<wbr>BLIP_<wbr>FOR_<wbr>COORD || || | ||
|- | |- | ||
|[[050F]] ||GET_<wbr>MAX_<wbr>WANTED_<wbr>LEVEL ||✓ ||CLEO [[050F#For GTA III and Vice City|code snippet]] alternative | |[[050F]] ||GET_<wbr>MAX_<wbr>WANTED_<wbr>LEVEL ||✓ ||CLEO [[050F#For GTA III and Vice City|code snippet]] alternative | ||
Line 213: | Line 264: | ||
|- | |- | ||
|0547 ||IS_<wbr>CHAR_<wbr>TOUCHING_<wbr>VEHICLE || || | |0547 ||IS_<wbr>CHAR_<wbr>TOUCHING_<wbr>VEHICLE || || | ||
+ | |- | ||
+ | |056F ||ADD_<wbr>SHORT_<wbr>RANGE_<wbr>BLIP_<wbr>FOR_<wbr>CONTACT_<wbr>POINT || || | ||
|} | |} | ||
[[Category:Mission Scripting]] | [[Category:Mission Scripting]] |
Revision as of 08:27, 26 February 2016
The Opcodes Restoration Project is a plugin for CLEO v2.0.0.4 and above for GTA III and Vice City that aims to restore functionality to many unsupported opcodes. Only US v1.0 has been thoroughly tested. v1.1 for Vice City is supported and Steam for Vice City is partially supported but none have been tested.
Files
- III.Opcodes.cleo: The plugin for GTA III. Place in III\CLEO\CLEO_PLUGINS.
- VC.Opcodes.cleo: The plugin for Vice City. Place in VC\CLEO\CLEO_PLUGINS.
- dllmain.cpp: The source code for the plugin.
- III.OpcodesTest.cs: The test script for the plugin for GTA III. Place in III\CLEO.
- III.OpcodesTest.txt: The source code for the test script for GTA III.
- VC.OpcodesTest.cs: The test script for the plugin for Vice City. Place in VC\CLEO.
- VC.OpcodesTest.txt: The source code for the test script for Vice City.
- scm.txt: Let Sanny Builder recognize the new opcodes. Add onto SCM.INI in SB\data\gta3 amd VCSCM.INI in SB\data\vc.
- opcodes.txt: For reference. Add onto opcodes.txt in SB\data\gta3 and SB\data\vc.
GTA III
This is a list of opcodes that have been restored and extended in GTA III.
Opcode | Command name | Notes |
---|---|---|
0116 | IS_ |
|
02BD | SET_ |
|
02BE | SET_ |
|
050F | GET_ |
|
0511 | PRINT_ |
|
0546 | IS_ |
|
0547 | IS_ |
Vice City
This is a list of over 100 opcodes that have been restored in Vice City. The "non-plugin alternative" column offers an equivalent or closely similar behavior of the opcode independent of the plugin.
Opcode | Command name | Non-plugin alternative |
Notes |
---|---|---|---|
00A2 | IS_ |
✓ | Exactly the same as 8118 |
00AC | IS_ |
✓ | Exactly the same as 8119 |
00C5 | RETURN_ |
✓ | Same as 0485 for most versions |
00C6 | RETURN_ |
✓ | Same as 059A for most versions |
00E2 | GET_ |
✓ | CLEO code snippet alternative |
0113 | ADD_ |
✓ | Similar to 0114 with player character |
0116 | IS_ |
||
0130 | HAS_ |
✓ | CLEO code snippet alternative |
0135 | CHANGE_ |
✓ | Exactly the same as 020A |
0136 | SHAKE_ |
||
013B | IS_ |
||
013C | IS_ |
||
0155 | SET_ |
||
0156 | SET_ |
||
015E | IS_ |
✓ | CLEO code snippet alternative |
0163 | ADD_ |
||
0178 | IS_ |
||
0179 | IS_ |
||
017B | SET_ |
✓ | CLEO code snippet alternative |
01C6 | DONT_ |
||
0218 | PRINT_ |
||
021D | SET_ |
✓ | CLEO code snippet alternative |
021F | SET_ |
✓ | CLEO code snippet alternative |
0220 | IS_ |
✓ | CLEO code snippet alternative |
0228 | IS_ |
✓ | CLEO code snippet alternative |
023A | IS_ |
||
023B | IS_ |
||
0242 | ARM_ |
✓ | CLEO code snippet alternative |
024B | SET_ |
||
024C | SET_ |
||
024D | HAS_ |
||
0255 | RESTART_ |
||
0295 | IS_ |
||
0299 | ACTIVATE_ |
✓ | CLEO code snippet alternative |
029C | IS_ |
||
02A0 | IS_ |
||
02A4 | ADD_ |
||
02A5 | ADD_ |
||
02A6 | ADD_ |
||
02B9 | DEACTIVATE_ |
✓ | CLEO code snippet alternative |
02BC | SET_ |
||
02BD | SET_ |
||
02BE | SET_ |
||
02D6 | IS_ |
||
02EE | IS_ |
||
02F0 | DROP_ |
✓ | Similar to 0213 with model barrel1 type 9
|
02F1 | DROP_ |
✓ | Similar to 0213 with model barrel2 type 11
|
02FC | PRINT_ |
||
0300 | PRINT_ |
||
0303 | PRINT_ |
||
0305 | PRINT_ |
||
0306 | PRINT_ |
||
0309 | PRINT_ |
||
031B | IS_ |
||
031C | IS_ |
||
032D | SET_ |
Has the same bug as GTA III | |
0346 | SET_ |
||
0351 | IS_ |
||
0356 | IS_ |
||
0357 | IS_ |
||
0367 | START_ |
✓ | CLEO code snippet alternative |
036E | PRINT_ |
||
036F | PRINT_ |
||
0370 | PRINT_ |
||
0371 | PRINT_ |
||
0378 | SET_ |
||
0379 | SET_ |
||
037A | SET_ |
||
037B | SET_ |
||
037C | SET_ |
||
037D | SET_ |
||
0386 | SET_ |
||
0387 | SET_ |
||
0388 | SET_ |
||
0389 | SET_ |
||
0393 | SET_ |
||
03A0 | IS_ |
||
03A5 | CHANGE_ |
Opcode is implemented but garage type 7 is buggy in Vice City | |
03C2 | IS_ |
||
03C6 | IS_ |
Checks the current level number instead, essentially the same behavior | |
03C9 | IS_ |
✓ | CLEO code snippet alternative |
03DB | ADD_ |
||
03DD | ADD_ |
||
03E9 | IS_ |
||
03EC | HAS_ |
||
0410 | SET_ |
||
0413 | SET_ |
✓ | CLEO code snippet alternative |
041B | REGISTER_ |
||
041C | SET_ |
||
041F | OVERRIDE_ |
||
0420 | OVERRIDE_ |
||
0421 | FORCE_ |
||
0422 | DOES_ |
Has the same bug as GTA III | |
042A | IS_ |
||
0432 | GET_ |
||
0444 | SET_ |
||
0447 | IS_ |
||
047D | GET_ |
||
04A7 | IS_ |
||
04A9 | IS_ |
||
04AB | IS_ |
||
04C8 | IS_ |
||
04CC | ADD_ |
||
04CD | ADD_ |
||
050F | GET_ |
✓ | CLEO code snippet alternative |
0511 | PRINT_ |
||
0513 | PRINT_ |
||
052D | GET_ |
||
0530 | ADD_ |
||
0532 | ADD_ |
Displays as a value "out of 0" in the stats menu | |
0535 | ADD_ |
||
0537 | SET_ |
||
0538 | ADD_ |
||
0547 | IS_ |
||
056F | ADD_ |