Skip to content

Instantly share code, notes, and snippets.

@ericwomer
ericwomer / ea_app_proton.md
Created December 2, 2025 12:44 — forked from cannable/ea_app_proton.md
Install EA App under Steam/Linux/Proton

Installation

  1. Create the directory /home/deck/Games/ea/pfx. This will be the Proton prefix and will make it easier to get to when things invariably go wrong at some point in the future.
  2. Download the EA app
  3. Add non-Steam game and find the exe
  4. Edit the app's settings in Steam
  5. Rename the app to "EA App" for cleanliness
  6. Nuke the contents of "Start In"
  7. Set the launch options to STEAM_COMPAT_DATA_PATH="/home/deck/Games/ea/pfx" %command%. Feel free to add other options like RADV_PERFTEST=gpl.
  8. Flip over to Compatibility and force a version of Proton known to work. 8.0-2 was used when writing this, but I will forget to keep this up to date, you should do some research.
@ericwomer
ericwomer / system-info.txt
Created March 19, 2022 20:05
System Info March 19 2022
====================================
= Blender 3.1.0 System Information =
====================================
Blender:
====================================
version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: c77597cd0e15, type: release
build date: 2022-03-09, 00:34:48
@ericwomer
ericwomer / blender.crash.txt
Created March 19, 2022 17:47
Kit Ops Free Crash
# Blender 3.1.0, Commit date: 2022-03-08 18:16, Hash c77597cd0e15
bpy.data.window_managers["WinMan"].addon_search = "kit" # Property
# backtrace
/store/opt/Blender/Builds/stable/blender-3.1.0+stable.c77597cd0e15/blender(BLI_system_backtrace+0x20) [0xb33e0a0]
/store/opt/Blender/Builds/stable/blender-3.1.0+stable.c77597cd0e15/blender() [0x113105a]
/lib/x86_64-linux-gnu/libc.so.6(+0x430c0) [0x7f6f428670c0]
/home/eric/.local/lib/python3.10/site-packages/PIL/../Pillow.libs/libjpeg-62ed1500.so.62.3.0(jpeg_consume_input+0x4f) [0x7f6f198c6f0f]
/home/eric/.local/lib/python3.10/site-packages/PIL/../Pillow.libs/libjpeg-62ed1500.so.62.3.0(jpeg_read_header+0x2e) [0x7f6f198c71be]
/home/eric/.local/lib/python3.10/site-packages/PIL/_imaging.cpython-310-x86_64-linux-gnu.so(ImagingJpegDecode+0x162) [0x7f6f1999dce2]
======================
Proton: 1591828072 proton-5.0-9
SteamGameId: 594330
Command: ['/store/SteamLibrary/steamapps/common/Visage/Visage.exe']
Options: {'forcelgadd'}
======================
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
======================
Proton: 1591828072 proton-5.0-9
SteamGameId: 594330
Command: ['/store/SteamLibrary/steamapps/common/Visage/Visage.exe']
Options: {'forcelgadd'}
======================
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
======================
Proton: 1591828072 proton-5.0-9
SteamGameId: 594330
Command: ['/store/SteamLibrary/steamapps/common/Visage/Visage.exe']
Options: {'forcelgadd'}
======================
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/eric/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
#!/bin/bash
# USage: cd to your Unreal Projects root dir
# ./ue4stage.sh ProjectFolder and it will
# stage and build for you your project
function pause(){
read -p "$*"
}
PROJECT_NAME="${1%/}"
diff --git a/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs b/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs
index 4c0428ad373..6a6d4f71397 100644
--- a/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs
+++ b/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs
@@ -404,6 +404,10 @@ namespace UnrealBuildTool
// Write all the definitions to a separate file
CreateHeaderForDefinitions(CompileEnvironment, IntermediateDirectory, null, Graph);
+ if (CompileEnvironment.Definitions.Count > 0)
+ {
diff --git a/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs b/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs
index 4c0428ad373..93de90ce24c 100644
--- a/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs
+++ b/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs
@@ -404,6 +404,7 @@ namespace UnrealBuildTool
// Write all the definitions to a separate file
CreateHeaderForDefinitions(CompileEnvironment, IntermediateDirectory, null, Graph);
+ CompileEnvironment.Definitions.Clear();
@ericwomer
ericwomer / .clang-format
Created April 14, 2020 02:10 — forked from intinig/.clang-format
.clang-format for UE4
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true