outfly/README.md
2024-04-29 15:55:52 +02:00

9.8 KiB

  ▄████████▄      +        ███ +  ▄█████████ ███     +
 ███▀    ▀███ +         +  ███    ███▀  +    ███ +       +
 ███  +   ███ ███   ███ █████████ ███        ███  ███   ███
 ███     +███ ███   ███    ███    ███▐██████ ███  ███   ███
 ███ +    ███ ███+  ███   +███    ███     +  ███  ███ + ███
 ███▄    ▄███ ███▄  ███    ███ +  ███  +     ███  ███▄  ███
  ▀████████▀ + ▀███████    ███▄   ███▄       ▀████ ▀███████
      +                  +                +             ███
 +   ▀████████████████████████████████████████████████████▀

FeaturesControlsRunning OutFlyTroubleshootingBuilding

OutFly

License: GPL 3.0 Powered by Bevy Available on itch.io Donate on Liberapay Follow on Mastodon

OutFly is an atmospheric, open world, realistic 3D space game that throws you into the Rings of Jupiter with a self-sufficient sportswear space suit that will take you anywhere.

Imagine a blend of Fallout and Outer Wilds, where you are free to explore the breathtaking expanse of the Jupiter system and discover what life could be like after hundreds of years of space colonization.

This game aims to respect the player as much as possible. It doesn't waste your time: Despite the vastness of space, nothing takes too long. Speed cheats are active by default, allowing you to visit places you normally couldn't, without passing out from the g-forces. There are no anxiety-causing features (apart of, maybe, space itself), no loading screens, nothing to micromanage, not even save games. You can plunge into the game any time you feel like it, and it's up to you whether you just want to soak in the beautiful scenery, engage with the survival mechanics [still in development], or dive into the game story [still in development]. And finally, it's not just DRM-free but completely open source, allowing you to tinker on any part of the game to your liking.

Source code: https://codeberg.org/hut/outfly

screenshot

Features

  • A beautiful, serene atmosphere with gorgeous views
  • Racing vehicles, unique NPCs, cozy places, deadly environment
  • Accurate, clickable star chart. Can you spot the constellations?
  • Cross platform, free & open source forever!
  • Written in Rust with the Bevy game engine
  • Status: Early access, not much content

Controls

  • F1: Show key bindings
  • Space: Slow down (or match velocity)
  • AWSD/Shift/Ctrl: Accelerate
  • R: Rotate (hold & move mouse)
  • E: Interact: Talk to people, enter vehicles
  • Q: Exit vehicle
  • JKULIO: Mouseless camera rotation
  • Augmented Reality: (toggle with Tab)
    • Left click: Target objects
    • Right click: Zoom
  • Settings
    • Tab: Toggle HUD/AR
    • M: Toggle map
    • F: Toggle 3rd person view
    • Y: Toggle rotation stabilizer
    • F2: Toggle shadows
    • F3: Toggle sound effects
    • F4: Toggle music
    • F7: Restart game
    • F11: Toggle fullscreen
  • Cheats
    • G: Toggle god mode / cheats
    • V/B: Impossible acceleration forward/backward
    • Shift+V/B: Same as V/B, but a thousand times faster
    • C: Impossibly instant stopping
    • X: Teleport to target

Running OutFly

System Requirements

  • Screen/keyboard/mouse
  • Operating System: Linux, Windows, Mac
  • A graphics card with vulkan support

Running on Linux

  1. Download and unpack the latest release: https://codeberg.org/hut/outfly/releases
  2. Open a terminal and navigate to the directory where you unpacked outfly
  3. If you are on ArchLinux, type the following commands. For other distributions, replace "pacman -S" with the distro's command to install packages. Also, the packages may be called slightly differently.
pacman -S glibc libcap gcc-libs alsa-lib systemd-libs
./outfly

Alternatively, you can also install OutFly as a package, if your distribution has one. This will place OutFly in your "start menu". As of writing, only an ArchLinux AUR package exists, which you can install with this command:

yay -S outfly-git

Running on Windows

  1. Download and unpack the latest release: https://codeberg.org/hut/outfly/releases
  2. Double-click on OutFly.exe

Running on MacOS / Android / iOS

No releases for these operating systems exist yet. For MacOS, you can build OutFly yourself using the instructions below. Support for Android/iOS is planned for the future.

Troubleshooting

My GPU doesn't support Vulkan!

Try running outfly with the command-line option "--gl", with one of these commands:

./outfly --gl
cargo run -- --gl

This will result in some visual glitches, reduced performance, as well as a lot of error messages about CubeArrays which you can safely ignore. You can alternatively achieve this by setting the environment variable WGPU_BACKEND to gl: WPU_BACKEND=gl ./outfly.

The game instantly crashes!

Try changing the full screen mode with the command line option "--fs-legacy":

./outfly --fs-legacy
cargo run -- --fs-legacy

If this doesn't work, please open an issue on https://codeberg.org/hut/outfly and provide as many details as you can, including the crash log.

Crash with "error while loading shared libraries"

If you build with --features dev, then you must not run the game ./outfly. Use cargo run instead.

The assets can't be found

If you build without the "embed_assets" feature, the asset folder must be in the same path as the outfly binary. Possible solutions are to symlink the assets directory into the target/$yourtarget/ folder, to instead run with cargo run, or to compile with "--features embed_assets" (which is enabled by default).

I'm on Windows. How do I use command line options?

Create a shortcut, change the target from [...]outfly.exe to e.g. [...]outfly.exe --gl.

See https://superuser.com/questions/1202989/how-to-you-add-a-parameter-to-an-executable-in-windows-10

Building

If there is no package for the version or operating system that you need, or if you wish to tinker on the game, you can also build outfly yourself.

On Linux

Install the build dependencies. On ArchLinux, it's the following, though you can replace rust with rustup:

pacman -S rust libx11 pkgconf alsa-lib

Then run the following commands, replacing [URL] with the clone URL of the git repository:

git clone [URL]
cd outfly
cargo run --release

Building for Windows on Linux

rustup target add x86_64-pc-windows-gnu
pacman -S mingw-w64-toolchain  # on ArchLinux. other distros have their equivalent package
cargo build --target=x86_64-pc-windows-gnu --release

More information here: https://bevy-cheatbook.github.io/setup/cross/linux-windows.html

Building on Mac OS

Install homebrew, and then get the following dependencies:

brew install pkg-config molten-vk rustup
rustup-init

Download, compile and run the game:

git clone [URL]
cd outfly
cargo run --release

Building for WASM/Browser

This is a work in progress, for now these are just some general hints:

git clone [URL]
cd outfly
rustup target install wasm32-unknown-unknown
pacman -S wasm-bindgen binaryen
mkdir outfly_wasm
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-name outfly --out-dir outfly_wasm --target web target/wasm32-unknown-unknown/release/outfly.wasm
wasm-opt -Oz --output wasm/outfly_bg.wasm wasm/outfly_bg.wasm
echo '<script type="module">import init from "./outfly.js"; init()</script>' > wasm/index.html
python -m http.server -d wasm

Building release versions optimized for packaging

To build release versions optimized for final deployment, build with the following features: (see also pack.sh)

cargo build --release --no-default-features --features release_[linux|windows] [--target=$YOUR_TARGET]

Dev Features

For development, it's recommended to use --features dev:

cargo [run|build] --features dev

This enables the following:

  • Mutes music by default (you can still unmute it)
  • Enables "dev mode", which changes the game slightly:
    • Enables additional cheats (see source code)
    • Speeds up dialogs
    • Adds additional debugging features
  • Enables dynamic linking for faster compile times. Note that this makes it harder to run the game directly with ./outfly, please use cargo run instead.
  • Enables bevy's "file watcher" feature that auto-reloads changed assets while the game is running. This obviously works only if the assets are not embedded directly into the binary with the embed_assets feature. Since embed_assets is enabled by default, you must customize your compile features in order to use the file watcher feature, e.g. like: --no-default-features --features "dev x11"