The Dink Network

Dink.ini naming issues

November 28th 2002, 12:25 AM
stonegiant.gif


OK guys, i have a real big ass question:

in WDE or DE, when you select the sprites, you see the sprite selection screen, with all the sprite boxes there... when you click onto one of hose boxes, you see all the sprites from that sequence number. I understand that all _animations_ are put in a group of their own, and the game engine simply runs through the sprite files in the correct order.

OK, so what about non-animation sprites? i know you can add them to the groupings by themselfs, by doing something like this:

load_sequence graphicsstructvikinggh- 850 NOTANIM

but what do i do, when i want to get some more sprites, with different filenames, into that same group? Also, how does the numbering work? i have heard about sequences starting in multiples of 10 (like for the base walk/attack animation), but there are more then 10 sprites in the "inner" screens!

man, i hope someone can make this understandable to me
November 28th 2002, 04:15 AM
old.gif
Sequences:

You are right, You need 20 sequences for 1 guy:

example:

---------------------

810 ( leave empty )

811 ( dude walks sw )

812 ( dude walks s )

813 ( dude walks se )

814 ( dude walks w )

815 ( dude is dead )

816 ( dude walks e )

817 ( dude walks nw )

818 ( dude walks n )

819 ( dude walks ne )

---------------------

820 ( leave empty )

821 ( dude attacks sw )

....

....

....

....

829 ( dude attacks ne )

what happens when he attacks ne??? Dinkengine will play every frame in 829... Simple

What happens when he walks sw? Dinkengine will play every frame in 811

you get the point, if you done that, make sure when you place him that you add this to his script:

sp_base_walk(&current_sprite, 810);

sp_base_attack(&current_sprite, 820);

You cannot put different filenames in the same group, give them the same name...

November 28th 2002, 09:14 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
: Sequences:

: You are right, You need 20 sequences for 1 guy:

: example:

: ---------------------

: 810 ( leave empty )

: 811 ( dude walks sw )

: 812 ( dude walks s )

: 813 ( dude walks se )

: 814 ( dude walks w )

: 815 ( dude is dead )

: 816 ( dude walks e )

: 817 ( dude walks nw )

: 818 ( dude walks n )

: 819 ( dude walks ne )

: ---------------------

: 820 ( leave empty )

: 821 ( dude attacks sw )

: ....

: ....

: ....

: ....

: 829 ( dude attacks ne )

: what happens when he attacks ne??? Dinkengine will play every frame in 829... Simple

: What happens when he walks sw? Dinkengine will play every frame in 811

: you get the point, if you done that, make sure when you place him that you add this to his script:

: sp_base_walk(&current_sprite, 810);

: sp_base_attack(&current_sprite, 820);

: You cannot put different filenames in the same group, give them the same name...

Eh, no, you can't give several files the same name.

What you do is:

file-01.bmp

file-02.bmp

file-03.bmp

...

file-20.bmp

...

file-49.bmp

like so. Then in Dink INI, you load them like you did, "load_sequence graphicsfile-"
November 28th 2002, 09:25 AM
old.gif
;;You cannot put different filenames in the same

;;group, give them the same name...

;Eh, no, you can't give several files the same

;name.

hey, phoenix, you dont have to repeat me
November 28th 2002, 09:50 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
: ;;You cannot put different filenames in the same

: ;;group, give them the same name...

: ;Eh, no, you can't give several files the same

: ;name.

: hey, phoenix, you dont have to repeat me

Tell me what I repeated that you said, and I'll apologize. I did not say one thing that you did, so stfu.
November 28th 2002, 01:54 PM
old.gif
Every thing I said,

I said: You need to give them the same name:

like: file-01.bmp

file-02.bmp

then you say: No you cannot give them the same name, do it like this: file-01, file-02...

I think thats the same...
November 28th 2002, 03:03 PM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
No, you just wasn't very clear.

--WC
November 28th 2002, 04:05 PM
stonegiant.gif
: Every thing I said,

: I said: You need to give them the same name:

: like: file-01.bmp

: file-02.bmp

: then you say: No you cannot give them the same name, do it like this: file-01, file-02...

dang, thats a bt of a pain then... I can't put the "wells" with the "fountains", unless i call them by the same name... hmmm...

BTW, what is the max. frame number?? it's around 900, right?
November 29th 2002, 06:30 AM
old.gif
1000 sequences, 50 frames in 1 sequence, so you can import 50000 bmps in the game...
November 30th 2002, 09:37 AM
wizardg.gif
Paul
Peasant He/Him United States
 
: 1000 sequences, 50 frames in 1 sequence, so you can import 50000 bmps in the game...

Actually, I'm not 100% sure on this but I think it actually only goes up to 999, But maybe 0 works, I haven't tested it.