Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: DF in my CarPi  (Read 3288 times)

asialsky

  • Bay Watcher
    • View Profile
DF in my CarPi
« on: October 05, 2017, 06:01:43 am »

As soon as I get a day off work, I'm going to be installing a Raspberry Pi 3 model B behind my car's radio. I plan on putting a USB hub in the glovebox, and mounting a 7" screen to the passanger visor. Being that you can run ScummVM (and therefor Windows) on a Pi 3B, it occurred to me that I could run a tiny world in Dwarf Fortress, with a 1x1 embark giving decent fps.

Obviously I can't play while driving, but I think it'd be worth having something to do out of town.
Also, nerd points.

Before anyone mentions the Linux version of DF ... not complicated enough for my taste.
EDIT: Linux DF (via ExaGear Desktop) it is, then!
« Last Edit: October 07, 2017, 06:37:16 pm by asialsky »
Logged
Off defending the fortress from dragons with a tank, I'm sure.
"All I want is for you to be happy. You won't be happy until I'm happy, so hurry up and shoot the zombies!"

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: DF in my CarPi
« Reply #1 on: October 05, 2017, 06:07:43 am »

Cool little project, albeit somewhat distracting while driving.

I would personally rather use the Linux version since its got considerably less overhead than Windows, and memory is probably going to be an issue on the Pi otherwise.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

asialsky

  • Bay Watcher
    • View Profile
Re: DF in my CarPi
« Reply #2 on: October 05, 2017, 11:11:07 am »

Solution is a usb drive and enabling zram. (swap file)

No more RAM issues on Pi.
Logged
Off defending the fortress from dragons with a tank, I'm sure.
"All I want is for you to be happy. You won't be happy until I'm happy, so hurry up and shoot the zombies!"

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: DF in my CarPi
« Reply #3 on: October 05, 2017, 01:17:02 pm »

Lot more FPS issues on Pi, though. How much RAM does the OP's device have, anyway?

asialsky

  • Bay Watcher
    • View Profile
Re: DF in my CarPi
« Reply #4 on: October 05, 2017, 02:40:41 pm »

1GB, if memory serves correctly. Thusly, a swap file and tiny world size.
Logged
Off defending the fortress from dragons with a tank, I'm sure.
"All I want is for you to be happy. You won't be happy until I'm happy, so hurry up and shoot the zombies!"

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: DF in my CarPi
« Reply #5 on: October 05, 2017, 03:32:28 pm »

Huh, shouldn't need a swap file with so much RAM. Give 254 to OS; another 300 to DF and you still have 446 left over.

asialsky

  • Bay Watcher
    • View Profile
Re: DF in my CarPi
« Reply #6 on: October 06, 2017, 05:53:20 am »

I suppose I should mention the Pi is ARM, not x86/64.
I don't recall anybody making an ARM build yet, though I also haven't checked in over a year, so yeah.

If not, I have the VM solution to fall back on.
Logged
Off defending the fortress from dragons with a tank, I'm sure.
"All I want is for you to be happy. You won't be happy until I'm happy, so hurry up and shoot the zombies!"

Luriant

  • Bay Watcher
  • Mediocre english, sorry
    • View Profile
Re: DF in my CarPi
« Reply #7 on: October 06, 2017, 08:35:40 am »

A year ago, i searched about Pi versions, and all post talked about ARM isn't x86/64.
Minecraft Pi have a ARM version, and i have some success playing complete Minecraft in a Raspberry, using the same ARM-Java and a Experimental OpenGL Driver and special launcher, but I have Pi Edition as base, and multiplataform Java as code. Dwarf Fortress don't have something similar in possible compatibility.

If you want DF in PI, use a remote tool, conecting to a real PC playing DF.
http://dwarffortresswiki.org/index.php/DF2014:Utilities#Remote_playing_tools

Playing "Dwarf Fortress: Plump Helmet Pi Edition" have the same importance as "Doom: Android Port". You can play the game, but is far away of a real experience. Put Soundsense soundtrack in CarPi and enjoy the music (or some Text-to-speech linked to dfstories.com xD).
Logged
╔══╦══╗██▓▓
☺♠┼╥╤┼▲▼▓
Θ÷║πΩ║      ▓
+═╬══╣ò    ▓
≈≈▒‼^☻²
╚══╩══╝
  Σ Spkd Grn Glss Blls 252☼ 2.6Γ

asialsky

  • Bay Watcher
    • View Profile
Re: DF in my CarPi
« Reply #8 on: October 07, 2017, 05:48:04 pm »

Aha! I've found a solution. Someone released a program/OS known as ExaGear Desktop, which essentially acts as an x86 Linux VM.

I'll do the setup tomorrow, and see what kind of performance I can squeeze out of it.
Logged
Off defending the fortress from dragons with a tank, I'm sure.
"All I want is for you to be happy. You won't be happy until I'm happy, so hurry up and shoot the zombies!"

asialsky

  • Bay Watcher
    • View Profile
Re: DF in my CarPi
« Reply #9 on: October 07, 2017, 06:41:30 pm »

I double-checked their site. Diablo II runs flawlessly. An RPi 3 can run Counter-Strike 1.6 (Deathmatch mod) at between 5 and 30 fps. It seems to struggle with rendering when looking at an open area or when shooting, but if 3D is its big bottleneck, I'm sure I'll be able to get DF running like nobodies business.

Also:

"Moreover, ExaGear Desktop supports 3D hardware graphics acceleration on Raspberry Pi 2 and Raspberry Pi 3 models. This feature significantly increases the performance of graphics intensive x86 applications like PC games such as Counter Strike and Diablo II running with ExaGear on RPi 2 and RPi 3."
Logged
Off defending the fortress from dragons with a tank, I'm sure.
"All I want is for you to be happy. You won't be happy until I'm happy, so hurry up and shoot the zombies!"

Miuramir

  • Bay Watcher
    • View Profile
Re: DF in my CarPi
« Reply #10 on: October 11, 2017, 05:33:37 pm »

I've been curious to see whether Raspberry DF was doable for a while, but have never had the time and inclination to work it out.  The ExaGear Desktop seems like a good start; if it were me I'd go Linux for much lower overhead and better performance, but do what works for you. 

Note that the Pi's fixed 1G of RAM has to cover everything; you need a minimum of 16M pulled out for a display, and usually more.  If your CarPi setup has a camera, it takes up 128M.  And of course you need some for the OS; much can be paged out, but that slows the system considerably.  A typical setup is likely to only get you a half-gig (~512M) for actual program space, which is confined to run DF but possible with specialized settings. 

I'd recommend one of the mods that simplifies items (generic "leather" instead of dog leather, turkey leather, etc.) and something to make 1x1 embarks practical.  Avoid the "newb packs" as they tend to have a lot of stuff like Text Will Be Text which puts a heavy load on the system. 
Logged