Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problem importing FPSC Entity Textures

Author
Message
MSon
22
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 28th Nov 2010 03:34 Edited at: 28th Nov 2010 03:34
Hi all, Below is a pic of my FPSC Entity Importer, But it dosnt always import textures like in the pic below, im wondering if anyone knows exactly how to know what the texture image is.

Heres what im using so far, as i said, this works, but dosnt always import the texture.



Heres the screenshot showing the problem



DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Nov 2010 18:00 Edited at: 30th Nov 2010 18:12
I get the same problem if I load a map created in fps creator(latest build). I have to use the free version for the textures to work. Thats segments of course and static entities I have placed, but probably a similar problem.
Are you using the free version, the full, or just using some of the model packs? The info for textures and such should be in the fpe files though, if they point the wrong place no textures will be shown..

http://s6.bitefight.org/c.php?uid=103081
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Dec 2010 17:06
Don't like to double post but you may not notice an edit.. Are the images for the offending objects anything other than tga? I have had problems with vanishing objects, the past 2 days. All caused by the texture image being a jpeg rather than a tga.

http://s6.bitefight.org/c.php?uid=103081
MSon
22
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 1st Dec 2010 18:17 Edited at: 1st Dec 2010 18:30
I think the textures can be in any format, what im doing is searching the FPE File for the entity to find the "Textured" field, im unsure as im not really into FPS, (I quite like the programming part which i think it bypasses), but the texture may be stored in other fields aswell, but unsure where, but i may be wrong.

This is the section that searches for the "Textured" field in the FPE File, This works on some entities, but not all...


I think i asked this same question a few months ago aswell, but no-one knew how to fix this problem then so its just one of them bugs i cant fix at the mo, but as im adding a segment importer by copying and editing the above functions, i could use a fix now or i'll proberbly have the same bug in 2 different places.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Dec 2010 20:26
Well, I use FPS creator mainly for DB but have played with using it directly. Adding in new entities and such, which can be more of a pain than most imagine. You are checking the entitybank folder, but a lot of official TGC objects store their textures in the texturebank folder. The entitybank folder stores mainly the object and fpe file. If the fpe file points elsewhere it can be overridden.

I have messed about a fair bit with different things. Make sure the objects fpe file has the correct path to the texture. I also add although I haven't used anything like your code above, I merely have been using the load universe command. Like I said if I used the (completely working in FPS creator) standard Arteria Sci Fi Pack One graphics some worked, some didn't when I loaded em into DB. The only difference was that their textures was jpeg. Changing them to TGA and altering the fpe file to match fixed it.

Defo seems like a path issue as your objects just seem untextured. Try adding the texturebank path into the texture load part.

http://s6.bitefight.org/c.php?uid=103081

Login to post a reply

Server time is: 2026-07-21 13:38:47
Your offset time is: 2026-07-21 13:38:47