Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: diamondgeezer on January 24, 2004, 03:14:48 pm

Title: Species Support
Post by: diamondgeezer on January 24, 2004, 03:14:48 pm
Pretty sure I already posted this thread once, but it seems to have disappeared. Anyway, I want to add a fouth species, the main aspect of which is flyby sounds. Currently flyby sounds are assigned to each of the three species in the sounds table. I've been told that four species are now supported, so I tried adding entries to the sound table but it just resulted in the game freezing as the mission was about to start (ie. when I hit the commit button after the briefing).

Any chance we could avoid this kind on nonsense by assigning flyby sounds in the the ships table, defaulting to the sounds table if none is specified?
Title: Species Support
Post by: kasperl on January 24, 2004, 03:23:41 pm
you need a species tbl.

do a search on "new species added" or something. it was done by Kazan.

and you could check the wiki for info, there should be something in there too. if not, please make something.

and i thought there was an ship specific flyby sound thingy available too. once again, try searching. i recall Icefire making some usefull comments on that too.
Title: Species Support
Post by: Taristin on January 24, 2004, 10:26:39 pm
I put up a link in that other thread you made... lemme find it


EDIT
Here http://www.hard-light.net/forums/index.php/topic,18186.0.html
Title: Species Support
Post by: diamondgeezer on January 25, 2004, 06:54:23 am
Well I'll be damned. I missed that thread entirely when it was at the top of the page. That was dead handy, cheers Raa
Title: Species Support
Post by: diamondgeezer on January 25, 2004, 11:21:29 am
Aargh, this is doing my head right in.

Okay. I have the species_defs table with my fourth species set up (no smart ****ing comments from you, Woolie).

I have the sounds table set up with flyby sounds for the fourth species.

I have a fighter of the new species with the appropriate name in the species field.


I finally got the game to load without an error, but now when I click the commit button it just CTDs. I have not got a ****ing clue what I'm doing wrong.
Title: Species Support
Post by: kasperl on January 25, 2004, 11:55:52 am
IIRC you need to define everything in the sounds table, also the stuff your not using.

i could be very wrong, off course. most likely, i am wrong.

edit:

post 2500 for me.
Title: Species Support
Post by: Solatar on January 25, 2004, 12:03:33 pm
Whereabouts do we define things such as initial team and color in FRED?
Title: Species Support
Post by: diamondgeezer on January 25, 2004, 01:31:15 pm
I just wish all this stuff could be defined in the ships table without all this ****ing about with the species code which few people if any understand
Title: Species Support
Post by: Solatar on January 25, 2004, 01:47:44 pm
That would be great.
Title: Species Support
Post by: diamondgeezer on January 26, 2004, 11:58:01 am
Seriously dudes, I need help with this.
Title: Species Support
Post by: kasperl on January 26, 2004, 01:17:53 pm
DG, i understand, but the last tabling i did ended up in nothingness pretty quick. i can't do anything but point you to Kazan, and pointing you to the wiki "new page" system once your done.
Title: Species Support
Post by: mikhael on January 26, 2004, 02:02:42 pm
Quote
Originally posted by diamondgeezer
I just wish all this stuff could be defined in the ships table without all this ****ing about with the species code which few people if any understand


This is why I keep pushing for ship specific tables, rather than the current setup. Its just silly.
Title: Species Support
Post by: Goober5000 on January 26, 2004, 04:05:10 pm
I'll take a look at the species code to see if I can make it more user-friendly.  In the meantime, you'll have to ask Kazan.
Title: Species Support
Post by: diamondgeezer on January 26, 2004, 04:06:34 pm
That's the first thing I tried. He told me to ask Bobboau...

Seriously Goob, if you can get some of this stuff out of the code and in to the tables it would make life a whole lot easier. Hell, I'll make a point of testing your experiments for you :nod:
Title: Species Support
Post by: Goober5000 on January 26, 2004, 04:09:15 pm
:wtf: Kazan was the one who wrote the species code...

