Starting RTC from a command line

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

I'm with Luenver, a "blind" compile would be useful. A menu or toolbar button in RTCed that could command line compile your dungeon without the RTC graphic environment. I'm sure command line has been mentioned before, but I'll do it again anyway. WOuld be nice to be about to: RTC "\modules\my.rtc" to run the my.rtc after the swoosh rather than need to pick it from the list.
Don't be scene or herd!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

copperman wrote:WOuld be nice to be about to: RTC "\modules\my.rtc" to run the my.rtc after the swoosh rather than need to pick it from the list.
You can sort of do this already - in the config.txt file, simply add the line "COMPILE my.rtc" (i.e. change the txt extension to rtc) and it will run your rtc file...
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

Yes true enough, but a few shortcuts is less than a new install for each .rtc to play, and less hassle too. Not hugely important, just a thought.
Don't be scene or herd!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

BTW - have you actually *tried* doing

Code: Select all

RTC "\modules\my.rtc"
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

Not recently, no. So I did, and it's failing. :(

Using a (XP) command prompt from the RTC folder I type:

Code: Select all

RTC "\modules\DM.RTC"
I get a: Critical error Terminating program ... can't opn file: /modules/DM.RTC

Although, moving the DM.RTC into the main folder and running

Code: Select all

 RTC DM.RTC
does works, presenting you with the dungeon entrance.
Don't be scene or herd!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Shouldn't it be "Modules..." rather than "\Modules..." ?

(i.e. you've just specified the path incorrectly rather than it being anything to do with RTC!)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

You'd need to modify your command to:

Code: Select all

RTC ".\modules\DM.RTC"
This changes it from an absolute to a relative path and should work OK.

SIMULTANEOUS POSTING EDIT: Or do what GG said!
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

Non work!

Code: Select all

D:\Zgames\RTC_V037>rtc "\modules\dm.rtc"
D:\Zgames\RTC_V037>rtc "modules\dm.rtc"
D:\Zgames\RTC_V037>rtc ".\modules\dm.rtc"
All fail

Code: Select all

D:\Zgames\RTC_V037>rtc dm.rtc
Works as discribed above.

Are my DOS skills really that faded that I am missing something stupidly simple :(
Don't be scene or herd!
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Capital M for modules folder unless you renamed it
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

OK, we have a strange case of misleading case sensitivity here.
Wuuf: that got it, tx. BUT, the dm.rtc part, although it's actually DM.RTC seems to be insensitive. When did DOS on the PC become case-sensitive for folders and not for files ?
Don't be scene or herd!
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

i think that's windows inhereted, even if an extention is .JPG it displays .jpg

Which si fine until you try and access it through webspace that is case sensiitve and realise the file you transfered was actually displayed differently
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

Oh well, fixed now, very confusing though. Sorry GG :D
Don't be scene or herd!
Post Reply