Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Nicodareus
Wanderer


Joined: 24 Jun 2008
Posts: 68
Location: Texas

PostPosted: Tue Jul 01, 2008 8:09 pm   

[2.29] Slight bug with layout when changing your CMud directory.
 
This is a very minor bug that I don't think many people will come across and is partially user error. It only took me a few minutes to figure out what the deal was, but the next person it happens to might not be so lucky.. :P

Process: (That doesn't involve actually moving your CMUD directory)
Step 1: Create a new session using whatever info you want.
Step 2: Open the session in CMUD.
Step 3: Close your session.
Step 4: Edit your sessions settings at the session selection screen.
Step 5: Set the layout directory under the 'Package Files' tab to a directory that doesn't exist. (C:\idontexist\test.xly for example)
Step 6: Open your session, make changes to your layout.
Step 7: Save layout (Or auto-save when you close if auto-save layout is working for you)
Step 8: Open session again. The layout doesn't load because it's still trying to check the old directory.

Import things to note about this process: The first time CMud connects to the session, if the layout file is not found, the layout directory is changed to <mudname>\<mudname>.xly. That is why it's important that you open and clsoe the session in steps 2 and 3 before proceeding. Subsequent openings of the session will not make this check as they should.

The only reason I ran across this bug was because I moved my CMud folder from D:\Program Files\CMUD to Z:\CMUD and for some reason my sessions imported from ZMud were using absolute directory paths for the layout instead of relative. I got around this by simply changing the layout directorys from D:\Program Files\CMUD\<mudname>\<mudname>.xly to <mudname>\<mudname>.xly so they will be relative paths in the future and I can move around my CMud directory if I need to again.

A simple fix would be to have CMud check if the layout path exists each time you connect to a session and redefine to a relative path within the directory if it does not.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jul 01, 2008 8:21 pm   
 
Actually, if you just remove the path information entirely then it will store the *.XLY file in the same directory as the *.PKG file for your session. But I'll look into the problem that you mentioned.
Reply with quote
Nicodareus
Wanderer


Joined: 24 Jun 2008
Posts: 68
Location: Texas

PostPosted: Tue Jul 01, 2008 8:36 pm   
 
Yeah. Like I said, it's very minor. The chances of the issue arising for most people are slim to none. I'm not even sure why it came up for me. Most of my MUD files were converted to using relative path information when importing from ZMud, but a couple were set to absolutes.
_________________
Email: nikodareus@gmail.com

or

avonarys@gmail.com
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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

© 2009 Zugg Software. Hosted by Wolfpaw.net