Coder Social home page Coder Social logo

How use in Windows? about modmyfactory2 HOT 16 CLOSED

artentus avatar artentus commented on July 21, 2024
How use in Windows?

from modmyfactory2.

Comments (16)

Artentus avatar Artentus commented on July 21, 2024

Are you using the standalone or the normal Windows version?
You can also try to enable verbose logging (-v command line argument) and see if something new shows up in the log.
And I have just released a hotfix for a very common startup crash, try running that first.

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

Okay, i cleanup the appdata folder of the app, download and execute the standalone version (which assume is the portable one), then execute the ModMyFactoryGUI -v from cmd 2 times and still nothing, this is the new log:

log_20200817.txt

from modmyfactory2.

mobius1qwe avatar mobius1qwe commented on July 21, 2024

from your log data seems that the new MMF is trying to launch Steam version of factorio but your system doesn't have it, it has one of the other versions instead(GOG or website standalone) and by trying to launch the steam version (which you don't have) it's throwing an error (AV possibly?)

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

yes i use website standalone factorio, how I configure that to the ModMyFactory2?

from modmyfactory2.

mobius1qwe avatar mobius1qwe commented on July 21, 2024

I think this is something that Artentus will develop in the upcomming weeks, MMF2 is still in early alpha access so it will have a few bugs here and there, You can use MMF1 in the meantime as it's working for me at least.

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

Ok thanks 👍, what version are you using of MMF 1?

from modmyfactory2.

Artentus avatar Artentus commented on July 21, 2024

The issue is actually not related to the Factorio Steam version, that line just means it has not been found on your system.
Also standalone only means no runtime is required on your system, it's not any more portable. I will release portable versions once I reach beta. Since you're running on the latest Windows 10 version I recommend you try the normal Windows release instead.

Just based on the logs there is no actual information that would let me immediately see what's going wrong. The application seems to load normally and then simply shuts down without error. It's certainly possible it's related to the standalone version, according to Microsoft the packing is still a beta feature, but I'll have to do more investigating to say for certain.

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

well tried also the normal windows release and have the same effect, its just with MMF1 even with the non portable version it could open the interface and allow you to download factorio directly, that's why it seems so weird for me that MMF2 doesn't.
I test it in my desk pc ryzen 5 1600 and my laptop ryzen 5 3500U both with clean install of W10 2004, does somebody else with AMD has tested it? 🤔

from modmyfactory2.

Artentus avatar Artentus commented on July 21, 2024

MMF2 uses a very different GUI framework to enable cross-platform compatibility so you cannot really compare the two.

I've just compiled a new build with even more logging, hopefully this will reveal the issue (run with -v):
mmf-debug.zip

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

OK...
I cleanup the \AppData\Roaming\ModMyFactoryGUI
put the build you send me in C:\mmf-debug
i open a CMD inside and execute ModMyFactoryGUI -v
this is what i get in the log:

log_20200818.txt

it looks that is missing something from the route D:\Visual Studio Projekte\ModMyFactory2\ModMyFactoryGUI*.* which doesn't exist in my PC because y reserve D:\ for my USB's.

from modmyfactory2.

mobius1qwe avatar mobius1qwe commented on July 21, 2024

@Artentus I probably should stop trying to help, I don't understand C# very well but seems to me that the model: FactorioViewModel doesn't have a method called FirstOrDefault() and its throwing an error when you initialize it.

::File MainWindowViewModel.cs
Before this line, on line 143 you're trying to get which instance is being selected, I'm thinking this is on regards of if its steam, GOG or website. but since its TryGet it will either return something or null. So your FactorioViewModel.Instances is null and it doesn't enter the if condition, so it goes into the next if condition, on line 157 where its throwing the NullPointerException error because on the line just above, 156, you're trying to call the method FirstOrDefault() from a null object.

::File App.xaml.cs
So the mainviewmodel hangs and doesn't continue the loading process, throwing the unable to initialize GUI framework, then on the App.xaml.cs I think that the next Log(GUI framework sucessfuly initialized) should be on an "else" part of the try-catch, as it's saving the log saying it was loaded.
Then it tries to run base.OnFrameworkInitializationCompleted(); with a NullPointer on the mainwindow and it crashes

Oh I think I get it now, maybe he doesn't have .NET Framework installed on his PC. Since on my computer the main window shows correctly.

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

what version of .NET Framework should have installed?

from modmyfactory2.

mobius1qwe avatar mobius1qwe commented on July 21, 2024

Try installing the latest one, I have them all because I develop applications too so I'm not sure which one you need.

from modmyfactory2.

Artentus avatar Artentus commented on July 21, 2024

Based on that log I think I've finally figured it out.

MMF is not trying to access anything on D:, those are just debug symbols.
There was indeed a pretty dumb bug causing a null reference exception on fresh installs, but that wasn't the main issue either.

As it turns out there is a broken mod on the portal. This mod does not have any releases associated with it which is causing the crash. Funnily enough if you try to access this particular mod on the actual mod portal the server also throws an error.

So someone has, either intentionally or unintentionally, created an invalid mod on the portal. Congratulations to that person.

from modmyfactory2.

Artentus avatar Artentus commented on July 21, 2024

Just released a patch, hopefully this will resolve your issues

from modmyfactory2.

GeekinaCave avatar GeekinaCave commented on July 21, 2024

i just repeat the steps with v2.1.3.9 and success!

imagen

Thanks!

from modmyfactory2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.