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: Codex Overhaul (05/11/24)

Pages: 1 ... 151 152 [153] 154 155 ... 714

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

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2280 on: April 01, 2015, 03:38:34 PM »

I had incorrectly set up factions.csv. I fixed that, and now I have a new error:

39308 [Thread-5] ERROR com.fs.starfarer.combat.D  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.campaign.CircularOrbit.advance(Unknown Source)
   at com.fs.starfarer.campaign.StarSystem.autogenerateHyperspaceJumpPoints(Unknown Source)
   at data.scripts.world.systems.Quavar.generate(Quavar.java:83)
   at data.scripts.world.HutharGen.generate(HutharGen.java:32)
   at data.scripts.HModPlugin.initHuthar(HModPlugin.java:21)
   at data.scripts.HModPlugin.onNewGame(HModPlugin.java:30)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.OoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.do.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.O0oO.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.O0oO.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.thisnew.super(Unknown Source)
   at com.fs.starfarer.ui.H.processInput(Unknown Source)
   at com.fs.starfarer.ui.V.o00000(Unknown Source)
   at com.fs.starfarer.new.Òôo000(Unknown Source)
   at com.fs.oOOO.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ò00000(Unknown Source)
   at com.fs.starfarer.combat.D.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

This time the line in question is
Code
system.autogenerateHyperspaceJumpPoints(true, true);
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24252
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2281 on: April 01, 2015, 03:46:06 PM »

It's probably due to this:
relay.setCircularOrbit( system.getEntityById("graymore"), 150, 1200, 100);

You end up with an orbit around a non-existent entity.
Logged

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2282 on: April 01, 2015, 03:53:38 PM »

Thank you. :)
Logged

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2283 on: April 01, 2015, 03:56:56 PM »

That fixed one error, but now I'm getting this.

39638 [Thread-5] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data/campaign/econ/economy.json)]
39638 [Thread-5] INFO  com.fs.starfarer.campaign.econ.B  - Loading economy data from data/campaign/econ/economy.json
39639 [Thread-5] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data\campaign\econ/../starmap.json)]
39639 [Thread-5] INFO  com.fs.starfarer.campaign.econ.B  - Loading star system: askonia.json
39639 [Thread-5] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data\campaign\econ/askonia.json)]
39695 [Thread-5] ERROR com.fs.starfarer.combat.D  - java.lang.RuntimeException: java.lang.RuntimeException: Market in askonia system refers to invalid entity sindria
java.lang.RuntimeException: java.lang.RuntimeException: Market in askonia system refers to invalid entity sindria
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.OoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.do.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.O0oO.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.O0oO.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.thisnew.super(Unknown Source)
   at com.fs.starfarer.ui.H.processInput(Unknown Source)
   at com.fs.starfarer.ui.V.o00000(Unknown Source)
   at com.fs.starfarer.new.Òôo000(Unknown Source)
   at com.fs.oOOO.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ò00000(Unknown Source)
   at com.fs.starfarer.combat.D.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Market in askonia system refers to invalid entity sindria
   at com.fs.starfarer.campaign.econ.B.o00000(Unknown Source)
   at com.fs.starfarer.campaign.econ.B.o00000(Unknown Source)
   at com.fs.starfarer.campaign.econ.B.o00000(Unknown Source)
   ... 13 more


It has something to do with the Askonia system, but I'm not modifying it in my mod...
« Last Edit: April 01, 2015, 04:56:31 PM by Xanderzoo »
Logged

Luna

  • Commander
  • ***
  • Posts: 115
  • Want some water?
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2284 on: April 01, 2015, 05:27:08 PM »

Quote
Market in bastion system refers to invalid entity citadel
Might be a clue :)

I know it's a clue. I tried playing with the economy.json, the file that generates Bastion, but nothing works.
Logged
Consider fully automatic Russian roulette

Solinarius

  • Lieutenant
  • **
  • Posts: 97
  • Wind. Fire. All that kind of thing!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2285 on: April 02, 2015, 01:04:48 PM »

So, after adding my ships to the campaign (via a faction file), the market is completely screwed up. While it was certainly a nice surprise to see the new ships in the market, the traditional "rarity-based" market stocking is gone. I can find stacks of 4 HILs in just about every market. This is a familiar side-effect that I remember reading complaints about in the past. I can't remember why it happens or if there was a solution (not sure what to search for). I guess my question would be: can this be fixed on my end?
Logged

