Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ MUSH on USB drives

MUSH on USB drives

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Twisol   USA  (2,257 posts)  Bio
Date Wed 05 Nov 2008 06:25 AM (UTC)
Message
I use MUSHclient on a USB drive, and it works pretty well (barring having to make some iffy workarounds and changes to make it work across all computers), but I'm worried about clobbering the drive with writes that will deteriorate the drive more quickly. Is there any sort of buffering done, say, for logs, so that it's not constantly writing every time something is received?

I think MUSH on a stick is a great way to take MUDding with you wherever you go, but if it clobbers it with unneeded writes, it takes away a bit from its longevity. Oh, how I wish we had Fe-NAND thumb drives.

(As an aside, will the link to the MUSH download on the front Downloads page ever be updated? It's been left at 4.27 for ages)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 05 Nov 2008 07:08 PM (UTC)
Message
The log files are flushed to disk every two minutes, to stop them being lost in the event of a crash, however apart from that, they are buffered in the normal way. This means every single line should not cause a write to the USB, however something will be written at least every 2 minutes.

If you are worried about USB degradation, you could write the log files to somewhere on the hard disk (eg. C:\Windows\Temp) and then when the session is over, do a single copy to copy the completed log back to the USB, and delete it from the hard disk. Of course, to save overwriting existing logs, you would need something like the date/time in the log file name, but this is easy to set up.

The version will be updated soonish, probably after version 4.38 is released.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ophianne   (7 posts)  Bio
Date Reply #2 on Wed 26 Nov 2008 11:00 AM (UTC)
Message
Hi, I had a few other questions about making MUSHclient portable as well.

1) I'm currently carrying it around on my flash drive (works great, btw!) and I'm curious as to where the global prefs are saved. Even though I carry all my world info with me, each time I move to a different computer I have to set up global prefs all over again. I'd like to know where I can just stick the global prefs file onto my flash drive an hopefully MUSHclient can refer to it.

2) Since it's on a flash drive, I have a different drive letter every time. The only time it's been an issue so far is when I have sound triggers set to go off. Is there a way to point the triggers to the soundfile to get around this?

And a few questions that don't necessarily relate to portability:

3) How can I get MUSHclient to write to a new log file every time I start a session/open the world? And also append the filenames with numbers?

4) If I label triggers with a group, how can I disable the group?

Thanks a lot! I just started using MUSHclient and I'm very pleased with it :-) It's the most powerful client I've had so far.

-- Ophianne
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 27 Nov 2008 05:48 AM (UTC)
Message
Global prefs are in the registry, and yes, I know this isn't the greatest solution. :)

There have been some posts in the past about USB drives, and people use a simple script (I think) to save the relevant part of the registry and load it up when moving PCs.

As for the sound files, I'm not sure of the best solution - one way would be to use relative paths (so the sound file is relative to the world file location, for example).

Another would be to script the sounds playing - so the script finds where the executable is, and then get a subdirectory (eg. sounds) from there.

The log files - use the automatic log file feature and append the date/time, that way each log file will have a different name.

For the triggers, see:

http://www.gammon.com.au/scripts/doc.php?function=EnableTriggerGroup


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,980 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.