supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

SFX ugliness #103

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria

We have two identifiers for each SFX, the filename and an internal name specified in the XML files. This is confusing and uneeded, let's use only the filename... (especially when using per-track SFXs in the property browser it's quite confusing to be asked about both file and name)

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/103

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria C++ part done in r8424. Now we need to update the property browser and track exporter; I identified the following tracks where the double sfx identification can be cleaned up :

./data/tracks/canyon/materials.xml:30:    <sfx filename="splash.ogg" name="splash"/>
./data/tracks/hacienda/materials.xml:38:    <sfx filename="wooden_bridge.ogg" name="wood" rolloff="0.6" min-speed="9.0" max-speed="22.0" min-pitch="1.0" max-pitch="1.7" positional="Y" volume="1.0"/>
./data/tracks/hacienda_25/materials.xml:39:    <sfx filename="wooden_bridge.ogg" name="wood" rolloff="0.6" min-speed="9.0" max-speed="22.0" min-pitch="1.0" max-pitch="1.7" positional="Y" volume="1.0"/>
./data/tracks/jungle/materials.xml:36:    <sfx filename="splash.ogg" name="splash" rolloff="0.10000000149" min-speed="0.0" max-speed="30.0" min-pitch="1.0" max-pitch="1.0" positional="N"/>
./data/tracks/lighthouse/materials.xml:19:    <sfx filename="splash.ogg" name="splash" rolloff="0.10000000149"/>
./data/tracks/mines/materials.xml:18:    <sfx filename="splash.ogg" name="splash"/>
./data/tracks/sandtrack/materials.xml:9:    <sfx filename="splash.ogg" name="splash"/>
./data/tracks/sandtrack2/materials.xml:9:    <sfx filename="splash.ogg" name="splash"/>
./data/tracks/scotland/materials.xml:16:    <sfx filename="splash.ogg" name="splash"/>
./data/tracks/secretgarden/materials.xml:28:    <sfx filename="splash.ogg" name="splash"/>
./data/tracks/snowtuxpeak/materials.xml:7:    <sfx filename="wooden_bridge.ogg" name="wood" rolloff="0.6" min-speed="9.0" max-speed="22.0" min-pitch="1.0" max-pitch="1.7" positional="Y" volume="1.0"/>
./data/tracks/xr591/materials.xml:5:    <sfx filename="hot.ogg" name="hot"/>
supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Will be done along blender 2.5 scripts, which are scheduled for 0.7.3

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Files cleaned up in r8986.

The panel also will only ask about filename, no name field is offered to the user. It is important to note that currently the exporter just exports all ID-properties it finds, so likely the old "name" ID-property will still get exported (this issue is dealt with in ticket #160)