The Dink Network

Switching status bars in-game

September 18th 2023, 05:40 PM
dinkdead.gif
Can it be done? How is it done? Has any D-Mod done it?

I have tried this:
init("load_sequence_now graphics\custom\status\stat- 180 BLACK");


But get this:
Error message
September 18th 2023, 06:17 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
I'm sure I've done it in a dmod I haven't released.. I'll check when I get home from work and if so I'll post how

EDIT: But also.. I don't think you can use the tags in an init line.. the BLACK tag might be throwing the error.
September 18th 2023, 06:53 PM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
didnt fiat do this as part of a secret rewards thing? find some shit and you can change your status bars to 1 of a few options?
September 18th 2023, 10:07 PM
dinkdead.gif
Great, found it thanks.

FIAT's code:
choice_start()
title_start();
"Change-O Status-O!"
title_end();
"Original"
"Fire"
"Stone"
"Water"
"FIAT"
"Cancel"
choice_end()
if (&result == 1)
{
init("load_sequence_now graphics\inter\menu\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\status\stat- 180 BLACK");
}
if (&result == 2)
{
init("load_sequence_now graphics\inter\alt1\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\alt1\stat- 180 BLACK");
}
if (&result == 3)
{
init("load_sequence_now graphics\inter\alt2\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\alt2\stat- 180 BLACK");
}
if (&result == 4)
{
init("load_sequence_now graphics\inter\alt3\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\alt3\stat- 180 BLACK");
}
if (&result == 5)
{
init("load_sequence_now graphics\inter\alt4\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\alt4\stat- 180 BLACK");
}
draw_status();


Hmm.
That works fine, dunno why mine doesn't.
My status bars work fine if I change the INI, just not from init in game.
September 18th 2023, 10:12 PM
dinkdead.gif
Ok more testing:
It fails in 1.08, but works fine in Freedink (whatever my old version is). But FIAT works fine in 1.08.

I can live with Freedink but ideally it should work in all versions...
September 18th 2023, 10:30 PM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
how about in dinkhd since that's weirdly enough the better version now?
September 18th 2023, 10:33 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
You still use normal 1.08?

Freedink and DinkHD are pretty superior now. Especially since they process scripts better and won't lag in situations that dink 1.08 would(lots of waits/loops/externals).

Also it's strange your status bar doesn't work but Fiat's does. Maybe it's the format the status bar is saved in? Or maybe dink 1.08 is weird and it needs to actually be in the inter folder. I dunno.

I have dmods with stat bar changes that work in freedink and DinkHD. I don't test anything in normal 108 anymore.
September 19th 2023, 12:06 AM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
i think sparrowhawk hit the kid drug too hard that he missed all the advancements here

all 2 of them
September 19th 2023, 04:29 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Are your bitmaps using the Dink palette?
September 19th 2023, 04:34 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
Actually, I remember someone else having this problem when editing my status bar and inventory layouts and saving them as a bmp, years ago.

It's definitely the settings of the bitmap file. For a quick fix, if you open it in Irfanview and simply re-save it, it'll work.
September 19th 2023, 03:20 PM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
i think that was me and scratcher or metatarasal mentioned using irfanview to fix them.
September 20th 2023, 08:02 AM
dinkdead.gif
"You still use normal 1.08?"

Yeah... have been out of Dinking for quite a while now.

"Are your bitmaps using the Dink palette?"

No, but I am using true-colour mode.

"For a quick fix, if you open it in Irfanview and simply re-save it, it'll work."

Ahah.. I vaguely remember about that being the fix to something or other. Will give it a try later.
September 20th 2023, 10:04 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
I think the BLACK keyword only works with dink palette images.
September 20th 2023, 10:13 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
I am of the conviction you would have noticed such a thing when making Pngfarmer, as the buttons and status bar would have looked weird. It should work with all graphics.
September 20th 2023, 10:17 PM
dinkdead.gif
Saving with Irfanview didn't help. Oh well, it only affects 1.08, for this project working with just HD and FreeDink is fine I guess.

In other news... I've had trouble getting arm_magic() to work in a certain script for ages. This evening I've spent over an hour trying different things to get this stupid section to work:

if(condition)
{
  &temp = get_magic("magicscript");
}
if(othercondition)
{
  &temp = get_magic("othermagicscript");
}
&cur_magic = &temp;
arm_magic();
draw_status();


And it doesn't arm!

Literally seconds before giving up and posting on here for help, I realised...

Turns out this line would have been useful:
int &temp;

/facepalm
September 20th 2023, 11:01 PM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
making sure it works in 108 is the same as making sure a game works on windows xp nowadays, anyways
September 21st 2023, 04:56 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
Yeh, ditch 108 and use freedink(or even better the latest version of yeoldedink), and DinkHD. DinkHD pretty solid. I'm even in contact with Seth and he is gonna release a new version soon which fixes a couple minor bugs I found.