You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* reimplemented source code for functions of the original game.
46
+
* data structures.
47
+
* other code.
48
+
49
+
Contributing functions
50
+
+++++++++++++++++++++++
51
+
52
+
The functions of the original game are referenced by address.
53
+
54
+
The 1.41 Latin version of the Stronghold Crusader.exe is used as the reference version.
55
+
56
+
For example, the function that checks if X and Y coordinates are valid coordinates lives at address 0x401000.
57
+
58
+
Since the names of functions and variables may change (improve), you can refer to the function using the address instead.
59
+
60
+
Compilation
61
+
++++++++++++
62
+
63
+
When compiling OpenSHC, the addresses are resolved for the build target.
64
+
For example, if OpenSHC is being compiled for Extreme, the addresses resolve to the address for the Stronghold_Crusader_Extreme.exe
65
+
66
+
In order to make explicit which version you are referring to, or in case a function does not exist in the reference version, you can use the ``shce::0x401000`` syntax.
67
+
Note that the part between `::` is for specifying a specific hash if necessary, e.g. ``shc:92fac0d0:0x401000``
0 commit comments