View Full Version : Slight help needed
Right, Diamond Mine Dizzy is almost ready for release, i'm just checking through it to make sure there are no errors in any of the puzzles i updated the code for.
I need help with a couple of bits tho, firstly, is there anyway to change the colour of the border on message1 so it's different to message2, without me changing every message? i think there must be, but i can't find it...
second, how do you change the game icon, as Peter has done for Treasure Island and POTYF?
thanks in anticipation!
right, forget the first one, i've found it.
gonna have a look at the second problem now...
i have an icon ready to use, and i know how to change the icon normally, but the normal way doesn't seem to work for DizzyAge....:dizzy_frown:
xelanoimis
09-03-07, 06:43 AM
The icon is inside the executable file, like usual for such files.
To change it, I recommend Resource Hacker, that is free for download at
http://angusj.com/resourcehacker
You will have to replace the old icon resource with the new one.
However, the default icon contains in fact two icons 32x32 and 16x16, that are different, to
avoid Windows scalling the 32x32 icon into an ugly 16x16
I don't know if you can change both of them with the Resource Hacker tool, but if you
want send me the icon(s) at 256 colors (32x32 and 16x16) and I'll send you the changed executable file.
If PTeal changes his icon(s) with another tool, I guess he will explain it here.
I I better make a tool to change the icons directly, without other additionak hacking :)
Maybe for v2.0
I use resoure hacker too :)
although i haven't yet managed to get it to put in a 16x16 icon, when i try that it replaces the original 32x32.
Will it be possible to use larger icon sizes? as i believe vista you can use icons up to 128x128 i believe
xelanoimis
09-03-07, 08:35 AM
To set both or more icons sizes, you must have such icon.
It's a single .ico file that contains more sub-icons inside.
Higher sizes could be supported, but Windows is not very standard about them and
I don't know how they are selected and displayed in Vista.
I guess they will show ok on the desktop, but in the corner of the application window
it will still be the 16x16 version. I don't have Vista to try it on.
The original icon in the default template is made this way, using VisualStudio and it's the
same as the icon from the executable's resources.
I don't know other icons making tools that allows you to do so.
I'll think of a tool to make it easier to create or change them.
xelanoimis
09-03-07, 09:36 AM
I found this free tool that seems to do the expected thing with the icons.
http://www.towofu.net/soft/e-aicon.php
If anyone has time to download it and check it out, let us know if it works and
if it creates indeed ico files with multiple icons inside. Then use them with the resource hacker to
place them in DizzyAGE exe file.
I've had a look at the program but i can't work it out :v2_dizzy_crazy:
But i did download the free version of microangelo and that did work :cool:
thank you all!
i've downloaded resourcehacker and used it to change the icon.
if you load the original icon in GIMP peter, the 16x16 is a seperate layer.
so now it's all done.... woooo!
i'll be e-mailing the finished version to Alex tonight.
right, i've e-mailed the finished game to Alex, so hopefully it'll be up on the DizzyAGE site within a few days! :)
oh and i've asked him not to post the walkthrough on the site just yet, cause it is quite a hard game, and i don't want the answers to be there at the click of a mouse just yet...
i've tried to recreate the feel of the original games as much as possible, and that also means not having a walkthrough to hand... :p
anyway, hope y'all enjoy it!
Neato its on the site already. Will be trying it out when I get back from work.
ok, i'm wanting to move the energy bar and lives bar slightly, but i cannot for the life of me find the coding for it...
i've looked through every .gs file, but nothing stands out...
help!
look in handlers.gs for....
func HandlerDrawHud()
{
// LOADING SCREEN
if(!GameGet(G_RESTART))
{
loadidx = TileFind(6);
HudDrawTile( loadidx, 0,0,256,192, 0,0,256,192, 0, 0 );
return;
}
menuidx = TileFind(1);
fontidx= TileFind(4);
HudShader( 0 );
HudColor( 0xffffffff );
// cover
if(GameGet(G_COVER))
HudDrawTile( menuidx, 8,48,240,136, 8,48,240,136, 0, 0 );
// dialogs
for(i=0;i<DlgCount();i++)
DialogDraw(i);
// menu
HudShader( 0 );
HudColor( 0xffffffff );
HudDrawTile( menuidx, 0,0,256,48, 0,0,256,48, 0, 0 );
HudDrawTile( menuidx, 0,48,8,136, 0,48,8,136, 0, 0 );
HudDrawTile( menuidx, 248,48,8,136, 248,48,8,136, 0, 0 );
HudDrawTile( menuidx, 0,184,256,8, 0,184,256,8, 0, 0 );
// lifebar
lifeidx = TileFind(2);
w = 55*PlayerGet(P_LIFE)/100;
h = 6;
HudDrawTile( lifeidx, 152, 5, w, h, 0, 0, w, h, 0, 0 );
// credits
HudColor( 0xffffff00 );
for(i=0;i<PlayerGet(P_CREDITS);i++)
HudDrawText( fontidx, 78+i*8,4,8,8, "@", 0 );
// coins
text = (str "%02i")PlayerGet(P_COINS);
w = HudGetTextWidth(text);
HudDrawText( fontidx, 56-w/2,4,w,8, text, 0 );
// title
rx = GameGet(G_ROOMX);
ry = GameGet(G_ROOMY);
w = HudGetTextWidth(RoomGetName(rx,ry));
HudDrawText( fontidx, 128-w/2,29,w,8, RoomGetName(rx,ry), 0 );
}
ahahaha!
thank you!
i thought i'd seen it somewhere when changing something in Diamond Mine, but i couldn't find it again!
doh!
Humbert
24-03-09, 04:06 PM
Resurrecting an old topic, but as it's much the same issue I figured I wouldn't start a new thread...
I've tried everything to change the icon properly with ResHacker and I just can't.
At first, before learning of the multiple layers on the ICO file in GIMP (thanks, delta!) I was just trying to change it to a single 32x32 icon. But when I increased the size of the icons in my window properties (I'm using Vista) it defaulted to the original DizzyAGE icon which shouldn't have even been there any more!
I've since created a multiple layer icon, which worked for the two smallest sizes of viewing, but when I went to view from "medium" on up in Vista it defaulted to the old DizzyAGE logo again.
Then I decided to try adding a 64x64 icon layer (Vista does up to 128x128 I believe) it never showed that at all. I tried to go back to just the smaller ones - and then all sorts of weird things started happening.
Even when I deleted the "dizzy.exe" file and replaced it with the default one, and then replaced the icon with a test one (just added blobs) it started to display it with my modified one with Captain Dizzy. This shouldn't have even have been possible! That version of the file never had that icon associated with it.
So I tried a version of the file (downloaded from where I put the beta version) and unzipped it to a folder where I had done absolutely no monkeying around with it. There, I couldn't get the icon to change at all!
I know it's not just Vista being crazy, cause I tested how delta's "Bubble Trouble" and "Magic Star" displayed, and they acted normally.
What could I possibly be doing that is making this simple procedure go so ridiculously wrong?
right, this is how i do it.
create an icon file with two layers. one 32x32 and the other 16x16. i normally just copy one of my old ones and modify it to save me the hassle.
then open up reshacker and drag the .exe file into it that you want to change
check the + icon next to 'icon group' and again next to '101'. you'll see a green flower icon called '1003'. right click it to show what it contains, then left click it, and choose 'replace resource' from the menu. choose the .ico file that you want to replace it with. both images will then show in the main window.
now go to the 'file' menu, and click 'save'. it will save the .exe file, and create another one called 'dizzy_original' or something similar.
Job done! :)
Humbert
24-03-09, 06:21 PM
Except my problem is that that's not working!
Literally, Windows is displaying a different graphic in the folder than ResHacker shows - and I don't understand how this is even possible. Windows is displaying an icon that I associated with a previous version of the file. I never put that icon into this program (I deleted that file and replaced it with the default one), and ResHacker shows the one I want to display under both ICONS and ICONGROUP, but Windows is showing a completely different icon!
(Either the default DizzyAGE icon, or my modified Starship Dizzy icon - neither of which is currently associated with the .EXE file.)
It's driving me nuts.
ETA:
Actually, upon further review, it is just Windows acting crazy.
I copied the file into a different folder, and it does display with the icon I want. It's just in the folder wherein I have changed it numerous times that it is acting bizarrely. Weird.
So, I guess, there was never any problem after all?
i have that probem too. i changed the setup.exe file icon for IID (only ever changed it in TLoD before), and it refuses to display it. even on switch-off and on again. i can move it to another folder and it displays it fine. but it's like it remembers that the old icon is associated with setup.exe in that specific folder.
annoys hell out of me, but that's microsoft for ya!
xelanoimis
25-03-09, 05:18 PM
Yeah, I've seen it too :)
Maybe renaming the file might help. And then renaming it back.
no it doesn't. i've tried it. windows 'remembers' the icon for setup.exe
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.