[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  portable MUSHclient.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: portable MUSHclient.
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  3  

Posted by Bast   (77 posts)  [Biography] bio
Date Wed 13 May 2009 03:26 PM (UTC)  quote  ]
Message
I have created a page explaining how to create a portable aardwolf mushclient.

http://code.google.com/p/bastmush/wiki/PortableMushclient

The part that you really want to pay attention to is the editing of the mushclient_prefs.sqlite database.

Bast/Eric

Bast

Scripts: http://bastmush.googlecode.com
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Sat 09 May 2009 10:02 PM (UTC)  quote  ]
Message
No, you do it once. You haven't answered my question about which directory you need to have a relative path to. Perhaps I am answering the wrong question.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Whitchek   (4 posts)  [Biography] bio
Date Sat 09 May 2009 05:13 AM (UTC)  quote  ]
Message
And I'm supposed to do that every time? It seems kind of... overinvolved, just to change a directory. I really dislike the idea of having to be messing with SQL stuff. That's why I was hoping here for a program that could handle it.
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Sat 09 May 2009 01:51 AM (UTC)  quote  ]
Message
You would need to use the sqlite3 program offline (ie. while the client is not running) to change the global preferences database. For example:


sqlite3 mushclient_prefs.sqlite

sqlite> UPDATE prefs SET value = './blahblah' WHERE name = 'PluginsDirectory';

sqlite> .exit


You can get that program from:

http://www.sqlite.org/download.html

Look for "Precompiled Binaries For Windows" -> "A command-line program for accessing and modifying SQLite version 3.* databases.".

At present that is: http://www.sqlite.org/sqlite3-3.6.14.bin.gz

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Whitchek   (4 posts)  [Biography] bio
Date Thu 07 May 2009 08:32 PM (UTC)  quote  ]
Message
How do I go about that? I was going to try just typing a relative path in to see if it worked, but I can't seem to find a way to type a path in at all. It just comes up with a box asking me to browse for the folder.
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Wed 06 May 2009 09:21 PM (UTC)  quote  ]
Message
What directories do you have in mind?

See this lengthy thread:

http://www.gammon.com.au/forum/?id=7776

If you specify the plugins directory (say) as a relative path, then MUSHclient changes the ./ part of the pathname to be relative to the directory MUSHclient started up in.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Whitchek   (4 posts)  [Biography] bio
Date Tue 05 May 2009 09:15 PM (UTC)  quote  ]
Message
Ah, okay, hadn't noticed that change. The one thing I still don't see... how to do relative paths for the directories?
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Tue 05 May 2009 08:47 PM (UTC)  quote  ]
Message
I don't have a copy, however recent versions of MUSHclient keep their global settings in a SQLite database (as suggested earlier up the thread) and thus you don't need to fiddle with the registry any more.

You should be able to put an installed copy of MUSHclient on a USB stick, and when it opens it looks for the preferences in a SQLite database in the same location as MUSHclient.exe, and thus that should work for you.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Whitchek   (4 posts)  [Biography] bio
Date Mon 04 May 2009 04:44 PM (UTC)  quote  ]
Message
Is this MUSHclient Live program still available somewhere? Or something similar? The old website appears to be gone.
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Sun 14 Dec 2008 12:53 AM (UTC)  quote  ]
Message
The individual help files (a bit out of date) are here:

http://www.gammon.com.au/files/mushclient/mushclient_help_4.15.zip

The documentation itself is at:

http://www.gammon.com.au/files/mushclient/src/documentation.sql.bz2

You can always import that into an SQL database (I used mySQL) and then write code to generate whatever you want.

Quote:

Is it C++ or regular C?


It is C++ but version 6 of MS Visual Studio, and needs MFC to compile and run.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by YmerejO42   USA  (25 posts)  [Biography] bio
Date Sat 13 Dec 2008 09:39 PM (UTC)  quote  ]
Message
I tried downloading the application that you'd written to process the help file, but it wouldn't compile with Visual C++ 9.0. Is it C++ or regular C?

I also downloaded some other programs to try to decompile the .hlp file and make it into a .chm help file, but they kept encountering errors and wouldn't compile properly. Is there any chance of getting the HTML files as a download? If so, I could probably compile a .chm file and email it to you or something.

One thing - I disabled the BigWorld window on Aard, since I didn't really use the World map, but it kept popping up anyway. I ended up having to edit the main window plugin to remove all references to the BigWorld window before it would stop showing up. Is that deliberate behavior or a bug?
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Sat 13 Dec 2008 07:24 PM (UTC)  quote  ]
Message
Yes, I will look at a more up-to-date path structure, the problem probably being existing plugins expect stuff where the old directory structure is.

As for the help file, a certain laziness overtook me there, and the fact that I thought that the help worked under Vista if you got that old help application. The help stuff is in fact in a database (and I have released the source for the program that processes it) so conceptually turning it into another format is certainly possible.

Already that same program outputs the RTF file which becomes input to the help file generator, and also separate HTML files.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by YmerejO42   USA  (25 posts)  [Biography] bio
Date Sat 13 Dec 2008 05:45 PM (UTC)  quote  ]
Message
This goes back to my whole thing about using a folder in each person's My Documents... Everyone knows where they are, they're easy to access, and it would work with environment variables that Microsoft provides.

And easy path would be

<USERPROFILE>\Documents\My Games\Gammon Software\MUSHclient

With the world, plugins, and whatever other folders are needed, could even have them in completely separate folders unlike they are now. (where it's world\plugins, could be two separate folders under the MUSHclient folder).

Also, Nick, have you thought about updating the helpfile to a different format? I use Vista, and the new help system won't load the old format. I have the winhlp32.exe installed and associated with the older help files, but it still doesn't work from within MUSHclient. I have to browse to the folder and open it manually whenever I need to access it. Nothing major, just an annoyance for those of us who try to stay cutting edge. =)

Again, I'll be glad to help with anything I'm able to, I'm not an experienced programmer but I do what I can.
[Go to top] top

Posted by Tspivey   Canada  (50 posts)  [Biography] bio
Date Sat 13 Dec 2008 09:33 AM (UTC)  quote  ]
Message
I think we have two issues here:
The first issue is a portable MUSHClient that doesn't
use the registry. A truly portable application, at least
from what I've read on the subject, needs to keep everything in its program folder, a state
which we mostly have now (except for the few preferences stored
in the registry and some hard-coding of paths in the world files - see my recent
post on the suggestions board on a possible solution to this).
As it stands right now, we can set the script files path to a relative path which will work the first time the world is loaded when the current directory is set to the
location of the world file. If something changes the directory (loading another world, adding a
plugin), reloading the script file will no longer work.
I think that a simple .ini file would work in this situation, and the
variables that controlled the world files/plugins/... directories could be set relative to the program folder.

The second issue is that of an installed client on a multi-user system. We can put
the preferences in application data, but that folder is hidden so it wouldn't be a good
place to put worlds or plugins unless there was a way of accessing your local
MUSHClient directory from inside the client for those users
who aren't technical enough to figure out how to access it.
I think mIRC does it this way in recent versions.
[Go to top] top

Posted by Nick Gammon   Australia  (19,608 posts)  [Biography] bio   Forum Administrator
Date Fri 12 Dec 2008 08:55 PM (UTC)  quote  ]
Message
I agree in principle with all this.

An SQLite database is an interesting idea - I suppose the major key would be the logged-in user name (like in the Registry), and then you would access the other stuff.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


16,252 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]