Skip to content

Instantly share code, notes, and snippets.

View z16's full-sized avatar
💭
(let ((let '`(let ((let ',let)), let))) `(let ((let ',let)) ,let))

Stjepan Bakrac z16

💭
(let ((let '`(let ((let ',let)), let))) `(let ((let ',let)) ,let))
  • Munich, Germany
View GitHub Profile
@z16
z16 / Program.cs
Created March 25, 2022 00:30
Example Windower IPC implementation in C#. To use, load the `Eval` addon and simply register the IPC event with `//eval windower.register_event('ipc message', print)`.
using System;
using System.Diagnostics;
using System.IO.MemoryMappedFiles;
using System.Linq;
using System.Text;
using System.Threading;
using static System.Console;
namespace WindowerIpc;
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
set nocompatible
set number
set autoindent
set showcmd
set incsearch
set tabstop=4
set softtabstop=4
alias vrc="vi ~/.vimrc"
alias brc="vi ~/.bashrc"
alias e="explorer.exe"
alias g="git status"
alias gf="git fetch"
alias gp="git pull --ff-only"
alias gpr="git pull --rebase"
alias gps="git push"
alias gc="git commit -m"
@z16
z16 / z.reg
Last active October 2, 2020 07:09
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XblAuthManager]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XblGameSave]
"Start"=dword:00000004

Windower private server

  1. Place xiloader.exe in your Windower folder.
  2. Run Windower with the following arguments: --executable=xiloader.exe --args="--server windower.net"
  3. You'll be prompted to log in or create an account. This is the equivalent of a POL account, not a character.

After these steps you have set up the account and can log in with those details. You can create the following shortcut to speed up the log in process: Windower.exe --executable=xiloader.exe --args="--server windower.net --user <AccountName> --password <Password>"

To hide the console while logged into the game, you can add a --hide argument to within the --args argument string.

Removed

These plugins are no longer supported and will likely crash, hence they were removed from the Windower launcher entirely. They all have addon equivalents in place.

Attainment

  • Replaced by PointWatch (addon)

AutoExec

  • Replaced by AutoEx (addon)
--[[
Any functions or code in this file will be run upon the eval addon load.
This file is ONLY run upon load. You will need to reload the eval addon to
re-read any changes
]]
require('luau')
require('pack')
packets = require('packets')
texts = require('texts')
@z16
z16 / RangeMultiplier
Last active March 16, 2019 10:59
The DATs have a range value for spells and abilities, which needs to be multiplied with the following values, then added to the model size. Ranges marked with a `?` have only been guessed, since no actions with those ranges existed at the time to verify it.
Range Multiplier Inverse Distance Difference to next
------------------------------------------------------
2: 1.70 0.58824 3.4 1.07273
3?: 1.490909 0.67073 4.47273 1.28727
4: 1.44 0.69444 5.76 1.12889
5?: 1.377778 0.72581 6.88889 0.91111
6?: 1.30 0.76923 7.8 0.6
7: 1.20 0.83333 8.4 2.0
8: 1.30 0.76923 10.4 2.0
9: 1.377778 0.72581 12.4 2.1
Rank points max: 4096
Rank points per crystal: 28 (x2 for Light/Dark)
Rank points reward per mission:
7-1 Sandy: 1286 > 2082 = 796
7-2 Sandy: 3426 > 49 = 718
8-1 Sandy: 1309 > 2077 = 768
Rank points required per mission:
@z16
z16 / gist:5821021
Created June 20, 2013 08:03
This is the structure of the settings for the texts library.
settings = {}
settings.pos = {}
settings.pos.x = 0
settings.pos.y = 0
settings.bg = {}
settings.bg.alpha = 255
settings.bg.red = 0
settings.bg.green = 0
settings.bg.blue = 0
settings.visible = false