Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: [1] 2

Author Topic: Slot sizes & types  (Read 10195 times)

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Slot sizes & types
« on: May 11, 2011, 10:20:31 PM »

are these pre-defined strings (ie, defined by the engine), or are they arbitrary (basically you just match up the slot size and type strings from the weapon and the hull and see if they match)?

Because if they are arbitrary that would be really cool >:3

Ivaylo

  • Loremaster
  • Global Moderator
  • Commander
  • *****
  • Posts: 230
    • View Profile
Re: Slot sizes & types
« Reply #1 on: May 12, 2011, 01:56:10 AM »

Are you referring to weapon slots only?
Logged
Escort Ship-level forum support

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Slot sizes & types
« Reply #2 on: May 12, 2011, 06:46:28 AM »

weapon slot sizes & weapons, and weapon slot types & weapons

Ivaylo

  • Loremaster
  • Global Moderator
  • Commander
  • *****
  • Posts: 230
    • View Profile
Re: Slot sizes & types
« Reply #3 on: May 12, 2011, 07:43:27 AM »

Weapon sizes and types currently do not matter. They will matter in the refit screen.

I assume you meant weapon id when you say "weapons". And yeah you can put anything in the .ship file, your variants have to refer to that id when defining what goes on there.
Logged
Escort Ship-level forum support

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Slot sizes & types
« Reply #4 on: May 12, 2011, 07:46:19 AM »

Will the refit screen be doing it hard-coded though? IE, If I had a 'VERYLARGE' size slot and a 'VERYLARGE' size weapon, which I be able to put the weapon in the slot on the refit screen?

Ivaylo

  • Loremaster
  • Global Moderator
  • Commander
  • *****
  • Posts: 230
    • View Profile
Re: Slot sizes & types
« Reply #5 on: May 12, 2011, 07:53:59 AM »

I cannot tell you with 100% certainty since Alex is developing the refit screen.

However, it is a safe bet that certain size slots will have UI elements associated(hardcoded) with them (sounds, graphics, animations, timers) and associated with actions related to them.



Logged
Escort Ship-level forum support

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Slot sizes & types
« Reply #6 on: May 12, 2011, 08:07:34 AM »

Hardcoded is such an ugly word :) I would say these are simply "coded" - since there are lots of good reasons for it (as Ivaylo mentioned, sounds, UI elements, some AI decisions, etc). One other mechanic that's not apparent at all now is you can fit a smaller weapon into a larger slot.

That being said, you'd probably be able to change the display names of the slot/weapon types. But the types and sizes themselves are integral to mechanics and it's not a simple matter of string comparison - it goes a lot deeper than that.
« Last Edit: May 12, 2011, 08:10:26 AM by Alex »
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Slot sizes & types
« Reply #7 on: May 12, 2011, 08:19:12 AM »

Hmmmmmm... and I presume that all these functions are built into the engine as opposed to stored in a data file then...

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Slot sizes & types
« Reply #8 on: May 12, 2011, 08:58:11 AM »

Yeah. We'll make as much stuff moddable as possible, but in some cases it's just not practical to expose something - it might take literally an order of magnitude more work and impede future refactoring to boot.
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Slot sizes & types
« Reply #9 on: May 12, 2011, 09:05:38 AM »

ah ok.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Slot sizes & types
« Reply #10 on: May 12, 2011, 12:25:33 PM »

Is there something specific you wanted to try to do with that? Maybe there's another way that doesn't involve making all of the above changeable...
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Slot sizes & types
« Reply #11 on: May 12, 2011, 12:29:14 PM »

I Was thinking of having biological slot types (not sizes) ie, SMALL BIO vs. SMALL MISSILE
and I was also thinking of having VERYLARGE size supercap weapons capable of only fitting VERYLARGE weapons. Probably I could just fudge it with a type instead of a size, is it would be LARGE VERYLARGE or perhapse SUPERCAP might be more descriptive.

Ivaylo

  • Loremaster
  • Global Moderator
  • Commander
  • *****
  • Posts: 230
    • View Profile
Re: Slot sizes & types
« Reply #12 on: May 12, 2011, 01:55:19 PM »

"Men have always had nightmares about the Galaxy Guns, weapons created by the most militant Domain xenophobes, able to destroy entire planets from light years away. It is well that the knowhow needed to create these monstrosities has long been lost."

- From The Encyclopedia of Lud
Logged
Escort Ship-level forum support

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Slot sizes & types
« Reply #13 on: May 12, 2011, 02:52:47 PM »

hehe, well, I wasn't planning anything so dramatic, but rather just a dedicated anti-capship weapon.

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Slot sizes & types
« Reply #14 on: May 18, 2011, 10:49:35 AM »

The current weapons are efficient enough at demolishing capital ships.  Are you asking for a weapon that will outright 1-or-2-shot anything but a battlecruiser?
Logged
Pages: [1] 2