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 ... 454 455 [456] 457 458 ... 706

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

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6825 on: October 11, 2020, 01:30:37 PM »

Any idea what would cause this? On the surface is seems like a hullmod issue with the variant or the hull... but I wasn't editing much before this happened and I cannot for the life of me figure out what I did to cause it.

20424 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.loading.specs.HullVariantSpec.isDHull(Unknown Source)
   at com.fs.starfarer.codex.CodexData.Object(Unknown Source)
   at com.fs.starfarer.codex.CodexData.<init>(Unknown Source)
   at com.fs.starfarer.codex.super.<init>(Unknown Source)
   at com.fs.starfarer.codex.super.Ô00000(Unknown Source)
   at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

*EDIT* Nvm I just had to perform the ancient spell of posting here after hours of searching in order for the issue to immediately present itself to me... lol I added a prefix to a hullmod definition that did not need it because I don't override it. So it was searching for a hullmod that didn't exist. That's why I wasn't finding any JSON typos - because their weren't any! And the hullmods all looked good since most require the prefix so that was far outside of my mind of being a potential problem.
« Last Edit: October 11, 2020, 02:15:46 PM by Morrokain »
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6826 on: October 11, 2020, 01:48:14 PM »

I gotta remove an entry from a Jumpoint "Nearby Objects" tooltip (https://i.imgur.com/paZRuvi.png)
jumpPoint.removeDestination(entity); didn't do it...
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6827 on: October 11, 2020, 03:31:17 PM »

As long as the jump point has an exit, it's going to show markets and planets near that exit, so I don't think what you want is possible here.
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6828 on: October 11, 2020, 03:35:09 PM »

The thing is - that planet does not exist in the system anymore. I timed it out, and removed the market and the entity - and it still gets displayed, but only in that single tooltip, nowhere else.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6829 on: October 11, 2020, 03:38:43 PM »

Are you sure you removed the market from the economy?
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6830 on: October 11, 2020, 03:41:36 PM »

I removed it from the economy, cleaned up the entity in the old system, then re-added a copy of the planet in another system (generating a new planet, carry over planet spec settings), and re-applied the (old) market to the new planet in another location.
« Last Edit: October 11, 2020, 03:45:57 PM by SirHartley »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6831 on: October 11, 2020, 03:51:18 PM »

Hmm, looking at the code, it's hard to see how that could be possible. I'd check to make doubly sure that getEconomy().getMarketsCopy() doesn't have this market in it.
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6832 on: October 11, 2020, 04:44:48 PM »

it does - but the market, and it's primary entity, are no longer in that system.

I'll run advance(1f) and check if that updates the tooltip while the market is de-registered during the transition
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6833 on: October 11, 2020, 04:45:27 PM »

double-post...
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6834 on: October 11, 2020, 04:50:21 PM »

Ah - then you need to remove the market from the economy via EconomyAPI.removeMarket().
Logged

Iridescens

  • Lieutenant
  • **
  • Posts: 56
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6835 on: October 12, 2020, 01:37:21 AM »

Hi, comrades!
As quick API check yielded no results, I'll ask here - Is there some vanilla (or lazy/magic) method to know whether Playerfleet has changed Location recently (e.g, jumped to/from Hyperspace or Transverse jumped)? Apparently, I could inject some 'thing' in hyper-dialog, but what about Transverse J?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6836 on: October 12, 2020, 09:24:19 AM »

There's no event for it, so the easiest thing to do would be to have a script that periodically checks to see if playerFleet.getContainingLocation() has changed. Depending on the check interval and what you need, this *could* miss a quick jump out and back into the same system; to never miss that you'd need to check every frame. Which, with the check being so cheap - a simple == - should still be alright provided it's done carefully.
Logged

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6837 on: October 12, 2020, 09:39:04 AM »

I got a problem on my mod, my Wurg bar event is not showing up on long campaigns, but if i start a new game and get the requirements filled with console command it does work

What could be stopping the event from appearing?
Logged
Check out my ships

RustyCabbage

  • Captain
  • ****
  • Posts: 347
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6838 on: October 12, 2020, 04:05:40 PM »

Is there a way to get the same inflated fleet using only the DefaultFleetInflaterParams.seed and the variant IDs of the original uninflated ships? If not, what other information is required?

I've tried saving those values using writeTextFileToCommon and later recreating them by making a new CampaignFleetAPI fleet with the same members and original variants, but then the inflated variants end up different even with the same seed.

EDIT: Got it, the ships also needed to have the same ship name.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #6839 on: October 12, 2020, 04:37:23 PM »

I got a problem on my mod, my Wurg bar event is not showing up on long campaigns, but if i start a new game and get the requirements filled with console command it does work

What could be stopping the event from appearing?

If your getBarEventTimeoutDuration() was super long, that might do it. Nothing much else comes to mind, though. Hmm - you could try putting some breakpoints in BarEventManager to see what's going on.
Logged
Pages: 1 ... 454 455 [456] 457 458 ... 706