Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TrashMan on July 24, 2007, 09:04:18 am
-
Using FRED 3.6.9. and it gives me a error whenever I have a $Rearm rate: entry for a ballistic weapon or $MuzzleFlash for the same...what gives???
-
how old is that fred 3.6.9? does it happen with the fred from my recent builds
-
Havn't tried any of hte more recent builds...IIRC they're not quite stable..
-
They're not. But what's the point in asking a coder to fix a bug that's already fixed?
-
i don't really have any stability problems with the fred builds i've been making
-
If FRED will even put a name on the ships it's an improvement on the last builds I've made with it.
-
LOL...allrighty...I'll try the latest stable build. :lol:
-
If FRED will even put a name on the ships it's an improvement on the last builds I've made with it.
i haven't been having text problems with latest builds
-
Hmm.... tried this build:
http://www.hard-light.net/forums/index.php/topic,47353.0.html
It's 2 weeks old but stil lteh same thing...
-
First.. Post the errors (the meaningful part of the error). Then post the weapon table entry.
-
Error: weapons.tbl(line 737:
Error: Required token = [#End] or [$Name:], found [$Muzzleflash: viper_muzzle ]
in weapon: Vulcan.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Error: weapons.tbl(line 828:
Error: Required token = [#End] or [$Name:], found [$Homing: ]
in weapon: Reaper.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Error: weapons.tbl(line 829:
Error: Required token = [#End] or [$Name:], found [$LaunchSnd: ]
in weapon: Reaper.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Error: weapons.tbl(line 830:
Error: Required token = [#End] or [$Name:], found [$ImpactSnd: ]
in weapon: Reaper.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Error: weapons.tbl(line 831:
Error: Required token = [#End] or [$Name:], found [$Flags: ]
in weapon: Reaper.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Error: weapons.tbl(line 832:
Error: Required token = [#End] or [$Name:], found [$Icon: ]
in weapon: Reaper.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
$Name: Reaper
+Title: XSTR("GTW-66 Reaper Cannon", 3282)
+Description:
XSTR(
"HiVel Weapon
Level 10 Hull Damage
Level 1 Shield Damage", 3283)
$end_multi_text
+Tech Title: XSTR("GTW-80 Reaper", 3284)
+Tech Anim: Tech_GTW-66_Maxim_Gun
+Tech Description:
XSTR(
"Basicly a oversized and overpowered version of the Maxim, the Reaper is a rapid-fire cannon designed to penetrate heavy armor. Used mainly on the Thunderbolt.", 3285)
$end_multi_text
$Model File: none
@Laser Bitmap: laser1
@Laser Glow: laser1_2_glow
@Laser Color: 255, 110, 00
@Laser Color2: 255, 180, 00
@Laser Length: 4.7
@Laser Head Radius: 1.3
@Laser Tail Radius: 1.3
$Mass: 0.1
$Velocity: 1500.0
$Fire Wait: 0.1
$Damage: 30
$Armor Factor: 1.5
$Shield Factor: 0.1
$Subsystem Factor: 1.0
$Lifetime: 1.0
$Energy Consumed: 1.0
$Cargo Size: 0.1
$Rearm Rate: 100
$Homing: NO
$LaunchSnd: 195
$ImpactSnd: 196
$Flags: ( "player allowed" "shudder" "stream" "particle spew" "Huge" "ballistic" )
$Icon: iconNewton
$Anim: Newton
$Impact Explosion: Maxim_Impact
$Impact Explosion Radius: 4.0
$Pspew:
+Count: 1
+Time: 5000
+Vel: 1
+Radius: 0.75
+Life: 0.2
+Scale: 0.15
+Bitmap: Maxim_Particle
$Muzzleflash: viper_muzzle
$FOF: 0.5
-
As i do not have the entry for the Vulcan i cant really say what is wrong with that one...
However.. in this one (Reaper) you have simply placed the table entries in wrong order. See http://www.hard-light.net/wiki/index.php/Weapons.tbl
$Rearm rate: comes after the $Homing: field.
Also muzzleflash and pspew fields are misplaced.
-
That seems to have fixed hte reaper...the Vulcan still gives me errors: (starting with $LaunchSnd )
$Name: Vulcan
+Title: XSTR("GTW GP-2 Vulcan", 3302)
+Description:
XSTR(
"High Energy Usage
High rate of fire
Medium Damage", 3303)
$end_multi_text
+Tech Title: XSTR("GP-2 Vulcan ", 3304)
+Tech Anim: TECH_GP-2_V
+Tech Description:
XSTR(
"The Vulcan is similar to the Vindicator, but fires plasma bursts instead of mesons. It has a lower rate of fire but deals more punch with each shot. This variant is used on some warships as an anti-fighter weapon. It's damage per second ratio is lower than that of the GL-5, however it has greater range.", 3305)
$end_multi_text
$Model File: none
@Laser Bitmap: VulcanX
@Laser Glow: 2_laserglow03
@Laser Color: 20, 150, 20
@Laser Color2: 20, 150, 20
@Laser Length: 10.0
@Laser Head Radius: 0.45
@Laser Tail Radius: 0.45
$Mass: 0.5
$Velocity: 1000.0
$Fire Wait: 0.1
$Damage: 20
$Armor Factor: 1.1
$Shield Factor: 0.7
$Subsystem Factor: 0.9
$Lifetime: 1.0
$Energy Consumed: 1.0
$Cargo Size: 0.0
$Homing: NO
$LaunchSnd: 80
$ImpactSnd: 85
$Flags: ( "player allowed" "shudder" )
$Icon: IconGun09
$Anim: VulcanTECH
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 0.8
$Muzzleflash: viper_muzzle
$FOF: 1.0
-
Allmost forgot - this weapon spews out ewrros too:
$Name: D-Missile
+Title: XSTR("GTM-55 Disruptor Missile", 3357)
+Description:
XSTR(
"Special Issue
Electronic Warfare", 3358)
$end_multi_text
+Tech Title: XSTR("GTM-55 Disruptor Missile", 3359)
+Tech Anim: Tech_GTI_TAG_Missile_B
+Tech Description:
XSTR(
"Making a great comback is the venerable D-Missile. It's unique ability to completely shut-down a warship for several seconds has been improved making it a a valubale tactical element in modern warfare.", 3360)
$end_multi_text
$Model File: tagb.pof
$Mass: 20.0
$Velocity: 300.0
$Fire Wait: 8.0
$Damage: 10
$Blast Force: 10.0
$Inner Radius: 10.0
$Outer Radius: 30.0
$Shockwave Speed: 0
$Armor Factor: 0.1
$Shield Factor: 0.1
$Subsystem Factor: 0.1
$Lifetime: 5.0
$Energy Consumed: 0.0
$Cargo Size: 4.0
$Homing: YES
+Type: ASPECT
+Turn Time: 1.4
+Min Lock Time: 3
+Lock Pixels/Sec: 60
+Catch-up Pixels/Sec: 100
+Catch-up Penalty: 30
$LaunchSnd: 92
$ImpactSnd: 88
$FlyBySnd: -1
$Rearm Rate: 0.5
$Flags: ( "player allowed" "electronics" )
$Electronics:
+New Style:
+Intensity: 1.0
+Lifetime: 7000.0
+Randomness Time: 2000.0
$Trail:
+Start Width: 0.25
+End Width: 0.5
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 0.3
+Bitmap: MissileTrail04
$Icon: iconTagB
$Anim: tagB
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 9.0
-
Did you or did you not read the wikis' weapon.tbl? Especially the order of the entries?
In any case with D-Missile place the electronics after the rest of the stuff entry
With Vulcan i could use one or two of the actual error messages.
-
Error mesgaes are basicly stuff like:
Error: weapons.tbl(line 829:
Error: Required token = [#End] or [$Name:], found [$LaunchSnd: ]
in weapon: Reaper.
File: parselo.cpp
Line: 665
Error: weapons.tbl(line 829:
Error: Required token = [#End] or [$Name:], found [$ImpactSnd: ]
in weapon: Reaper.
File: parselo.cpp
ETc...
B.t.w. - thanks for hte help ;)
Line: 665
-
Could you just post the actual messages?
-
Error: weapons.tbl(line 686:
Error: Required token = [#End] or [$Name:], found [$LaunchSnd: ]
in weapon: Vindicator II.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Error: weapons.tbl(line 687:
Error: Required token = [#End] or [$Name:], found [$ImpactSnd: ]
in weapon: Vindicator II.
File: parselo.cpp
Line: 665
Error: weapons.tbl(line 688:
Error: Required token = [#End] or [$Name:], found [$Flags: ]
in weapon: Vindicator II.
File: parselo.cpp
Line: 665
Error: weapons.tbl(line 689:
Error: Required token = [#End] or [$Name:], found [$Icon: ]
in weapon: Vindicator II.
File: parselo.cpp
Line: 665
Error: weapons.tbl(line 690:
Error: Required token = [#End] or [$Name:], found [$Anim: ]
in weapon: Vindicator II.
File: parselo.cpp
Line: 665
------------------
; Vindicator II
;
$Name: Vindicator II
+Title: XSTR("GTW GL-6 Vindicator II", 3298)
+Description:
XSTR(
"Special Issue
Balistic ammo dependant
Extreem rate of fire", 3299)
$end_multi_text
+Tech Title: XSTR("GTW GL-6 Vindicator II", 3300)
+Tech Anim: TECH_GL-5_V
+Tech Description:
XSTR(
"The special Vindicator gattling laser, while an incredibly powerfull weapon, had an unsatiated energy drain which limited it's deployment. For that reason, a new version of the weapon was developed. The GTW GL-6 Vindicator 2 is a mass driver, fireing magneticly accelerated superheated projectiles. Overall, it deals somewhat higer damage against armor, and especially subsystems, but is less effective agasint shields. It's energy drain is far smaller than that of it's predecessor, but it is limited by available ammo.", 3301)
$end_multi_text
$Model File: none
@Laser Bitmap: Maxim_Bitmap
@Laser Glow: 2_laserglow03
@Laser Color: 250, 250, 120
@Laser Color2: 230, 250, 220
@Laser Length: 8.0
@Laser Head Radius: 0.3
@Laser Tail Radius: 0.3
$Mass: 0.3
$Velocity: 1200.0
$Fire Wait: 0.05
$Damage: 13
$Armor Factor: 1.1
$Shield Factor: 0.75
$Subsystem Factor: 1.0
$Lifetime: 0.6
$Energy Consumed: 0.3
$Cargo Size: 0.01
$Homing: NO
$Rearm Rate: 250
$LaunchSnd: 192
$ImpactSnd: 85
$Flags: ( "player allowed" "shudder" "ballistic" )
$Icon: IconGun06
$Anim: V-TECH2
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 0.5
$FOF: 1.0
$Shots: 1
It didn't even get to Vulcan...FRAK! What the hell is wrong now... The Vindicator II worked before!
-
Let me guess. The weapon that didn't work before was something before the Vindicator?
-
No...above it is Vindicator (1) and it works like a charm...then comes Vindicator II, THEN Vulcan and then the Reaper.
-
...
$Cargo Size: 0.01
$Homing: NO
$Rearm Rate: 250
$LaunchSnd: 192
$ImpactSnd: 85
$Flags: ( "player allowed" "shudder" "ballistic" )
...
There is another... rearm rate has been placed to a wrong position in the table.
rearm rate belongs only after the impactsnd, just before the flags.
-
The solution to all these problems is pretty simple. Run the debug build. When it spits out an error go find that particular entry in the table. Check where it should have been on the wiki.
-
Quite an important addition to the earlier posted by Karajorma.. As the main tables are filled with practically 100% with optional entries you wont' actually get an error message concerning the badly placed entry. You will get error message concerning the line following the misplaced entry as that entry has caused the parser to advanced past the 'proper entry' and doesn't expect it any more (ie. error with $LaunchSnd: meant that line preceding the $LaunchSnd: had issues.. as it did).
-
Good point. The error will generally be with one above (unless you've mispelled something) but when you look at the wiki you should spot that. :)
-
...
$Cargo Size: 0.01
$Homing: NO
$Rearm Rate: 250
$LaunchSnd: 192
$ImpactSnd: 85
$Flags: ( "player allowed" "shudder" "ballistic" )
...
There is another... rearm rate has been placed to a wrong position in the table.
rearm rate belongs only after the impactsnd, just before the flags.
WTF? I was told it goers after $Homing...no wonder..
Allrighty, all primareis work now..the onyl thing not working is hte D-Missile:
Error: weapons.tbl(line 4575:
Error: Required token = [#End] or [$Name:], found [.0]
in weapon: D-Missile.
File: parselo.cpp
Line: 665
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
;--------------------------------------------
$Name: D-Missile
+Title: XSTR("GTM-55 Disruptor Missile", 3357)
+Description:
XSTR(
"Special Issue
Electronic Warfare", 3358)
$end_multi_text
+Tech Title: XSTR("GTM-55 Disruptor Missile", 3359)
+Tech Anim: Tech_GTI_TAG_Missile_B
+Tech Description:
XSTR(
"Making a great comback is the venerable D-Missile. It's unique ability to completely shut-down a warship for several seconds has been improved making it a a valubale tactical element in modern warfare.", 3360)
$end_multi_text
$Model File: tagb.pof
$Mass: 20.0
$Velocity: 300.0
$Fire Wait: 8.0
$Damage: 10
$Blast Force: 10.0
$Inner Radius: 10.0
$Outer Radius: 30.0
$Shockwave Speed: 50.0
$Armor Factor: 0.1
$Shield Factor: 0.1
$Subsystem Factor: 0.1
$Lifetime: 5.0
$Energy Consumed: 0.0
$Cargo Size: 4.0
$Homing: YES
+Type: ASPECT
+Turn Time: 1.4
+Min Lock Time: 3
+Lock Pixels/Sec: 60
+Catch-up Pixels/Sec: 100
+Catch-up Penalty: 30
$LaunchSnd: 92
$ImpactSnd: 88
$FlyBySnd: -1
$Rearm Rate: 0.5
$Flags: ( "player allowed" "electronics" )
$Trail:
+Start Width: 0.25
+End Width: 0.5
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 0.3
+Bitmap: MissileTrail04
$Icon: iconTagB
$Anim: tagB
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 9.0
$Electronics:
+New Style:
+Intensity: 1.0
+Lifetime: 10000.0
+Randomness Time: 2000.0
the error line isn't helpfull at all since there's a .0 everywher.... :hopping:
-
Sure there is... and i kinda guess the error is related to those values.. (not 100% sure though)
$Electronics:
+New Style:
+Intensity: 1.0
+Lifetime: 10000.0
+Randomness Time: 2000.0
Both electronics lifetime and randomness time are integers... 10000 is integer (ie. legal value), 10000.0 is not.
-
You were right :yes:
Everything works now..thank you VERY much guys...now I can get back to FREDing!
-
Kind of funny how someone else's problems help you learn new stuff, huh? :pimp:
This stuff is gonna help me big-time with my stuff I'm planning!