How to add custom graphics?
Ok, so I downloaded the debris bmp pack, brought it home on my crappy floppy, then realized I have no idea how to intergrate it into my D-Mod. Please help me yet again...
Thanks in advance,
Echo
Thanks in advance,
Echo
Some graphic packs come with ini lines, but it just so happens that this one doesn't
First thing you have to do is put the graphics in a folder in the graphics folder of your DMOD. I think the graphics are in a folder called debris, so just put the whole folder right there in the graphics folder. Next you have to add the proper ini lines. It might look really confusing with all the numbers, but you only need the first number (the second number as well if it's a sequence). That first number sets what sequence it is. The second is frame delay, and the rest of the numbers are hardbox/depth dot. So with that being said, use this line:
load_sequence_now graphics\debris\debri- 98
The first part is telling dink.ini to load a graphic. The next big chunk is where it is located. debri- is what the individual files are called excluding the numbers. The numbers of the files are their frames. Sequence 98 is unused by default, so if you haven't put something in that sequence slot, that exact line should work.
load_sequence_now graphics\debris\debri- 98
The first part is telling dink.ini to load a graphic. The next big chunk is where it is located. debri- is what the individual files are called excluding the numbers. The numbers of the files are their frames. Sequence 98 is unused by default, so if you haven't put something in that sequence slot, that exact line should work.
Thanks,
Where would I put that line in dink.ini
Once again, thanks for a well detailed explination to help me.
Echo
Where would I put that line in dink.ini
Once again, thanks for a well detailed explination to help me.
Echo
It doesn't really matter in which order the lines are in the ini file, but you might want to group similar things together so that you can find 'em later if you need to
I put all the lines that I add at the very bottom and group the appropriate set_sprite_info lines with them. Though, it doesn't matter (well for the most part anyways). Something like this:
//Debris
load_sequence_now...
set_sprite_info...
If you're wondering by what I mean by "for the most part", there is an instance that is in the main dink.ini. That is for replacing a sequence with another set of graphics. In that case, the sequence with the most frames should be loaded first. The specific instance was Dink's sword swinging graphics had to be loaded before his punching graphics.
//Debris
load_sequence_now...
set_sprite_info...
If you're wondering by what I mean by "for the most part", there is an instance that is in the main dink.ini. That is for replacing a sequence with another set of graphics. In that case, the sequence with the most frames should be loaded first. The specific instance was Dink's sword swinging graphics had to be loaded before his punching graphics.








