The Dink Network

Weird hardness error

February 23rd 2004, 04:02 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
I'm having trouble with editing the hardness of my sprites. When I edit the hardness of a sprite, save it, exit dinkedit, and launch dinkedit again, the hardness has been reset to the old hardness.

I already had this problem before, but not anymore since I've been using Ini Clean. But now, even when I Ini Clean the dink.ini, and it has all worthless lines deleted, the hardness of the last couple of edited sprites still won't change.

Anyone knows a solution to this annoying problem? I really need to know! *sob*

yah
February 23rd 2004, 05:19 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
You probably ran out of SAVE_SPRITE_INFO lines. Fixing it is a she dog... either combine multiple SAVE_SPRITE_INFO lines into a single LOAD_SEQUENCE line, or delete ones that you don't use.

To combine, say you have a sequence with six frames. Each of them has the same hard-box, but you have six seperate SAVE_SPRITE_INFO lines, so your dink.ini looks something like this:

LOAD_SEQUENCE_NOW graphics\king- 34 75
SET_SPRITE_INFO 34 1 70 112 -70 -35 70 15
SET_SPRITE_INFO 34 2 70 112 -70 -35 70 15
SET_SPRITE_INFO 34 3 70 112 -70 -35 70 15
SET_SPRITE_INFO 34 4 70 112 -70 -35 70 15
SET_SPRITE_INFO 34 5 70 112 -70 -35 70 15
SET_SPRITE_INFO 34 6 70 112 -70 -35 70 15

Instead of putting the hardbox information in the SAVE_SPRITE_INFO lines, put it in the LOAD_SEQUENCE_NOW like so:

load_sequence_now graphics\king- 34 75 70 112 -70 -35 70 15

And you just freed yourself 6 SAVE_SPRITE_INFO spots.
February 23rd 2004, 06:02 PM
custom_simon.gif
SimonK
Peasant He/Him Australia
 
Didn't redink.exe ver 0.04 fix/increase the number of SET_SPRITE_INFO lines?

Hmmm, havn't done anything in Dink for a while... and don't have time right now... (plus I'm on a Mac)
February 23rd 2004, 06:08 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Yeah, it increased it... but I don't recommend people to start using it, as end-users are unlikely to have it installed.
February 24th 2004, 03:14 AM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
Thanks a bunch!! I cleared like, 50 lines now, so that should be enough for a while. *does the happy dance*