ModMyFactory - mod manager and more
Re: ModMyFactory - mod manager and more
Already tested that - no entry in the Task Manager at any time.
Re: ModMyFactory - mod manager and more
Have you restarted you computer since then? By restarting I mean actually the restart option, not shutting down and then turning it back on (this only hibernates the computer).
This may clear any junk in your RAM that shouldn't be there (e.g. the Mutex preventing the app to start).
This may clear any junk in your RAM that shouldn't be there (e.g. the Mutex preventing the app to start).
Re: ModMyFactory - mod manager and more
Yeah, PC was off the power for around two hours yesterday, but I'll try a real restart later again.
Tried restart - no change, still nothing happening.
I tried a new install of ModMyFactory - the windows smart screen protection kicked in. After acknowledging that I want to use the app nothing happens anymore. Maybe it is related to that Windows 10 feature?
Disabling said Feature also does not change anything. I am a bit at a loss here.
Tried restart - no change, still nothing happening.
I tried a new install of ModMyFactory - the windows smart screen protection kicked in. After acknowledging that I want to use the app nothing happens anymore. Maybe it is related to that Windows 10 feature?
Disabling said Feature also does not change anything. I am a bit at a loss here.
Re: ModMyFactory - mod manager and more
I am developing and testing on Windows 10 so I highly doubt it has anything to do with that.
Just based on the fact that you seem to be the only one experiencing this problem I suspect it is caused by something very sepcific about your system.
The problem now is that as long is I can not reproduce this (and I have no idea how I should even go about reproduceing this) I can only take wild guesses at how to resolve this.
If you know how, you could download the source code from GitHub and then run it through the debugger directly on your machine, this may reveal the error.
If you don't know how to do that I guess the only thing to do is to keep trying. I'd do the following:
Just based on the fact that you seem to be the only one experiencing this problem I suspect it is caused by something very sepcific about your system.
The problem now is that as long is I can not reproduce this (and I have no idea how I should even go about reproduceing this) I can only take wild guesses at how to resolve this.
If you know how, you could download the source code from GitHub and then run it through the debugger directly on your machine, this may reveal the error.
If you don't know how to do that I guess the only thing to do is to keep trying. I'd do the following:
- Rename or move the %AppData%\ModMyFactory folder.
- Download an older version of ModMyFactory.
- Clean install the newest version of the .Net Framework.
- Repair damaged system files (sfc /scannow).
- As last resort load a System Restore Point from before this started happening.
Re: ModMyFactory - mod manager and more
"Give me a program with a single bug and i will find both" :-)
that being said, here are my observations (good and bad) when i started using this program for the first time :
very nice to have a wiki and some instructions for a first setup
and most of all very nice to have a program like this at all, which enables easy maintenance of many different setups for different versions of factorio and different modpacks
the better a program is, the more i look at details and the more ideas i get for it.
thus take the length of this post as praise and commendation, and in no way as negative criticism.
to make it optically a bit more pleasing, i have split it in spoilered segments according to your checklist :
THANKS and good luck
that being said, here are my observations (good and bad) when i started using this program for the first time :
very nice to have a wiki and some instructions for a first setup
and most of all very nice to have a program like this at all, which enables easy maintenance of many different setups for different versions of factorio and different modpacks
the better a program is, the more i look at details and the more ideas i get for it.
thus take the length of this post as praise and commendation, and in no way as negative criticism.
to make it optically a bit more pleasing, i have split it in spoilered segments according to your checklist :
0,1,2. preparations and backups ... starting with empty directories, and how to upgrade ModMyFactory
3. settings ... missing icon, and location of saves and scenarios
4. installing factorio ... with several crashes
5. adding mods ... with suggestions for enhancements
6. creating and editing modpacks ... more observatons, suggestions and ideas
crazy idea about some kind of XOR-modpacks
and again: I already enjoy this program a lot and will enjoy it even more once i am done setting everything up completely.THANKS and good luck
Re: ModMyFactory - mod manager and more
Thanks for your detailed feedback.
Let's go through it all.
Generally a new version should always be to 100% compatible to everything you have done prior (given that I don't f something up of course ).
I guess if you wanted to you could move them the same way you would with any other Factorio installation, by linking them to somewhere else.
You could also use the --appdata-path command line parameter to force ModMyFactory to use a different location (this will also move the configuration files).
However, in there will be all mods, not just the active ones. ModMyFactory directly edits the mod-list.json file to activate/deactivate mods to stay 100% compatible with the ingame mod GUI. I don't know how Foreman handles this.
Might be something I could add if I find the time. Don't expect it to be in the next release.
There is no easy way to allow for this case and if I were to code it in it would break like everything from prior versions.
I decided on doing this because it is very unlikely that someone would need more than one version per mod and it would greatly complicated things for both me and the user.
Also, the refresh button has a tooltip stating that it refreshes the mod list.
I am not sure if it will be easily doable to disable the checkbox to prevent multiple clicking. WPF, the UI Framework I use, works very differently from most other Frameworks, there is no 'Handler' in the same sense.
fmp-files are basically just json-files that contain a list of mods and a list of modpacks.
I thought it would be clear that they have to be extracted first but I guess not. I'ts remarked now.
If you want to learn more about what causes confilgcs on import you can read the Wiki page on sharing modpacks.
All I can say is enlarge the window.
There are two sorts of modpacks, those that store the versions of their mods and those that don't. The packs I uploaded in the first post are of the second sort so they will always download the newest version of the mods.
To get a modpack that downloads mods for a specific Factorio version it would need to be set up for that on export. I won't go through that process myself but you are welcome to do so yourself and upload them if you want to.
The mods are already grouped by Factorio version. If anything I could play around with making these groups collapsable.
But if I do implement this it will probably take another while because that would be a big update.
I'm quite happy with how modpacks work right now and don't think I need to add anything too it. I don't want to overcomplicate things for me and the users.
Let's go through it all.
It should always suffice to just extract the new archive into the same folder and overwrite all files. To be extra safe you can first delete all of the old files and then extract.Anson wrote:how do i upgrade from one version of ModMyFactory to another?
Generally a new version should always be to 100% compatible to everything you have done prior (given that I don't f something up of course ).
This was an error in the wiki, most likely because of CnP. I already fixed this.Anson wrote:but i could find no <gear> icon in the toolbar
Those will all be placed in AppData. I could add an option to change these but I decided not to as ModMyFactory doesn't actually manage anything in there.Anson wrote:what about saves and scenarios ?
I guess if you wanted to you could move them the same way you would with any other Factorio installation, by linking them to somewhere else.
You could also use the --appdata-path command line parameter to force ModMyFactory to use a different location (this will also move the configuration files).
You can access all relevant directories through the 'Edit' menu.Anson wrote:where to look for directories
ModMyFactory sorts all mods by their Factorio version. To find the mods open the mod folder like described above and then switch to the subfolder with the correct version.Anson wrote:where are the currently active mods when i am running an instance of factorio from this program ?
However, in there will be all mods, not just the active ones. ModMyFactory directly edits the mod-list.json file to activate/deactivate mods to stay 100% compatible with the ingame mod GUI. I don't know how Foreman handles this.
That is most likely the cause of this crash. Will fix this for the next release.Anson wrote:all factorio distributions before 0.11 are distributed with a directoryname that has the buildnumber appended to the version, and ModMyFactory expects only three parts in the version number (Factorio_0.xx.xx, and not Factorio_0.xx.xx.bbbb)
I guess it should.Anson wrote:I know that i can't install the same version twice, but if i accidentally do, the program should detect that and not crash.
Sounds like a somewhat useful feature and shouldn't be too hard.Anson wrote:it would be nice if i could download the newest version of a mod without having to select first a specific version in the list, eg by having a button "download newest". and since i mostly want to install the same mods for 0.13 and 0.14, it would be nice if i could simply push one button like "download all newest" to download the newest version of a mod for every installed factorio version.
Hm, there is no such feature yet, you'd have to go through the list and download all mods one by one.Anson wrote:when a new main version of factorio is released (0.15), how can i most easily install a set of all the mods for it that i already have installed
Might be something I could add if I find the time. Don't expect it to be in the next release.
That will most likely not happen. Maybe if everything alse is done, but I won't put this on my list for now.Anson wrote:it also would be nice if i could somehow install a "placeholder"
ModMyFactory is not designed to wok in that way, only one version of the same mod can be installed per version of Factorio.Anson wrote:in case i want to use different versions of a mod for the same or different versions of factorio, how can i select and download those two versions of one mod which both belong to the same main version of factorio ?
There is no easy way to allow for this case and if I were to code it in it would break like everything from prior versions.
I decided on doing this because it is very unlikely that someone would need more than one version per mod and it would greatly complicated things for both me and the user.
I wouldn't have though that this could be misunderstood. Most search fields do not have a 'clear' button, inlcuding the ones in the main window. You clear it by just selecting everything and hitting backspace or just starting to type.Anson wrote:maybe a real "clear search field" button would be nice, and having the "redownload entire list" button someplace else, or with some text instead of only a small icon?
Also, the refresh button has a tooltip stating that it refreshes the mod list.
Should be really quick to implement.Anson wrote:I'm missing an option to delete mods while browsing mods
There are a view places where some more dialogs would be nice. I'll probably make a separate update for that at some point.Anson wrote:it would be nice to get a warning, or to be able to set an option to copy instead of move them
Do you have a slow harddrive? For me activating/deactivating modpacks is pretty much instant, but I also use an SSD.Anson wrote:but with a long list of mods, it can take 5+ seconds
I am not sure if it will be easily doable to disable the checkbox to prevent multiple clicking. WPF, the UI Framework I use, works very differently from most other Frameworks, there is no 'Handler' in the same sense.
Sounds reasonable, will see how this is best implemented.Anson wrote:it would be nice if I could add all mods which have checkmarks to a (new or existing) modpack
fmp is a file format I "invented" specifically for ModMyFactory, It's an abbreviation for Factorio Modpack.Anson wrote:what does fmp stand for?
fmp-files are basically just json-files that contain a list of mods and a list of modpacks.
The modpacks in the first post are only uploaded as ZIP archives because the forum doesn't allow me to upload .fmp files.Anson wrote:it seems to expect the file as plain fmp file
I thought it would be clear that they have to be extracted first but I guess not. I'ts remarked now.
That is not actually an error, just an information for you.Anson wrote:what caused the message "The following conflicts occured while importing this modpack file: bobinserters (0.13.3) <-> bobinserters (latest)"?
If you want to learn more about what causes confilgcs on import you can read the Wiki page on sharing modpacks.
This is a bit of a layouting problem I can not really work out. It basically takes the hidden contents of the expanders also into account even though it is not expanded.Anson wrote:i first had to scroll horizontally or enlarge the width of the entire window to see it, although more than half the width of the list (between the modname and the X and arrow icons on the right side) was empty.
All I can say is enlarge the window.
You can use the app however you want but I personally woud advise against doing that. You are making it harder for you to use ModMyFactory than it has to be, especially because you can not use links this way.Anson wrote:I don't use modpacks only to assign mods to a game, but also to sort mods, eg one modpack for all mining mods, one for belts, one for power, one for all kinds of greenhouses and wood-oil, etc
Not quite but there is a way to achieve that.Anson wrote:is there an option to install a modpack to a specific version of factorio
There are two sorts of modpacks, those that store the versions of their mods and those that don't. The packs I uploaded in the first post are of the second sort so they will always download the newest version of the mods.
To get a modpack that downloads mods for a specific Factorio version it would need to be set up for that on export. I won't go through that process myself but you are welcome to do so yourself and upload them if you want to.
I don't think this would make sense.Anson wrote:would it make sense to use that version as a filter to display only those mods that are usable for that version
The mods are already grouped by Factorio version. If anything I could play around with making these groups collapsable.
It certainly would be possible, I have dependency handling already on my suggestions list.Anson wrote:would it be possible to always automatically download required dependencies, maybe with a second option to also download optional dependencies ?
But if I do implement this it will probably take another while because that would be a big update.
Just build your modpacks in a ways that this doesn't happen.Anson wrote:finally a crazy idea about modpacks, related to what i wrote somewhere above (using modpacks to group mods by keywords, eg all belt related, all mining related, etc): would it be possible to somehow setup some kind of XOR-modpack or include in a modpack to disable specific mods? the reason is that some mods don't work well or at all together or that don't make sense when selecting more than one of them
I'm quite happy with how modpacks work right now and don't think I need to add anything too it. I don't want to overcomplicate things for me and the users.
Re: ModMyFactory - mod manager and more
Thanks ...Artentus wrote:Will fix this for the next release. ...Anson wrote:.....
I guess it should. ...
Sounds like a somewhat useful feature and shouldn't be too hard. ...
Should be really quick to implement. ...
will see how ...
Sounds reasonable, this is best implemented.
Thanks ...
Thanks ...
Thanks ...
Thanks ...
Thanks ...
long answer with more details to a long answer to a long post
Re: ModMyFactory - mod manager and more
Well, there are no subdirectories and there probably never will be, but feel free to do what you want.Anson wrote:instead of having to check which files and subdirectories to delete or NOT to delete
It's not that there is not enough space, it's that I want to only put the most commonly used options inside the toolbar to avoid overcrowding it.Anson wrote:although there would be enough space for that icon
I guess you are right. But I will have to redesign the settings window which is a bit of a tedious work, so this might not be done in the next release.Anson wrote:you don't change anything IN those directories, but you already change the locations of those directories
Yes, thats because ModMyFactory only sorts mods by the first two parts of their Factorio version (so 0.14.19 and 0.14.21 share the same mod directory).Anson wrote:when i have two versions of factorio like 0.14.19 and 0.14.21, do they always need to have the same versions of mods
Thats again a compromise between complexity and variety.
I believe it is, in 'The Settings#Manager Mode'.Anson wrote:Maybe you could mention this restriction in the wiki
Ah, so, there is indeed a problem with that specific checkbox.Anson wrote:but when i click the checkmark on the top of the left side "Mods", it just took 7+ seconds
When activating/deactivating modpacks there are measures in place that cause ModMyFactory to only write the mod-list.json file once, but when activating/deactivating all mods at once it will be written once per mod (so in your case a lot of times). This must be an oversight by me when I implemented these two checkboxes at the top (they are a relatively new addition).
Re: ModMyFactory - mod manager and more
currently, there can be two subdirectories:Artentus wrote:Well, there are no subdirectories and there probably never will beAnson wrote:instead of having to check which files and subdirectories to delete or NOT to delete
the directories for factorio and for mods, when you set the option to "application directory"
in the future, maybe also for saves and scenarios, if you add options for those two too (to separate at least main versions from one another, like an old scenario from 0.11 from a new scenario from 0.14, or all the save files which mostly are broken by mods not being upgraded, newly added mods, big changes in the game itself, etc when transitioning from one main version to the next)
btw: should/would it be possible to just delete the hardlinks for savefile directories in the factorio/0.xx directories manually and thus get all save files for 0.xx.yy games in separate unlinked local directories factorio/0.xx/saves (instead of all of them in a single big directory appdata/roaming/.../saves) ?
it makes sense. (and probably would be easy to do and make the same sense when done for saves and scenarios :-)Artentus wrote:Yes, thats because ModMyFactory only sorts mods by the first two parts of their Factorio version (so 0.14.19 and 0.14.21 share the same mod directory). Thats again a compromise between complexity and variety.
but it was a bit confusing to me at first until i saw and understood what you did with hardlinks.
maybe, someday you can add a page to the wiki about the general internal setup (directory structure, hardlinks, etc)
In the meantime, i did some more tests and checks for Foreman, and it seems that it's not so easy as i wrote in the last post. Foreman seems to read all mods, and thus it still bugs out on some mods even when they are disabled. there is probably no way around the old method of either not using those mods(*) at all, or manually copying all working mods to a new separate directory which defies the purpose of this utility. of course, the best solution would be if Foreman wouldn't bug out on problematic mods and only skip them, but that depends on the author of Foreman and you and we can't do anything about it (except if you would add a button to copy all enabled mods to an external directory, which makes almost no sense for this utility).
(*) "those mods" : currently, out of more than a third of the mods on the mod portal that i checked (380/950), Foreman has problems with eight mods: two different bugs (probably caused by strange syntax in the mods) and six with the message "System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." (without giving filename or other details). besides angelsrefining, the problematic mods are not important and/or there are alternatives for them.
while doing those tests, this utility was a big help to very quickly enable and disable lots of mods. very helpful.
in the end, only one small problem remained: to temporarily completely get rid of some mods, i moved them around to another external directory and copied them back. after finishing my tests, i would have liked an option to verify the consistency of all mods and modpacks in ModMyFactory. the feature that the left checkmark writes every mod status to the mod-list.json proved useful in this case: this file was completely regenerated after i deleted it in the mods/0.14 folder (in contrast to the right checkmark that did only partial work on updating values that were externally changed).
a quick look seems to indicate that ModMyFactory indeed uses an internally saved status which mods were installed and neither gets rid of manually (outside of ModMyFactory) deleted mods, nor recognizes manually (outside of ModMyFactory) added mods. to fix all these externally modified mods, I'll try to delete them in ModMyFactory and/or export everything as modpack that i later reimport.
although the user messed up, it would be nice if this program could check and compare the mods in its internal list and in the mods/0.xx directories, and somehow fix mismatches (either redownload them, or delete them from the internal list, or at least output a list of these mods to be handled by the user later).
finally a (small) real bug:
while i tried to delete and/or redownload mods, i found that the "browse online mods" window is not always updated automatically. to reproduce: open the "browse online mods" window, select a mod and download it, close the window, and delete the mod in the main window. then go back to the "browse online mods" window and the mod will still be marked with a green checkmark. only after selecting any other mod and selecting the same mod again, the status of the mod is updated in this window.
Re: ModMyFactory - mod manager and more
But they are not part of the ZIP archive and have therefore nothing to do with updating the app.Anson wrote:currently, there can be two subdirectories:
Do not do that, I am not responsible if ModMyFactory overwrites those folders again and deletes all your savegames.Anson wrote:should/would it be possible to just delete the hardlinks for savefile directories in the factorio/0.xx directories manually
He is welcome to use my code for parsing the mod-list.json file to only load mods that are enabled, but that is completely on him.Anson wrote:but that depends on the author of Foreman and you
I suggest you tell that the author of Foreman, not me.Anson wrote:Foreman has problems with eight mods
Not possible without major changes.Anson wrote:i would have liked an option to verify the consistency of all mods and modpacks in ModMyFactory
It's impossible that this could be useful in any case. ModMyFactory always writes the complete file so no matter how often is is written it will have the same contents in the end.Anson wrote:the feature that the left checkmark writes every mod status to the mod-list.json proved useful in this case
No, neither of this is saved, ModMyFactory just does not listen to changes in the directories and therefore keeps the data loaded in RAM. Because of this I don't reccomend editing anything inside these directories while the app is running.Anson wrote:a quick look seems to indicate that ModMyFactory indeed uses an internally saved status which mods were installed and neither gets rid of manually (outside of ModMyFactory) deleted mods, nor recognizes manually (outside of ModMyFactory) added mods.
Re: ModMyFactory - mod manager and more
you probably already wrote your answer when i edited my post to add a bug report at the end ...
the config for ModMyFactory, the saves and for many people also the factorio and mods directories are at other places and thus deleting the entire contents of the old version first (or even the directory itself) to never have old components would work. This method may NOT be used when the option for factorio installs and/or mods is set to "application directory".
when i restarted it, it read all existing mods perfectly fine, didn't include deleted mods in its list, also removed all removed mods from the display of modpacks, but still kept that info (even after restarting ModMyFactory a few times) so that after reinstalling the deleted mods, they were automatically shown in the proper old modpacks.
unless i delete the old version first and then unzip the new version (as i wrote at the beginning)>> currently, there can be two subdirectories:
> But they are not part of the ZIP archive and have therefore nothing to do with updating the app.
the config for ModMyFactory, the saves and for many people also the factorio and mods directories are at other places and thus deleting the entire contents of the old version first (or even the directory itself) to never have old components would work. This method may NOT be used when the option for factorio installs and/or mods is set to "application directory".
that utility is very useful, but has quite some problems which are known for a long time and which probably would require a complete rewrite. and at the same time nobody seems to really do some important updates and changes for it. that is also the reason why i thought how to handle problems there by using this program in a special way.>> but that depends on the author of Foreman
> He is welcome to use my code for parsing the mod-list.json file to only load mods that are enabled
>> Foreman has problems with eight mods
> I suggest you tell that the author of Foreman, not me. ;)
you are right ... i was running ModMyFactory for two full days without restarting it, LOL :-)>> a quick look seems to indicate ... uses an internally saved status ...
> No, ... keeps the data loaded in RAM ...
> Because of this I don't reccomend editing anything inside these directories while the app is running.
when i restarted it, it read all existing mods perfectly fine, didn't include deleted mods in its list, also removed all removed mods from the display of modpacks, but still kept that info (even after restarting ModMyFactory a few times) so that after reinstalling the deleted mods, they were automatically shown in the proper old modpacks.
Re: ModMyFactory - mod manager and more
Or - you know - just delete everything except these folders. Or don't delete anything and just paste the new files in there. It's not that hard...Anson wrote:This method may NOT be used when the option for factorio installs and/or mods is set to "application directory".
Already fixed.Anson wrote:i edited my post to add a bug report
I'm currently waiting on the translators, then I will release version 1.4.3.
Be careful, this is just a side effect of when the modpack file is written to. If you edit anything inside those modpacks the file will be overwritten and this information is lost.Anson wrote:but still kept that info (even after restarting ModMyFactory a few times) so that after reinstalling the deleted mods, they were automatically shown in the proper old modpacks.
Re: ModMyFactory - mod manager and more
i just wanted to copy old save files to the new ModMyFactory directory structure. maybe because i didn't care, or was too lazy to look up where the "original new saves" are, or to test what happens :-) i tried copying the old save files to the hardlink of the factorio install that i now use in ModMyFactory. result: the windows explorer crashed and terminated with no error message, sending me back to the desktop.
i was not surprised by something strange happening, and it may not directly be a bug in your program and rather be an unavoidable consequence of using hardlinks, but maybe it is even a bug in windows to act in such a harsh way. it would be nice to make it a bit more foolproof, at least adding an additional warning to the documentation, and maybe also on a popup on hovering that hardlink, and/or maybe prohibiting access to the hardlinks. i think that is also what windows itself does, eg C:\Users\Username\Anwendungsdaten seems to be a hardlink to C:\Users\Username\AppData, and when i try opening that hardlink, i get a dialog box "acces denied" (same for C:\Users\Username\SendTo, C:\Users\Username\Recent, C:\Users\Username\Cookies, and many others).
Anyway, I liked it a lot when i just was able to setup a new modpack for using a demo-save from some mod with just a few clicks in your program, and switch back and forth between my map and the demosave very easily. thanks again for the program.
i was not surprised by something strange happening, and it may not directly be a bug in your program and rather be an unavoidable consequence of using hardlinks, but maybe it is even a bug in windows to act in such a harsh way. it would be nice to make it a bit more foolproof, at least adding an additional warning to the documentation, and maybe also on a popup on hovering that hardlink, and/or maybe prohibiting access to the hardlinks. i think that is also what windows itself does, eg C:\Users\Username\Anwendungsdaten seems to be a hardlink to C:\Users\Username\AppData, and when i try opening that hardlink, i get a dialog box "acces denied" (same for C:\Users\Username\SendTo, C:\Users\Username\Recent, C:\Users\Username\Cookies, and many others).
Anyway, I liked it a lot when i just was able to setup a new modpack for using a demo-save from some mod with just a few clicks in your program, and switch back and forth between my map and the demosave very easily. thanks again for the program.
Re: ModMyFactory - mod manager and more
These links (they're Softlinks btw., there are no Hardlinks for folders) behave just like any other normal folder, thats why they work in the first place.
So I have no idea what might have happened there.
So I have no idea what might have happened there.
Version 1.4.3 released
- Added the option to delete mods from the online view.
- Allowed links to work while ModMyFactory is running.
- Added check if version is already installed when adding Factorio from ZIP and folder.
- Improved mod loading logic (invalid archives and folders are now ignored instead of crashing ModMyFactory).
- Improved performance when activating/deactivating all mods at once.
- Moving locations in the settings will now only move Factorio/mods and leave other contents untouched.
- Fixed crash when trying to log in with incorrect credentials.
- Fixed crash when trying to add older versions of Factorio (0.10 and older) from ZIP.
- Fixed that the releases list of mods on the mod portal was not updated properly in some cases.
Re: Version 1.4.3 released
nice update, and nice improvements ...
and modmyfactory just got even more useful when the portal got its 1000th mod :-)
but:
BUT on each of them, i got the error "This version of Factorio is already installed" :-(
maybe there are old remains from my previous crashing attempts to install old versions, but
i couldn't find any install or "installed version list", neither in the modmyfactory directory nor in appdata ...
and modmyfactory just got even more useful when the portal got its 1000th mod :-)
but:
i just tried to install versions 0.10 and older (from ZIP) and on none of them did modmyfactory crash,Artentus wrote:Fixed crash when trying to add older versions of Factorio (0.10 and older) from ZIP.
Added check if version is already installed when adding Factorio from ZIP and folder.
BUT on each of them, i got the error "This version of Factorio is already installed" :-(
maybe there are old remains from my previous crashing attempts to install old versions, but
i couldn't find any install or "installed version list", neither in the modmyfactory directory nor in appdata ...
i just tried installing mods by downloading from the portal, and on one of them (Tomb Stones, to be exact on all two versions of it) i got the download bar, and then modmyfactory crashed because "The server sent an invalid mod file" with the error-dialog "A crash log has been created in %AppData%\ModMyFactory."Artentus wrote:Improved mod loading logic (invalid archives and folders are now ignored instead of crashing ModMyFactory).
and this is the crash log
lookig at the mods directory afterwards, i see both versions of that mod, but on restarting, none of them is shown in modmyfactory, just like announced for bad archives.Re: ModMyFactory - mod manager and more
Open your Factorio directory by selecting "Edit -> Open Factorio folder" and take a look if there are some subfolders for theses versions. If there are delete them.Anson wrote:i couldn't find any install or "installed version list", neither in the modmyfactory directory nor in appdata ...
This mod contains an invalid info.json file (the "factorio_version" entry is contained twice).Anson wrote:and on one of them (Tomb Stones, to be exact on all two versions of it) i got the download bar, and then modmyfactory crashed because "The server sent an invalid mod file"
While I could just do what Factorio seems to be doing and ignore this, it is technically an error and should be fixed by the mod author.
Re: ModMyFactory - mod manager and more
i had checked everywhere before posting (for me, mods and factorio are subfolders of modmyfactory), and just checked again: there are only folders for 0.11.22 to 0.14.21, but none for older versions. there are also no hidden folders since i always let explorer show all files including hidden and system. the pulldown for factorio versions in your program also shows only exactly the same versions.Artentus wrote:Open your Factorio directory by selecting "Edit -> Open Factorio folder" and take a look if there are some subfolders for theses versions. If there are delete them.Anson wrote:i couldn't find any install or "installed version list", neither in the modmyfactory directory nor in appdata ...
i also would have tried to install yet another old version, but there is only the latest subversion of each version on their website and i already had tried them all with the crashing version of your program, and they all have the same problem now.
the problem is not serious and thus lowest priority since i probably rarely will run such an old version, but i still would like to use only one program to start everything instead of having your prog for 0.11+, links on desktop for 0.10-, etc. I also don't like it when my computer does too many things that i don't understand :-)
and a bug would be a bug after all :-)
i completely agree with that.Artentus wrote:This mod contains an invalid info.json file (the "factorio_version" entry is contained twice).
While I could just do what Factorio seems to be doing and ignore this, it is technically an error and should be fixed by the mod author.
on the other hand, your program shouldn't crash on bad json files either ...
similar happened to me with Foreman (the program, not the mod). it crashed on a bad json too, probably because the author was set as an array of two users. also that author should fix the error, and also foreman shouldn't crash on such an error.
and since i ended up with both downloads in the mod directory (two mods for 0.14), factorio might even crash when they sometime decide to no longer ignore those bad files (before using your program i had that problem, and thus was glad to automate the work: accidentally manually downloaded an update without deleting the old version and factorio crashed, forcing me to search for the duplicate mod and delete it)
Version 1.5.0pre1 released
So there is still a lot of stuff to be done for 1.5 but at the moment I don't really have the time to work on it.
However, the current dev version already contains a lot of stuff that I want to get out so here is a prerelease version for now.
Cangelog:
However, the current dev version already contains a lot of stuff that I want to get out so here is a prerelease version for now.
Cangelog:
- Locations of savegames and scenarios can now be changed in the settings.
- Added context menus to the mod and modpack listview.
- Added option to show/hide experimental versions when downloading Factorio.
- Made info.json parsing less strict (Tomb Stones mod will now work).
- Added option to disable the automatic update check in the settings.
- Added option to copy instead of move when adding Factorio from folder.
- Fixed bug that would prevent adding Factorio from ZIP (would always show an error message).
- Added per monitor DPI scaling support (requires .Net 4.6.2 and Windows 10 Anniversary).
Re: Version 1.5.0pre1 released
with some small unintended "features" :-)Artentus wrote:here is a prerelease version for now.
[*]Added context menus to the mod and modpack listview.
nice that i now can select all marked mods (to add them to a modpack afterwards). maybe in the release version, you can also add the options to activate all non-marked mods, and/or to invert the selection (for all mods that belong to the same factorio version).
there is also a small problem with clicking: rightclicking on anything in the frame triggers the popup, but when clicking on an unselected mod, it first selects the clicked mod and deselects all other mods. thus "select all marked mods" will select the clicked mod and all marked mods. and clicking on the scrollbar also will deselect all mods first.
maybe you can expand the popup texts to say eg "add selected mod" on the left side and "delete selected packs" on the right side. reason: i rightclicked a mod in a modpack, got the popup to "delete selected" and this would not only delete the single mod that i rightclicked, but the entire modpack it was part of (on large modpacks it may be difficult to notice the frame that marks the entire modpack when clicking on a single mod).
[*]Added option to show/hide experimental versions when downloading Factorio.
nice.
[*]Fixed bug that would prevent adding Factorio from ZIP (would always show an error message).
a while ago i had the problem to install old versions again after failing to install them with an old version of this program. i first tried installing from zip (this may be what you just fixed), and also tried downloading (which might have failed because there were partially unzipped files from failing on the first attempt)
when i tested that again just before upgrading to the prerelease version, installing from download (without trying zip first) suddenly worked properly. no idea what remnants might have caused the hickups, but they are gone now.
on the last version (just before updating) as well as on this new prerelease version, i found some problems with the modlist and which mods are shown as activated:
to reproduce the first problem: have more than one version of a mod installed, either downloded two versions of a mod, or unzipped a mod without deleting the zipfile. result: several entries for this mod in the modlist on the left side.
factorio itself will show a popup warning on start, telling that several versions were found, and that factorio will give priority to newer versions over older versions, and to unzipped directories over zipfiles. thus factorio handles this gracefully and this program should only have one line for the mod in that left list.
second problem is related to this: if one of those mods is enabled when this program is started, all additional lines for the same mod will be enabled too. but when the mod is disabled (eg by clicking on it in a modpack on the right side), only the first of those several lines on the left side will be unchecked. to get rid of the checks for the additional lines, you have to search through the list ...
a third problem which i didn't test thoroughly with the old version of this program, and not at all with the new prerelease:
i once had a zipfile as well as the unzipped version of the mod. when a new update for that mod was released, i believe the old zipfile and the unzipped directory were both deleted and the new version was unzipped automatically. this also removed the modifications that i had done and would have liked to look at for comparison when modifying the new version of the mod too (eg the config section, small fixes, etc).
when doing similar again recently, the old versions were kept, which is really nice when modifying mods myself, but also caused up to three versions (old directory, new directory, new zip, maybe even more when there are more updates of the mod) to coexist (no problem; this is expected), but this also caused the above problem of getting the mod in the left list multiple times.