Skip to content

Instantly share code, notes, and snippets.

View mrowrpurr's full-sized avatar

Mrowr Purr mrowrpurr

View GitHub Profile
@mrowrpurr
mrowrpurr / skyrimse.ppj
Last active December 17, 2022 21:43
Mrowr Purr's most recent favorite Papyrus project file .ppj
<?xml version='1.0'?>
<PapyrusProject xmlns="PapyrusProject.xsd" Flags="TESV_Papyrus_Flags.flg" Game="sse" Output="Scripts">
<!--
These variables contain hard-coded paths because the VS Code Papyrus extension does not support environment variables: https://github.com/joelday/papyrus-lang/issues/145
Please change the values of these variables to point to folders on your PC.
Notes:
- To create the contents of the "Imports" folder yourself, download the listed mods from Nexus or elsewhere and extract them to a folder.
- In a few cases (notably UIExtensions) the authors put .psc files into .bsa, so be sure to also extract .bsa for these mods.
@mrowrpurr
mrowrpurr / Override Keys via Sfall Hook.ssl.pas
Created August 3, 2022 03:35
Override Keys via Sfall Hook
// register_hook_proc in a glz script works :)
#include "sfall/sfall.h"
#include "sfall/dik.h"
// int arg0 - event type: 1 - pressed, 0 - released
// int arg1 - key DX scancode
// int arg2 - key VK code (very similar to ASCII codes)
// int ret0 - overrides the pressed key (a new key DX scancode or 0 for no override)
procedure on_keypress begin

Mrowr Purr's Fallout Modding TODO

Debug Helpers

  • Can include helper for tests which sends debugs to a map => array of messages, keyed on DEBUG_NAME

Waterchip

  • can describe to a certain proc which you can call by name (or via Signal!) for tests, so it doesn't run on start :)
#! /usr/bin/env ruby
# Generate Search .ini File for Fallout 2 protos
data_dir = "C:/GOG/Games/Fallout 2/data"
categories = {
CRITTERS: "pro_crit.msg",
ITEMS: "pro_item.msg"
}
"editor.rulers": [80,120],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#ff00d0"
},
@mrowrpurr
mrowrpurr / Useful Fallout 2 intrface art.md
Last active August 3, 2022 00:56
Useful Fallout 2 intrface art

Fonts

Font Sizes (line height):

100 12
101 10
102 28
103 20
@mrowrpurr
mrowrpurr / sfall opcodes.txt.dart
Created July 11, 2022 23:44
sfall opcodes.txt - From sfall resources
// You can find this in the sfall modders pack
// This gist is only for quick resource lookup
// This file is not mine
// Get it from here: https://sourceforge.net/projects/sfall/
// VANILLA OPCODES AND MACROS (generated from russian HLP file and google-translated):
int action_being_used - returns the skill ID used on the object, which is called in the script command
ObjectPtr dude_obj - returns a pointer to Player
procedure call_me(variable x) begin
display_msg("OMG YOU CALLED ME with: " + x);
return "THIS IS THE RETURN RESULT! " + x;
end
// SETUP CODE
variable __setup_dialogue_procs_compiler_trick_variable = true;
#define setup_dialogue_procs \
AIBKDOR.SSL ECELRON.SSL GENERIC.SSL NICROSS.SSL VITERM.SSL
AICAVDOR.SSL ECGRDFRV.SSL GIJNKBOX.SSL NITOILET.SSL VIVLTDOR.SSL
AILKBOX.SSL ECGRDTRM.SSL GIPERBOX.SSL OIFTLKR.SSL VIVLTDR2.SSL
ANIMFRVR.SSL ECHERMIT.SSL HIBH1BOX.SSL OILOCKER.SSL VTALOMRK.SSL
ASCRLDR.SSL ECHLYPPL.SSL HICAVEIN.SSL OSV13DR.SSL WIBNKDOR.SSL
ATDEATH.SSL ECHOMLES.SSL HICONSOL.SSL QIGECKDR.SSL WIENTDOR.SSL
BISPYHOL.SSL ECHUNTER.SSL HIDEAD.SSL RIJALDOR.SSL WIEVCDSK.SSL
CICRISDR.SSL ECIRRAD.SSL HILADDER.SSL SCBRAHMN.SSL WIEXPDSK.SSL
CIMINE.SSL ECNOMAD.SSL HINOTE.SSL SICLSDOR.SSL WIGNNDSK.SSL
CIVENT.SSL ECNOMCHF.SSL HIPOWER.SSL SIFAKHLO.SSL WIHOWITZ.SSL