Spring 0.77b6 testing - Page 7

Spring 0.77b6 testing

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Spring 0.77b6 testing

Post by [Krogoth86] »

Does anyone have a clue yet what causes the map problem (i.e. some maps like Mars don't work with the latest Spring release) and maybe how to fix it mapwise (dunno - maybe the older maps miss some entries that are needed now)?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Spring 0.77b6 testing

Post by smoth »

mars might have an issue with it's smd file, any map that shows up in lobby as 0X0 is probably using a borked file

*edits for corrections*
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Spring 0.77b6 testing

Post by Beherith »

[Krogoth86] wrote:Does anyone have a clue yet what causes the map problem (i.e. some maps like Mars don't work with the latest Spring release) and maybe how to fix it mapwise (dunno - maybe the older maps miss some entries that are needed now)?
Yes, all the non working maps are smd issues. The lua based parser got much stricter. Not missing tags or anything, just syntax errors; like a newline before a ;
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring 0.77b6 testing

Post by imbaczek »

i pushed aircraft fixes into 0.78-branch. will need a new tag, though.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Spring 0.77b6 testing

Post by Forboding Angel »

Beherith wrote:
[Krogoth86] wrote:Does anyone have a clue yet what causes the map problem (i.e. some maps like Mars don't work with the latest Spring release) and maybe how to fix it mapwise (dunno - maybe the older maps miss some entries that are needed now)?
Yes, all the non working maps are smd issues. The lua based parser got much stricter. Not missing tags or anything, just syntax errors; like a newline before a ;

Isn't that just a lil bit silly?

Anyone care to explain to me why this little gem isn't working?

Code: Select all

[MAP]
{
   Description=Made by Forboding Angel;
   TidalStrength=20;
   Gravity=130;
   MaxMetal=1;
   ExtractorRadius=100;
   MapHardness=800;
   AutoShowMetal=1;
   // DetailTex=detailtex.bmp;

   [ATMOSPHERE]
   {
      FogColor=.8 1 1;
      FogStart=.8;

      CloudColor=1 1 1;
      SkyColor=0.1 0.15 0.7;

      SunColor=1 1 1;
      CloudDensity=0.3;

      MinWind=1;
      MaxWind=25;
   }
   [WATER]
   {
      WaterSurfaceColor=0.34 0.59 1;
      WaterPlaneColor=0.34 0.59 1;
      WaterBaseColor=0.4 0.6 0.8;
      WaterAbsorb=0 0 0;
      WaterMinColor=0.1 0.1 0.3;
      WaterDamage=;
   }
   [LIGHT]
   {
      SunDir=0 0.3 1;                  //direction of sun (spring will normalize it later)(y component is upward)
      
      GroundAmbientColor=0.8 .8 .85;      //ambient (non sun lit) color of ground (and grass etc)
      GroundSunColor=1.0 1.0 .9;       //color of ground where fully sun lit (added to ambient)
      GroundShadowDensity=1.95;        //how far from the non shadowed to the ambient color stuff in shadow will go

      UnitAmbientColor=0.42 0.41 0.52;    //ambient (non sun lit) color of units (and wreckage etc)
      UnitSunColor=0.72 0.70 0.53;        //color of units where fully sun lit (added to ambient)
      UnitShadowDensity=.81;
   }
   [TEAM0]
   {
      StartPosX=7052;
      StartPosZ=7330;
   }
   [TEAM1]
   {
      StartPosX=8374;
      StartPosZ=5990;
   }
}
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Spring 0.77b6 testing

Post by TradeMark »

might just have some special white-space characters in it, IIRC map called mars had those and it made error...
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Spring 0.77b6 testing

Post by jK »

'sometimes' it can be very useful to post the error message ....
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Spring 0.77b6 testing

Post by smoth »

zeros needed before . as in .8 should be 0.8?
spaces after named section
[team1]

{

instead of

[team1]
{

maybe this stuff, I am not sure and they are W.A.Gs but hey it is something to check out.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Spring 0.77b6 testing

Post by Forboding Angel »

jK wrote:'sometimes' it can be very useful to post the error message ....
You mean the completely blank dialog box that comes up?
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Spring 0.77b6 testing

Post by Pxtl »

TradeMark wrote:might just have some special white-space characters in it, IIRC map called mars had those and it made error...
What, Mars doesn't work anymore? That was my fave for FFA!
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Spring 0.77b6 testing

Post by jK »

Forboding Angel wrote:
jK wrote:'sometimes' it can be very useful to post the error message ....
You mean the completely blank dialog box that comes up?
infolog.txt?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Spring 0.77b6 testing

Post by Tobi »

Forboding Angel wrote:Isn't that just a lil bit silly?

Anyone care to explain to me why this little gem isn't working?

Code: Select all

      WaterDamage=;
Maybe that (missing content in tag). Just another guess though.

(And no it isn't silly IMO as long as no one wrote reliable automated regression testing :P (and as long as no one has properly defined grammar for TDF format :-)))
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Spring 0.77b6 testing

Post by [Krogoth86] »

jK wrote:'sometimes' it can be very useful to post the error message ....
If this is headed towards the "Mars problem" too then I only can say that it's described HERE and on the "bug list" on the first topic for a long time...
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Spring 0.77b6 testing

Post by [Krogoth86] »

Well it seems it's something about the smf rather than the smd because after playing around a bit like replacing the smd with a "working" one from another map nothing has any effect. Another hint may be that Spring i.e. the lobby cannot read the map's size anymore which is written down in the smf. Someone knows if decompiling smfs and smts is possible? I'm downloading some mapconv tools but I don't know if they support that after all...
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Spring 0.77b6 testing

Post by Kloot »

The Lua TDF parser seems unable to deal with comments placed between the end of a section name and its associated opening brace. It loads for me with the following SMD:

Code: Select all

[MAP]
{
	Description=En karta;
	TidalStrength=20;
	Gravity=140;
	MaxMetal=0.054;
	ExtractorRadius=300;

	[ATMOSPHERE]
	{
		FogColor=0.7 0.7 0.8;
		FogStart=0.2;

		CloudColor=0.9 0.9 0.9;
		SkyColor=0.1 0.15 0.7;

		SunColor=1.0 1.0 1.0;
		CloudDensity=0.55;

		MinWind=5;
		MaxWind=25;
	}
	[WATER]
	{
		WaterBaseColor=0.4 0.6 0.8;
		WaterAbsorb=0.004 0.004 0.002;
		WaterMinColor=0.1 0.1 0.3;
		WaterPlaneColor= 0.1 0.1 0.3;
	}
	[LIGHT]
	{
		SunDir=0 1 1;
		
		GroundAmbientColor=0.45 0.45 0.45;
		GroundSunColor=0.7 0.7 0.7;
		GroundShadowDensity=0.7;

		UnitAmbientColor=0.4 0.4 0.4;
		UnitSunColor=0.7 0.7 0.7;
		UnitShadowDensity=0.8;
	}

	[TEAM0]
	{
		StartPosX=300;
		StartPosZ=400;
	}
	[TEAM1]
	{
		StartPosX=7700;
		StartPosZ=7700;
	}
	[TEAM2]
	{
		StartPosX=7700;
		StartPosZ=300;
	}
	[TEAM3]
	{
		StartPosX=300;
		StartPosZ=7700;
	}
	[TEAM4]
	{
		StartPosX=4000;
		StartPosZ=400;
	}
	[TEAM5]
	{
		StartPosX=4000;
		StartPosZ=7600;
	}

	[TERRAINTYPE0]
	{
		name=default;
		hardness=1;
		tankmovespeed=1;
		kbotmovespeed=1;
		hovermovespeed=1;
		shipmovespeed=1;
	}
}
But, for instance, inserting a comment like this...

Code: Select all

	[ATMOSPHERE] // bite me
	{
... will break things.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Spring 0.77b6 testing

Post by TradeMark »

PHAIL - - do you ever test stuff which you add there
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Spring 0.77b6 testing

Post by [Krogoth86] »

@Kloot:
Interesting - will try that. But how come that it still doesn't work when replacing everything with working smds like that from Comet Catcher? When doing so it still didn't work for me and Comet Catcher as a map works just fine...
Post Reply

Return to “Engine”