Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Possible BUG with CUSTOM.EXE

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
chronoboy
Into the past with a splash




Joined: 04 Jun 2010
Posts: 162
Location: Canada

PostPosted: Mon Nov 22, 2010 1:49 pm    Post subject: Possible BUG with CUSTOM.EXE Reply with quote

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
View user's profile Send private message Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue Nov 30, 2010 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue Nov 30, 2010 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chronoboy
Into the past with a splash




Joined: 04 Jun 2010
Posts: 162
Location: Canada

PostPosted: Tue Nov 30, 2010 8:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group