Author Topic: Add new ships using modular tables?  (Read 2396 times)

0 Members and 1 Guest are viewing this topic.

Add new ships using modular tables?
Is it possible to add ships using modular tables? because what I get now is a hellalot of warnings.

Error: extraships-shp.tbm(line 38:
Error: Required token = [#End], [$Subsystem:] or [$Name], found [$Default PBanks: ( "Prometheus R].

File:D:\C++\Freespace\fs2_open CVS\code\Parse\PARSELO.CPP
Line: 688
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Add new ships using modular tables?
I got similar errors, but they were refered to tech descriptions.

That "Prometheus R" worries me. I assume that you deleted a consistent part of the ship's tbl entry...all specs regarding meneuver capabilities and stuff. Maybe you have replaced a line about subsystems with one about the loadout.

Check that suspicious entry and verify if I'm right.


Adding new ships to the list is easy: you have just to copy and paste their tbl entry where appropriate, paying attention on eventual mistakes. The ships tbl, however, has a certain ship limit. But you shouldn't have problems if you add five ships, for example.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 
Re: Add new ships using modular tables?
I'm not sure, but the Prometheus line looks like a quotation mark was left out, that's all. I'm not sure how that happened, but it does seem to happen a lot.
"You need to believe in things that aren't true. How else can they become?" -DEATH, Discworld

"You can fight like a krogan, run like a leopard, but you'll never be better than Commander Shepard!"

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: Add new ships using modular tables?
I always get this error. ;)

Can we see it? I've been able to fix it a majority of the time.

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Add new ships using modular tables?
How you can make tables work if you get this error?!?

You just have to follow an order. X spec comes first, followed by Y. A couple of times I got this errors because I have deleted important parts of the subsystems part of a tbl entry...by mistake.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: Add new ships using modular tables?
No, I always miss out commas, speech marks, misspell things, stuff like that. But it usually is fixed in the end.

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Add new ships using modular tables?
How can you? Tables are written in your home language!

Even DySkO can set them correctly(he is on vacation, so there are no risks!). :lol:
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: Add new ships using modular tables?
So? Everybody makes typos, even if it is in their home language! :P

Well, the majority of .tbms i make are +nocreate editors, so I only need to include a part of the table. This sometimes causes problems if I forget to include something that is necessary (like using a new FS2Open feature).

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Add new ships using modular tables?
So? Everybody makes typos, even if it is in their home language! :P

Not me :P

Anyways, we're turning this board into another Inferno Night Cafè.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: Add new ships using modular tables?
Yes you did. In Shiv's Mod Thread, you wrote 'ipothetical' instead of 'hypothetical'.

Proof:

We were talking about an ipothetical battle, the main campaigns have nothing to do with that.

(Unless ipothetical is a word, which I have never heard of?)

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Add new ships using modular tables?
Since when English is my home language, Snail?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Add new ships using modular tables?
So are there still problems or errors?
Do not meddle in the affairs of coders for they are soggy and hard to light

 
Re: Add new ships using modular tables?
Well, I copied these things from the FSPort ship table and then changed al the FS1 weapons into their FS2 "Equivelents". Probably screwed up something there.

If you really want to know, the fighter was the Apollo

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: Add new ships using modular tables?
Guess it wasn't a typo. Guess it was a spelling error... Whatever.

 
Re: Add new ships using modular tables?
Hey I got it! I copied all the weapons used in singleplayer to the allowed dogfight PBanks, and accidently copied the Pbanks flag with them, producing something like this:
$Allowed PBanks: ( "Subach HL-7" "Akheton SDG" "Morning Star" "Prometheus S" "Prometheus R" "Lamprey" "Targeting Laser" )
$Allowed PBanks: ( "Subach HL-7" "Akheton SDG" "Morning Star" "Prometheus S" "Prometheus R" "Lamprey" "Targeting Laser" )
$Allowed SBanks: ( "Rockeye" "Stiletto" "Tempest" "Harpoon" "Hornet" "Hornet#Weak" "Harpoon#Weak" "EMP Adv." "Infyrno" )
$Allowed SBanks: ( "Rockeye" "Stiletto" "Tempest" "Harpoon" "Hornet" "Hornet#Weak" "Harpoon#Weak" "EMP Adv." )

instead of:
$Allowed PBanks: ( "Subach HL-7" "Akheton SDG" "Morning Star" "Prometheus S" "Prometheus R" "Lamprey" "Targeting Laser" )
$Allowed Dogfight PBanks: ( "Subach HL-D" "Akheton SDG" "Morning Star" "Prometheus D" "Lamprey" "Targeting Laser" )
$Allowed SBanks: ( "Rockeye" "Stiletto" "Tempest" "Harpoon" "Hornet" "Hornet#Weak" "Harpoon#Weak" "EMP Adv." "Infyrno" )
$$Allowed Dogfight SBanks: ( "Rockeye" "Stiletto" "Tempest" "Harpoon" "Hornet" "Hornet#Weak" "Harpoon#Weak" "EMP Adv." )

 

Offline Devrous

  • SPARTAN-151
  • 26
  • RAMPANT AI
    • FS2H
Re: Add new ships using modular tables?
Glad you got it to work. Any longer and this post would be flaming  :lol:

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Add new ships using modular tables?
Uh, not really.

So, my theory about yout problem was true :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]