Hey guys,
I need some help from coders. So, basically, my problem is that when I create new .DT1's and open them in DS1 Editor some of the tiles are cut on top, however in game they are displayed normally.
I found the problem and managed to fix it. The problem is in the "Height" of the wall tile. The values that is generated is always higher than it should be. (the lower the values = the higher box, the higher the values=the lower the box). I fixed it by changing the byte to a lower value in Hex Editor. But now, I have to find all the tiles in Hex Editor and it's more than a hundred tiles, so doing it manually is gonna take me forever. Can someone write a script that finds these "Height" bytes values and fixes them to a defined lower values? Or another way of fixing it can be adding the "Height" and "Width" parameters to the .ini file of .dt1.
P.S. oh and by the way - I'm doing this for the community. I'm preparing the release of all Arcanum tilesets for D2.
EDIT: I guess I would need a script something like this:
1.Skip 284 bytes
2.Decrease value by 'x' pixels
3.Skip 92 bytes
4.Decrease value by 'x' pixels
3.Skip 92 bytes
4.Decrease value by 'x' pixels
etc
The script must repeat this thing 'y' number of times. Y=number of tiles in the .dt1. The script can take this from 10C hex address. Again, I'm not a programmer, it's just how I imagine this might look like.
[Fixed] 'Height' bug in .DT1
Moderators: Nefarius, Havvoric
[Fixed] 'Height' bug in .DT1
Last edited by jetaman on Sun Apr 01, 2018 3:55 pm, edited 1 time in total.
Re: Fix the 'Height' bug in DT1
Something like this?
upd:
("open" button fixed)
upd:
("open" button fixed)
You do not have the required permissions to view the files attached to this post.
Re: Fix the 'Height' bug in DT1
Thanks, it worked. You did a good job! I will soon release the first tileset.
P.S. Maybe its a good idea to Upload the tool on File Center.
P.S. Maybe its a good idea to Upload the tool on File Center.
Re: Fix the 'Height' bug in DT1
It seems like I found the reason for the Height bug. The source .pcx image that you convert to .dt1 should have size in power of 32. In this case my image had 500 pixels height. I changed it to 512 px and the bug is gone