Folder Access Issues
Posted: Sun Dec 16, 2012 5:38 am
I created a new sub folder for levels (in the form of .ged files) within the parent game folder and another sub folder for saved games. While I was able to reference .ged files within this sub folder, I was unable to reference the original game file in the parent game folder from the .ged file within the sub folder.
Example:
Parent file Location: Game/Parent_File.ged
.ged file location: Game/Levels/Level_1.ged
I can access Level_1.ged from Parent_File.ged although it is within the Levels folder. However, I cannot access Parent_File.ged from Level_1.ged by typing "../Parent_File.ged" as the file path.Is there any way to access files that are one folder level up?
As for saved games, I created a "save" folder and referenced the save and load file paths as "save/game.sav". However, while saving the game, the game.sav file was created in the original game folder itself (outside the "save" folder). The file loaded the parameters correctly even though I had set the load file path to "save/game.sav". Would anyone know why this occurs?
Example:
Parent file Location: Game/Parent_File.ged
.ged file location: Game/Levels/Level_1.ged
I can access Level_1.ged from Parent_File.ged although it is within the Levels folder. However, I cannot access Parent_File.ged from Level_1.ged by typing "../Parent_File.ged" as the file path.Is there any way to access files that are one folder level up?
As for saved games, I created a "save" folder and referenced the save and load file paths as "save/game.sav". However, while saving the game, the game.sav file was created in the original game folder itself (outside the "save" folder). The file loaded the parameters correctly even though I had set the load file path to "save/game.sav". Would anyone know why this occurs?