View topic - Bug? textures from CEGs in maps do not work anymore in 84.0


All times are UTC + 1 hour


Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 02 Dec 2011, 15:22 
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Noticed when trying to include cegs with my map that the textures for them do not get loaded, despite a resources_map.lua
It also happens on other maps eg gunmetal v10:
Image
http://springfiles.com/spring/spring-ma ... tal-harbor

Did something change on how texture files should be included or is it a bug?
Top
 Offline Profile  
 
PostPosted: 02 Dec 2011, 17:17 
Spring Developer

Joined: 08 Oct 2006, 15:58
resources_map.lua wrote:
Code:
local resources = {
   projectiletextures = {
      map_smoke = "map_smoke.tga",   
      map_foam = "foam.tga",
   },
}



You want:

Code:
local resources = {
   graphics = {
      projectiletextures = {
         map_smoke = "map_smoke.tga",   
         map_foam = "foam.tga",
      },
   },
}
Top
 Offline Profile  
 
PostPosted: 02 Dec 2011, 17:30 
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
So that changed?
Thanks, will try it.
/edit: works

/edit
Just noticed games always have the graphics = { and just some maps not. So it was probally "luck" that it worked before(?)
Top
 Offline Profile  
 
PostPosted: 02 Dec 2011, 18:02 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
I have no idea, I am entirely bewildered by the change
Top
 Offline Profile  
 
PostPosted: 02 Dec 2011, 18:07 
MC: Legacy & Spring 1944 Developer
User avatar

Joined: 29 Apr 2005, 00:14
Location: #moddev - join it!
There was a discrepancy between the format of resources.lua (for games) and resources_map.lua (for maps), which has now been corrected.
Top
 Offline Profile  
 
PostPosted: 02 Dec 2011, 18:36 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Cool, good to know, thanks for the find knorke.
Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Site layout created by Roflcopter et al.