Y.A.K.E Advanced Cheater
Reputation: 0
Joined: 15 Jul 2019 Posts: 56
|
Posted: Wed Oct 11, 2023 12:48 pm Post subject: How to use Lua to load .cxs files? |
|
|
I want to update the structure of the network. user run trainer to update the structure.
| Code: | int = getInternet("ce")
result = int.getURL("my web server/terraria.csx") |
How to load structure web txt?
Save as a local file and then load it?
How to use Lua to load .cxs files?
terraria.csx(a part,forum can't upload .csx file)
| Code: |
<Structures>
<Structure Name="Player" AutoFill="0" AutoCreate="1" DefaultHex="0" AutoDestroy="0" DoNotSaveLocal="0" RLECompression="1" AutoCreateStructsize="4096">
<Elements>
<Element Offset="4" Vartype="8 Bytes" Bytesize="8" OffsetHex="00000004" Description="entityId" DisplayMethod="unsigned integer"/>
<Element Offset="12" Vartype="4 Bytes" Bytesize="4" OffsetHex="0000000C" Description="whoAmI" DisplayMethod="unsigned integer"/>
<Element Offset="16" Vartype="4 Bytes" Bytesize="4" OffsetHex="00000010" Description="oldDirection" DisplayMethod="unsigned integer"/>
<Element Offset="20" Vartype="4 Bytes" Bytesize="4" OffsetHex="00000014" Description="direction" DisplayMethod="unsigned integer"/>
<Element Offset="24" Vartype="4 Bytes" Bytesize="4" OffsetHex="00000018" Description="width" DisplayMethod="unsigned integer"/>
<Element Offset="28" Vartype="4 Bytes" Bytesize="4" OffsetHex="0000001C" Description="height" DisplayMethod="unsigned integer"/>
<Element Offset="32" Vartype="Byte" Bytesize="1" OffsetHex="00000020" Description="active" DisplayMethod="unsigned integer"/>
<Element Offset="33" Vartype="Byte" Bytesize="1" OffsetHex="00000021" Description="wet" DisplayMethod="unsigned integer"/>
<Element Offset="34" Vartype="Byte" Bytesize="1" OffsetHex="00000022" Description="shimmerWet" DisplayMethod="unsigned integer"/>
</Elements>
</Structure>
<Structure Name="Item" AutoFill="0" AutoCreate="1" DefaultHex="0" AutoDestroy="0" DoNotSaveLocal="0" RLECompression="1" AutoCreateStructsize="4096">
<Elements>
<Element Offset="4" Vartype="8 Bytes" Bytesize="8" OffsetHex="00000004" Description="entityId" DisplayMethod="unsigned integer"/>
<Element Offset="12" Vartype="4 Bytes" Bytesize="4" OffsetHex="0000000C" Description="whoAmI" DisplayMethod="unsigned integer"/>
<Element Offset="16" Vartype="4 Bytes" Bytesize="4" OffsetHex="00000010" Description="oldDirection" DisplayMethod="unsigned integer"/>
<Element Offset="20" Vartype="4 Bytes" Bytesize="4" OffsetHex="00000014" Description="direction" DisplayMethod="unsigned integer"/>
<Element Offset="24" Vartype="4 Bytes" Bytesize="4" OffsetHex="00000018" Description="width" DisplayMethod="unsigned integer"/>
<Element Offset="28" Vartype="4 Bytes" Bytesize="4" OffsetHex="0000001C" Description="height" DisplayMethod="unsigned integer"/>
<Element Offset="32" Vartype="Byte" Bytesize="1" OffsetHex="00000020" Description="active" DisplayMethod="unsigned integer"/>
</Elements>
</Structure>
</Structures>
|
| Description: |
|
| Filesize: |
223.02 KB |
| Viewed: |
1537 Time(s) |

|
|
|