View previous topic :: View next topic |
Author |
Message |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
Posted: Mon Nov 22, 2010 1:49 pm Post subject: Possible BUG with CUSTOM.EXE |
|
|
For some reason under Linux, ohrrpgce-custom only checks for RPG files in the Home directory when launched with a parameter with no file-path.
PWD=/home/ohrdevel/chronoboy
EG:
ohrrpgce-custom chronoboy.rpg will not work.
ohrrpgce-custom /home/ohrdevel/chronoboy/chronoboy.rpg will work.
ohrrpgce-custom wander.rpg will load wander.rpg if loaded $HOME.
Should be an easy fix, just needs to be corrected on the startup directory.
ohrrpgce-game works fine with all cases. _________________ Current project: Chronoboy Adventures
Website: http://www.chronoboy.com/ |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Nov 30, 2010 12:14 am Post subject: |
|
|
I don't understand the complaint. You're saying that if ohrrpgce-custom and an rpg file are both in your home directory, then "ohrrpgce-custom agame.rpg" won't open it? This works for me both with the nightlies, and with Ypsiliform+2. If you mean that you want to be able to open games in $HOME without specifying a path with an executable located anywhere, then that's not normal behaviour, and I can't get ohrrpgce-game to do that either. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Nov 30, 2010 7:10 am Post subject: |
|
|
I think the problem is that custom forces it's current working directory to be $HOME if custom is installed system-wide. I checked the code that changes working directory, and it is indeed different in game and custom.
I am not sure if there would be any undesired side-effects if I just make custom do what game does... |
|
Back to top |
|
 |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
Posted: Tue Nov 30, 2010 8:11 am Post subject: |
|
|
Why was custom made this way in the first place? For organized people such as myself, I have many directories under my HOME folder. I tend store every game in it's own directory with it's own import directory to hold all the assets. Since I use multiple HSSs for a single game, it only makes sense for the game to have it's own folder.
Game on the other hand, since I don't have any assets for those, or HSS files, they are all generally in the same directory.
I find it most annoying that when I import HS files from the command line, that I need to enter in the entire path for each file... Perhaps a simple commandline switch would work to enable custom to automatically prepend the current working directory. Just an idea as a workaround. _________________ Current project: Chronoboy Adventures
Website: http://www.chronoboy.com/ |
|
Back to top |
|
 |
|