Skip to content

Instantly share code, notes, and snippets.

View strzlee's full-sized avatar

Straussn strzlee

View GitHub Profile
#!/bin/bash
##
## Session globals
##
# unset DISPLAY
export XDG_CURRENT_DESKTOP=gamescope # necessary for ryujinx to render properly
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0

Preface

I'm comparing Godot mostly to Unity due to my ~10 years of Unity experience. I'm also primarily working in 3D and C# and that is what I want to use Godot for.

Terms:

  • by "export" I mean a variable exposed in the inspector, that's how Godot calls them
  • I use the word "prefab" to mean a scene that is intended to be instantiated multiple times, unlike a "level"
  • Godot's Resources == Unity's ScriptableObjects
  • Godot's collision shapes == Unity's colliders

Pros

Setting, DefaultValue, INIValue, CurrentValue, Origin
fSpatialGraphSpaceCollectionGridDistance:Pathfinding, 15000.000000, 15000.000000, 15000.000000, INI
fSpatialGraphSpaceCollectionGridUpdateDistance:Pathfinding, 500.000000, 500.000000, 500.000000, INI
bMergeInstStatCol:Packin, True, True, True, INI
bSkipFurnitureMarkerVisualization:AI, False, False, False, INI
bShowFurnitureEntryMarkers:AI, True, True, True, INI
bShowFurnitureExitMarkers:AI, True, True, True, INI
bShowFurnitureMarkersForSelectedOnly:AI, False, False, False, INI
bPlanetContentLogDiffing:Planet, False, False, False, INI
bDebugCombatCoverReservations:Combat, False, False, False, INI
#!/bin/bash
# Fix intel color corruption
# might come with some performance degradation but is better than a corrupted
# color image
export INTEL_DEBUG=norbc
# Some environment variables by default (taken from Deck session)
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
import tweepy, json, time, sys
auth = tweepy.OAuth1UserHandler(
<api keys here>
)
api = tweepy.API(auth)
d = json.loads(open(sys.argv[1]).read().split("=", 1)[1])
/*=============================================================================
ReShade 5 effect file
github.com/martymcmodding
Author: Pascal Gilcher / Marty McFly
ReShade Motion Estimation Shader for dense 2D UV-space motion vectors
Based on ReShade Motion Estimation by Jakob Wapenhensch
(https://github.com/JakobPCoder/ReshadeMotionEstimation)
@Ishindri
Ishindri / UMM on Steam Deck.md
Last active December 12, 2023 23:05
Installing Unity Mod Manager into Pathfinder: Kingmaker and Pathfinder: Wrath of the Righteous on Steam Deck

Installing Unity Mod Manager into Pathfinder: Kingmaker and Pathfinder: Wrath of the Righteous on Steam Deck

n.b. These are the steps that worked for me. I can't guarantee that they'll work for you, but I don't have any reason to believe they won't. I tested this process on the GOG version of Pathfinder: Wrath of the Righteous installed via Heroic Games Launcher. If you test it and find that different steps are needed, please comment below!

  1. Install the Pathfinder game of your choice, via Steam or otherwise. Make sure you note down the install location of the game - in my case I installed it to the SD card via Heroic, so it ended up in /run/media/mmcblk0p1/Heroic/Pathfinder Wrath of the Righteous/.
  2. In Desktop mode, download Unity Mod Manager and extract it wherever you like. I personally put it in /home/deck/Games/Unity Mod Manager/.
  3. In Steam, still in Desktop mode, navigate to Library > Add A Game > Add a Non-Steam Game > Browse and select UnityModMan
@rizerzero
rizerzero / bash_strict_mode.md
Created May 23, 2022 10:28 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
# This is the OpenMW user 'settings.cfg' file. This file only contains
# explicitly changed settings. If you would like to revert a setting
# to its default, simply remove it from this file. For available
# settings, see the file 'files/settings-default.cfg' in our source repo or the documentation at:
#
# https://openmw.readthedocs.io/en/master/reference/modding/settings/index.html
[Camera]
viewing distance = 48680
view over shoulder = true

How to install Homebrew package manager on Steam Deck

(See also installing Distrobox: https://distrobox.it/ )
(See also installing Nix package manager: https://determinate.systems/posts/nix-on-the-steam-deck )

You can install Homebrew (a package manager for macOS and Linux) without disabling the read-only partition with sudo steamos-readonly disable.
The package manager can be used alongside Flatpaks. Some software is only available on Flathub, and some software is only available on Homebrew.

  1. Switch to desktop mode (hold power button until a menu appears, then select "Switch to desktop mode")
  2. Click the logo at the bottom left, go to System, then go to Konsole