hi,
i have a game that at the beginning of it, it loads data from a text file, the game works when executed directly and reads the txt file with no problem, but i have a c# program that plays the game with Process.Start(Path/game.exe) and when i do, the game won’t read the text file.
this c# program is the one that creates and writes the data to the file.
i already try to play the game with admin permission from the c# program but still doesn’t read the txt file.
why is this happening?.
thnx
Are you getting any errors? check the logs. Make a dev build and print out some info. It could be an access violation, sharing violation… any number of things. You can also make a dev build and connect your debugger to it in order to step through the execution.
Without more information, it will be very hard for us to help you.
Well, now is working, but intead of calling it from the c# program, it calls now a .bat file that opens the game, and now it works.
i tried with the debug log and for some reason when i call it from the c# program, the root file is somewhere else, but with the .bat file now works. thnks for the answer. Skalev