Luna

  • Commander
  • ***
  • Posts: 115
  • Want some water?
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2286 on: April 05, 2015, 07:11:55 AM »

Alright, I fixed the bug I had previously(somehow), but now I have another problem with the Bastion system not generating at all. Getting a system in place and setting up fleet compositions is really all I need to do before I can properly release the mod for you all to enjoy(blowing up everything before a balance patch is out). Please tell me what I've screwed up in a simple enough matter that even I can fix it.  :P
Logged
Consider fully automatic Russian roulette

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24252
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2287 on: April 05, 2015, 10:11:16 AM »

So, after adding my ships to the campaign (via a faction file), the market is completely screwed up. While it was certainly a nice surprise to see the new ships in the market, the traditional "rarity-based" market stocking is gone. I can find stacks of 4 HILs in just about every market. This is a familiar side-effect that I remember reading complaints about in the past. I can't remember why it happens or if there was a solution (not sure what to search for). I guess my question would be: can this be fixed on my end?

The weapons you see in the markets are based on what's mounted on that faction's ships. The rarity of a weapon for a given faction, then, is based on how much it's used in its loadouts.

You shouldn't be seeing something like the HIL on the open market, though, as that submarket is restricted to tier 0 weapons, and the HIL is tier 1.


Alright, I fixed the bug I had previously(somehow), but now I have another problem with the Bastion system not generating at all. Getting a system in place and setting up fleet compositions is really all I need to do before I can properly release the mod for you all to enjoy(blowing up everything before a balance patch is out). Please tell me what I've screwed up in a simple enough matter that even I can fix it.  :P

Are you calling the system-generation code from your ModPlugin's onNewGame() method?
Logged

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2288 on: April 05, 2015, 12:45:23 PM »

LunaIsBestPony: Can you tell me how you fixed your problem? I seem to have a similar bug.
Logged

Luna

  • Commander
  • ***
  • Posts: 115
  • Want some water?
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2289 on: April 05, 2015, 02:49:17 PM »

I don't know what I'm doing wrong. Here, just have my src file. It's below.

As for you, Xanderzoo, I have no idea how I fixed it. Sorry.

"My code doesn't work! I don't know why."

"My code works!... I still don't know why."


[attachment deleted by admin]
Logged
Consider fully automatic Russian roulette

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2290 on: April 05, 2015, 03:00:50 PM »

Oh well.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24252
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2291 on: April 05, 2015, 03:03:51 PM »

I don't know what I'm doing wrong. Here, just have my src file. It's below.

After a very cursory look, things seem right. Is it possible you're simply not pointing to your ModPlugin from your mod_info.json?
Logged

Luna

  • Commander
  • ***
  • Posts: 115
  • Want some water?
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2292 on: April 05, 2015, 03:25:22 PM »

I actually did have the wrong thing in the ModPlugin field, but that didn't do it. Here's the entire current CoFS folder, in case I screwed something up elsewhere and someone more experienced then I can spot the error.

https://mega.co.nz/#!JkoSxAJJ!PSaYloE5y3-x9RGtT6DxucS-wPsU3zqtji0MoYgx8us
« Last Edit: April 05, 2015, 09:50:13 PM by LunaIsBestPony »
Logged
Consider fully automatic Russian roulette

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2293 on: April 05, 2015, 03:37:29 PM »

In case someone's feeling altruistic and wants to help me fix my bug, this is my mod:

Buggy mod

Thanks. :)
Logged

Luna

  • Commander
  • ***
  • Posts: 115
  • Want some water?
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2294 on: April 07, 2015, 03:22:21 PM »

Can someone help me with the mod I dun stupided with? There's something wrong with the system gen, as in the system my mod adds doesn't generate. As of right now, that's the only error. Can someone please tell me what I did wrong?

Link!
https://www.dropbox.com/s/70s88dbksx64tal/CoFSdev4.zip?dl=0
« Last Edit: April 07, 2015, 03:26:56 PM by LunaIsBestPony »
Logged
Consider fully automatic Russian roulette
Pages: 1 ... 151 152 [153] 154 155 ... 714