Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Running DF from a thumb drive  (Read 3540 times)

MuonDecay

  • Bay Watcher
  • Say hello to my little μ
    • View Profile
Running DF from a thumb drive
« on: November 15, 2008, 08:09:46 am »

I'm doing a bit of traveling and, not having a laptop (with my desktop heavily entrenched and firmly rooted with more wires than I care to count), I figured I would attempt to take DF with me on a thumb drive. The directory is certainly small enough, and I'll have a computer to play it on.

Has anyone actually tried to run the game from a thumb drive, though? I plan to try keeping my game firmly rooted on the drive and playing it directly from there.

I know USB is slower than the hard drive's SATA connection (much as a casual stroll is slower than riding a rocket), but I figure with a game like DF there isn't much need for file-access/file-swap speed. Has anyone tried this? Am I wasting my time?

I'll report results regardless.

(as an aside: why isn't anyone putting eSATA thumb drives on the market? That would be a hell of a neat thing to own)
Logged

Duke 2.0

  • Bay Watcher
  • [CONQUISTADOR:BIRD]
    • View Profile
Re: Running DF from a thumb drive
« Reply #1 on: November 15, 2008, 09:54:41 am »


 Plays perfectly fine. I really could not note any difference in speen when playing it off the computer and playing it from a flash drive, and now that both flash drive and computer are gone it becomes a bit difficult to test this out.

 But yes, nothing odd will happen. Man, I crammed quite a few things on that flash drive. Firefox portable, a dozen roguelikes, phun...

 
Logged
Buck up friendo, we're all on the level here.
I would bet money Andrew has edited things retroactively, except I can't prove anything because it was edited retroactively.
MIERDO MILLAS DE VIBORAS FURIOSAS PARA ESTRANGULARTE MUERTO

Will

  • Bay Watcher
  • Carp Rider
    • View Profile
Re: Running DF from a thumb drive
« Reply #2 on: November 15, 2008, 10:00:50 am »

Like he said it runs fine. Just make sure it large enough to hold all the data after world creation.
Logged

Mel_Vixen

  • Bay Watcher
  • Hobby: accidently thread derailment
    • View Profile
Re: Running DF from a thumb drive
« Reply #3 on: November 15, 2008, 10:36:25 am »

It works fine even with USB 1.1 thought the safing of data can be very slow.
Logged
[sarcasm] You know what? I love grammar Nazis! They give me that warm and fuzzy feeling. I am so ashamed of my bad english and that my first language is German. [/sarcasm]

Proud to be a Furry.

ahrbee

  • Bay Watcher
  • striking some earth
    • View Profile
    • Strike The Earth
Re: Running DF from a thumb drive
« Reply #4 on: November 15, 2008, 11:01:00 am »

I get no slowdown at all on mine (2gb stick). Runs great.
Logged

WhitePanther

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #5 on: November 15, 2008, 11:15:24 am »

I've done this, and the game runs fine. As long as the computer you're using has enough RAM that the game doesn't have to swap, you'll be okay. I think saving takes a little longer than normal, but that's it.
Logged

PTTG??

  • Bay Watcher
  • Kringrus! Babak crulurg tingra!
    • View Profile
    • http://www.nowherepublishing.com
Re: Running DF from a thumb drive
« Reply #6 on: November 15, 2008, 11:30:11 am »

Yeah, it works great. Just make sure that it's plugged in. I once had a game running, hibernated my computer, removed the drive, and then un-hibernated it, and the game was still working. Then I tried to save.

But I believe Toady One is working on a solution to that bug.
Logged
A thousand million pool balls made from precious metals, covered in beef stock.

MMad

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #7 on: November 15, 2008, 02:19:56 pm »

Yeah, I do this too to bring my fortresses with me to/from work. Works well - I think it runs a *little* slower than from the hdd, but I'm not sure this isn't my imagination.

Be aware that DF constantly reads and writes to your thumb drive though, which may shorten it's life span - flash drives can only be erased and re-written to a limited number of times, for some reason. It may still take years, though, and since they're not very expensive it may be a non-issue. But worth being aware of if you have other sensitive data on the drive.
Logged
"Ask not what your fortress can do for you - ask what you can do for your fortress."
Unapologetic ASCII abolitionist.

peekama

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #8 on: November 15, 2008, 02:50:57 pm »

It works fine untill you start to get a bigger fort.  After a while the drive's read speed isn't able to keep up with the game.  At least from my experience that is.
Logged
It'd be cool if unicorn refuse gives off rainbow miasma.
It should totally bleed the laughter of children, too.

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Running DF from a thumb drive
« Reply #9 on: November 15, 2008, 02:57:57 pm »

Yeah, it works great. Just make sure that it's plugged in. I once had a game running, hibernated my computer, removed the drive, and then un-hibernated it, and the game was still working. Then I tried to save.

But I believe Toady One is working on a solution to that bug.

Dwarf Fortress does not need any files while running, I think. It stores all the files it needs on RAM.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

commondragon

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #10 on: November 15, 2008, 03:53:02 pm »

Actually, two simple things are constantly updated withing your game:

Your gamelog and your errorlog.

It needs to be tested on if things mess up if you remove your flash drive during the game and one of those updates.  Obviously you cant do it on a desktop/laptop as that would require you to remove your DF directory during the game.
Logged
WheEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

Draco18s

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #11 on: November 15, 2008, 11:42:27 pm »

You'll eventually wear out the flash memory, as it has a limited number of writes each sector can perform (hundreds of millions), but it likely won't be an issue for a while.  You'll just be wearing it out faster than normal.
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #12 on: November 16, 2008, 03:37:49 pm »

Hundreds of millions? You're off by a few orders of magnitude there.

Even high-endurance flash cells in solid-state drives (intended as hard drive replacements) only have something like five million write cycles maximum before a sector wears out. Other flash memory doesn't appear to exceed 100,000 or maybe one million writes before failure.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Keiseth

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #13 on: November 16, 2008, 03:43:17 pm »

I've used a USB 2.0 external hard drive for years and its speed is pretty much ideal. But all that writing to the logs will eat away at the flash drive; portable programs designed for these things are frequently optimized to make as few writes as possible.

Maybe we can persuade Toady to drop a quick init line for enabling/disabling log writes, but the new version won't be out for quite a while anyway...
Logged

wallish

  • Bay Watcher
    • View Profile
Re: Running DF from a thumb drive
« Reply #14 on: November 16, 2008, 04:56:11 pm »

If you don't want to risk severely limiting the lifespan of your drive you could just cut the folder off the drive, play, then put it back onto the drive when you're done. 
Logged
Pages: [1] 2 3