Reply to dat-file disentangler
If you don't have an account, just leave the password field blank.
December 14th 2010, 07:18 AM

shevek


Hi,
I'm new here; I tried to create an account, but didn't get a confirmation mail so far.
Anyway, I'm using Debian GNU/Linux and freedink, which also includes dinkedit. Looking at the videos, this is a lot less impressive than the editor in Windows.
I'm mostly using the editor to cheat. If I get stuck somewhere, and need to reach a certain place, I want to look up from where I can get there. This can often be done by reading the scripts in the story directory, but sometimes I need to know where a certain object is located. For that, I want to be able to search such a thing.
The sort of search I want is "in which room is the object which links to the script with this name?"
For this reason, I wrote a script in Python which reads map.dat, dink.dat and hard.dat, and outputs a plethora of text files (and images, for hard.dat). Then I can simply search those files with normal tools ("grep" in particular).
I'm not (yet) into dmod-making, but if I am going to do that, I will want to reverse the script as well: after modifying the text files, it should be able to create the .dat-files from them. This is very useful for generating maps, I think. This part of the script is not implemented so far. However, if people want that I might do it sooner. If you know some python, nothing's stopping you to do it sooner, of course.
Here's a link:
http://a83-163-111-92.adsl.xs4all.nl/dink-split
You need to have Python installed to run it. Run it from the dmod-directory and it will create a directory named "split-out", in which all the created files are. This directory must not already exist; if it does it fails.
Please let me know what you think about this.
Thanks,
shevek
I'm new here; I tried to create an account, but didn't get a confirmation mail so far.
Anyway, I'm using Debian GNU/Linux and freedink, which also includes dinkedit. Looking at the videos, this is a lot less impressive than the editor in Windows.
I'm mostly using the editor to cheat. If I get stuck somewhere, and need to reach a certain place, I want to look up from where I can get there. This can often be done by reading the scripts in the story directory, but sometimes I need to know where a certain object is located. For that, I want to be able to search such a thing.
The sort of search I want is "in which room is the object which links to the script with this name?"
For this reason, I wrote a script in Python which reads map.dat, dink.dat and hard.dat, and outputs a plethora of text files (and images, for hard.dat). Then I can simply search those files with normal tools ("grep" in particular).
I'm not (yet) into dmod-making, but if I am going to do that, I will want to reverse the script as well: after modifying the text files, it should be able to create the .dat-files from them. This is very useful for generating maps, I think. This part of the script is not implemented so far. However, if people want that I might do it sooner. If you know some python, nothing's stopping you to do it sooner, of course.

Here's a link:
http://a83-163-111-92.adsl.xs4all.nl/dink-split
You need to have Python installed to run it. Run it from the dmod-directory and it will create a directory named "split-out", in which all the created files are. This directory must not already exist; if it does it fails.
Please let me know what you think about this.
Thanks,
shevek