Author Topic: seperated SBanks  (Read 6218 times)

0 Members and 1 Guest are viewing this topic.

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
I posted about this when the source code was very new.

[current tbl entry]

$Allowed SBanks:   ( "MX-50" "D-Missile" "Fury" "Interceptor" "Hornet" "Hornet#Weak" "Interceptor#Weak")
$Default SBanks:   ( "MX-50" "MX-50" )
$SBank Capacity:   ( 40, 40 )


[what could be done]

$Allowed SBanks:   ( "MX-50" "D-Missile" "Fury" ) ("Interceptor" "Hornet")
$Default SBanks:   ( "MX-50" ) ( "Hornet" )
$SBank Capacity:   ( 40 ) ( 35 )

In the second SBank only the Interceptor and Hornet are allowed.

do you get this? if not I'll post more.
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
But why would we want to do such a thing?
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Interesting. This has possibilities, like the Y-Wing only being able to mount ion cannons on the top and lasers on the main guns.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Joey_21

  • 28
    • http://denebsystem.cjb.net/
How about an option to make this turn on or off if we want? Perhaps with some source tweaking the guys might be able to make it changable in FRED2 and in the mission source there can be something addable (similar to the beam-free-all default option).

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Well, the way HotSnoJ has outlined it, it wouldn't be an optional thing.  If we change the table parser to read that way, the old way won't work any more.  Sounds like bad news to me. :no:
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
hehe forgot to add something.

Well if there wasn't a second () set then it would go for both of the weapon banks.

[if there was three SBanks, like on the Ursa]

$Allowed SBanks: ( "MX-50" "D-Missile" "Fury" "Interceptor" "Hornet") ("Bigbomb")
$Default SBanks: ( "MX-50" "Interceptor"  ) ( "Bigbomb" )
$SBank Capacity: ( 40, 35 ) ( 20 )

First two SBanks are in one () set while the last () set is for bombs
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
:yes: Just set the parser to repeat the allowed secondaries if none are specified for other banks. For example:
Quote

$Allowed SBanks: ( "MX-50" "D-Missile" "Fury" ) ("Interceptor" "Hornet")
$Default SBanks: ( "MX-50" ) ( "Hornet" ) ("Fury") ("Interceptor")
$SBank Capacity: ( 40 ) ( 35 ) ( 50 ) ( 20 )

Would have the following allowed:

Secondary bank 1: ( "MX-50" "D-Missile" "Fury" )
Secondary bank 2: ("Interceptor" "Hornet")
Secondary bank 3: ( "MX-50" "D-Missile" "Fury" )
Secondary bank 4: ("Interceptor" "Hornet")
-C

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
:doubt:
If someone wants to try it, fine.  But it better not break backwards compatibility.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline Shrike

  • Postadmin
  • 211
    • http://www.3dap.com/hlp
Quote
Originally posted by Sesquipedalian
But why would we want to do such a thing?
I've always wanted to make ships that carried weapons in specific locations, for example a ship that carries a single very heavy weapon and a set of normal weapons.
WE ARE HARD LIGHT PRODUCTIONS. YOU WILL LOWER YOUR FIREWALLS AND SURRENDER YOUR KEYBOARDS. WE WILL ADD YOUR INTELLECTUAL AND VERNACULAR DISTINCTIVENESS TO OUR OWN. YOUR FORUMS WILL ADAPT TO SERVICE US. RESISTANCE IS FUTILE.

 

Offline Zarax

  • 210
Good.
This is a feature i've always been looking for...
Now, would be great if it could be done also for primaries...
I'll be really pleased if i could have a fixed 3rd primary with aketons, ala B-wing...
The Best is Yet to Come

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Provided that it doesn't prevent us from doing things the other way...this is a great feature.
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline Inquisitor

That is the philosphy :)
No signature.

  

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Quote
Originally posted by IceFire
Provided that it doesn't prevent us from doing things the other way...this is a great feature.

Does anyone read my posts, or was I just not clear on that? :confused:

What I'm saying if that there are less sections of allowed weapons than there are banks, then the parser repeats the existing allowed weapons for the rest of the SBanks. So if your fighter has four secondary banks, and you entered one group of allowed weapons, all four banks would have the allowed weapons specified in that group. If there were 2 groups, then banks 1 & 3 would use the first group of allowed weapons, and 2 & 4 would use the second group of allowed missiles.

This would imitate how the original tbls handled allowed weapons. The parser, though, would have to check to see which way it was set, which could be a pain :blah:

Perhaps FS2_open TBL files could have a version header at the top to denote what FS2_Open version is required?
-C

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Quote
Originally posted by WMCoolmon
The parser, though, would have to check to see which way it was set, which could be a pain :blah:

Perhaps FS2_open TBL files could have a version header at the top to denote what FS2_Open version is required?


Although it might be a bit of work (I don't think it would be a pain) to have the parser check which way the table entry was set up, it would be well worth it.  User-friendliness is A-1 SUPAR. :)  Version headers aren't necessary, methinks, and everyone is going to want to use the latest version anyway.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
I'm gona give this a shot, if you don't give compatability for a bank it will set that bank to what ever the first one was
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
ok how are we going to handel the load out screen? this needs a totaly new system seing as weapons are given a flag as being used or not for the entire ship
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
I was sorta thinking dropdown menus.

Or if it doesn't stay in the slot then it must not be able to go there (that somewhat from a gamers view).

Anyway I thought of a new-er system to support older tables (back compatability).

[ship with three SBanks]

$Allowed SBanks: ( "MX-50" "D-Missile" "Fury" "Interceptor" "Hornet")
        +SBank0: ("Fury" "MX50")   ;;if not set (written) then unwitten bank can hold weapons flaged in "$Allowed SBanks"
        +SBank2: ("Bigbomb")
$Default SBanks: ( "MX-50" "Hornet" "Fury")
        +Sbank1: ("Interceptor")
$SBank Capacity: ( 40 ) ( 35 )


So as you can see the second bank (SBank1, not written) can hold all of the weapons flaged in $Allowed SBanks:, and $Default SBanks: would acst somewhat the same.


BTW Bobboau think you could try this with primarys too?
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
It shouldn't need a totally new system.

Simply duplicated the "allowed weapons" array for each bank, and leave the loadout screen as it was before.  If a player tries to drop a weapon on the wrong bank, pop up a message that says "This bank is unable to carry [blank] weaponry."  Should be straightforward.

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
*Warming to the idea now that it's been thought through a little better*
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
Quote
Originally posted by Goober5000
It shouldn't need a totally new system.

Simply duplicated the "allowed weapons" array for each bank, and leave the loadout screen as it was before.  If a player tries to drop a weapon on the wrong bank, pop up a message that says "This bank is unable to carry [blank] weaponry."  Should be straightforward.


Thats exactly what I was thinking!
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things