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] 3 4

Author Topic: [TUTORIAL] Intro to modding for complete beginners  (Read 49363 times)

Vayra

  • Admiral
  • *****
  • Posts: 627
  • jangala delenda est
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #15 on: October 01, 2019, 12:07:56 PM »

Either I'm misunderstanding what 8 bit per channel means, or that's an error, as 8-bit depth results in a ship that just doesn't display for me (whereas 32 does).

8 per channel is 32! R + G + B + A. :) (unless I'm misunderstanding you now...)

I'm glad people are using and enjoying the tutorial - maybe I'll add a third section soon!
Logged
Kadur Remnant: http://fractalsoftworks.com/forum/index.php?topic=6649
Vayra's Sector: http://fractalsoftworks.com/forum/index.php?topic=16058
Vayra's Ship Pack: http://fractalsoftworks.com/forum/index.php?topic=16059

im gonna push jangala into the sun i swear to god im gonna do it

Yunru

  • Admiral
  • *****
  • Posts: 1560
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #16 on: October 02, 2019, 04:35:05 AM »

Either I'm misunderstanding what 8 bit per channel means, or that's an error, as 8-bit depth results in a ship that just doesn't display for me (whereas 32 does).

8 per channel is 32! R + G + B + A. :) (unless I'm misunderstanding you now...)

I'm glad people are using and enjoying the tutorial - maybe I'll add a third section soon!
Ah! Well, until this I didn't know what a channel even was, so I guessed :P

Something on (adding new) hull mods would be amazing!

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #17 on: October 02, 2019, 05:28:02 AM »

Vayra i think one of the things you could explain next would be when a modder actually need an IDE to compile stuff into a jar and how to do so, this seem to be the main question people get after making a simple ship/weapon
Logged
Check out my ships

wombatz

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #18 on: October 04, 2019, 12:57:05 PM »

Thanks for the tutorial, it was clear and easy to follow.
Tried it out but when launching the game, it crashes and tells me Fatal: JSONObject["id"] not found.
I searched around but coulndn't find anything usefull. Do you have any clue about what I did wrong?

Log says
9935 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - org.json.JSONException: JSONObject["id"] not found.
org.json.JSONException: JSONObject["id"] not found.
   at org.json.JSONObject.get(JSONObject.java:406)
   at org.json.JSONObject.getString(JSONObject.java:577)
   at com.fs.starfarer.loading.LoadingUtils.o00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.ö00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.ÒO0000(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)

First time modder here, so the log isn't much help for me.
Logged

outdated

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #19 on: October 04, 2019, 02:09:21 PM »

JSONObject["id"]

Double check your mod_info.json file.
Logged

wombatz

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #20 on: October 05, 2019, 05:03:30 AM »

I did, hullid and name where all correct.
I redid the tutorial step by step and found the error, I somehow messed up the description. Deleting the strings folder solved the issue.
Logged

gmansawesome

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #21 on: October 15, 2019, 10:32:02 PM »

Hi, I started playing starsector after watching Seth's video and I want to make some personal adjustments for my game. My favorite ships are carriers, and I feel like it would be much cooler if there were more LPC slots. Is there any way to edit Vanilla carriers to add more LPC slots?
Logged

gmansawesome

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #22 on: October 15, 2019, 10:34:31 PM »

Adding to my previous comment.

Would a new ship data file of a modified vanilla ship automatically override the core vanilla ship file in-game?
Logged

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #23 on: October 16, 2019, 02:34:36 PM »

Adding to my previous comment.

Would a new ship data file of a modified vanilla ship automatically override the core vanilla ship file in-game?

If you want to modify just your game you can modify the ship_data file in the base game, but if you want to make a mod i recommend not changing vanilla ships and making your own for compatibility reasons.
Also use this thread for this kind of question.
http://fractalsoftworks.com/forum/index.php?topic=5061.5400
Logged
Check out my ships

KnightOfTigers

  • Ensign
  • *
  • Posts: 46
  • The Tiger lover
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #24 on: October 25, 2019, 05:35:35 AM »

Hello there, I'm also new to modding around here. The tutorial is really well made, however I'm having an issue. As of now I'm focusing on adding some ships but I'm stuck with my first one. I've followed each step to make my ship functionnal but when loading the game, I get this error :

Code
5921 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NumberFormatException: For input string: "
"
java.lang.NumberFormatException: For input string: "
"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.fs.starfarer.loading.ShipHullSpecLoader.o00000(Unknown Source)
at com.fs.starfarer.loading.ShipHullSpecLoader.Ò00000(Unknown Source)
at com.fs.starfarer.loading.SpecStore.ÒO0000(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)

Usually logs can help me but this time it's a bit hard for me to get something useful out of this error. I've double checked every file I've made but I don't see anything suspicious. I just made an extra step which consists of adding a built-in weapon to my ship.

Sorry for my bad English, I'm trying my best to make it understandable because I'm French.

If needed, you can find my "mod" attached to my post.

Thanks for any eventual help!

[attachment deleted by admin]
« Last Edit: October 25, 2019, 06:38:04 AM by KnightOfTigers »
Logged

creature

  • Captain
  • ****
  • Posts: 400
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #25 on: October 25, 2019, 06:37:21 AM »

Hello there...
Hey, I checked your ship data files. Check inside your file, "galaxytigers_midtech2x_cv.ship". I noticed this out of place line in there:

 "coversColor": "\r",

the \r can sometimes be added by the Ship and Weapon editor, iirc. Try removing it and see if it works then.

 "coversColor": "",

Logged

KnightOfTigers

  • Ensign
  • *
  • Posts: 46
  • The Tiger lover
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #26 on: October 25, 2019, 07:04:32 AM »

Hello there...
Hey, I checked your ship data files. Check inside your file, "galaxytigers_midtech2x_cv.ship". I noticed this out of place line in there:

 "coversColor": "\r",

the \r can sometimes be added by the Ship and Weapon editor, iirc. Try removing it and see if it works then.

 "coversColor": "",

Thanks a lot for your answer! When you mentionned the "galaxytigers_midtech2x_cv.ship" file I immediatly saw that it was a mistake I've made because the other ship file ("galaxytigers_heron.ship") is the file I want to keep. I deleted the wrong one (I've checked the line before doing so and I saw the famous \r) and tried to load my mod, and now it works!

