The Dink Network

There's Something REALLY strange going on

December 26th 2006, 11:45 PM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
I've recently been trying to put my own graphics into my new D-mod, I've looked at tutorials and even copied stuff that people have said has worked such as "How to add custom graphics?" I followed along and downloaded the same file but it didn't work. I've tried loads of things in the Dink ini file but I can't get it to work. What I found interesting was that when I ran it in debug it came up saying:

"Dink:load_sprites: Anim ..\dink\graphics\debris\debri-01 not found."

which I thought was odd because I put in the ini file:

"load_sequence_now graphics\debris\debri-01 98"

Could someone PLEASE tell me what is going on or what am I doing wrong.
December 27th 2006, 12:26 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
The line should go like this:
"load_sequence_now graphics\debris\debri- 98"
December 27th 2006, 03:17 AM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
So would this be ok for a sequence of a barrel rolling on it's side?

load_sequence_now graphics\barrels\bar- 98 1 NOTANIM
December 27th 2006, 08:44 AM
pq_skull.gif
dinkme
Peasant He/Him India
 
NOTANIM means that the sequence in which you are loading your sprites is not animation.
So if you want to play some animation of a barrel rolling on its side, it should be something like this:

load_sequence_now graphics\barrels\bar- 98(I couldn't understand what that 1 was doing here. Was the sequence no. 981?)
December 27th 2006, 10:58 PM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
Oh yeah, thanks. I thought that I read in the dinkini-index that NOTANIM meant that it could, I can see now that I'm wrong.
the sequence was 98 (the default free one I think) and the one was something to do with the frame.
When I got the Debris one working I couldn't find it in the sprite bank in WDE but I could load it using a script, am I just blind or do I need to do something else?
December 27th 2006, 11:04 PM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
Hey I just found the Debris sprites
All is not lost
It still can't find the barrel sequence
Do you need a new line for each sprite in the sequence? That's where I thought you put the file name, e.g.
load_sequence_now graphics\barrels\bar-1 98
load_sequence_now graphics\barrels\bar-2 98 etc.etc.
I first tried it like that but then I got rid of it when I saw the scripts posted on the board.
December 27th 2006, 11:35 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
You named your files "bar-1" "bar-2"...? If that's the case, the number should always be two digits. So with that stated, they should be named "bar-01" "bar-02" and so on and so forth "bar-10" yada yada yada.

You would just load in the ini like this. The number in the name after "bar-" is the frame number. You don't include the frame number as it does all the frame numbers of that sequence in that line.

load_sequence_now graphics\barrels\bar- 98
December 27th 2006, 11:35 PM
duckdie.gif
You don't need to add a new line for each barrel graphic. As was previously said,
load_sequence_now graphics\barrels\bar-

Edit..beat me to it, wolf....
December 27th 2006, 11:58 PM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
Hmmm...

Thanks for some beautifully described instructions but something still isn't working. I'm sure it's something I'm doing not your script.

I renamed all the barrel bmps to bar01 - bar 08 as you said.
I copied your script line. load_sequence_now graphics\barrels\bar- 98
I put it in the ini file down the bottom (as you said it doesn't matter where it goes).
I tried it in WDE (after closing and reopening) and couldn't find it.
I ran my D-mod in Debug and it couldn't find it.

Edit: I found something I thought was interesting, in the Debug txt it had:
Dink:load_sprites: Anim ..\dink\graphics\barrels\bar1\- not found.
and a one for debris as well even though there was no debris line in the ini file at all.
Either it just hadn't rewrote the debug or something strange was going on.
December 28th 2006, 12:08 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Just to make sure... did you name them exactly "bar01" or "bar-01"? If you don't have the "-" in the file name you can't have it in the ini line. Also make sure they are in the correct location (folder).
December 28th 2006, 12:17 AM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
HEEEEEEEEY!!

Your a saint rabidwolf.

It WORKS

I would say I love you but that might be going a bit too far.
December 28th 2006, 12:22 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
No problem. Just remember to check these kinds of things if you can't seem to find where you went wrong and you think the coding is right
December 28th 2006, 12:39 AM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
Yeah I sure will,
thanks again
The main thing for me is working it out the first time, after that it's really easy.
Just about every command in my D-mod's scripts so far have been hard to get them to work the first time I used them, after that I can use them all the time without any trouble.
The problem I had doing graphics was there was nothing much like them, and I hadn't done anything with the ini file before.

Thanks rabidwolf, you rock, along with everyone else on the board.