If you open up the app’s logs you should see what environment variables are being sent to your executable, which could help you narrow down where the issue is happening.
Viewing post in No ITCHIO_API_KEY environment variable
App logs say:
Environment variables passed: TMP, TEMP, ITCHIO_API_KEY, ITCHIO_API_KEY_EXPIRES_AT
But neither a
SET
in cmd nor a
Environment.GetEnvironmentVariable("ITCHIO_API_KEY")
in C# show anything. Had a couple of testers confirm, same behavior for everybody. The app log also say the TMP and TEMP env vars should be changed, but they are not.
Testers who have their own games, or other people who tested your game? If your game is not working on your computer then it’s not likely to work elsewhere. The only thing I can think of off the top of my head is that if your executable entry point spawns a subprocess it’s possible that the subprocess will not have access to the environment variables from the parent process.
Testers with my game, yes. Just wanted to make sure it's not an issue with my machine.
Are the environment variables supposed to be exclusive to the process and thus not visible through, say, the Windows command prompt? In that case I have been approaching the whole process in the wrong way (treated the evnironment variables as a global thing).