Thank you again! If I get this error again when adding other ships then I'll know where it comes from!

I've got another question even though it is not topic related. Do you know where I could get the weapon mounts pictures? I guess you know what I mean, those "holes" we see when no weapons are equiped. I wasn't able to find them anywhere in the core files nor on the Internet. Must I "extract" them from ship pictures?
Logged

creature

  • Captain
  • ****
  • Posts: 400
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #27 on: October 25, 2019, 02:06:10 PM »

Hello there...
Hey, I checked your ship data files. Check inside your file, "galaxytigers_midtech2x_cv.ship". I noticed this out of place line in there:

 "coversColor": "\r",

the \r can sometimes be added by the Ship and Weapon editor, iirc. Try removing it and see if it works then.

 "coversColor": "",
I've got another question even though it is not topic related. Do you know where I could get the weapon mounts pictures? I guess you know what I mean, those "holes" we see when no weapons are equiped. I wasn't able to find them anywhere in the core files nor on the Internet. Must I "extract" them from ship pictures?
Hey again! You can definitely do that, but Tartiflette already has a collection here at the bottom of the Kitbash Database, if you want to speed things up a bit.
https://fractalsoftworks.com/forum/index.php?topic=9320.0
Logged

KnightOfTigers

  • Ensign
  • *
  • Posts: 46
  • The Tiger lover
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #28 on: October 26, 2019, 01:30:10 AM »

Oh my I feel so stupid ;D Anyways thanks again for your help!
Logged

Vayra

  • Admiral
  • *****
  • Posts: 627
  • jangala delenda est
    • View Profile
Re: [TUTORIAL] Intro to modding for complete beginners
« Reply #29 on: January 23, 2020, 12:41:27 AM »

Logged
Kadur Remnant: http://fractalsoftworks.com/forum/index.php?topic=6649
Vayra's Sector: http://fractalsoftworks.com/forum/index.php?topic=16058
Vayra's Ship Pack: http://fractalsoftworks.com/forum/index.php?topic=16059

im gonna push jangala into the sun i swear to god im gonna do it
Pages: 1 [2] 3 4