Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Raven2001 on September 15, 2012, 12:30:09 pm

Title: Issues with $Pspew in weapons.tbl
Post by: Raven2001 on September 15, 2012, 12:30:09 pm
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?

Title: Re: Issues with $Pspew in weapons.tbl
Post by: headdie on September 15, 2012, 12:37:05 pm
what does the debug log spew out?
Title: Re: Issues with $Pspew in weapons.tbl
Post by: Raven2001 on September 15, 2012, 12:49:26 pm
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

Title: Re: Issues with $Pspew in weapons.tbl
Post by: headdie on September 15, 2012, 01:00:54 pm
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
Title: Re: Issues with $Pspew in weapons.tbl
Post by: Raven2001 on September 15, 2012, 01:13:02 pm
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
Title: Re: Issues with $Pspew in weapons.tbl
Post by: headdie on September 15, 2012, 03:23:58 pm
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
Title: Re: Issues with $Pspew in weapons.tbl
Post by: Raven2001 on September 15, 2012, 03:53:23 pm
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 :)
Title: Re: Issues with $Pspew in weapons.tbl
Post by: headdie on September 15, 2012, 04:44:19 pm
no problem ;)
Title: Re: Issues with $Pspew in weapons.tbl
Post by: Spoon on September 15, 2012, 09:47:05 pm
offset is a vector
meaning it needs 3 numbers like: 10, 10, 10
Title: Re: Issues with $Pspew in weapons.tbl
Post by: Nuke on September 15, 2012, 10:48:56 pm
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.