Author Topic: Iceni turrets re-tabled - what am I missing?  (Read 3395 times)

0 Members and 1 Guest are viewing this topic.

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Iceni turrets re-tabled - what am I missing?
I'm using the following modular table to edit the turret-arament of our beloved NTF Iceni:
Code: [Select]
tlg-shp.tbm  -------------------------------
$Name: NTF Iceni
+nocreate
$Subsystem:                     turret01a,0.833,1.0
$Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret02,0.833,1.0
$Default PBanks:        ( "TerSlash" )
$Subsystem:                     turret03,0.833,1.0
$Default pBanks:        ( "AAAf" )
$Subsystem:                     turret04,0.833,1.0
$Default PBanks:        ( "AAAf" )
$Subsystem:                     turret05,0.833,1.0
    $Default pBanks:        ( )
$Default sBanks:        ( "Piranha" )
$Subsystem:                     turret06,0.833,1.0
$Default PBanks:        ( "Standard Flak" )
$Subsystem:                     turret07,0.833,1.0
$Default PBanks:        ( "BGreen" )
$Subsystem:                     turret08,0.833,1.0
$Default PBanks:        ( "TerSlash" )
$Subsystem:                     turret09,0.833,1.0
$Default PBanks:        ( "BGreen" )
$Subsystem:                     turret10,0.833,1.0
$Default PBanks:        ( "Standard Flak" )
$Subsystem:                     turret11a,0.833,1.0
$Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret12,0.833,1.0
$Default PBanks:        ( "TerSlash" )
$Subsystem:                     turret13,0.833,1.0
$Default PBanks:        ( "AAAf" )
$Subsystem:                     turret14,0.833,1.0
$Default PBanks:        ( "Standard Flak" )
$Subsystem:                     turret15,0.833,1.0
$Default PBanks:        ( "AAAf" )
$Subsystem:                     turret16,0.833,1.0
$Default pBanks:        ( "TerSlash" )
     $Default SBanks:        ( )
$Subsystem:                     turret17,0.833,1.0
$Default PBanks:        ( "AAAf" )
$Subsystem:                     turret18,0.833,1.0
$Default sBanks:        ( "Piranha" )
$Subsystem:                     turret19,0.833,1.0
$Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret20,0.833,1.0
$Default PBanks:        ( "Standard Flak" )
$Default SBanks:        ( )
$Subsystem:                     turret21a,0.833,1.0
$Default PBanks:        ( "Terran Huge Turret" "Terran Huge Turret" "Terran Huge Turret" )
$Subsystem:                     turret22a,0.833,1.0
$Default PBanks:        ( "Terran Huge Turret" "Terran Huge Turret" "Terran Huge Turret" )
$Subsystem:                     turret23a,0.833,1.0
$Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret24a,0.833,1.0
$Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret25a,0.833,1.0
$Default PBanks:        ( "Terran Turret" "Terran Turret" )
     $Default SBanks:        ( )

...but for the turrets 5, 16, 20 and 25a I'm getting a mixed arament between retail table and tbm (like in the following picture) instead of a replacement of the retail setup...


WTF am I missing here?

FRED build in use is 3.6.12 INF (release)...
« Last Edit: September 21, 2010, 01:54:24 pm by 0rph3u5 »
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Iceni turrets re-tabled - what am I missing?
I think I can see what's going on here, and it looks like an error or oversight in the way tbms like that are parsed. Basically, since this is a "+nocreate" entry, old data is only overwritten, not recreated from scratch. In this case, the previous SBanks entry was not discarded when your altered weapons layout was read in. Gonna have to bump this over to the SCP.

In the meantime, the only workaround would be to copy the entire Iceni entry and not using +nocreate, so that your new entry replaces the old one completely.
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 chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Iceni turrets re-tabled - what am I missing?
Try adding an empty Default SBanks to 25a?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Iceni turrets re-tabled - what am I missing?
Doesn't matter whether he uses +nocreate or not, the end result is same. And it's not a bug, but feature.

To "fix" it, you need to set it as follows:
Code: [Select]
$Subsystem:                     turret25a,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
    $Default SBanks:        ( "" )
Pardon me for any errors, I did not debug it.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Iceni turrets re-tabled - what am I missing?
Don't use ( "" ), because it would crash the game, use ( ) instead.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Iceni turrets re-tabled - what am I missing?
Neither one of the solutions works ... I still have hybrid turrets...

