Skip to content

Instantly share code, notes, and snippets.

@EddieEldridge
EddieEldridge / config.yaml
Created June 16, 2022 11:13
Collector Config used with aws-otel-lambda
# ==================================
# RECEIVERS
# ==================================
receivers:
otlp:
protocols:
http:
# ==================================
# EXPORTERS
# ==================================
@EddieEldridge
EddieEldridge / luaPluginScript.lua
Last active October 8, 2022 13:29
M2TWEOP Tutorials: Part 1 - Scripting Basics
-- CHANGING THE SETTLEMENT MODEL WHEN A SETTLEMENT IS UPGRADED AND WHEN YOU RELOAD THE GAME/RELOAD THE CAMPAIGN MAP
-- Credits: Medik
-- EOP Documentation: https://youneuoy.github.io/M2TWEOP-library/_static/LuaLib/index.html
-- Check for nil values
function isNotNull(object)
if(object~=nil) then
return true;
else
return false;
@EddieEldridge
EddieEldridge / hud_main_menu.xml
Created February 7, 2023 11:54
To fix compatibility with Clean Vanilla Hud, open hud_main_menu.xml in iHUD directory and replace Radiation Meter section with this
<!--========== Radiation Meter =======================-->
<rect name="RadiationMeter">
<locus>&true;</locus>
<systemcolor>&hudalt;</systemcolor>
<height>60</height>
<width> 367 </width>
<image name="radiation_bracket">
<depth>10</depth>
<filename> Interface\HUD\glow_messages_radiation_seperator_right.dds </filename>
<!--<texatlas> Interface\InterfaceShared.tai </texatlas>-->
@EddieEldridge
EddieEldridge / Random_Bodyguard_Switch.lua
Last active March 3, 2023 13:39
M2TWEOP Lua Script for randomly changing bodyguards
math.randomseed(os.time());
RANDOM_BODYGUARD_ENABLED = true
DEFAULT_BODYGUARDS = {
["sicily"] = {
defaultBg = "Gondor Bodyguard",
newBgs = {
"Territorial Guardsmen",
"Gondor Militia",