Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Nuke on June 02, 2005, 04:45:52 am

Title: whats going on with vwep?
Post by: Nuke on June 02, 2005, 04:45:52 am
i notice the weapon models feature isnt working in any of the newer builds. i know it was committed but it will not work in any of the newer builds. was it disabled or just accidently broken?
Title: whats going on with vwep?
Post by: Nuke on June 03, 2005, 04:21:39 am
:bump:
Title: whats going on with vwep?
Post by: Bobboau on June 03, 2005, 05:29:04 am
is it just not showing up in game or are you haveing table parseing problems, someone changed the table syntax
Title: whats going on with vwep?
Post by: WMCoolmon on June 03, 2005, 11:18:08 am
Yeah, you should know by now that "IT NO WORKIE!!!!1111!!11" isn't a particularly helpful bug report. ;)

I heard that it was crashing in-game, but I doubt that's a table thing. and IIRC I tried to keep support for the way Bobb had done it.
Title: whats going on with vwep?
Post by: Nuke on June 03, 2005, 03:41:11 pm
i had assumed it was disabled but wanted to know for sure. but sence neither of you knew about it not working its definately a problem. its a parsing thing as far as i know. it works the second i remove the $Show Weapon Models: entrys from the table. all the other tags get parsed fine.

i get this when the tags are presant:

Error: ships.tbl(417):
Error: Required token = [$AI Class:], found [)]
in ship: PF HellBat.

File:U:\src\cvs\fs2_open.testing\code\Parse\PARSELO.CPP
Line: 528

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------

now the same tables work fine in older cvs builds that had the vwep code.  ship flags arent getting processed, it cannot find $ai class:. if you remove $show weapon models: it will load just fine. this is my table:

Code: [Select]

$Name: PF HellBat
$Short name: Deathmaker
$Species: Pirate   ; yes, im using custom spiecies
+Type: XSTR("Light Raider", 2939)
+Maneuverability: XSTR("Excellent", 2940)
+Armor: XSTR("Light", 2941)
+Manufacturer: XSTR("Fat Tony's Custom Fighters", 2942)
+Description: XSTR("Sweet", 2943)
$end_multi_text
+Tech Description: XSTR("yada yada yada.", 2944)
$end_multi_text
+Length: 16 m
+Gun Mounts: 6
+Missile Banks: 0
$POF file: hellbat.pof
$Detail distance: (0)
$Show damage: YES
$Density: 1
$Damp: 0.1
$Rotdamp: 0.35
$Max Velocity: 30.0, 30.0, 85.0
$Rotation time: 2.9, 2.5, 4.0
$Rear Velocity: 30.0
$Forward accel: 2.0
$Forward decel: 1.0
$Slide accel: 0.5
$Slide decel: 0.5
$Expl inner rad: 50.0
$Expl outer rad: 75.0
$Expl damage: 25.0
$Expl blast: 1000.0
$Expl Propagates: NO
$Shockwave Speed: 0.0
$Allowed PBanks: ("50mm he" "50mm fmj" "50mm spi" "Phalanx")
$Allowed Dogfight PBanks: ("50mm he" "50mm fmj" "50mm spi" "Phalanx")
$Default PBanks: ("Phalanx" "50mm he")
$Pbank Capacity: (240,800)
$Show Weapon Models: (yes,yes)
$Shields: 100
$Shield Color: 255 180 40
$Power Output: 25
$Max Oclk Speed: 125
$Max Weapon Eng: 10
$Hitpoints: 275
$Flags: ("player_ship" "fighter" "in tech database" "ballistic primaries" "show ship")
$AI Class: Captain
$Afterburner: YES
+Aburn Max Vel: 90.0, 90.0, 175.0
+Aburn For accel: 0.5
+Aburn Fuel: 300.0
+Aburn Burn Rate: 40.0
+Aburn Rec Rate: 8
$Countermeasures: 20
$Scan time: 2000
$EngineSnd: 128
$Closeup_pos: 0.0, 0.0, -20
$Closeup_zoom: 0.5
$Shield_icon: shield_hellbat
$Ship_icon: icon_hellbat
$Ship_anim: ani_hellbat
$Ship_overhead: load_hellbat
$Score: 10
$Trail:
+Offset: -7.75 -2.8 0.75
+Start Width: 0.25
+End Width: 0.05
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 1.0
+Spew Time: 60
+Bitmap: Contrail01
$Trail:
+Offset: 7.75 -2.8 0.75
+Start Width: 0.25
+End Width: 0.05
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 1.0
+Spew Time: 60
+Bitmap: Contrail01
$Subsystem: communication, 5, 0
$Subsystem: navigation, 5, 0
$Subsystem: weapons, 10, 0
$Subsystem: sensors, 5, 0
$Subsystem: engines, 18, 0
Title: whats going on with vwep?
Post by: Grimmeehh on June 03, 2005, 04:01:00 pm
isnt that a custom ship ?

models are working fine for mein the 30/05/05 version, not grabbed the latest one yet though..
Title: whats going on with vwep?
Post by: Nuke on June 03, 2005, 04:09:18 pm
yea, but the other tables parse fine.  its the ships.tbl thats refusing to load. the newest build ive been able to use was fs2_open_C03122005_o.exe. after that stuff stopped working.
Title: whats going on with vwep?
Post by: Bobboau on June 03, 2005, 05:21:40 pm
he wraped the code for loading the bools into a parse bool list function, I think you need to specify a yes or no for every bank, and they need to be in quotation marks and need to have comas between them, but I'm not sure all I know is the syntax changed to something and I didn't feel like fighting with it at that moment
Title: whats going on with vwep?
Post by: WMCoolmon on June 03, 2005, 05:33:11 pm
OK, based on your error I guessed that I forgot to increment Mp somewhere, and it looks like I did. Try out the next build.

Also, while commas should work, I'd like to phase it out as every other list type doesn't use them. So bool lists should look like:
Code: [Select]
$Variable: (yes no yes)
Title: whats going on with vwep?
Post by: Nuke on June 03, 2005, 06:24:19 pm
cool, thanks, i await your build.