Graal Forums  

Go Back   Graal Forums > Development Forums > Graphic Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-01-2010, 09:55 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
READ FIRST! : "My images won't work/my tileset won't load!"

This 'problem' arises a lot. Images that work absolutely fine online suddenly do not work offline.

This is the result of one or both of these problems:
> The image not being cached by Graal.
> The image not being indexed(the biggest culprit).

Here I will guide you through steps you can take to fix these problems as to avoid having to ask a question that someone will have to answer for the hundredth time.



How to make sure Graal caches the image
This isn't exactly caching... but anyways... Graal has a file named FILENAMECACHE.txt in the Graal folder. What Graal does is it keeps track of all files handled by Graal(via downloading, saving or so on) and stores them in this file. This tells Graal exactly where to find the files to use them, so it doesn't have to sit and scan the whole folder(which gets HUGE over time) every time it starts up. However, if Graal(or one of its tools) did not have a direct hand in putting a file in its folder, Graal will never add it to FILENAMECACHE.txt, thus it will never know it's even there. So you sit and make a tileset image and throw it in the Graal folder and are a little baffled why it doesn't work. You have two options to resolve this issue:

1) The easy way.

Whenever YOU add a file to the Graal folder, delete FILENAMECACHE.txt from the Graal folder(where Graal.exe is located), and start Graal. You will see a pop up notifying you that Graal is scanning its folder. After that's done it will have rescanned its folder fresh, thus will know your new file is there. Reopen whatever tool you were attempting to use and all should be fixed. I suggest just doing this method!

1) The hard way.
This way is a little bit 'harder', but can be quite useful. It's not harder in the mindset that you will always be doing something complicated, but that it takes a bit more of a set-up. You have to associate your various Graal file types with their correct tool. For example, .nw with Graal Editor, and .gani with Graalshop. If you have not done so yet, the steps are quite easy. If you already have graal filetypes associated to their tools, you can skip past the next few steps.

Try to open the file. If it has no association, it will prompt you:

Tell it that you will select a program.

Chances are, Graal programs will not be there, so click browse(will look different between Windows versions):

Find your appropriate tool(Graalshop for this gani I am trying to open):

Tell Windows to always associate this program for this file.

Now whenever you open a file for Graal it will open directly in the right tool. This is essential, because whenever you do this Graal will do a temporary cache of the folder you loaded the file from. So if you're working on a gani, all you have to do is keep the images needed for the gani in the same folder as the gani. I do this often when I'm working on larger projects, as I keep the whole project organized in a folder on my desktop instead of clogging my Graal folder up with tons of folders.



Make sure the image is indexed
This is such a common occurence. The problem is, as Graal got updated, the tools fell out of date. As it is now, Graal itself supports a multitude of image types from bmp to jpeg, and various bit depths. However, the tools never got updated. So while images work fine online, you try to use them offline and the tools just don't support them. This is usually in relation to PNG's. PNG's support various bit depths, and Graal supports up to 32-bit(alpha blending and transparency). The Graal tools, however, support only 8-bit, or indexed. That means they can only support a PNG if it has been properly saved(the colors used stored in a 256 color palette). MSPaint can not do this. MSPaint can indeed save PNG's, but it does not index them, nor give you the option to. Thus you'll need to use another program to do so. I only have Photoshop so that's all I can offer help with(it's all the same from various versions. I used to have Photoshop 6.0 and the method is exactly the same in Photoshop CS3).

Open the image in Photoshop. Navigate to IMAGE > MODE > INDEXED COLOR

You'll get a window like this:

Fill it out pretty much like in the picture. Palette = exact. Forced = none(it won't force any colors into the palette). Transparency can be checked or not depending on if the image has transparency in it. I typically just leave it checked regardless, unless I'm running low on colors(like in a tileset. Remember, you only have 256 colors... more than that and you start losing colors. This is bad). Then just click OK and save your image. It should now work! I suggest keeping an unindexed copy of images that push the color limit(tilesets) in case you save an indexed copy and lose data. Because remember, you can still use the unindexed, or real version, online.



Hopefully this helps people having problems. If you still have problems after following these steps then feel free to make a post about it. Chances are those two steps above will fix any problems you have with your images/tilesets working offline.
Reply With Quote
  #2  
Old 06-01-2010, 11:12 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I doubt anyone uses Fireworks, but if you do, it's pretty easy to save images for Graal's offline tools:

Choose "PNG8" from the optimize toolbar on the top right, then choose the proper transparency method (usually "no transparency" or "alpha transparency"). For images with more than 256 colors (which won't work with offline tools) use either PNG24 or PNG 32. PNG32 supports transparency (including semi-transparency) while PNG24 does not. Use "File > Export" to save it.



You can also use "File > Image Preview" to see how it will look and export it.
Click image for larger version

Name:	preview.png
Views:	192
Size:	40.2 KB
ID:	51126

Sorry for hijacking your thread, Dusty.
__________________
Reply With Quote
  #3  
Old 06-01-2010, 03:58 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
This is good stuff, I remember when I uploaded things and such on Testbed, and then nothing worked. I had to find out myself how too do it, so I wasted about 1-2 hours trying to make the images work on Graal.

I found out at last, but it was hours wasted in my opinion.

So this is great Dusty, that you make good tutorials for newbies so they dont waste hours on something they shouldn't have too!

Oh, by the way -- I see you got a plan for flower bouquets Chris.
Reply With Quote
  #4  
Old 06-01-2010, 05:34 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
yay at w7
__________________
Reply With Quote
  #5  
Old 06-01-2010, 05:48 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
In The GIMP it's as easy as Image->Mode->Indexed
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #6  
Old 06-01-2010, 06:37 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I personally use IrfanView to lower the color depth of imagery and to set basic transparencies.
__________________
Quote:
Reply With Quote
  #7  
Old 06-02-2010, 02:47 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally Posted by fowlplay4 View Post
I personally use IrfanView to lower the color depth of imagery and to set basic transparencies.
With that, it's Image->Decrease Color Depth...

IrfanView is an excellent program.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #8  
Old 06-02-2010, 01:33 PM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
read first? whats second?
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #9  
Old 06-03-2010, 08:49 AM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
Quote:
Originally Posted by Imperialistic View Post
read first? whats second?
not making a thread about your images/tileset not working. Which otherwise without the not would've been the 1st thing to do.
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.