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

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

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

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

Post by knorke »

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?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Bug? textures from CEGs in maps do not work anymore in 84.0

Post by Kloot »

resources_map.lua wrote:

Code: Select all

local resources = {
	projectiletextures = {
		map_smoke = "map_smoke.tga",	
		map_foam = "foam.tga",
	},
}
You want:

Code: Select all

local resources = {
	graphics = {
		projectiletextures = {
			map_smoke = "map_smoke.tga",	
			map_foam = "foam.tga",
		},
	},
}
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Bug? textures from CEGs in maps do not work anymore in 84.0

Post by knorke »

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(?)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Bug? textures from CEGs in maps do not work anymore in 84.0

Post by smoth »

I have no idea, I am entirely bewildered by the change
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Bug? textures from CEGs in maps do not work anymore in 84.0

Post by FLOZi »

There was a discrepancy between the format of resources.lua (for games) and resources_map.lua (for maps), which has now been corrected.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Bug? textures from CEGs in maps do not work anymore in 84.0

Post by smoth »

Cool, good to know, thanks for the find knorke.
Post Reply

Return to “Map Creation”