|
Distributing customized portable client
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
forral
USA (79 posts) bio
|
| Date |
Sat 17 Mar 2012 12:25 AM (UTC) [ quote
] |
| Message |
Hey Nick (or whoever else may be of assistance)
I'm running into a small snafoo when trying to make a customized portable client to distribute for Materia Magica. I'm wanting to pre-package a bunch of plugins that players have shared over the years, and basically have it run exactly like the Aardwolf client does (in that its completely self-sufficient, portable, and doesn't save any paths whatsoever).
The issue I'm having is that after I download and "install" it to my desktop and configure it, the plugins that I load have absolute file paths, and that becomes an issue if I try to load it from another computer. I've followed the steps to edit the mySQL database to include the relative paths (.\worlds\) and that works to an extent, but once those plugins are loaded it reverts the paths in the mySQL database to those absolute paths, instead of the appropriate relative paths.
Instead of going through the database and manually changing each filepath to .\whatever\whatever, is there an easier way I can accomplish this?
So in a nutshell I want to:
1) Customize the client to include all the plugins that I want new users to be able to utilize
2) Have it not save any paths, so the program can run standalone off of a flash drive, or Linux distribution
3) Not have any of those pesky state file errors or filepath errors I always encounter.
I'm sure there is a very simple way to doing this, but its been a busy week and my brain is fried.
Thanks ahead of time!
-Forral | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Sat 17 Mar 2012 02:05 AM (UTC) [ quote
] |
| Message |
I'm not sure there is an easy solution. It tends to convert relative paths to absolute ones, because relative paths can be a pain, for example if a plugin changes the current directory.
Just having an automated process to fix up the database prior to zipping it up shouldn't be too bad. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Fiendish
USA (848 posts) bio
Global Moderator |
| Date |
Reply #2 on Sun 18 Mar 2012 02:37 AM (UTC) [ quote
] Amended on Sun 18 Mar 2012 03:27 AM (UTC) by Nick Gammon
|
| Message |
I assume the problem is for end users to be able to use the same customized instance on multiple computers without running it from a thumb drive all the time? Because the initial setup is easily managed by version control. Fix the file once, check it in, and never check in a ruined copy. But I don't think it's such a simple thing, as Nick says, to make MUSHclient just always use relative paths.
Quote: so the program can run standalone off of a flash drive It already can. I assume you mean something else. |
http://aardwolfclientpackage.googlecode.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.
959 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )