Swords of Glass names format
The names of items in Swords of Glass is stored in the CNames.dat file. The file is fixed-width and stores 49 items.
|UINT8 Name length||The length of the item's name. Always 0x0A.|
|char Name||The name of the item.|
This FreeBASIC program will export each of the game's item names into a text file.
Dim As Integer ItemNo Dim As String Buffer = Space(10) Dim As UByte Length Open "CNames.dat" For Binary As #1 Open "CNames.txt" For Binary As #2 For ItemNo = 0 To 48 Get #1, , Length Get #1, , Buffer Put #2, , "Item: " + Str(ItemNo) + " - " + Left(Buffer, Length) + Chr(13) + Chr(10) Next ItemNo
This format was reverse engineered by TheAlmightyGuru. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)