Skip to content

Instantly share code, notes, and snippets.

/*The following method is designed to play a given line of sound samples as fast as possible.
This code was taken from the source code of XMOD, a simple, high-speed sound module/MIDI hybrid designed using the XACT subset utilized by the XNA game framework.
*/
//Variables used:
private int currLine; //indicates the current line in a song
public short playbackStatus = 0; //Used to store the current playback status. 0 = stop, 1 = pause, 2 = play, 3 = loop
private int LPS; //used to store the current tempo, or lines per second (LPS).
private Cue[] cueBank; //used to store up to 4 cues, XACT's language for "instances of a loaded sound file with playback metadata", to be used for a song; can be updated as needed
private String[] cueNames; //used to store the names of all cues to be used for a song
@Expack3
Expack3 / dgVoodoo.conf
Created May 13, 2018 18:13
dgVoodoo2 2.55 config for Mati Nui final beta
;==========================================================================
; === Text based config file for dgVoodoo2
; === Use this file if you are a game modder/hacker or an experted user and
; want to modify some advanced properties not available via the CPL.
;==========================================================================
Version = 0x255
;--------------------------------------------------------------------------
@Expack3
Expack3 / hbpg.fx
Last active January 16, 2023 00:43
Implementing a 1-bit hue-based palette shader in the ReShade FX language.
#include "ReShade.fxh"
/*
1-bit Hue-Based Palette Shader
Created by Expack3, adapting source code from the following sources:
"Dithering on the GPU" by Alex Charlton: http://alex-charlton.com/posts/Dithering_on_the_GPU
"RGB to HSV/HSL/HCY/HCL in HLSL" by Ian Taylor (Copyright © 2002-2018 Ian Taylor): http://www.chilliant.com/rgb2hsv.html
Thanks to EDCVBNM and Matsilagi for their invaluable assistance!
*/
@Expack3
Expack3 / GPallet.fx
Last active January 16, 2023 01:09
Generic Palletizer
//Generic Palletizer
//Created by abelcamarena https://www.shadertoy.com/view/tsKGDm
//Adapted by The MacGovern with assistance from Matsilagi and kingeric1992
#include "ReShade.fxh"
#include "ReShadeUI.fxh"
uniform float PIXEL_FACTOR <
ui_type = "drag";
ui_min = 32; ui_max=ReShade::ScreenSize.x; ui_step = 1;
@Expack3
Expack3 / WOH_03042020_Errorlog.txt
Created March 4, 2020 15:38
Attempting to use Anatomy Class perk during SPINE-CHILLING STORY OF SCHOOL SCISSORS crashes game
############################################################################################
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object evt_104_gymdoll:
Push :: Execution Error - Variable Index [0,2] out of range [1,2] - -1.flavor_success(101171,2)
at gml_Script_event_success
############################################################################################
--------------------------------------------------------------------------------------------