Author Topic: Issues with $Pspew in weapons.tbl  (Read 2386 times)

0 Members and 1 Guest are viewing this topic.

Offline Raven2001

  • Machina Terra Reborn
  • 211
  • Im not the droid your looking for, move along
Issues with $Pspew in weapons.tbl
So I've been trying to get a certain weapon to work, but however, I always get a ton of errors when launching freespace. I know for certain that the problem is in the $Pspew section, because if I remove it, there's no errors whatsoever.

Code: [Select]
; Blah
$Name: Blah
+Title: XSTR("Blah", 3302)
+Description:
XSTR(
"Special Issue
Level 9 Hull Damage
Level 8 Shield Damage", 3303)
$end_multi_text
+Tech Title: XSTR("Blah", 3304)
+Tech Anim: Tech_GTW-83_Lamprey
+Tech Description:
XSTR(
".", 3305)
$end_multi_text
$Model File: none
@Laser Bitmap: blah
@Laser Glow: blahglow
@Laser Color: 120, 143, 250
@Laser Color2: 50, 10, 200
@Laser Length: 5.0
@Laser Head Radius: 3.5
@Laser Tail Radius: 3.5
$Mass: 0.3
$Velocity: 1000.0
$Fire Wait: 0.9
$Damage: 75
$Blast Force: 500.0
$Inner Radius: 50.0
$Outer Radius: 280.0
$Armor Factor: 1.2
$Shield Factor: 1.1
$Subsystem Factor: 1.0
$Lifetime: 0.6
$Energy Consumed: 9.5
$Cargo Size: 0
$Homing: NO
$LaunchSnd: 86
$ImpactSnd: 85
$Flags: ( "player allowed" "huge" "particle spew" )
$Trail:
+Start Width: 2.55
+End Width: 0.15
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 2.15
+Bitmap: beam-navy2
$Icon: xxx_blahload
$Anim: xxx_blah
$Impact Explosion: msnhit
$Impact Explosion: none
$Impact Explosion Radius: 50.0
$Pspew:
+Index: 1
+Type: Helix
+Count: 10.0
+Time: 500.0
+Vel: 60.0
+Radius: 0.5
+Life: 1.0
+Scale: 50.0
+Z Scale: 1.0
+Rotation Rate: 1.0
+Offset: 0.0
+Initial Velocity: 0
+Bitmap: blah_particle

I'm not too familiar with tables (especially since the numerous upgrades by the SCP), but I took a look at the wiki regarding this issue, but still can't find an answer.
So anyone know's what might be causing the problems?

Yeah, I know you were waiting for a very nice sig, in which I was quoting some very famous scientist or philosopher... guess what?!? I wont indulge you...

Why, you ask? What, do I look like a Shivan to you?!?


Raven is a god.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Issues with $Pspew in weapons.tbl
what does the debug log spew out?
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Raven2001

  • Machina Terra Reborn
  • 211
  • Im not the droid your looking for, move along
Re: Issues with $Pspew in weapons.tbl
Sorry, forgot to post these indeed:

Code: [Select]
weapons.tbl(line 746):
Error: Required token = [#End] or [$Name:], found [.0 ]
in weapon: Advocate
.

KERNELBASE.dll! WaitForSingleObjectEx + 36 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes

Code: [Select]
weapons.tbl(line 747):
Error: Required token = [#End] or [$Name:], found [+Time: 500.0 ]
in weapon: Advocate
.

ntdll.dll! KiFastSystemCallRet
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes

Code: [Select]
weapons.tbl(line 748):
Error: Required token = [#End] or [$Name:], found [+Vel: 60.0 ]
in weapon: Advocate
.

KERNELBASE.dll! WaitForSingleObjectEx + 29 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes

Code: [Select]
weapons.tbl(line 749):
Error: Required token = [#End] or [$Name:], found [+Radius: 0.5 ]
in weapon: Advocate
.

KERNELBASE.dll! WaitForSingleObjectEx + 211 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes

Code: [Select]
weapons.tbl(line 750):
Error: Required token = [#End] or [$Name:], found [+Life: 1.0 ]
in weapon: Advocate
.

ntdll.dll! KiFastSystemCallRet
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes

Yeah, I know you were waiting for a very nice sig, in which I was quoting some very famous scientist or philosopher... guess what?!? I wont indulge you...

Why, you ask? What, do I look like a Shivan to you?!?


Raven is a god.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Issues with $Pspew in weapons.tbl
I think it might be the line

+Time:          500.0   

the wiki says this is a integer counting milliseconds, integer only hold whole numbers and not decimal places so remove the .0 and try again
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Raven2001

  • Machina Terra Reborn
  • 211
  • Im not the droid your looking for, move along
Re: Issues with $Pspew in weapons.tbl
Thanks! That did solve something, because now I get another set of errors:

Code: [Select]
weapons.tbl(line 755):
Error: Expecting float, found [Initial Velocity: 0.0 ].

ntdll.dll! KiFastSystemCallRet
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes

Code: [Select]
weapons.tbl(line 755):
Error: Required token = [#End] or [$Name:], found [Velocity: 0.0 ]
in weapon: Advocate
.

ntdll.dll! KiFastSystemCallRet
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes

Code: [Select]
weapons.tbl(line 756):
Error: Required token = [#End] or [$Name:], found [+Bitmap: blah_particle]
in weapon: Advocate
.

ntdll.dll! KiFastSystemCallRet
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_6_14_RC6.exe! <no symbol>
fs2_open_3_6_14_RC6.exe! <no symbol>
ntdll.dll! RtlTryEnterCriticalSection + 2400 bytes
kernel32.dll! ReadFile + 89 bytes
ntdll.dll! RtlTryEnterCriticalSection + 1667 bytes
Yeah, I know you were waiting for a very nice sig, in which I was quoting some very famous scientist or philosopher... guess what?!? I wont indulge you...

Why, you ask? What, do I look like a Shivan to you?!?


Raven is a god.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Issues with $Pspew in weapons.tbl
strange one, the problem seems to be:
+Offset:       0.0
now the wiki says this is a float variable so 0.0 is should be a valid entry but I wonder if with the value being nothing it is getting skipped/miss read so could you try changing it to 0.1 and seeing if that fixes it.
alternatively as    +Offset:       0.0   and    +Initial Velocity:   0   are 0 try ; commenting them out as looking at the BP entries these might be optional
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Raven2001

  • Machina Terra Reborn
  • 211
  • Im not the droid your looking for, move along
Re: Issues with $Pspew in weapons.tbl
I did try to change both +Offset and +Initial Velocity to something other than 0, but still encountered the same error. However, commenting them out did do the trick.
Can't understand what went on there to be honest :\

Thank you very much for your help :)
Yeah, I know you were waiting for a very nice sig, in which I was quoting some very famous scientist or philosopher... guess what?!? I wont indulge you...

Why, you ask? What, do I look like a Shivan to you?!?


Raven is a god.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Issues with $Pspew in weapons.tbl
no problem ;)
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Issues with $Pspew in weapons.tbl
offset is a vector
meaning it needs 3 numbers like: 10, 10, 10
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Issues with $Pspew in weapons.tbl
offset and initial velocity are supposed to be a vectors and time is an int
check the wiki and mind your datatypes. though to be fair i really dont remember freespace tables being anal about **** like decimal points on ints.
« Last Edit: September 15, 2012, 10:56:43 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN