Author Topic: FRED doens't like Rearm Rate or Muzzleflash...  (Read 4614 times)

0 Members and 1 Guest are viewing this topic.

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: FRED doens't like Rearm Rate or Muzzleflash...
Quote from: Trashman
...
$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.
« Last Edit: August 01, 2007, 12:57:06 am by Wanderer »
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED doens't like Rearm Rate or Muzzleflash...
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: FRED doens't like Rearm Rate or Muzzleflash...
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).
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED doens't like Rearm Rate or Muzzleflash...
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. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: FRED doens't like Rearm Rate or Muzzleflash...
Quote from: Trashman
...
$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:
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: FRED doens't like Rearm Rate or Muzzleflash...
Sure there is... and i kinda guess the error is related to those values.. (not 100% sure though)

Quote from: Trashman
$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.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: FRED doens't like Rearm Rate or Muzzleflash...
You were right :yes:

Everything works now..thank you VERY much guys...now I can get back to FREDing!
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Harbinger of DOOM

  • 28
  • Three fries short of a Happy Meal.
Re: FRED doens't like Rearm Rate or Muzzleflash...
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!
aldo_14 ~ "The ego has landed."
an0n ~ "Wheee, I can spam and no-one will notice!"