Yeah, I'll try to fix it.  I can't guarantee it'll be anytime soon, though - you'll probably have to wait a few weeks. :sigh:
Title: Species Support
Post by: diamondgeezer on January 27, 2004, 11:23:52 am
*pulls up comfy chair*

*waits*
Title: Species Support
Post by: phreak on January 27, 2004, 11:51:25 am
*gives DG a JD while he waits*

actaully Woo got the species code working for the next chapter of inferno, so the EA and ancients have unique glows

edit: heres an example

in species_defs.tbl
Code: [Select]

#SPECIES DEFS

$NumSpecies: 5

;------------------------
; Terran
;------------------------
$Species_Name: Terran
+Debris_Texture: debris01a
+Shield_Hit_ani: shieldhit01a
$ThrustAnims:
+Pri_Normal: thruster01
+Pri_Afterburn: thruster01a
+Sec_Normal: thruster02-01
+Sec_Afterburn: thruster02-02a
+Ter_Normal: thruster03-01
+Ter_Afterburn: thruster03-02a
$ThrustGlows:
+Normal: thrusterglow01
+Afterburn: thrusterglow02a

//followed by vas, shivan, etc.
#END



in sounds.tbl
Code: [Select]

#Flyby Sounds Start

$Terran: 0 T_flyby1.wav, 0, 0.75, 1, 200, 400 ; * Terran ship1 flyby player sound (3d sound)
$Terran: 1 T_flyby2.wav, 0, 0.75, 1, 200, 400 ; * Terran ship1 flyby player sound (3d sound)

$Vasudan: 0 V_Flyby1.wav, 0, 0.85, 1, 200, 400 ; * Vasudan ship1 flyby player sound (3d sound)
$Vasudan: 1 V_Flyby2.wav, 0, 0.85, 1, 200, 400 ; * Vasudan ship1 flyby player sound (3d sound)

$Shivan: 0 S_flyby1.wav, 0, 0.85, 1, 200, 400 ; * SHIVAN ship1 flyby player sound (3d sound)
$Shivan: 1 S_flyby2.wav, 0, 0.85, 1, 200, 400 ; * SHIVAN ship1 flyby player sound (3d sound)

$Ancient: 0 AFly.wav, 0, 0.85, 1, 200, 400 ; * Vasudan ship1 flyby player sound (3d sound)
$Ancient: 1 AFly2.wav, 0, 0.85, 1, 200, 400 ; * Vasudan ship1 flyby player sound (3d sound)

$EA: 0 flyby.wav, 0, 0.85, 1, 200, 400 ; * Terran ship1 flyby player sound (3d sound)
$EA: 1 flyby.wav, 0, 0.85, 1, 200, 400 ; * Terran ship1 flyby player sound (3d sound)
#Flyby Sounds End
Title: Species Support
Post by: diamondgeezer on January 27, 2004, 12:22:48 pm
I'm pretty sure I have all that stuff done correctly. I've also got my new fighter with the appropriate value in the 'spaeices' field of its table entry. Also, FS2 demanded I fiddle with the icon table so I added a fourth entry to each category of icons. Now it just CTDs when I hit the commit button.

I'm going to go and have another look at everything. Standby


[EDIT] OK. I can make it work if I have my fourth species fighter set to freindly (which is default) - I'm testing this in a standard one-on-one set up BTW. But if I set him to hostile I get some truly funky errors. Example:

Error: Can't open file <ÿÿÿÿÿÿÿÿ>
File:E:\Languages\Visual Studio Projects\Visual C++\fs2_open\code\Model\ModelRead.cpp
Line: 1427

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Title: Species Support
Post by: phreak on January 27, 2004, 12:58:08 pm
i wont know whats wrong unless i have the tables.  im figuring this is for Reci so thats a no-no.
Title: Species Support
Post by: diamondgeezer on January 27, 2004, 01:00:07 pm
I'll talk to Aldo, I imagine we can send you the tables if you think you can help...
Title: Species Support
Post by: phreak on January 27, 2004, 01:30:12 pm
i can use the visual c debugger to figure out where exactly its choking.  i'll send you back the fixed tables.