MegaGlest Forum
Modding and game content creation => Tools => Topic started by: jacko161 on 20 May 2010, 04:42:28
-
Every time i try to drop my model into the game glest crashes.... but when we remove the texture the model works fine
Bruce and i double checked every step in texturing but it still doesn't work
Any advice???
-
- Does it show up in the G3D Viewer? (I don't know if there's even a working Mac version of it. :look:)
- Does the texture render properly in Blender? (i.e. add a camera and a lamp and hit F12)
- Check the material's "map input" setting. (Default is Orco, needs to be changed to UV.)
- Are there any spaces, capital letters, or symbols in the file name of your texture? (Everything should be lower-case letters, numbers, and underscores. This includes file extensions, so .tga is fine but .TGA is not.)
- Is the texture file in tga format? (Having the wrong format or having compression will cause a crash.)
- Is the tga file saved with RLE compression turned off? (This is typically the culprit. When in doubt, use "Save As..." instead of "Save", as GIMP will sometimes make assumptions. Even if you've saved it before without compression, GIMP may still save it with compression. It's ornery like that sometimes.)
- Is the tga in the same directory as the g3d? (If your g3d is in /units/apeman/models, then your tga should be in /units/apeman/models also.)
- Does your tga's file name exactly match the name that you assigned in Blender? (If it's looking for my_tex.tga, then it'd better not be mytex.tga.)
I hope one of those helps, because otherwise I'm at a loss.
-
Yah, that's about it. I mainly thought of the name of it to have no spaces or caps and RLE compression to be off.
-
As a side note Mega-Glest supports PNG and JPG textures for models, perhaps try using a non TGA texture and see if it helps (I find TGA is quite picky)
-
woah really , i've never seen png or jpg used in games at all , i've only seen .dds , .tga and unusual , but every now and then .gif .
-
Most likely RLE compression.
-
Ok so we should add a check to the code to spit out errros if the modder did not enable compression instead of just crashing.
-
No it's not compression the Tga is uncompressed but it still crashes :( idk what to do
-
post the texture and model here so we can fix it for you.
-
mmk well they are basic drafts not of very high quality.
do you want it in .blend or .g3d format?
-
.blend thanks, and idc about quality ;)
-
ok well sorry my USB is at home can i post it up tonight?
i can give you the texture but not the .blend
-
i can give you the texture but not the .blend
Something is better than nothing.
-
http://filesaves.com/1feod2kn9fl2/tank_cube.tga.htm (http://filesaves.com/1feod2kn9fl2/tank_cube.tga.htm)
-
Only green?
-
well yeah cause no textures that i make will work so bruce and i tried a basic texture
-
is .JPG format supported/useable for it? that may cause it. i`ll test now.
-
A worker with a Worker XML from Original Tech with MegaGlest worked fine, perhaps XML is messed up?
-
you want the XML?
-
uhm...i hate to admit, but im a noob in XML, D.H?
-
thats fine we are checking my xml to someone elses that worked to see if its messed up
-
:O okay, hope i`ve helped solving it
-
It renders fine on a dummy model in Blender, but is it really a 512x512 TGA that's only 8KB? If so, then there has got to be some kind of compression going on, because an uncompressed TGA that size is almost 800KB. I tested it by renaming it "texture_golem.tga" (replacing the Golem's regular texture), and it crashed Glest when I tried to run it. I opened the texture and saved it again, turning off RLE compression and it worked flawlessly. Despite your objections, RLE compression is what's causing the problem.
(By the way, testing with MegaGlest doesn't do us much good, because it supports different image formats.)
-
give us the image and we un-compress it! :O
-
Y'all are using the GIMP for your textures, right?
(http://img180.imageshack.us/img180/2681/screenshot1phg.png) (http://img180.imageshack.us/i/screenshot1phg.png/)
See that check box? It should not be checked. Every time you save your image, make sure the box in un-checked, as the GIMP will forget your selection. No matter how many hundreds of times you've saved the same image with RLE compression turned off, the next time you open GIMP, it will assume you want RLE compression turned on. This is why you have to use "Save as..." instead of "Save" at least once per session, because GIMP forgets your selection every time you open it.
-
I had a similar issue, however, I managed to solve it after redoing the texture and saving as.
Jackson's appears to be different however.
-
Strange we went through and unticked the box 6 times :o ill remake the texture
The texture now works there was compression but we unticked the box :look: oh well it doesnt matter now
-
-.-
-
So it works now?
-
The texture now works
-
I've seen it, it works fine.
I'm as confused as Jacko is. He and Bruce went through the process several times and always un-ticked the box, and it never worked.
-
maybe only maybe, he opened a allready compressed TGA then he needed to make a new picture to mak the new one without TGA , like if TGA doesn`t uncompress when already compressed even if you untick, anyways
The texture now works
-
Why are you constantly reposting that quote?
On topic, however, Jacko did make a new one every time, and saved as every time. Whatever the problem was, it's solved now.
-
*Spends a looong time cleaning up double posts and garbage*
Please Jacko, some of your posts were literally minutes apart. Please edit your last posts rather than make new ones. Thank you.
Since this is solved, I will now lock it. Remember to turn off RLE compression everytime (its on the safe screen of both paint.NET and the GIMP, so can't be missed.
*Locked*
-
Why lock it? :look:
-
Because the problem has been resolved, so there's no need to keep bumping it. ::)
</topic>