Skip to content

Instantly share code, notes, and snippets.

View matortheeternal's full-sized avatar

Colin matortheeternal

  • Santa Barbara, California
View GitHub Profile
@matortheeternal
matortheeternal / arknightsPullCalc.js
Created December 25, 2020 19:54
Simulating arknights banner pulls for W and Weedy.
let randomEntry = function(a) {
let index = Math.floor(Math.random() * a.length);
return a[index];
};
let count = function(a, test) {
return a.reduce((counter, v) => {
return counter + test(v);
}, 0);
};
new MemoryMap('E:\dev\git\memory-map\test\resources\string')
First run completed in 0.00 milliseconds
x 13408.96 executions/second - (26818 runs sampled over 2.00 seconds)
string - instance methods
getSize()
x 4434626.78 executions/second - (8872819 runs sampled over 2.00 seconds)
setPos()
x 6864283.72 executions/second - (13834298 runs sampled over 2.02 seconds)
getPos()
x 5246378.78 executions/second - (10511676 runs sampled over 2.00 seconds)

FavorRewardEnchAxeBest

  • Level 1:
    • [+] one of:
      • [+] LItemEnchIronWarAxe
        • Iron War Axe of Embers
        • Iron War Axe of Cold
        • Iron War Axe of Sparks
        • Iron War Axe of Sapping
  • Iron War Axe of Fatigue
registerPatcher({
info: info,
gameModes: [xelib.gmTES5, xelib.gmSSE],
settings: {
label: 'Weightless',
templateUrl: `${patcherUrl}/partials/settings.html`,
defaultSettings: {
weightModArmor: 1.0
}
},

Javascript mod installer

Requirements

  • GUI
  • User capacity to select options
  • Install files based on selected options
  • Combine ESP fragments based on selected options

Data format

Keybase proof

I hereby claim:

  • I am matortheeternal on github.
  • I am mator (https://keybase.io/mator) on keybase.
  • I have a public key ASC8VxGJaceqakO3TzPN9HgnR_CtqSIFJ_qt82AG2gPQ5Ao

To claim this, I am signing this object:

Game Modding Q&A Website Design

Summary

  • Like a stack overflow for game modding questions
  • Users submit "queries" - elastic search finds possible answers, user can publish a public question if answers aren't sufficient
  • Questions have tags to categorize them appropriately - can be added on question creation, by admins, or sufficiently reputable users (maybe?)
  • Users can submit answers to questions and make comments on questions/answers

Requirements

@matortheeternal
matortheeternal / Patch Crossbows.js
Created June 9, 2019 17:16
zEdit script for changing crossbow record sound detection level and stagger. (patches records in place)
const stagger = '0.5',
soundLevel = 'Normal',
crossbowExpr = /crossbow/i;
let isCrossbow = function(weapon) {
let name = xelib.FullName(weapon);
return crossbowExpr.test(name);
};
let weapons = zedit.GetSelectedRecords('WEAP');

Automation Tools - Porting to zEdit

Perk Tree UI

  • Make a GUI replacement which more closely emulates the game engine by using some 3d techniques
    • This will be challenging, but fun. We could make a "simpler" 2d version as an MVP
  • Module: zedit-skyrim-perk-tree-ui

NPC Generator

@matortheeternal
matortheeternal / zSmash Design.md
Last active January 21, 2019 06:34
Initial design notes for zSmash

zSmash Design

1. User selects zSmash from application mode dropdown

2. Modal appears for user to select a smashed patch to manage (or create a new one)

Each patch has a type - "full load order patch" or "patch specific plugins". Full load order patch allows the user to exclude certain plugins from being loaded, where patch specific plugins allow suser to specify specific plugins to load.

3. Plugins are loaded, patch is loaded or generated

Initially, a basic "Smash.All" setting is used to generate the patch. The user can then tweak things to adjust the behavior on a per-plugin basis. Editing the base setting is also possible, for advanced users.