|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: Sat Sep 08, 2007 2:11 pm
Package Library |
I've used CMUD to make what I believe is a pretty good emulation of the Simutronics Wizard for Windows to use for the game Modus Operandi. I was hoping to be able to use the package library to share this with others.
I've found that the package library system is clunky. It would seem to be okay for distributing settings that are added on to an existing session. However, what I want to share is an entire session setup--preferences (colors, fonts, etc.), sounds, images, layout, databases, etc.
Can anyone offer any advice on how to accomplish this, either through the package library system or by other means? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Sep 08, 2007 2:25 pm |
The package library is only really meant for distributing packages. That includes settings and preferences.
What you need to do is distribute the ENTIRE folder for that particular session, probably as a zip. That'll include package files, layout files, toolbar files, map files, everything. But the user will still have to add all the relevant packages to the session (I think) because there's currently no way to create an entry in the sessions.db file. You don't want to distribute that - it contains personal information. You'll want to check the other files before you distribute them, too.
Finally, I'm not sure if this has ever been attempted before. Certainly nobody's posted about it that I remember. Tell us how it goes. |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Sat Sep 08, 2007 2:44 pm |
Well, you could include a sessions.db file, but you would probably want to back up your existing one and then delete all the information - passwords, users, other sessions you may have created, etc., from it before including it.
[EDIT: You also might want to include your cmud.ini file (but again, check it first).] |
|
Last edited by Seb on Sat Sep 08, 2007 2:46 pm; edited 2 times in total |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: Sat Sep 08, 2007 2:45 pm |
I was playing with it this morning...when I uploaded the package to the zuggsoft library, and then downloaded it again to test, it didn't seem to have my changes to the font and color settings. That's probably something I did wrong... In any case, I deleted my upload from the zuggsoft library.
Part of the problem is that I tried to create a sanitized version of the session I regularly use, with personal settings stripped out. I may attempt it again, if I have the opportunity.
I agree that the best way to share a session would be to give someone the entire folder for the session. However, the session creation routines in CMUD don't seem to provide an easy way to create a new session and link it up to an existing folder. Does anyone know how to do that? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Sep 08, 2007 3:28 pm |
Each module and window has its own preferences that affect the settings it contains. That means that preference changes only affect the window or module that they're made in. There are also certain preferences that're stored in cmud.ini - you can see which by choosing the Bold Global option from the drop-down in the top left of the prefs window. You can also change the module or window that you're editing the preferences for with that menu.
|
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Sat Sep 08, 2007 3:48 pm |
I'm just thinking you could make, e.g., an alias or an onConnect event which uses %pref() to set up stuff how you want it. It's more work on your end, but it'll fit into a single package. Might be worth playing with, at least.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Sep 10, 2007 4:13 am |
I've taken the onConnect approach for one of my packages to update preferences, so I that would work for some of those settings.
|
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Sep 10, 2007 8:52 pm |
The package library doesn't actually save any of the Preferences for a package. It currently only saves the scripts.
|
|
|
|
|
|