Game won't launch as non-admin

Discussion in 'Misc' started by Deef, Jan 20, 2021.

  1. Deef

    Deef Spearman

    Joined:
    Jan 11, 2021
    Messages:
    8
    Likes Received:
    9
    Trophy Points:
    3
    Hi! I run my games in a separate (non-admin) account, so I was quite happy when the new 3.3.1 launcher didn't require admin access anymore. However, it still doesn't function when not run in admin mode; clicking "play" gives an error in Spartan.exe ("The application was unable to start correctly (0xc0000022).").

    Incidentally, I get the same error just straight up launching spartan.exe without using the launcher. Both function fine in admin mode. My current user account is the owner of spartan.exe, so I'm not quite sure what's going wrong. Seems to indicate it's not a launcher issue.
     
  2. Loading...


  3. kyogo

    kyogo Long Swordsman

    Joined:
    Jun 29, 2019
    Messages:
    20
    Likes Received:
    30
    Trophy Points:
    13
    Hi, i had the same problem and nobody aswered. I resolve the problem only with reinstalling the entiere game
     
  4. martinmine

    martinmine Server Engineer
    Staff Member Administrator

    Joined:
    Aug 6, 2019
    Messages:
    378
    Likes Received:
    265
    Trophy Points:
    63
    Interesting, do you have the game installed through Steam or the retail installer (C:\Program Files (x86)\Age of Empires Online\)?
     
  5. Deef

    Deef Spearman

    Joined:
    Jan 11, 2021
    Messages:
    8
    Likes Received:
    9
    Trophy Points:
    3
    Steam, quite a while back I think.
     
  6. martinmine

    martinmine Server Engineer
    Staff Member Administrator

    Joined:
    Aug 6, 2019
    Messages:
    378
    Likes Received:
    265
    Trophy Points:
    63
    Alright, so then the permission change with the launcher seems to be unlikely to be the case here. With Steam, the launcher doesn't need admin perms to modify the files when doing a game scan. I'm not entirely sure what to do with that error code, maybe @Kevsoft has any insights? Could be we have a log file somewhere that says what file or operation that the game attempts to do before it crashes.
     
  7. Deef

    Deef Spearman

    Joined:
    Jan 11, 2021
    Messages:
    8
    Likes Received:
    9
    Trophy Points:
    3
    Sure - tell me where to look and I'll share what I can! The launcher logs in /Logs don't show anything interesting.
     
  8. Kevsoft

    Kevsoft XLiveless Dev
    Staff Member Administrator

    Joined:
    Oct 24, 2017
    Messages:
    360
    Likes Received:
    369
    Trophy Points:
    63
    Do you have direct play enabled?
     
  9. Deef

    Deef Spearman

    Joined:
    Jan 11, 2021
    Messages:
    8
    Likes Received:
    9
    Trophy Points:
    3
    Directplay is installed. The game crashes with a notification box on startup. Everything works completely fine in admin mode. Luciano may take a look at it tho <3
     
  10. martinmine

    martinmine Server Engineer
    Staff Member Administrator

    Joined:
    Aug 6, 2019
    Messages:
    378
    Likes Received:
    265
    Trophy Points:
    63
    According to Microsoft docs, this seems to be related to permissions:
    0xC0000022 - STATUS_ACCESS_DENIED: {Access Denied} A process has requested access to an object but has not been granted those access rights.

    The question then is what it is trying to access that it doesn't have access to. You said your local Windows account doesn't have admin rights. Maybe it can have something to do with this? I will try an test this out on a VM later to try and reproduce this issue.
     
  11. martinmine

    martinmine Server Engineer
    Staff Member Administrator

    Joined:
    Aug 6, 2019
    Messages:
    378
    Likes Received:
    265
    Trophy Points:
    63
    I just managed to reproduce this:
    1. Set up a clean W10 20H2 VM
    2. Create two accounts: Admin (which has full admin rights), and User (standard user without admin rights)
    3. On Admin: Installed AoEO through Steam and patched the game using the launcher
    4. Switch to User, download the launcher on this account and try start offline mode

    I'll try and investigate a bit more and see what I can find out.
     
  12. martinmine

    martinmine Server Engineer
    Staff Member Administrator

    Joined:
    Aug 6, 2019
    Messages:
    378
    Likes Received:
    265
    Trophy Points:
    63
    With procmon I found out that xlive.dll does not automatically have execute permissions set. That causes some problems when Spartan.exe tries to load it. After granting it sufficient perms, there was another bottleneck where it said some game files are corrupt. I've also seen some other issues with the launcher that I will look into later.

    For now I would recommend you to use a Windows account that has administrator rights on your system to start the game. It might even be the case that the game does not support being started with a non-admin Windows account. (Note that running the game as administrator/elevated rights and an account with admin perms are two different things)
     
  13. criticalx33

    criticalx33 Villager

    Joined:
    Jan 23, 2021
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi guys from 5 days i try to run this nice game where i played ago whit friends and as FAN Veteran player from Age of empires 1 Rise of Rome 98-99 :) I love to play AOE , but i get always a game crash seems game cerash at the loging screen. i use Win 10prox64 nice high end class from 2017 Asus Rog G752vs but keep geting the same Problem the game crash right after try to log in game its po up window whit crash report the Game stop running close the program...QQ i dont know how to fix it..plz help guys..
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice