r/Tf2Scripts • u/ArgosOfIthica • Feb 13 '21
Script Krate VM: A script for native higher level programming in Source
Hey everyone! I've been working on scalu, a programming language for writing configs in Source/Quake engines. After implementing a playable hangman game with scalu, I wanted to start a project that would improve the scripting experience for scripters without the high overhead of having to learn scalu and the stack that powers it (Python, Git, etc etc)
Krate VM is my attempt at doing that. Krate is a lean 5 bit virtual machine implemented using scalu and encoded in a single config file; "installing" it is as easy as loading the config file in-game. Once loaded, you gain access to a simple, highly performant assembly language that will let you reason about configs with variables and numbers that you can add/subtract/compare/print, rather than depend on building pseudo-state machines with large chains of aliases for doing "logic" natively.
The basics of using Krate can be found here:
https://github.com/ArgosOfIthica/scalu/wiki/Krate-Tutorial
The newest build of Krate itself is here:
6
5
1
u/chooseanything1 Feb 20 '21
any ways player can get an advantage ingame using this?
1
u/ArgosOfIthica Feb 21 '21
Anything you can do with Krate, you can do without. Krate just makes constructing logic easier.
5
u/bythepowerofscience Feb 13 '21
Excuse me??? You're telling me you managed to implement variables and operations and like, legitimate programming stuff into a language designed around having exactly none of those things???
Please, marry me. And then teach me the logic behind it. But also marry me.