Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work at all on mac #4

Closed
sjmills opened this issue Jul 11, 2024 · 4 comments · Fixed by #5
Closed

Doesn't work at all on mac #4

sjmills opened this issue Jul 11, 2024 · 4 comments · Fixed by #5
Labels
bug Something isn't working question Further information is requested

Comments

@sjmills
Copy link

sjmills commented Jul 11, 2024

  1. Change the color.
  2. Save.
  3. Quit.
  4. Launch and load the same savegame. Defaults back to blue.
@Peppie84
Copy link
Owner

Hi @sjmills , thanks for your post. But please give me some more information.

  • Do you have errors on your log file related to this mod?
  • How much mods do you use?
  • Do you have also that issue with a savegame and only this mod?
    • If it works, can you start a new savegame with all your mods and disable the other one by one, to find the faulty mod that prevents this mod to work correctly

Thanks

@Peppie84 Peppie84 added question Further information is requested bug Something isn't working labels Jul 11, 2024
@sjmills
Copy link
Author

sjmills commented Jul 11, 2024

I found an error in the log:

2024-07-11 08:19 Error: Could not save xml file 'settingsXML' to '/Users/tut/Library/Application Support/FarmingSimulator2022/modSettings/FS22_HudColor/../hudcolor.xml'

Looks like you're trying to save the file in modSettings rather than in modSettings/FS22_HudColor. This is a Mac, but it shouldn't make any difference. I'm wondering if the lua file path code fails because it can't find FS22_HudColor, so it can't go back down the path to modSettings. I'd have the mod create that folder and put the file in there instead, or build the path differently, like:

getUserProfileAppPath().."modSettings/hudcolor.xml";

@Peppie84
Copy link
Owner

Hi @sjmills thanks for your help. I've changed the base path to:

MOD_SETTINGS_DIRECTORY = getUserProfileAppPath() .. 'modSettings/',

Here is a generated dev-release with this fix. Can you confirm that the issue is fixed by that.
FS22_HudColor.zip

@sjmills
Copy link
Author

sjmills commented Jul 11, 2024

That fixed it. Thanks for letting me confirm it.

@sjmills sjmills closed this as completed Jul 11, 2024
@Peppie84 Peppie84 changed the title Doesn't work at all Doesn't work at all on mac Jul 11, 2024
This was referenced Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants