Jump to content

Windows access rights and leadwerks game


Phodex Games
 Share

Go to solution Solved by Josh,

Recommended Posts

Hi,

so the final version of my project is ready and I want to release it. It also works fine on my computer, will also test it in my laptop as well. But on my friends PC there are some problems. It crashes without any error when changing options in the game menu (as it is using a file read/write command accessing a lua data file inside the game directory). It works if he starts the game as administrator, but then the game crashes with an "programm not working" error message from windows, when loading the first gameplay map. This could also be fixed by setting "Always start as administrator" to true in the exe settings. But I cannot expect from the user that he enables admin mode by manual in order to play the game, can I?

So how can I handle this issue? Should i just set the exe to "run as admin" by default and deliever this with my installer? Does this even work? Or does windows reset this, especially if the files are packed into an installer file. Or do I need any kind of security certificate for releasing software on windows? I have not much experience on this subject.

Link to comment
Share on other sites

  • Solution

By default you can only access files in the user appdata or documents paths. This is where any files should be written to. This is not a Leadwerks thing, it is just how Windows works.

  • Thanks 2

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...