Git Product home page Git Product logo

Comments (8)

TheFitzZZ avatar TheFitzZZ commented on September 23, 2024

Thank you @Steveveepee for opening the issue and pre-qualifying this much... and adding the file :-)

Unfortunately, even with your file, it doesn't crash for me. But your suggestion was correct - where I actually use try/catch here, I added the e.message to show what's wrong.

Would you be so kind and test this version? Haven't published this one yet, so please DL this zip.
R3.zip

Thank you for contributing!

from dcs-config-manager.

Steveveepee avatar Steveveepee commented on September 23, 2024

Thanks, It's a path error.

Its looking for C:\Users*username*\SavedGames\DCS\config\options.lua

I don't have the base DCS folder with a config\options.lua in my Saved Games folder.

I do have Saved Games\DCS.openalpha and Save Games\DCS.openbeta with the correct structure for each under that.

Sounds like it needs some fall through logic to find a options.lua in one or more of these folders.

Regards,
Steve.

from dcs-config-manager.

TheFitzZZ avatar TheFitzZZ commented on September 23, 2024

Thanks @Steveveepee for the info. In that case you'll have to use the settings tab to tell the app where your config folder is for that instance. That's why I gave the option to change the path for each installation... but obviously didn't test this case good enough :-)

Btw I just "guess" the path in the app (looking directly at %userprofile%\Saved Games) - can't check right now (I'm on an airport) - but DCS doesn't note the config path in the registry, so I can't detect where it is. My guess is/was that the majority of all users will have it where it originally gets saved.

Planned changes to the app: I need to overhaul the error handling & messages that this case is communicated to the user properly - not as an error per se, but a notification, on first load.

from dcs-config-manager.

Steveveepee avatar Steveveepee commented on September 23, 2024

I cant get to the settings tab at all, the program exits after the first options.lua cant be found.

from dcs-config-manager.

TheFitzZZ avatar TheFitzZZ commented on September 23, 2024

Yeah :-) The panic was implemented pretty late and I simply forgot to test that scenario. Will have an update ready within the day.

from dcs-config-manager.

TheFitzZZ avatar TheFitzZZ commented on September 23, 2024

@Steveveepee Hmmm actually I do check for the existance of the directory at least...
So I build "%userprofile%\Saved Games\DCS" and check for it's existance. This seems to be true for you as I only try to read the options lua in that case (I then add \config\options.lua). Only then it would run into the situation you're facing.

Does this mean you have a DCS folder (no matter the content) in Saved Games, but the "real content" is elsewhere? Can you give me the full path to your options.lua?

I get the feelign that you might be "breaking" the "Basefolder+config+options.lua"-formula.

from dcs-config-manager.

TheFitzZZ avatar TheFitzZZ commented on September 23, 2024

@Steveveepee if you're still interested - I added logging to the recent pre-release that will help me understand you problem better. You can get it via https://github.com/TheFitzZZ/DCS-Config-Manager/releases/download/R3Pre1/PreRelease-Portable-R3.zip

It'll drop a log in %localappdata%\DCSConfMgr - please upload this here.

from dcs-config-manager.

TheFitzZZ avatar TheFitzZZ commented on September 23, 2024

Closed due to inactivity by OP - feel free to open it again.

from dcs-config-manager.

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.