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

Author Topic: New modder needing help  (Read 1724 times)

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
New modder needing help
« on: September 25, 2019, 12:00:15 PM »

Hey im attempting to add a ship in as a test and got it set up but when i toggle my mod on and load it gives me this

Fatal: For input string: "
"

Check starsector.log for more info

Not sure what im doin wrong, i thought i followed vayras intro to modding perfectly and double checked the version of ship and weapons editor is fine.

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: New modder needing help
« Reply #1 on: September 25, 2019, 12:22:13 PM »

You probably forgot a comma. 

That, and blank strings may cause problems:

foo:"foobar"  --> crash, no comma
foo:"", --> may crash, if boolean required
Logged
Please check out my SS projects :)
Xeno's Mod Pack

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #2 on: September 25, 2019, 02:00:34 PM »

You probably forgot a comma. 
Thanks for the help but unfortunately i went over all my files and nothing seems to be out of place in regards to what you said.
Very confused.
That, and blank strings may cause problems:

foo:"foobar"  --> crash, no comma
foo:"", --> may crash, if boolean required

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: New modder needing help
« Reply #3 on: September 25, 2019, 02:03:54 PM »

Post the file it's halting on (usually, the file referenced right before a crash, in the log).
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: New modder needing help
« Reply #4 on: September 25, 2019, 02:07:03 PM »

Post the .ship file (open with notepad) and the log (Starsector folder)\starsector-core\starsector.log
Use https://pastebin.com/ and post the links
Logged
Check out my ships

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #5 on: September 25, 2019, 02:44:41 PM »

<script src="https://pastebin.com/embed_js/AL2p3AzA"></script>    heres the ship, and the whole log? that would be a lot to try and copy with thousands of lines

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #6 on: September 25, 2019, 02:48:23 PM »

Post the file it's halting on (usually, the file referenced right before a crash, in the log).
the log doesnt have anything out of the ordinary or anything referincing my mod

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: New modder needing help
« Reply #7 on: September 25, 2019, 02:49:25 PM »

"coversColor": "\\r", --> requires RGBA in four comma-separated values
« Last Edit: September 25, 2019, 02:53:48 PM by xenoargh »
Logged
Please check out my SS projects :)
Xeno's Mod Pack

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: New modder needing help
« Reply #8 on: September 25, 2019, 02:52:05 PM »

"styleId": "COBRA_BOMBER", --> not sure, but looks suspicious
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Ed

  • Captain
  • ****
  • Posts: 442
    • View Profile
Re: New modder needing help
« Reply #9 on: September 25, 2019, 02:53:22 PM »

Like xeno said, the problem is the coversColors line, delete the whole line
This happens if you press tab (or was enter?) in the ship editor in certain popups, exit the popup with ESC instead

oh yeah using a StyleId without CUSTOM engine style might also be a problem
Logged
Check out my ships

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #10 on: September 25, 2019, 03:07:35 PM »

deleting the color line works! the game fires up and i see it in the codex! thanks for the help everyone.
unfortunately with every step comes some broken glass, i try to fire it up with console commands to see if it works properly in combat and it gives me this   


Fatal: Failed to find script of class
[com.fa.starfarer.api.impl.campaign.CoreLifecyclePluginlmpl]

and the log has not changed since last time so oof.

sorry i literally started today not sure what im doin :p

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: New modder needing help
« Reply #11 on: September 25, 2019, 04:00:16 PM »

Console Commands presumes you're in a Campaign game.
Logged
Please check out my SS projects :)
Xeno's Mod Pack

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #12 on: September 25, 2019, 04:01:53 PM »

Console Commands presumes you're in a Campaign game.




Ah ok, also found out its not having problems with my test mod at all as it gives the same error without my mod lol

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #13 on: September 25, 2019, 04:16:20 PM »

the ships in the campaign! threw commands but still, thanks for the help

connortron7

  • Captain
  • ****
  • Posts: 439
  • "God has cursed me for my hubris" - brian gilbert
    • View Profile
Re: New modder needing help
« Reply #14 on: September 25, 2019, 04:56:30 PM »

<script src="https://pastebin.com/embed_js/2zkJT18D"></script>


new problem, i tried copy pasting a weapon slot into the code to work around the problem with the latest version of ship and weapon editor and whenever i open the .ship file with it it just closes the editor. heres the current .ship code
Pages: [1] 2