Jump to content
  • 0

How do I run second life from a flash drive, and still save user settings?


RichAnderson Alter
 Share

You are about to reply to a thread that has been inactive for 2986 days.

Please take a moment to consider if this thread is worth bumping.

Question

I've already figured out a way to run SL from a flash drive, plugged into a Microsoft Windows computer, but all info is lost if the user closes the viewer, moves to a new machine, and starts the viewer. I would like to make Second Life easier for my student to access and use by allowing them to install Second Life on a flash drive (for use with a Microsoft Windows computer) but in a way that stores all custom user data and settings on the flash drive so it isn't lost

(1) Is this possible? If so, how?

(2) If it's not possible now, is it something that's being worked on, or should I just give up on the idea?

Link to comment
Share on other sites

Recommended Posts

  • 0

Be sure that in the preferences tab you have changed all the default settings for the caches to go to your flash drive. By default they go to the C drive. You have to be sure they are set to go to whatever drive the flash drive ends up on the computer you are using. The drive designation will change from computer to computer, depending on what is on it. On my laptop it would be F drive, on my desktop it would be G. That may be the problem. Remember A and B are for floppies, C and on are hard drives, then CD/DVD drive,then the externals like your flash drive. Hope that helps.

  • Like 1
Link to comment
Share on other sites

  • 0

The cache settings idea is a good suggestion. But of course, the reason for running sL on a flash drive is that the user will be running it on multiple computers will may have different drive letters for the usb flash drive. Is it possible to set the SL cache location so that it's, by default, the drive and directory form which the viewer is currently running? Or is it possible to write something like a batch file so that the cache could be in a stardard location on the c drive, but then copied to the flash drive upon exiting the viewer, and then copied to the standard c location again upon restarting the viewer?

Link to comment
Share on other sites

  • 0

One thing you could do if you run Vista or Windows 7 is to use symbolic links. It's fairly easy (depending on your comfort level with command prompts and such) to set this up but you'd need to do it on each computer on which you ran the client.

Assume your flash drive letter is F and your Windows login name is Josh.

First, create a folder F:\SecondLife.

Then, *move* the folder C:\Users\Josh\AppData\Roaming\SecondLife to F:\SecondLife and rename it "Data".

Then, *move* the folder C:\Program Files\SecondLife and rename it "Bin".

Next, open a command prompt as an administrator (cmd.exe, PowerShell will not work for this) and type:

MKLINK /D "C:\Users\Josh\AppData\Roaming\SecondLife" "F:\SecondLife\Data"
MKLINK /D "C:\Program Files\SecondLife" "F:\SecondLife\Bin"

Now, Second Life can go on happily writing files to the locations it thinks it installed to, but really it is redirected to the flash drive.

  • Like 1
Link to comment
Share on other sites

  • 0

Ubuntu and mlink are good ideas to. But the reason I want to have students run SL from a flash drive is that neither I nor my students has administrative privilages on the various lab computers. And tech support does not wnat to put SL on them because of frequent required updates. And of course, I can't reconfigure the computers to boot from a flash drive or to do an mlink.

Link to comment
Share on other sites

  • 0

You would definitely not want to store the cache on a flash drive. Compared to modern hard drives, flash drives have very good seek times but very poor transfer rates. They are good for when you need to randomly access small chunks of data. But locating the binaries on the flash drive should not be a problem because they will be pulled into memory when run.

Link to comment
Share on other sites

  • 0

I am pretty sure there is a way to do this. You will need to explore the start up options (http://wiki.secondlife.com/wiki/Client_parameters).  You can specify a local settings file and I believe in there you can set the cache location.  There is also a -set start up option that supposedly lets you set (or override) any parameter in the settings file.  I have used different settings and cache files for running multiple viewers on the same computer successfully but have not tried what you are attempting.

Link to comment
Share on other sites

  • 0

If you save your user settings on the flash drive make sure the disk cache ( under preferences -> network tab in the client) is not set to the flash drive or it wont last long. Flash drives have a finite number of writes and will expire quickly if written to frequently with a cache or swap file.

Link to comment
Share on other sites

  • 0

Well, using the --settings parameter within a shortcut almost works. The problem is that Windows xp doesn't allow shortcuts to specify relative as opposed to  absolute file paths. But since the drive letter for the flash drive can vary across machines, the shortcut (which contains the parameter that writes the SL user settings to the flash drive rather than the c drive) will sometimes fail to work.

Link to comment
Share on other sites

  • 0

I'm not sure how to overcome the problem of writing the cache to a flash drive, but to overcome the problem of the slowness of a flash drive and the fact it will sooner or later malfunction, possibly using a portable hard drive might be a better option. You are possibly aware that a laptop hard drive can be fitted inside an external casing and plugged into a PC via a usb port. You will then have a portable and reliable installation of Second Life that can be used on multiple PC's. However, I don't know if this helps with the cache issue or just adds to its confusion.

Link to comment
Share on other sites

  • 0

Note: I should not have marked this thread "answered" and I don't know how to change it from "answered" to unanswered.

The settings still aren't saving to the flash drive, and the problem is this. The --settings switch lets you change the name of the file, but not the path were it's stored. It's always stored a few layers down in the "documents and settings" on the C drive.

The next thing I'm going to try is writing a batch file that, when Second Life closes, automatically copies the settings file from the C drive to the flash drive. Then when Second Life is launged again, the batch file will copy the settings back from the flash drive to the C drive.

Link to comment
Share on other sites

  • 0

The copying is not a bad idea. From the batch file, when you call another process, the batch file will normally continue. You can use the START command with the /WAIT parameter like so:

START "Second Life" /WAIT "Blah\SecondLife.exe" --settings Blah.xml

The start command will block until the SecondLife.exe process exits, then continue on to the next line, allowing you to copy back to the Flash drive.

Link to comment
Share on other sites

  • 0

Also, whenever possible, to make sure the batch file works on a variety of environments make sure to use environment variables instead of hard coded paths. For example, on Vista and Windows 7, "Documents and Settings" is called C:\Users and the folder structure is different.

So instead of referencing "C:\Documents and Settings\Username\Application Data", you should use "%APPDATA%\SecondLife\Settings.xml" or whatever. Type "set" at a command prompt to see the available environment variables.

Link to comment
Share on other sites

  • 0

Ok, I managed to get this to work: Portable SL http://www.travelinlibrarian.info/2007/01/second-life-portable.html

I ended up using the bat file at the bottom of the page in the comments section since it was the newest version. I used the Emerald viewer to ensure the version I was running was what was on the flash drive by changing Secondlife.exe in the bat file to Emerald.exe wherever I found it, may need to change other things but I'm not that up on doing things like this but it worked well enough. Need to test it on a computer that's never had SL on it to make sure it works completely as it should.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2986 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...