Skip to content

Commit 4d46eb9

Browse files
Create README.md
1 parent 716e74d commit 4d46eb9

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SC-CL
2+
SC-CL is a Clang Compiler targeted towards Rockstar's scripting format.
3+
4+
Supported Targets
5+
---------------------------------
6+
* Grand Theft Auto 4
7+
* SCO format
8+
* Red Dead Redemption
9+
* SCO format
10+
* XSC format
11+
* CSC format
12+
* Grand Theft Auto 5
13+
* XSC format
14+
* CSC format
15+
* YSC format
16+
17+
Usage
18+
---------------------------------
19+
20+
```console
21+
USAGE: SC-CL.exe [options] <source0> [... <sourceN>]
22+
23+
OPTIONS:
24+
25+
Clang Options:
26+
27+
-extra-arg=<string> - Additional argument to append to the compiler command line
28+
-extra-arg-before=<string> - Additional argument to prepend to the compiler command line
29+
-p=<string> - Build path
30+
31+
Compiler Options:
32+
33+
Choose obfuscation level:
34+
-Fs - Obfuscate string table - GTA V Only
35+
-F1 - Enable low obfuscations
36+
-F2 - Enable default obfuscations
37+
-F3 - Enable high obfuscations
38+
-F4 - Enable very high obfuscations
39+
-F5 - Enable max obfuscations
40+
Choose optimization level:
41+
-g - No optimizations, enable debugging
42+
-O1 - Enable trivial optimizations
43+
-O2 - Enable default optimizations
44+
-O3 - Enable expensive optimizations
45+
-emit-asm - Emits the pre compiled ASM representation of the script
46+
-emit-asm-only - Only emits the pre compiled ASM representation of the script
47+
-hvi=<uint> - Sets the starting index for host variables to ignore
48+
-hvs=<uint> - Sets the amount of host variables to ignore
49+
-n - Disable function names in script output, Enabled when optimisations are turned on
50+
-name=<string> - File name of output script, defaults to input file name
51+
-out-dir=<string> - Specify the output directory of the script
52+
-pc-version=<uint> - Sets the pc version for use in the native translation table
53+
-platform - Choose target platform:
54+
=X360 - Target Xbox (32 bit, big endian)
55+
=PS3 - Target PS3 (32 bit, big endian)
56+
=PC - Target PC (64 bit, little endian)
57+
-pvi=<uint> - Sets the starting index for player variables to ignore
58+
-pvs=<uint> - Sets the amount of player variables to ignore
59+
-s - Limits script to one instance on runtime (GTAV)
60+
-target - Choose build target:
61+
=GTAIV - Grand Theft Auto IV (sco output)
62+
=GTAIV_TLAD - Grand Theft Auto IV The Lost and Damned (sco output)
63+
=GTAIV_TBOGT - Grand Theft Auto IV The Ballad of Gay Tony (sco output)
64+
=GTAV - Grand Theft Auto V (#sc output)
65+
=RDR_SCO - Red Dead Redemption (sco output)
66+
=RDR_#SC - Red Dead Redemption (#sc output)
67+
-vcx=<vcxproj path> - Parses source files out of a vcxproj file to allow for seamless linking in Visual Studio
68+
69+
General options:
70+
71+
-stats - Enable statistics output from program (available with Asserts)
72+
73+
Generic Options:
74+
75+
-help - Display available options (-help-hidden for more)
76+
-help-list - Display list of available options (-help-list-hidden for more)
77+
-version - Display the version of this program
78+
```

0 commit comments

Comments
 (0)