Dink Smallwood C D: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks m (Ikskoks moved page Dink Smallwood D to Dink Smallwood C D) |
imported>Ikskoks |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{GRAFPageHeader}} | {{GRAFPageHeader}} | ||
== D == | == C, D == | ||
* ''' Format Type ''': Text / Script <br> | * ''' Format Type ''': Text / Script <br> | ||
=== Format Specifications (*.C files) === | |||
=== Format Specifications === | <div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | ||
<pre> | |||
x bytes (char) - uncompressed script data | |||
</pre> | |||
</div> | |||
=== Format Specifications (*.D files) === | |||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | <div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | ||
<pre> | <pre> | ||
x bytes (char) - compressed script data | x bytes (char) - compressed script data | ||
</pre> | |||
</div> | |||
=== Example === | |||
Below is example of the content from decompressed '''water.d''' file from Dink Smallwood HD: | |||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | |||
<pre> | |||
void hit( void) | |||
{ | |||
Say("Yum, water!", 1); | |||
} | |||
</pre> | </pre> | ||
</div> | </div> | ||
| Line 20: | Line 39: | ||
* Files with this format contain scripts written in [https://dink.fandom.com/wiki/DinkC DinkC] language. They should have ".c" extension after decompressing to be recognized by game engine. | * Files with this format contain scripts written in [https://dink.fandom.com/wiki/DinkC DinkC] language. They should have ".c" extension after decompressing to be recognized by game engine. | ||
* Files are compressed | * Files with ".c" extension are normal text files, while files with ".d" extension are compressed. | ||
* Dink's .d files are compressed using the '''Binary Pair Encoding''' algorithm, using one single block. Decompression function can be found [https://github.com/svn2github/DinkSmallwoodHD/blob/master/source/dink/misc_util.cpp here]. | |||
=== Games === | === Games === | ||
| Line 30: | Line 50: | ||
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Dink%20Smallwood%20HD/dink_smallwood_hd_text_tool.cpp dink_smallwood_hd_text_tool.cpp] | * [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Dink%20Smallwood%20HD/dink_smallwood_hd_text_tool.cpp dink_smallwood_hd_text_tool.cpp] | ||
* [http://ftp.gnu.org/gnu/freedink/freedink-109.6.tar.gz freedink] (contrib\d2c.c) | |||
* [http://www.dinknetwork.com/file/windinkedit_plus_2/ WinDinkedit Plus 2] (can both compress and decompress scripts) | |||
<br/><br> | <br/><br> | ||
[[Category:Complete Complete|Dink Smallwood D]] | [[Category:Complete Complete|Dink Smallwood C D]] | ||
[[Category:Platform PC|Dink Smallwood D]] | [[Category:Platform PC|Dink Smallwood C D]] | ||
[[Category:CE Compressed|Dink Smallwood D]] | [[Category:CE Compressed|Dink Smallwood C D]] | ||
[[Category:Format_Text | Type: Text]] | [[Category:Format_Text | Type: Text]] | ||
[[Category:Extension_c | Extension: c]] | |||
[[Category:Extension_d | Extension: d]] | [[Category:Extension_d | Extension: d]] | ||
[[Category:BMS_None | BMS: None]] | [[Category:BMS_None | BMS: None]] | ||
[[Category:Custom compression]] | [[Category:Custom compression]] | ||
[[Category:File Format]] | [[Category:File Format]] | ||
Latest revision as of 19:18, 1 June 2021
Back to index | Edit this page
C, D
- Format Type : Text / Script
Format Specifications (*.C files)
x bytes (char) - uncompressed script data
Format Specifications (*.D files)
x bytes (char) - compressed script data
Example
Below is example of the content from decompressed water.d file from Dink Smallwood HD:
void hit( void)
{
Say("Yum, water!", 1);
}
MultiEx BMS Script
Not written yet.
Notes and Comments
- Files with this format contain scripts written in DinkC language. They should have ".c" extension after decompressing to be recognized by game engine.
- Files with ".c" extension are normal text files, while files with ".d" extension are compressed.
- Dink's .d files are compressed using the Binary Pair Encoding algorithm, using one single block. Decompression function can be found here.
Games
List of games using this file format:
- Dink Smallwood
- Dik Smallwood HD
Compatible Programs
- dink_smallwood_hd_text_tool.cpp
- freedink (contrib\d2c.c)
- WinDinkedit Plus 2 (can both compress and decompress scripts)