Fractal Softworks Forum

Starsector => Mods => Modding => Topic started by: bigdady1 on September 04, 2019, 02:29:57 AM

Title: Cant get my mod to load
Post by: bigdady1 on September 04, 2019, 02:29:57 AM
hi guys i was hoping some 1 could give me some insight on what i did wrong or how to fix my issue. little back history basically i was following the mod intro on loading a custom ship in game i used a freespace ship from a old starsector mod destroyer class typhoon i followed the step and i get this error when trying to load the game. looks like game cant find the graphics of the ship any help is very appreciated it

here is the error in starsector log


11478 [Thread-9] ERROR com.fs.graphics.o0oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - Error loading [graphics/ships/mymod_typhoon.png
] resource, not found in [C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\..\mods\mymod,../starfarer.res/res,CLASSPATH]
java.lang.RuntimeException: Error loading [graphics/ships/mymod_typhoon.png
] resource, not found in [C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\..\mods\mymod,../starfarer.res/res,CLASSPATH]
   at com.fs.util.Object.Object(Unknown Source)
   at com.fs.util.Object.Ô00000(Unknown Source)
   at com.fs.graphics.o0oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.class(Unknown Source)
   at com.fs.graphics.o0oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ø00000(Unknown Source)
   at com.fs.graphics.o0oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
11973 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Error loading [graphics/ships/mymod_typhoon.png
] resource, not found in [C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\..\mods\mymod,../starfarer.res/res,CLASSPATH]
java.lang.RuntimeException: Error loading [graphics/ships/mymod_typhoon.png
] resource, not found in [C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\..\mods\mymod,../starfarer.res/res,CLASSPATH]
   at com.fs.util.Object.Object(Unknown Source)
   at com.fs.util.Object.Ô00000(Unknown Source)
   at com.fs.graphics.TextureLoader.Ô00000(Unknown Source)
   at com.fs.graphics.TextureLoader.o00000(Unknown Source)
   at com.fs.graphics.TextureLoader.o00000(Unknown Source)
   at com.fs.graphics.TextureLoader.o00000(Unknown Source)
   at com.fs.graphics.null.o00000(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)

