Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Grant, AndrewAMD), 3,498 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
error E1198 #216589
07/17/08 19:08
07/17/08 19:08
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
when trying to ent_create a dds (DXT5 ARGB 8 bpp | interpolated alpha) file i get that error number and a message "SMOKE1.DDS: Bad file format"

using the dds file for effects works.

any ideas?

Re: error E1198 [Re: ello] #216591
07/17/08 19:13
07/17/08 19:13
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
seems it has to do with that the file is in a subfolder.

ent_create("data/smoke1.dds",tempVec,smoke); does not work

when i move the file to the main folder
ent_create("smoke1.dds",tempVec,smoke);
works.

however using BMAP* smoke1 = "data/smoke1.dds"; works for effects


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: error E1198 [Re: ello] #216674
07/18/08 09:01
07/18/08 09:01
Joined: Jul 2000
Posts: 28,093
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,093
Frankfurt
I'm sure that I've told many times on this forum that subfolders should not be used in file names. The path system should be used instead.

In this case I think the DirectX texture_for_file function used by ent_create won't work with subfolders. The BMAP definition however loads the file by an engine function and that might by chance work with subfolders, although of course it might cease to work with any engine update.

Re: error E1198 [Re: jcl] #216677
07/18/08 09:11
07/18/08 09:11
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
Originally Posted By: ello
data/smoke1.dds

anyway, shouldn't it be a (double?) backslash?

Re: error E1198 [Re: broozar] #216678
07/18/08 09:20
07/18/08 09:20
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
but PATH "data"; gives me an "undeclared identifier"-message


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: error E1198 [Re: ello] #216687
07/18/08 10:19
07/18/08 10:19
Joined: Jul 2000
Posts: 28,093
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,093
Frankfurt
You're right, if at all it should be at least in correct syntax with double backslash. Paths in file names are allowed for media files that can't use the path system.


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1