The Dink Network

Loading Graphic Sequences

January 11th 2007, 11:10 PM
duckdie.gif
RadFrog
Peasant They/Them
 
I have read everything I can find on the subject of load_sequence and load_sequence now, but am still confused. One person states that to load original sequences, I should use sequence numbers starting "around" 850.

I have looked at the files for all the DMOD's source codes I can find, and it appears none of the programmers do that. Evidentally, they load their sequences over (replace) existing sequences.

Is replacing, rather than adding, an advantage? If so, is it a memory usage consideration?

Is there a list somewhere that cautions what sequences can be used withiout conflicting with the ones loaded by the Dink engine?
January 12th 2007, 01:47 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Actually a lot of programmers do that. But if you have a lot of graphics you have to replace some old ones since there's a limit of 1000 sequence numbers.
Most of the time I use sequence numbers that are still empty, examples are 197-199 and 34-39, these numbers can be found by looking which numbers can not be found. So starting with sequences higher than 850 is just a way to be sure that your new sprites don't interfere with other sprites.
Be aware not to place your sequences within the 10 places reserved for one enemy. So that means that when you see that the spikes reserve 841 and 843 you shouldn't use sequences between 840-849, since Dink sees these sequences as enemy sprites.

If you're replacing existing sprites, make sure that you remove the old ones first.
January 12th 2007, 07:26 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Actually, it's okay to have a sequence loaded in the 0 slot of an enemy I think. And if you set a base death for the enemy, possibly the 5th slot of that enemy as well. But that would be the only condition since the game looks to that 5th slot of the enemy if no base_death is provided.

So if an enemy used 840-849, you could still use 840. If the enemy has a base death set, then you could use 845. I think that should work.

Also for some empty slots: 98, 99, 100, and maybe 105.