1
- An RGZ file is a proprietary compressed archive format used for [ Ragnarok Online] ( Ragnarok_Online " wikilink ") , developed
1
+ # RGZ
2
+
3
+ An RGZ file is a proprietary compressed archive format used for [ Ragnarok Online] ( https://en.wikipedia.org/wiki/Ragnarok_Online ) , developed
2
4
by [ Gravity] ( http://en.wikipedia.org/wiki/Gravity_(company) ) . It is used for patching the local file system directory,
3
5
the game client resides in. The archive mostly contains updated game executable or new background music files. The
4
6
extension is always ** .rgz** and might be an abbreviation for ** ragnarok+gzip** .
@@ -42,52 +44,49 @@ entry is always **end**.
42
44
43
45
### Hex Workshop Definition File (ragnarok.hsl)
44
46
45
- ` /******************** `
46
- ` * `
47
- ` * Ragnarok Resource files to view and edit `
48
- ` * `
49
- ` */ `
50
-
51
- ` #include "standard-types.hsl" `
52
-
53
- ` #pragma displayname("Ragnarok GZip") ; `
54
- ` #pragma fileextensions(".rgz") ; `
55
-
56
- ` #pragma byteorder(little_endian) `
57
- ` //#pragma maxarray(65536) `
58
- ` #pragma hide() `
59
-
60
- ` struct FILESTRUCT `
61
- ` { `
62
- ` BYTE type; `
63
- ` `
64
- ` struct tagFILENAME `
65
- ` { `
66
- ` BYTE length; `
67
- ` char string[length]; `
68
- ` }; `
69
- ` `
70
- ` switch (type) `
71
- ` { `
72
- ` case 0x66: `
73
- ` struct FILECONTENTS `
74
- ` { `
75
- ` DWORD length; `
76
- ` blob contents[length]; `
77
- ` }; `
78
- ` break; `
79
- ` default: `
80
- ` `
81
- ` break; `
82
- ` }; `
83
- ` `
84
- ` }; `
85
- ` #pragma show() `
86
-
87
- ` struct files `
88
- ` { `
89
- ` struct FILESTRUCT entries[256]; `
90
- ` }; `
47
+ ``` C
48
+ /* *******************
49
+ *
50
+ * Ragnarok Resource files to view and edit
51
+ *
52
+ */
53
+ #include " standard-types.hsl"
54
+ #pragma displayname("Ragnarok GZip") ;
55
+ #pragma fileextensions(".rgz") ;
56
+ #pragma byteorder(little_endian)
57
+ // #pragma maxarray(65536)
58
+ #pragma hide()
59
+ struct FILESTRUCT
60
+ {
61
+ BYTE type;
62
+
63
+ struct tagFILENAME
64
+ {
65
+ BYTE length;
66
+ char string[ length] ;
67
+ };
68
+
69
+ switch (type)
70
+ {
71
+ case 0x66:
72
+ struct FILECONTENTS
73
+ {
74
+ DWORD length;
75
+ blob contents[ length] ;
76
+ };
77
+ break;
78
+ default:
79
+
80
+ break;
81
+ };
82
+
83
+ };
84
+ #pragma show()
85
+ struct files
86
+ {
87
+ struct FILESTRUCT entries[ 256] ;
88
+ };
89
+ ```
91
90
92
91
## Tools
93
92
@@ -97,6 +96,6 @@ entry is always **end**.
97
96
98
97
## See Also
99
98
100
- - [ GRF] ( GRF " wikilink " )
99
+ - [ GRF] ( ./grf.md )
101
100
102
101
[ Category: File Formats] ( Category:File_Formats " wikilink ")
0 commit comments