Title: Re: Cant get my mod to load
Post by: Histidine on September 04, 2019, 04:03:12 AM
Looks like this issue (http://fractalsoftworks.com/forum/index.php?topic=16407.msg260650#msg260650)
Title: Re: Cant get my mod to load
Post by: Ed on September 05, 2019, 12:37:56 PM
Sometimes the ship editor adds an extra character that shouldn't be there, check if your path has "/r" or something like that after the ship's image path
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 06, 2019, 02:39:10 AM
yeah i went through no luck at all  :'( but tried it with another ship now i have this
Code
3568 [Thread-7] INFO  com.fs.starfarer.loading.scripts.ScriptStore  - Class [data.missions.afistfulofcredits.MissionDefinition] already loaded (perhaps from jar file, or due to a reference from another class), skipping compilation.
3611 [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)
i took photos of everything not sure how to get them to post click the image and tried dragging also tried copy and past no luck
Title: Re: Cant get my mod to load
Post by: Ed on September 06, 2019, 09:00:15 AM
post the .ship files
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 06, 2019, 12:26:43 PM
How do I upload the images onto the post ?
Title: Re: Cant get my mod to load
Post by: Ed on September 06, 2019, 01:32:56 PM
Upload them into imgur and get the forum embedded link, will be something like "[img]http://link here[(slash)img]"

Use pastebin links for code btw, don't post images of code or text
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 06, 2019, 01:35:40 PM
 Soon as I get home il post them . Thanks I really appreciate the help
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 06, 2019, 05:06:12 PM
https://imgur.com/a/h1of2uL

i couldn't get it to work i hit insert image then pasted the embed link  did int show anything when i went to post let me know if this link above worked

Title: Re: Cant get my mod to load
Post by: bigdady1 on September 06, 2019, 05:15:34 PM
(http://<blockquote class="imgur-embed-pub" lang="en" data-id="a/h1of2uL"><a href="//imgur.com/a/h1of2uL"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>)
Title: Re: Cant get my mod to load
Post by: Ed on September 06, 2019, 05:23:46 PM
You need to show me what is inside the .ship file (open it with notepad++)

also the folder for ship images is "graphics\ships" not just graphics

Here is how you get the correct shareable link

(https://i.imgur.com/oukmjoO.png)
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 07, 2019, 02:23:38 AM
(https://i.imgur.com/rdQJNTF.png)  (https://i.imgur.com/MT2XA34.png)(https://i.imgur.com/ezcxYz3.png)(https://i.imgur.com/WDhlyJt.png)
(https://i.imgur.com/MTd5j8Q.png)(https://i.imgur.com/q7o9qHz.png)(https://i.imgur.com/E4zOIOv.png)
Title: Re: Cant get my mod to load
Post by: Ed on September 07, 2019, 04:05:25 AM
I told you to use https://pastebin.com/ to share long code files

Well i found the problem "coverColor": "\r\r"
delete this line, be careful to not delete anything else
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 07, 2019, 06:40:25 AM
Appricate it bro , yeah was in a rush didnt get home till late and the wife was on me soon as I hoped on the computer thanks again for taking the time to take a look  and walk me through the upload of the phots really appreciate it.
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 08, 2019, 02:30:28 AM
getting this now

Code
3752 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - org.json.JSONException: DIRECTORY: C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\..\mods\mymod (data\hulls\mymod_bastard.ship)
Unterminated string at 797 [character 0 line 60]
org.json.JSONException: DIRECTORY: C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\..\mods\mymod (data\hulls\mymod_bastard.ship)
Unterminated string at 797 [character 0 line 60]
at com.fs.starfarer.loading.LoadingUtils.Õ00000(Unknown Source)
at com.fs.starfarer.loading.LoadingUtils.o00000(Unknown Source)
at com.fs.starfarer.loading.LoadingUtils.o00000(Unknown Source)
at com.fs.starfarer.loading.LoadingUtils.Ò00000(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)
<script src="https://pastebin.com/embed_js/YURZFYwq"></script>
Title: Re: Cant get my mod to load
Post by: Ed on September 08, 2019, 06:56:08 AM
This is very strange, i never seen this error, and i see nothing wrong on the line 60, the only weird thing i saw was on line 53

Code
"spriteName": "graphics/ships/mymod_bastard.png
  ",

Try to fix it to

Code
"spriteName": "graphics/ships/mymod_bastard.png",

But i don't think this is the problem... line 60 is within the weapon mount description, try to remove all weapon mounts and see if it loads
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 08, 2019, 12:14:23 PM
i deleted the weponds now i got this <script src="https://pastebin.com/embed_js/Wg9VMTMj"></script>
Title: Re: Cant get my mod to load
Post by: Ed on September 08, 2019, 12:23:44 PM
Looks like you messed up the image path again, let me see the .ship file
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 08, 2019, 12:27:42 PM
<script src="https://pastebin.com/embed_js/vu2KMTh4"></script>
Title: Re: Cant get my mod to load
Post by: Ed on September 08, 2019, 12:38:08 PM
I keep looking at your file over and over again and i don't see what is wrong, if i was you i would delete the .ship file and redo it at this point.

You can also grab a mod that already exists and modify a ship, if your modifications work just copy the modified ship to your mod, you can use my ships if you want.

Also make sure your Starsector and Ship Editor (alpha 3.00) are up to date, maybe you are using something outdated.

-edit-
Also the embedded link you are using for pastebin is for javascript, it is not a forum format, just post the link normally
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 08, 2019, 02:15:20 PM
thanks for all the help bro . yeah just really wanted to get some freespace ships in starsector something must be wrong with the models i took them from a old freespace mod on here

http://fractalsoftworks.com/forum/index.php?topic=3687.0
Title: Re: Cant get my mod to load
Post by: bigdady1 on September 08, 2019, 02:18:08 PM
btw congrats on your ship set you did a awesome job  !
Title: Re: Cant get my mod to load
Post by: Ed on September 08, 2019, 02:26:06 PM
thanks for all the help bro . yeah just really wanted to get some freespace ships in starsector something must be wrong with the models i took them from a old freespace mod on here

http://fractalsoftworks.com/forum/index.php?topic=3687.0
Don't give up, to figure out what you are doing wrong it would be best to reverse engineer something that already exists, try to pick a mod that works and change stuff little by little testing every time you make a change, this way you will be able to pinpoint where the error is. if you never get the error you will be able to transform a ship into the thing you want, then transfer the files to your mod and there it is! If you get the error you will be able to figure out where is the problem.

btw congrats on your ship set you did a awesome job  !
Thanks.