Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: T-Man on November 18, 2010, 09:02:37 am

Title: Quick Table code problem
Post by: T-Man on November 18, 2010, 09:02:37 am
I've been trying to upgrade the Orion in a campaign I’m planning so that its big turrets have three THT's each. Originally I was going to go with salvo fire but when I read about the "ROF" flag on the Wiki I thought I’d give it a try as it'd make a nicer effect. However, it doesn’t seem to be accepting it and I can't work out where I’ve gone wrong, so thought I’d see if someone around here who is a little more used to TBLing with the newer features can see the no doubt obvious muck-up i've made.

Here's the code (I cut out the rest of the Orion entry as it worked fine before I put this in and the error message specifically points to the ROF segment);
Code: [Select]
$Closeup_pos: 0.0, 0.0, -2000
$Closeup_zoom: 0.5
$Score: 1000
$Subsystem: Turret01a, 1.875, 3.0
$Default PBanks: ( "Terran Huge Turret" )
$ROF:
+Use firingpoints
$Flags: ( "check hull" "reset when idle" )
$Subsystem: Turret02a, 1.875, 3.0
$Default PBanks: ( "Terran Huge Turret" )
$ROF:
+Use firingpoints
$Flags: ( "check hull" "reset when idle" )
$Subsystem: Turret03a, 1.875, 3.0
$Default PBanks: ( "Terran Huge Turret" )
$ROF:
+Use firingpoints
$Flags: ( "check hull" "reset when idle" )  
$Subsystem: Turret04a, 1.875, 3.0
$Default PBanks: ( "Terran Huge Turret" )
$ROF:
+Use firingpoints
$Flags: ( "check hull" "reset when idle" )
$Subsystem: Turret05a, 1.875, 3.0
$Default PBanks: ( "Terran Huge Turret" )
$ROF:
+Use firingpoints
$Flags: ( "check hull" "reset when idle" )
$Subsystem: Turret06, 0.625, 2.0
$Default PBanks: ( "Terran Turret" )
$Subsystem: Turret07, 0.625, 2.0


EDIT: Here's the error message btw

Code: [Select]
ships.tbl(line 2054:
Error: Required token = [#End], [$Subsystem:], [$Name], or [$Template], found [$ROF:].

ntdll.dll! KiFastSystemCallRet
kernel32.dll! WaitForSingleObject + 18 bytes
fred2_open_3_6_12d_INF_SSE2.exe! SCP_DumpStack + 354 bytes
fred2_open_3_6_12d_INF_SSE2.exe! Error + 229 bytes
fred2_open_3_6_12d_INF_SSE2.exe! error_display + 427 bytes
fred2_open_3_6_12d_INF_SSE2.exe! required_string_4 + 388 bytes
fred2_open_3_6_12d_INF_SSE2.exe! parse_ship_values + 19618 bytes
fred2_open_3_6_12d_INF_SSE2.exe! parse_ship + 1013 bytes
fred2_open_3_6_12d_INF_SSE2.exe! parse_shiptbl + 374 bytes
fred2_open_3_6_12d_INF_SSE2.exe! ship_init + 445 bytes
fred2_open_3_6_12d_INF_SSE2.exe! fred_init + 925 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFREDView::OnCreate + 103 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::OnWndMsg + 2076 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::WindowProc + 50 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxCallWndProc + 240 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxWndProc + 166 bytes
USER32.dll! GetWindowLongW + 1203 bytes
USER32.dll! GetWindowLongW + 1419 bytes
USER32.dll! ReleaseDC + 125 bytes
USER32.dll! CharNextW + 757 bytes
ntdll.dll! KiUserCallbackDispatcher + 46 bytes
USER32.dll! CharNextW + 1070 bytes
USER32.dll! CreateWindowExA + 51 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxCtxCreateWindowExA + 163 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::CreateEx + 332 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::Create + 153 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFrameWnd::CreateView + 352 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFrameWnd::OnCreateClient + 40 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFrameWnd::OnCreateHelper + 57 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFrameWnd::OnCreate + 88 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CMainFrame::OnCreate + 55 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::OnWndMsg + 2076 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::WindowProc + 50 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxCallWndProc + 240 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxWndProc + 166 bytes
USER32.dll! GetWindowLongW + 1203 bytes
USER32.dll! GetWindowLongW + 1419 bytes
USER32.dll! ReleaseDC + 125 bytes
USER32.dll! CharNextW + 757 bytes
ntdll.dll! KiUserCallbackDispatcher + 46 bytes
USER32.dll! CharNextW + 1070 bytes
USER32.dll! CreateWindowExA + 51 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxCtxCreateWindowExA + 163 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWnd::CreateEx + 332 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFrameWnd::Create + 225 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFrameWnd::LoadFrame + 318 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CDocTemplate::CreateNewFrame + 388 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CSingleDocTemplate::OpenDocumentFile + 370 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CDocManager::OnFileNew + 348 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CWinApp::OnFileNew + 37 bytes
fred2_open_3_6_12d_INF_SSE2.exe! CFREDApp::InitInstance + 1618 bytes
fred2_open_3_6_12d_INF_SSE2.exe! AfxWinMain + 132 bytes
fred2_open_3_6_12d_INF_SSE2.exe! WinMain + 26 bytes
fred2_open_3_6_12d_INF_SSE2.exe! __tmainCRTStartup + 358 bytes
fred2_open_3_6_12d_INF_SSE2.exe! WinMainCRTStartup + 15 bytes
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes

Cheers people.
Title: Re: Quick Table code problem
Post by: General Battuta on November 18, 2010, 09:05:35 am
What's the error message?
Title: Re: Quick Table code problem
Post by: The E on November 18, 2010, 09:06:32 am
You, uhh, actually need to specify an ROF, you know.
Title: Re: Quick Table code problem
Post by: T-Man on November 18, 2010, 09:11:24 am
What's the error message?

Oh yeah, sorry. Added to the top post.

You, uhh, actually need to specify an ROF, you know.

Added 3.0 after the ROF flags (so it reads "$ROF:  3.0", that right?). getting the same error.
Title: Re: Quick Table code problem
Post by: General Battuta on November 18, 2010, 09:14:39 am
Is the ROF flag even in 3.6.12? Do you need to use a 3.6.13 build?
Title: Re: Quick Table code problem
Post by: headdie on November 18, 2010, 09:17:40 am
Is the ROF flag even in 3.6.12? Do you need to use a 3.6.13 build?

didnt know ROF was implemented thought we were still only using fire wait :wtf:

ROF does not show in the wiki so it's most likely a 3.6.13 feature
Title: Re: Quick Table code problem
Post by: T-Man on November 18, 2010, 09:23:09 am
Ah yeah... just noticed its makred as .13 (not sure if it was before though, someone must've noticed after i had read it). I'm still running .12.

http://www.hard-light.net/wiki/index.php/Subsystem#.24ROF:

Well, back to salvo fire it is for now. Apprechiate the help guys.