Skip to content

Instantly share code, notes, and snippets.

@Bankst
Bankst / Install-UT2004.md
Created July 19, 2024 20:03 — forked from telyn/Install-UT2004.md
Installing UT2004 on a linux

So you want to install UT2004 on some Linux? Because 10 year old games are the best games.

You will need:

  • UT2004 (The GOG copy or the original DVD will both work, as will presumably any other copy of UT2004)
  • The latest (3369) linux patch for UT2004
  • A CD key. If you want to run a dedicated server, generate yourself a server key at https://forums.unrealtournament.com/utserver/cdkey.php?2004
  • libstdc++.so.5 (could also end .so.5.X.Y where X and Y are numbers, this is also fine) built for i386 linux. the 64-bit build of UT2004 is sadly broken (can't rebind ports on map changes, making the web interface useless after the first map), so i386 is the way forward.

The steps:

@Bankst
Bankst / JoystickAnalogButton.java
Created September 28, 2016 21:42 — forked from jcorcoran/JoystickAnalogButton.java
This class turns an analog axis on a Joystick device, into a button which can be used to trigger commands.It is intended to be used with the WPILib Command Based robot project on FRC robots.
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.buttons.Button;
/**
* This class allows you to trigger commands from an analog input on
* a joystick (sich as the triggers - Axis 3).
*
*
* The following example code placed in OI class turns axis 3 into two buttons:
* ----------------------------------------------------------------------------