(updated tbm in first post)
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Iceni turrets re-tabled - what am I missing?
Then just get rid of the missiles in FRED, there can't be that many of them.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Iceni turrets re-tabled - what am I missing?
Neither one of the solutions works ... I still have hybrid turrets...

(updated tbm in first post)

Have you tried replacing the entire Iceni entry?
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 chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Iceni turrets re-tabled - what am I missing?
Yeah that's what I thought was meant by not using +nocreate, I don't know how that wouldn't work.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Iceni turrets re-tabled - what am I missing?
Code: [Select]
tlg-shp.tbm  -------------------------------
$Name:             NTF Iceni
$Short name:                    RCorvette
$Species:                       Terran
$POF file:                      corvette2r-01.pof
$Detail distance:                (0, 2000, 8000, 20000)
$ND:                             251 248 167
$ND:                             255 253 196
$ND:                             239 234 134
$ND:                             216 212 122
$Show damage:                    YES
$Density:                       1
$Damp:                          0.2
$Rotdamp:                       2.0
$Max Velocity:          0.0, 0.0, 35.0
$Rotation time:         100.0, 100.0, 80.0
$Rear Velocity:         0.0
$Forward accel:         8.0
$Forward decel:         4.0
$Slide accel:           0.0
$Slide decel:           0.0
$Expl inner rad:        150.0
$Expl outer rad:        750.0
$Expl damage:           200.0
$Expl blast:            12500.0
$Expl Propagates:       YES                                                     ;; If set to Yes, then when the ship dies, the explosion propagates through it.
$Shockwave Speed:       400.0                                           ;; speed shockwave expands at, 0 means no shockwave
$Shockwave Count:        3
$Default PBanks:        ()
$Default SBanks:        ()
$SBank Capacity:        ()
$Shields:                       0
$Power Output:          100.0
$Max Oclk Speed:        60.0
$Max Weapon Eng:        100.0
$Hitpoints:                     90000
$Flags:                         ( "corvette" "big damage" )
$AI Class:                      Captain
$Afterburner:           NO
$Countermeasures:       0
$Scan time:                     2000
$EngineSnd:                128                   ;; Engine sound of ship
$Closeup_pos:           0.0, 0.0, -1300
$Closeup_zoom:          0.5
$Score:                    300
$Subsystem:                     turret01a,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret02,0.833,1.0
    $Default PBanks:        ( "TerSlash" )
$Subsystem:                     turret03,0.833,1.0
    $Default pBanks:        ( "AAAf" )
$Subsystem:                     turret04,0.833,1.0
    $Default PBanks:        ( "AAAf" )
$Subsystem:                     turret05,0.833,1.0
    $Default pBanks:        ( )
    $Default sBanks:        ( "Piranha" )
$Subsystem:                     turret06,0.833,1.0
    $Default PBanks:        ( "Standard Flak" )
$Subsystem:                     turret07,0.833,1.0
    $Default PBanks:        ( "BGreen" )
$Subsystem:                     turret08,0.833,1.0
    $Default PBanks:        ( "TerSlash" )
$Subsystem:                     turret09,0.833,1.0
    $Default PBanks:        ( "BGreen" )
$Subsystem:                     turret10,0.833,1.0
    $Default PBanks:        ( "Standard Flak" )
$Subsystem:                     turret11a,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret12,0.833,1.0
    $Default PBanks:        ( "TerSlash" )
$Subsystem:                     turret13,0.833,1.0
    $Default PBanks:        ( "AAAf" )
$Subsystem:                     turret14,0.833,1.0
    $Default PBanks:        ( "Standard Flak" )
$Subsystem:                     turret15,0.833,1.0
    $Default PBanks:        ( "AAAf" )
$Subsystem:                     turret16,0.833,1.0
    $Default pBanks:        ( "TerSlash" )
        $Default SBanks:        ( )
$Subsystem:                     turret17,0.833,1.0
    $Default PBanks:        ( "AAAf" )
$Subsystem:                     turret18,0.833,1.0
    $Default sBanks:        ( "Piranha" )
$Subsystem:                     turret19,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret20,0.833,1.0
    $Default PBanks:        ( "Standard Flak" )
    $Default SBanks:        ( )
$Subsystem:                     turret21a,0.833,1.0
    $Default PBanks:        ( "Terran Huge Turret" "Terran Huge Turret" "Terran Huge Turret" )
$Subsystem:                     turret22a,0.833,1.0
    $Default PBanks:        ( "Terran Huge Turret" "Terran Huge Turret" "Terran Huge Turret" )
