From: <hik...@us...> - 2011-02-18 11:20:55
|
Revision: 7726 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=7726&view=rev Author: hikerstk Date: 2011-02-18 11:20:49 +0000 (Fri, 18 Feb 2011) Log Message: ----------- Fixed exporting of zipper settings. Modified Paths: -------------- main/trunk/data/tracks/stk_track.py Modified: main/trunk/data/tracks/stk_track.py =================================================================== --- main/trunk/data/tracks/stk_track.py 2011-02-18 11:18:19 UTC (rev 7725) +++ main/trunk/data/tracks/stk_track.py 2011-02-18 11:20:49 UTC (rev 7726) @@ -1577,7 +1577,7 @@ elif AProperty.strip().upper().startswith("ZIPPER:"): #These items pertain to the particles (starting with sfx:) strippedName = AProperty.strip().split(":")[1] - sZipper = "%s %s=\"%s\""%(sParticle,strippedName,currentValue) + sZipper = "%s %s=\"%s\""%(sZipper,strippedName,currentValue) else: #These items are standard items if AProperty.strip().upper() not in ["PARTICLE","SOUND-EFFECT","ZIPPER"]: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hik...@us...> - 2011-02-18 12:34:19
|
Revision: 7730 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=7730&view=rev Author: hikerstk Date: 2011-02-18 12:34:13 +0000 (Fri, 18 Feb 2011) Log Message: ----------- Support for new rain style added to exporter. Modified Paths: -------------- main/trunk/data/tracks/stk_track.py Modified: main/trunk/data/tracks/stk_track.py =================================================================== --- main/trunk/data/tracks/stk_track.py 2011-02-18 12:29:05 UTC (rev 7729) +++ main/trunk/data/tracks/stk_track.py 2011-02-18 12:34:13 UTC (rev 7730) @@ -1347,9 +1347,12 @@ weather = getIdProperty(scene, "weather", None) if weather: - if weather[:4]!=".xml": - weather=weather+".xml" - f.write(" <weather particles=\"%s\" />\n"%weather) + if weather=="rain": + f.write(" <weather type=\"rain\" />\n") + else: + if weather[:4]!=".xml": + weather=weather+".xml" + f.write(" <weather particles=\"%s\" />\n"%weather) rad2deg = 180.0/3.1415926 for obj in lItems: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hik...@us...> - 2011-02-18 13:06:11
|
Revision: 7731 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=7731&view=rev Author: hikerstk Date: 2011-02-18 13:06:05 +0000 (Fri, 18 Feb 2011) Log Message: ----------- Removed debug output. Modified Paths: -------------- main/trunk/data/tracks/stk_track.py Modified: main/trunk/data/tracks/stk_track.py =================================================================== --- main/trunk/data/tracks/stk_track.py 2011-02-18 12:34:13 UTC (rev 7730) +++ main/trunk/data/tracks/stk_track.py 2011-02-18 13:06:05 UTC (rev 7731) @@ -1560,7 +1560,6 @@ for sAttrib, sValue in i.properties.iteritems(): if sAttrib not in l: l.append( (sAttrib, sValue) ) - print "l=",l for AProperty,ADefault in l: # Don't add the (default) values to the property list currentValue = getIdProperty(i, AProperty, ADefault, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hik...@us...> - 2011-03-21 05:50:42
|
Revision: 8014 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=8014&view=rev Author: hikerstk Date: 2011-03-21 05:50:36 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Fixed fog color which was incorrectly multiplied by 255 (ticket 114). Modified Paths: -------------- main/trunk/data/tracks/stk_track.py Modified: main/trunk/data/tracks/stk_track.py =================================================================== --- main/trunk/data/tracks/stk_track.py 2011-03-21 05:20:28 UTC (rev 8013) +++ main/trunk/data/tracks/stk_track.py 2011-03-21 05:50:36 UTC (rev 8014) @@ -103,10 +103,6 @@ return "N" else: return "Y" -# -------------------------------------------------------------------------- -# Converts a blender caller (floating point) into a 0...255 based color. -def convertColor(sColor): - return " ".join(map(lambda x: `int(float(x)*255)`, sColor.split())) # ============================================================================== # A special class to store a drivelines. class Driveline: @@ -1325,7 +1321,7 @@ if s=="yes": sSky="%s fog=\"true\""%sSky s=getIdProperty(scene, "fog-color", 0) - if s: sSky="%s fog-color=\"%s\""%(sSky, convertColor(s)) + if s: sSky="%s fog-color=\"%s\""%(sSky, s) s=getIdProperty(scene, "fog-density", 0) if s: sSky="%s fog-density=\"%s\""%(sSky, s) s=getIdProperty(scene, "fog-start", 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hik...@us...> - 2011-04-12 01:53:23
|
Revision: 8296 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=8296&view=rev Author: hikerstk Date: 2011-04-12 01:53:17 +0000 (Tue, 12 Apr 2011) Log Message: ----------- Fixed incorrect '<weather particles="none.xml"' which is exported if the weather is set to none. Modified Paths: -------------- main/trunk/data/tracks/stk_track.py Modified: main/trunk/data/tracks/stk_track.py =================================================================== --- main/trunk/data/tracks/stk_track.py 2011-04-12 01:23:50 UTC (rev 8295) +++ main/trunk/data/tracks/stk_track.py 2011-04-12 01:53:17 UTC (rev 8296) @@ -1351,7 +1351,10 @@ f.write(" <sky-color rgb=\"%s\"/>\n"%sky_color) weather = getIdProperty(scene, "weather", None) - if weather: + # Apparently the browser uses the string "none" to indicate + # that no weather is set. So we have to check for this string + # as well (ticket #159). + if weather and weather!="none": if weather=="rain": f.write(" <weather type=\"rain\" />\n") else: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |