Author Topic: Table limits  (Read 4980 times)

0 Members and 1 Guest are viewing this topic.

Offline wardog300k

  • 28
  • I'm a FREDder
What are the limits of table size in KB,i know that ships.tbl is 380KB.
But i want to know stars and weapons.
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
There is no limit in terms of filesize. There are limits regarding the maximum number of entries in some of those tables, but it is highly unlikely that you'll ever hit them.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline wardog300k

  • 28
  • I'm a FREDder
Really?I thought that there are filesize limits.

Ships.tbl works fine under 380,over that it crashes the FRED.If i replace a juggernaut with 3 cruisers,and it reaches 379KB,it works,if i replace one of the cruisers with a corvette,it reaches 382 and it crashes.
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Well, that's some other issue then. The BP ships.tbl is ~600kb in size, and loads without issue. Please follow the procedure to generate a debug log, except substituting the debug version of FRED for the debug version of FSO.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline wardog300k

  • 28
  • I'm a FREDder
Just tested with stars.tbl as well,after reaching 4.15 it crashes,under that it is fine.
As for the weapons its currently over 160,it was over 180 at one point,works without problems.
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

  

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
What error messages are you getting from debug builds?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline wardog300k

  • 28
  • I'm a FREDder
That everything in the weapons and ships tables is wrong,as always.
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
That does not help us in trying to figure out what is wrong. Please post the fs2_open.logs.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline wardog300k

  • 28
  • I'm a FREDder
Right now i get this weapons error,after that it crashes


