Can someone help me export the sound schemas from the Thief2 Demo gamesys? - by AntiMatter_16
Telliamed on 23/6/2013 at 02:08
(
http://pastebin.com/DvhN03gu) Here you go.
Quote Posted by AntiMatter_16
I am not a python programmer (I'm really not a programmer either, since the last programming I did was about 2006) and for the life of me, I can't seem to get it to work.
Yeah, it didn't convert cleanly. There were three orphaned schemas. #-3459 (growctr) #-3460 (expped) and #-3461 (expctr). Not sure where they're supposed to go, or if it matters. Probably doesn't.
AntiMatter_16 on 23/6/2013 at 04:41
THANK YOU SO MUCH! This is a GREAT help!
So far, they seem to load just fine, but I'm noticing that schemas that use multiple sounds have a '1' after each sound file, and the next one appears on a new line:
Code:
schema D11windgust
archetype AMB_D11
volume -1500
poly_loop 2 4000 5000
audio_class ambient
wind1 1
wind2 1
wind3 1
wind4 1
wind5 1
As opposed to (Taken from the T2 schemas):
Code:
schema M11windgust
archetype AMB_M11
poly_loop 2 4000 5000
volume -1500
wind1 wind2 wind3 wind4 wind5
In my very brief testing, I'm noticing that when I hit guards with the blackjack, they play only one sound response. I'm guessing that the '1' needs to be removed, and each sound name moved to the same line? I can do this manually if need be, but if there's an error that's easily fixed it would save a little time. =)
Thanks again!
Telliamed on 23/6/2013 at 08:29
Quote Posted by AntiMatter_16
In my very brief testing, I'm noticing that when I hit guards with the blackjack, they play only one sound response. I'm guessing that the '1' needs to be removed, and each sound name moved to the same line? I can do this manually if need be, but if there's an error that's easily fixed it would save a little time. =)
I thought it wouldn't make a difference. At least the notes in sdb.py suggest putting the samples on one line or multiple lines is the same. Unless the frequency is something other than 1. (i.e. sv1a0sn).
Did you notice gar049? :cool:
AntiMatter_16 on 23/6/2013 at 11:29
Yes, I did notice Gar049. =P Someone forgot a '/'
Another original bug I noticed was in Ape1.
Code:
//SUCCESSFULLY HIT THE PLAYER +not losing
schema ab1hit
archetype AI_COMBAT
ab1hit_1 ab1hit_2 ab1hit_3 ab1hit_4 ab1hit_5 ab1hit_6
schema_voice vape1 1 comsucchit (ComBal Winning Even)
//SUCCESSFULLY HIT THE PLAYER +not losing +w/co
schema ab1hit
archetype AI_COMBAT
ab1hitw1 ab1hitw2 ab1hitw3
schema_voice vape1 1 comsucchit (ComBal Winning Even) (NearbyFriends 0 20)
These two schema share the same name. I think the 2nd one is supposed to be ab1hitw, based on some of the similar schema, but I'm not sure. At the very least, one schema was overwritten by the other when it was loaded.
As for the frequency, taking a look at the original schemas, it looks like "freq" needs to be specified before the number, like so:
Code:
//Sleeping
schema sv1a0sn
archetype AI_NONE
mono_loop 1000 2000
sv1a0sn1 freq 3
sv1a0sn2 freq 1
sv1a0sn3 freq 3
sv1a0sn4 freq 1
schema_voice vserv1 1 sleeping
Not actually sure that makes a difference though. I'll need to do some testing in the morning. At the very least, deleting the newlines and the numbers seem to fix the other stuff sounds not playing, so something is amiss, at the very least.
AntiMatter_16 on 23/6/2013 at 18:35
So far what I've discovered is that AI barks seem to need "freq" (all lowercase) in between the sound file, and the frequency number like so:
Code:
schema sg1hnd
archetype AI_MAJOR
sg1hnd_1 freq 1
sg1hnd_2 freq 1
sg1hnd_3 freq 1
schema_voice guard1 1 comhitnodam
schema_voice vass1 1 comhitnodam
Alternatively, moving the sound file names onto one line works as well:
Code:
schema sg1hnd
archetype AI_MAJOR
sg1hnd_1 freq 1 sg1hnd_2 freq 1 sg1hnd_3 freq 1
schema_voice guard1 1 comhitnodam
schema_voice vass1 1 comhitnodam
schema sg1hnd
archetype AI_MAJOR
sg1hnd_1 sg1hnd_2 sg1hnd_3
schema_voice guard1 1 comhitnodam
schema_voice vass1 1 comhitnodam
This format however, does not work, as only the first sound file plays:
Code:
schema sg1hnd
archetype AI_MAJOR
sg1hnd_1 1
sg1hnd_2 1
sg1hnd_3 1
schema_voice guard1 1 comhitnodam
schema_voice vass1 1 comhitnodam
schema sg1hnd
archetype AI_MAJOR
sg1hnd_1 1 sg1hnd_2 1 sg1hnd_3 1
schema_voice guard1 1 comhitnodam
schema_voice vass1 1 comhitnodam
Interestingly enough, both formats seem to work on non-ai related schema.
I'm kind of torn though, since I've managed to fix the formatting for about HALF of the 15,000 lines of schemas. I'm probably looking at another 8 hours of editing text files.
LarryG on 23/6/2013 at 18:43
Keep fighting the good fight! We're behind you, cheering you on. :thumb:
AntiMatter_16 on 23/6/2013 at 18:46
Isn't that a little like... Cheering someone on who's driving their car off a cliff at full speed? :p
voodoo47 on 23/6/2013 at 19:20
what the heck, sometimes, you just gotta have fun.
LarryG on 23/6/2013 at 20:40
[ATTACH=CONFIG]1715[/ATTACH]