$Subsystem:                     turret23a,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret24a,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
$Subsystem:                     turret25a,0.833,1.0
    $Default PBanks:        ( "Terran Turret" "Terran Turret" )
        $Default SBanks:        ( )
$Subsystem:                     communications,  5,0.0
$Subsystem:                     sensors,                                 5,0.0
$Subsystem:                     navigation,                      5,0.0
$Subsystem:                     weapons,                                 5,0.0

Like this? - Same as before....
That's why I think this is so wierd...
« Last Edit: September 21, 2010, 01:54:58 pm by 0rph3u5 »
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Iceni turrets re-tabled - what am I missing?
Name the ship Iceni#New and use that.
It should solve the problem.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Iceni turrets re-tabled - what am I missing?
Name the ship Iceni#New and use that.
It should solve the problem.

Did that... but it still doesn't solve the underlying "problem" - just got me rid of it...
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 
Re: Iceni turrets re-tabled - what am I missing?
In the new table entry, try specifying either Pbanks or Sbanks for a turret, but not both. Remove empty entries like "$Default SBanks: ( )"

 

Offline Qent

  • 29
Re: Iceni turrets re-tabled - what am I missing?
$Default SBanks: ( "" ) worked when I used it on the Faustus.

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Iceni turrets re-tabled - what am I missing?
Yeah that's what I thought was meant by not using +nocreate, I don't know how that wouldn't work.
It doesn't.

TBM's never replace entire table entry regardless of whether you use +nocreate or not. +nocreate only allows you to get away without having to set up full table entry if required data already exists in another tbm or tbl.

So for example, if you have a tbl that contains ship A that has secondary banks in turret 1. You add primary banks in a tbm, which means turret 1 now has both primaries and secondaries regardless of whether +nocreate is used or not.

It is not (currently) possible to fully replace a ship or weapons table entry with a tbm, data from all tbm's and tbl is always parsed and applied. There are cumbersome methods to override certain flags, mostly weapons though, but that's it.

Seems like people have misunderstood how +nocreate actually works and what it's used for.

$Default SBanks: ( "" ) worked when I used it on the Faustus.
As it should.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Iceni turrets re-tabled - what am I missing?
TBM's never replace entire table entry regardless of whether you use +nocreate or not.
[...]
It is not (currently) possible to fully replace a ship or weapons table entry with a tbm, data from all tbm's and tbl is always parsed and applied.

That's the part I was missing... I was thinking that my tbm would over-rule the same data from the tbl and not just be added to it....

Thanks for enlightening me...
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Iceni turrets re-tabled - what am I missing?
So if a ship that doesn't have +nocreate in a tbm has the same name as a ship in a tbl, and this doesn't fully overwrite the existing ship in the tbl, what is the point of +nocreate?  It seems like the default should be, delete the first go, and start over from the entry in the tbm.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Iceni turrets re-tabled - what am I missing?
Umm, no.

I don't know how to explain it properly, but let me try.

Perhaps easier method of explaining this is to think of tbl like it is a tbm. If you have two tbm files, both containing almost identical table entries of same ship or weapon. The first tbm loaded overwrites everything the second one has in it, except for lines that does not exist in the first tbm. Whatever was missing in the first tbm is added from the second one. Same happens if the second file happens to be tbl.

In short, if you have full tbl entry in a tbm, the weapon or ship is created right then and there. But then tbl file that is loaded and parsed afterwards works like a tbm file and adds anything the tbm doesn't have. In this Iceni-case, missile turrets.

If you want to alter this behavior, you need to create a new argument for it, like +replace or something. But I'm not sure you should do that, because you can't be sure whether modders want to fully overwrite tbl only, or both tbl and tbm. For example, you have a mod that relies on mediavps and you use +replace argument, does modder want to parse mediavps tbm data or not?
« Last Edit: September 22, 2010, 04:47:19 am by Fury »

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Iceni turrets re-tabled - what am I missing?
So then, it sounds like the difference between +nocreate and not +nocreate, is that without it, it needs to be a full ship definition in the tbm, and doesn't need a previous entry, but they treat the previous ship entry (if there is one) the same?  Hope that was clear enough to follow...
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Iceni turrets re-tabled - what am I missing?
Indeed. Whatever is missing in first parsed entry, is added from any subsequently parsed tbl or tbm files, regardless of whether any of those entries are full or partial or whether file is tbm or tbl.

I hope this is enough to clear misunderstandings revolving around use of full tbl entries in tbm files without +nocreate.