weapons.tbl(line 634):
Error: Required token = [#End] or [$Name:], found [@Laser Glow: 2_laserglow03].

<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! SCP_DumpStack + 354 bytes
<no module>! Error + 229 bytes
<no module>! error_display + 369 bytes
<no module>! required_string_either + 225 bytes
<no module>! parse_weaponstbl + 140 bytes
<no module>! weapon_init + 79 bytes
<no module>! fred_init + 803 bytes
<no module>! CFREDView::OnCreate + 103 bytes
<no module>! CWnd::OnWndMsg + 2076 bytes
<no module>! CWnd::WindowProc + 50 bytes
<no module>! AfxCallWndProc + 240 bytes
<no module>! AfxWndProc + 166 bytes
<no module>! GetDC + 109 bytes
<no module>! UserLpkPSMTextOut + 460 bytes
<no module>! DefWindowProcW + 384 bytes
<no module>! SetLayeredWindowAttributes + 106 bytes
<no module>! KiUserCallbackDispatcher + 19 bytes
<no module>! GetScrollInfo + 1120 bytes
<no module>! CreateWindowExA + 51 bytes
<no module>! AfxCtxCreateWindowExA + 163 bytes
<no module>! CWnd::CreateEx + 332 bytes
<no module>! CWnd::Create + 153 bytes
<no module>! CFrameWnd::CreateView + 352 bytes
<no module>! CFrameWnd::OnCreateClient + 40 bytes
<no module>! CFrameWnd::OnCreateHelper + 57 bytes
<no module>! CFrameWnd::OnCreate + 88 bytes
<no module>! CMainFrame::OnCreate + 55 bytes
<no module>! CWnd::OnWndMsg + 2076 bytes
<no module>! CWnd::WindowProc + 50 bytes
<no module>! AfxCallWndProc + 240 bytes
<no module>! AfxWndProc + 166 bytes
<no module>! GetDC + 109 bytes
<no module>! UserLpkPSMTextOut + 460 bytes
<no module>! DefWindowProcW + 384 bytes
<no module>! SetLayeredWindowAttributes + 106 bytes
<no module>! KiUserCallbackDispatcher + 19 bytes
<no module>! GetScrollInfo + 1120 bytes
<no module>! CreateWindowExA + 51 bytes
<no module>! AfxCtxCreateWindowExA + 163 bytes
<no module>! CWnd::CreateEx + 332 bytes
<no module>! CFrameWnd::Create + 225 bytes
<no module>! CFrameWnd::LoadFrame + 318 bytes
<no module>! CDocTemplate::CreateNewFrame + 388 bytes
<no module>! CSingleDocTemplate::OpenDocumentFile + 370 bytes
<no module>! CDocManager::OnFileNew + 348 bytes
<no module>! CWinApp::OnFileNew + 37 bytes
<no module>! CFREDApp::InitInstance + 1582 bytes
<no module>! AfxWinMain + 132 bytes
<no module>! WinMain + 26 bytes
<no module>! __tmainCRTStartup + 358 bytes
<no module>! WinMainCRTStartup + 15 bytes
<no module>! RegisterWaitForInputIdle + 73 bytes
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
weapons.tbl(line 634):
Error: Required token = [#End] or [$Name:], found [@Laser Glow: 2_laserglow03].

This sort of error appears if your table entry is malformed. The parser is expecting either the start of a new entry or the end of the table, instead it sees the @Laser Glow entry. Do note that the order of entries in any table is not optional, the order as it is presented in the wiki pages must be used.

Also, as a hint for the future: When writing new table entries, do not try to add several new entries to a table at once. Always go step by step, and use the debug builds to check if your table entry is correct. That way, you'll avoid situations like these.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Also, just a thought, are you using FS2Open or retail? It does not have a size limit for table files, but retail FS2 might've had one.

 

Offline wardog300k

  • 28
  • I'm a FREDder
I use the retail.

I usually add more than one table entry,however retail has no problems with it,so i know it is alright.
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
I usually add more than one table entry,however retail has no problems with it,so i know it is alright.

No, you don't. The retail build will not tell you anything about a large variety of issues that can be caused by bad tabling. These issues are caught and warned about in FSOpen debug builds, and using them is strongly recommended for that reason alone. The point is that the issues you're having can only be fixed by running the debug builds, fixing all errors they throw at you, and repeating until no more errors are thrown.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Retail absolutely had a 380KB filesize limit on ships.tbl and weapons.tbl. tstrings is much larger but IIRC goes through a different path through the code and thus isn't susceptible to the same bug. Other tables probably also are.

It's one of the classic modding bugs of yore. I recognised it the second I saw the first post in this thread (even if it's been years since I last saw it mentioned).

FS2_Open of course doesn't have these limits.
« Last Edit: March 06, 2015, 11:17:05 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Oh god, really? I know it shouldn't surprise me that retail has these issues, but it still kinda does.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
the moral of the story is retail sux use fsopen u noob
(´・ω・`)
=============================================================

 

Offline wardog300k

  • 28
  • I'm a FREDder
It doesn't work correctly,or better said it crashes every few minutes u noob
Crush the NTF-Conflict Zone
One last war, one last hope, one last survival-Final Destination On Delay
Set free from the GTVA-Liberation Wars On Delay

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
It doesn't work correctly,or better said it crashes every few minutes u noob

Which is why there is a debug build available that you can use to generate fs2_open.logs which in turn we can use to help you figure out what's going wrong in your mod.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Fury

  • The Curmudgeon
  • 213
wardog300k: FS2 retail does not have strict error checking like FS2 Open does. A lot of errors go past retail FS2 error checks and with a bit of "luck". you don't necessarily notice anything wrong. This does not mean you don't have errors, retail FS2 simply doesn't react appropriately to them.

FS2 Open on the other hand has much, much stricter error checking, courtesy of great many SCP developers who are modders themselves. However, FS2 Open release builds may have strange problems, crashes, and does not tell you what is wrong. The release builds do not have strict error checking enabled, because they incur heavy performance penalty, for this purpose you should use debug builds.

Debug builds are bread and butter of all modders, and because of them quality of mods have steadily increased over the years. The days when modders released mods that had numerous errors, crashes and other strange issues are mostly behind us.

All that said, FS2 Open is not infallible and it has taken great many years to get even to this point, but FS2 Open keeps improving. Some problems people encounter are actual bugs in FS2 Open itself, and not in the mod. People tend to push FS2 Open and by doing so, we discover new problems we need to address.

If you want to know what is wrong with your mod when you use FS2 Open, please help us to help you.  You can do this by providing us with a debug log.
« Last Edit: March 06, 2015, 02:21:59 pm by Fury »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Basic rule of thumb: If you can't run a debug version of FSO without getting warnings, you don't have an error-free table regardless of what other builds or retail says.

It's just that retail will sometimes randomly crash on that error in the middle of the game rather than always warning about it right at the start. Or it will crash for your players but not you. Or it will crash FSO but not retail meaning that despite all your hard work, next to no one will play your missions cause so few people use retail these days.

Oh god, really? I know it shouldn't surprise me that retail has these issues, but it still kinda does.

If you download old mods you'll notice that most people trimmed out unused table entries like Volition Bravos, etc to give them more space for their own ships.

I'll stop now before I start to sound like an old curmudgeon going on about modding in his day. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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