jaghaimo / stelnet

A collection of intel boards for Starsector.
https://fractalsoftworks.com/forum/index.php?topic=20836
GNU General Public License v3.0
18 stars 15 forks source link

Crash on load #89

Closed makuru-dd closed 2 years ago

makuru-dd commented 2 years ago

im using an aur package and it probably ones to save in an restricted location

possible fixes: make it to only give an error message or add redundant save location like the mod directory

error code 97929 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.io.FileNotFoundException: stelnet.log (Keine Berechtigung)

jaghaimo commented 2 years ago

Hi, you are correct - it tries to save in the system location (on Linux, wherever starsector.sh is located). I'll make this non-fatal, in the meantime create the file (stelnet.log) manually and give yourself ownership of it (user / group).

makuru-dd commented 2 years ago

i did and now it starts, thanks for the help

jaghaimo commented 2 years ago

Fixed in #90. @Makuru-DD could you test it if I gave you a build?

makuru-dd commented 2 years ago

@jaghaimo: ok, how do i build the mod?

jaghaimo commented 2 years ago

You don't. Here's the build: stelnet-2.6.1-rc2.zip

makuru-dd commented 2 years ago

jup its doing it's job, it loads

java.io.FileNotFoundException: stelnet.log (Keine Berechtigung) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.(FileOutputStream.java:213) at java.io.FileOutputStream.(FileOutputStream.java:101) at java.io.PrintWriter.(PrintWriter.java:184) at stelnet.util.Reporter.generate(Reporter.java:14) at stelnet.StelnetMod.onApplicationLoad(StelnetMod.java:31) 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.o00000(Unknown Source) at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) at java.lang.Thread.run(Thread.java:748) 12416 [Thread-4] DEBUG stelnet.util.ConfigConstants - Reading config file 12416 [Thread-4] INFO com.fs.starfarer.loading.LoadingUtils - Loading JSON from [stelnet.json]