Switching status bars in-game
Can it be done? How is it done? Has any D-Mod done it?
I have tried this:
But get this:
Error message
I have tried this:
init("load_sequence_now graphics\custom\status\stat- 180 BLACK");
But get this:
Error message
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.
EDIT: But also.. I don't think you can use the tags in an init line.. the BLACK tag might be throwing the error.
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?
Great, found it thanks.
FIAT's code:
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.
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.
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...
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...
how about in dinkhd since that's weirdly enough the better version now?
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.
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.
i think sparrowhawk hit the kid drug too hard that he missed all the advancements here
all 2 of them
all 2 of them
Are your bitmaps using the Dink palette?
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.
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.
i think that was me and scratcher or metatarasal mentioned using irfanview to fix them.
"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.
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.
I think the BLACK keyword only works with dink palette images.
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.
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:
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:
/facepalm
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
making sure it works in 108 is the same as making sure a game works on windows xp nowadays, anyways
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.