Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 ... 559 560 [561] 562 563 ... 710

Author Topic: Misc modding questions that are too minor to warrant their own thread  (Read 1727833 times)

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24130
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8400 on: January 18, 2022, 01:29:15 PM »

Right - that's the problem, then. A "variant" is basically telling the game what weapons etc that ship has on it. The game also creates a default one named <ship id>_Hull that doesn't have anything equipped, so if you do AddShip <ship id>_Hull that should work, too.
Logged

Pogre

  • Lieutenant
  • **
  • Posts: 69
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8401 on: January 18, 2022, 01:39:52 PM »

I'll get on adding a variant file then, but popping in game and trying that command still doesn't spawn anything, and I've combed through the hulls, so I must have messed up something along the way, oop.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24130
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8402 on: January 18, 2022, 01:59:03 PM »

Hmm, yeah. If you could list all the things you *did* do?
Logged

SpaceDrake

  • Admiral
  • *****
  • Posts: 517
  • Piloting space mecha for fun and profit(?)
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8403 on: January 18, 2022, 02:03:33 PM »

addShip [your_hull] isn't giving you anything? What happens when you try to addShip with just the base hull, burger?
Logged

Pogre

  • Lieutenant
  • **
  • Posts: 69
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8404 on: January 18, 2022, 02:19:58 PM »

I have the ship's image saved as a png in starsector/mods/project/graphics/ships, and I have both a .ship file and .cvs file in starsector/mods/project/data/hulls. Made the .ship file with the ships and weapon editor mod, and I pulled the .cvs file from the game's .cvs file of the onslaught and edited it to fit the ship a bit more.. I'm using Ron's editor for the spreadsheet. The ship ID is the same in both files, so I'm just not sure what I'm missing.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24130
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8406 on: January 18, 2022, 02:22:52 PM »

Another question: is the file named ship_data.csv, or ".cvs", as you've typed three separate times in your post? :)
Logged

Pogre

  • Lieutenant
  • **
  • Posts: 69
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8407 on: January 18, 2022, 02:25:28 PM »

The mod is indeed enabled, and it is ship_data.csv, oop. I was typing cvs for some dumb reason haha
Logged

Pogre

  • Lieutenant
  • **
  • Posts: 69
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8408 on: January 18, 2022, 02:40:37 PM »

addShip [your_hull] isn't giving you anything? What happens when you try to addShip with just the base hull, burger?

I've tried to add it in with the base hull too, and I still get nothing.
Logged

SpaceDrake

  • Admiral
  • *****
  • Posts: 517
  • Piloting space mecha for fun and profit(?)
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8409 on: January 18, 2022, 03:01:15 PM »

addShip [your_hull] isn't giving you anything? What happens when you try to addShip with just the base hull, burger?

I've tried to add it in with the base hull too, and I still get nothing.

What does the console output when you try to add your ship to your fleet?
Logged

Pogre

  • Lieutenant
  • **
  • Posts: 69
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8410 on: January 18, 2022, 03:04:00 PM »

addShip [your_hull] isn't giving you anything? What happens when you try to addShip with just the base hull, burger?

I've tried to add it in with the base hull too, and I still get nothing.

What does the console output when you try to add your ship to your fleet?

It simply says no ship can be found with the ID
Logged

Pogre

  • Lieutenant
  • **
  • Posts: 69
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8411 on: January 18, 2022, 03:31:49 PM »

Oh my god I figured it out.

The .csv spreadsheet had copied over improperly and had the label for each column in the wrong spot altogether

I feel so dumb
Logged

float

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8412 on: January 18, 2022, 04:05:28 PM »

Is there anyway to convert Global.getSettings().getControlStringForEnumName's output into a format that's compatible with Keyboard.getKeyIndex?

For example, Global.getSettings().getControlStringForEnumName("SHIP_STRAFE_KEY") returns "Shift". However, Keyboard.getKeyIndex("Shift") returns 0, because "Shift" isn't actually recognized as a key. Instead, Keyboard.getKeyIndex("LSHIFT") returns 42, which incidentally is also the event index for the InputEventAPI corresponding to the shift key.
Logged

Jaghaimo

  • Admiral
  • *****
  • Posts: 661
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8413 on: January 19, 2022, 01:15:50 AM »

My swapping of `open_market` with `regulated_open_market` has an unexpected consequence of removing markets from F1 tooltip.

Is the id hardcoded in there (like right aligned submarket position for `storage` is hardcoded), or am I missing some "update" post swap?

Edit: Seems like it is hardcoded. I will have to override vanilla specs, and come up with an "uninstaller" instead. Or perhaps I could use same package as vanilla implementation and have a "silent" swap during deserialization... Need to try.
« Last Edit: January 19, 2022, 11:13:39 AM by Jaghaimo »
Logged

Yunru

  • Admiral
  • *****
  • Posts: 1560
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #8414 on: January 19, 2022, 01:40:21 PM »

Is there a way to disable zero-flux bonus?
I've been using this to do it:
Code
public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
        stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, -2f);
    }
But it falls flat on it's face when the ship is manned with an officer with (elite?) Helmsmanship.
Pages: 1 ... 559 560 [561] 562 563 ... 710