README 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Hey! This README is for those looking to work on the code. For actual plugin
  2. documentation, you’ll want to look at the website at https://mikes.software/sst/
  3. or ask for help in a relevant speedrunning community.
  4. NOTE: Please read and understand LICENCE before redistributing this software!
  5. ════ Compiling ════
  6. Windows:
  7. • Install the Windows 10 SDK and MSVC toolset via the Visual Studio Installer
  8. (if you don’t care what else gets installed, installing the C++ Desktop
  9. workload should be fine).
  10. • Install native Clang from https://clang.llvm.org (NOT MinGW/MSYS2 Clang!).
  11. • Run compile.bat (in lieu of a better build tool, to be added later).
  12. Linux:
  13. • Install Clang (and LLD) via your system package manager. Technically, GCC
  14. should be able to compile most of this too, but we are currently relying on
  15. a Clang-specific extension or two, and GCC in general doesn't get tested nor
  16. used for binary releases, so it's probably not worth wasting time on.
  17. • Install 32-bit glibc and libstdc++ libraries and associated C headers if
  18. they’re not already installed.
  19. • Run ./compile (in lieu of a better build tool, to be added later).
  20. NOTE: Linux code should compile now but still crashes on cvar registration and
  21. almost none of the features usefully work. In other words, it needs quite a lot
  22. more development before it's of use to anyone.
  23. ════ How and where to install ════
  24. IMPORTANT: If your game supports multiplayer, always launch with -insecure as a
  25. launch option before loading this plugin! Newer Source builds shouldn’t let you
  26. connect to a server with plugins loaded or even let you load plugins without
  27. insecure mode at all, but older ones do, at which point you might still get VAC
  28. banned. ALWAYS launch with -insecure or load the plugin AT YOUR OWN RISK OF
  29. BEING BANNED!
  30. Very old Source builds load plugins from the top-level bin/ folder, while
  31. relatively modern builds load them from the mod-specific directory, e.g.
  32. left4dead2/, hl2/. Left 4 Dead and later branches *ALSO* try to load from the
  33. top-level game directory where the EXE is, if other paths don’t work.
  34. Since this plugin is designed to be universal, a reasonable recommendation is to
  35. always put it in bin/ and then use the command `plugin_load ../bin/sst`. The way
  36. the paths work out, that always works no matter what, thus taking all the
  37. thought out of it. It’s also a sensible way to share the plugin between multiple
  38. mods in an engine installation, where relevant.
  39. It’s additionally possible to back out of the game installation with `../../`
  40. etcetera and load from anywhere you want, as long as it’s not on a different
  41. Windows drive letter. This is especially handy if you’re building from source
  42. and don’t want to copy it over every time.
  43. Note: some very old (and very new) Source builds don’t have a plugin_load
  44. command. For the time being, these versions are unsupported.
  45. Thanks, and have fun!
  46. - Michael Smith <mikesmiffy128@gmail.com>