Thx again for the help. And for the late response i am sorry.
I have had some trouble getting the one instance to work, My attempts are commented out in the main method of the source code.
I was able to get it to work, some times and some times not, etc. Its currently not reliable enough to be released in the code. Can't have people locked out of the application
Changelog
v0.4.6
+Fix problem where config file would not save in the correct location. (Thanks Arano-kai)
+McLauncher will now save when you select a path, or profile. (Thanks Arano-kai)
+Fixed an issue where McLauncher could not get the version from a .zip mod. (Thanks Arano-kai)
+Added a Cancel button to stop downloading the current mod. (Suggested by Arano-kai)
Your problem with the game modes is most likely not related to McLauncher. The only thing McLauncher directly effects is the mod-list.json, and launching factorio with no args.
Now unless something changed with mod-list.json that im not aware of, I don't know if that is related to Mclauncher.
Had some posting problems...
Here You Bug-o-day list (part-1)
some zip-ed and dependency problems
Ok, I understood the reason of some (un)zip-ed mods and dependency problems: paths in Linux are case sensitive.
So, "/factorio/mods/dytech-core/info.json" not equal to "/factorio/mods/DyTech-Core/info.json".
That is, when I unzip and rename DyTech-Core to dytech-core it solve dependency bug.
Also here (almost) full launch log with other path fail:
Running McLauncher from /home/anonymous/Games/factorio
[Log]-Running McLauncher from /home/anonymous/Games/factorio/McLauncher.jar
[Log]-game path set to.../home/anonymous/Games/factorio
[Log]-Access to read and write allowed.
[Log]-Using zip factorio.
[Log]-Using mod path /home/anonymous/Games/factorio/mods/
[Log]-Profile: First profile with [base, forceshield, DyTech-Core_0.11.1.zip, DyTech-Energy_1.3.1.zip, roadworks, rso-mod_1.0.2, rail-layer, DyTech-Automation, DyTech-Warfare_1.9.9.zip, timebuttons, DyTech-Logistic_1.1.0.zip, bumpers.zip, DyTech-Dynamic, DyTech-Tools_2.0.0.zip, DyTech-Storage_1.2.0.zip, resource-monitor-mod, scrapmod_0.2.1, DyTech-Metallurgy_1.2.0.zip, DyTech-Transportation_1.2.0.zip, DyTech-Inserters, DyTech-Modules, Treefarm-Mod] loaded.
[Log]-Selected profile First profile
[Log]-Saved McLauncher data.
[Log]-1 profiles loaded.
[Log]-OS Linux
[Log]-McLauncher version: 0.4.6 Checked version: 0.4.6
[Log]-Downloadable mods found... 49
[Log]-Available Mods: 22
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-core_0.11.1/info.json (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at java.io.FileReader.<init>(FileReader.java:58)
at md.mclama.com.Utility.getModVersion(Utility.java:100)
at md.mclama.com.Utility.checkModForUpdate(Utility.java:410)
at md.mclama.com.ModManager.getCurrentMods(ModManager.java:1509)
at md.mclama.com.ModManager.getMods(ModManager.java:1465)
at md.mclama.com.ModManager.<init>(ModManager.java:899)
at md.mclama.com.ModManager$2.run(ModManager.java:271)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-energy_1.3.1/info.json (No such file or directory)
...
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-warfare_1.9.9/info.json (No such file or directory)
...
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-logistic_1.1.0/info.json (No such file or directory)
...
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-tools_2.0.0/info.json (No such file or directory)
...
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-storage_1.2.0/info.json (No such file or directory)
...
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-metallurgy_1.2.0/info.json (No such file or directory)
...
[Severe]-Failed to unzip from getJsonFromZip
java.io.FileNotFoundException: /tmp/dytech-transportation_1.2.0/info.json (No such file or directory)
...
Internal path string not updating in time
Here some log of fresh run to understood what I mean:
Running McLauncher from /home/anonymous/Games/factorio
[Log]-McLauncher.json not found, Saving first-time info.
[Log]-Saved McLauncher data.
[Log]-Selected profile First profile
[Log]-Saved McLauncher data.
[Log]-Saved McLauncher data.
[Log]-OS Linux
[Log]-McLauncher version: 0.4.6 Checked version: 0.4.6
[Log]-Downloadable mods found... 49
[Log]-getCurrentDirectory(): /home/anonymous/Games
[Log]-getSelectedFile() : /home/anonymous/Games/factorio
[Log]-/home/anonymous/Games/factorio
[Log]-Using zip factorio.
[Log]-Access to read and write allowed.
[Log]-Available Mods: 22
java.io.FileNotFoundException: nullforceshield/info.json (No such file or directory)
Restart after change game path is solution.
Game ignoring selected modes
So, I figured out why game ignores selected modes:
By default, newly added mods (those, who absent in mod-list.json) are enabled. Launcher wrote only enabled modes in mod-list.json and game enables other founded in mods dir. So, for properly workaround You need to generate full mod-list.json with enabled and disabled mods.
I test that by hand and it's work.
$ sudo apt-get install icedtea-7-jre-jamvm # Install jamvm java VM
$ java -jamvm -jar McLauncher.jar # run launcher on jamvm
After game launch it still freezes on 85%, but if close launcher at this moment, game continue to load and start normally (and ignore disabled modes as described in previous spoiler)
If run with no jamvm, game frezes on 85% and closes after launcher close.
If check "close launcher after game start" game closes immediately after launch (with or without jamvm).
I think, it because game launched as child process of launcher and share his memory or so... not sure.
Anyway, I propose to You install Linux on VM (like VirtualBox) and try it. It is less complicated than install Win
I use Mint LMDE Cinnamon x64.
Re: McLauncher 0.4.6 (Mod Manager and Downloader)
Posted: Fri Oct 03, 2014 7:06 am
by Arano-kai
Aaaaaand.... part 2
GUI tweak
"Update launcher" caption outside the boundaries of a button. Sorry, no screenshot here...
Also, suggesting to hide already activated mods from "Available" list.
[log]-Starting download.
[log]-download canceled
[log]-download finished. Extracting now.
[Log]-/tmp/rail-layer.zip
[Log]-NOT DIRECTORY ... /home/anonymous/Games/factorio/mods/rail-layer
[Log]-Zip file at.. /tmp/rail-layer.zip
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.zip.ZipFile.<init>(ZipFile.java:115)
at md.mclama.com.UnZip.unZipIt(UnZip.java:55)
at md.mclama.com.Download.run(Download.java:201)
at java.lang.Thread.run(Thread.java:722)
[Severe]-Failed to extract... /tmp/rail-layer.zip
Thx for You time and good luck
Re: McLauncher 0.4.6 (Mod Manager and Downloader)
Posted: Sat Oct 04, 2014 9:08 am
by Anolya
I got a bug when I wanted to delete 1 profile.
I created 2 profiles, I delete the first one and the second disappears too. When I reload the app, the second one is here. The bug only appears when you create 2 profiles and then delete the first one.
Re: McLauncher 0.4.6 (Mod Manager and Downloader)
Posted: Sun Oct 05, 2014 3:08 am
by OBAMA MCLAMA
Just a quick fix for now
v0.4.7
+Fix getJsonFromZip error for linux users
+Fix issue where users that have factorio setting to enable all new mods was enabling every mod.
+Update launcher button moved and resized.
I'm a little busy at the moment, I'll work on the other things you mentioned, especially that delete one.
Re: McLauncher 0.4.6 (Mod Manager and Downloader)
Posted: Sun Jul 26, 2015 5:22 pm
by OBAMA MCLAMA
McLauncher has been managing factorio mods for almost a year now, My site will be going down some time this week. But don't worry i recently started working on rebuilding the Mod Manager again.
When the site goes down it should still work. I still wouldn't use the download portion of it as the mods in its database are outdated, and for older versions of factorio.
7 months ago there was a person called trangar that was supposed to make a mod downloading site, But that was the last thing i heard about that and recently i talked to someone about an actual released mod downloading site. Factoriomods.com
The launcher will eventually support downloads again, but the temporary solution i provided wont be in the rebuilt launcher.
McLauncher still works with factorio v12, I have been using it myself recently. Just take note of the dependencies having an problem with optional versions. So launch, then ignore + launch to get around the optional dependencies error. It doesn't happen with most mods, but if you have a lot of mods enabled it appears.
Re: McLauncher 0.4.8 (Mod Manager works with v12)
Posted: Wed Feb 22, 2017 5:38 pm
by lob26
Hi.
When I try to launch this it comes up with a message saying that it doesnt have access to read or writ files. How can I fix this?
I use Windows.