Skip to content

Instantly share code, notes, and snippets.

@ZeWaka
ZeWaka / Guide.md
Last active July 24, 2017 04:14 — forked from PJB3005/.atom-build.json
So you want to ascend to the better Sublime Text 3 for coding BYOND?

Why?

If you've ever worked with a proper IDE before, it should come as no surprise to you that DM, the default "IDE" of BYOND is kind of awful. Seriously it breaks when you copy paste text with LF line endings into it.

While there's no proper replacement for mapping or managing icons (although I personally recommend you use an image editor like Paint.NET for spriting and you can use FastDMM for mapping), code editing is a ton easier. There's a variety of editors out there which are modular enough to be used for any language, the best one is Sublime Text 3.

Alright how do I set this up.

Syntax Highlighting

@ZeWaka
ZeWaka / keybase.md
Created October 1, 2020 22:44
For keybase auth purposes

Keybase proof

I hereby claim:

  • I am zewaka on github.
  • I am zewaka (https://keybase.io/zewaka) on keybase.
  • I have a public key ASAsVSb4xEEvFywC8hp4QOOqsNYzCngaI3Hu0k1fmT1-pQo

To claim this, I am signing this object:

@ZeWaka
ZeWaka / atmos.md
Created October 3, 2020 09:19 — forked from duncathan/atmos.md
work in progress

Atmospherics

1. Preamble

Dunc's avatar

Figure 1.1: My avatar on github, the /tg/station forums, and BYOND

Hi friends! My name is Dunc. As some background, I have been contributing to /tg/ atmos in various ways since 2015. I was tutored by Aranclanos and eventually followed in his footsteps in writing several major refactors of the atmos system. I am a maintainer for the /tg/ codebase and any atmos issues or PRs are my concern. Most importantly, however, is the fact that as of the time of writing I am the only person who understands each component of the current atmos system. That fact is by far the most important reason for the existence of this document; it is my responsibility to share what I know.

Atmospherics is a very complicated and intimidating system of SS13, and as such very few contributors have ever made changes to it. Even fewer is the number of contributors who have made changes to the more fundamental aspects of atmos, such as Environmental Atmos or

@ZeWaka
ZeWaka / changelog.dm
Last active October 5, 2020 17:23
March 9th 2009
<head><title>Changelog</title></head>
<P><B>Current Version: Nannek and Keelin Stable SVN - 305</b></p>
<a href="http://www.maplib.net/map.php?id=3550">NEW Map Link!</a><br>
Have an idea? Submit it <a href="http://code.google.com/p/ss13/issues/list">here!</a><br>
Want the source? <a href="https://OpenSVN.csie.org/goonstationsvn">Nannek/Keelin Stable on SVN</a><br>
<HR>
<P><B>Modified Saturday 7th March, 2009</B><BR>
<li>Crowbars now open apcs, not screwdrivers. They do something else entirely</li>
<li>Hackable APCs</li>
@MoMMIv2#3484 ```
var/list/obj/a/L = list()
/obj/a
var/foo = 1
New()
src.foo = rand()
/proc/main()
warning: src/hooks.cpp:21:29: warning: ‘call_proc_by_id_original’ initialized and declared ‘extern’
warning: extern "C" CallProcById_Ptr call_proc_by_id_original = nullptr;
warning: ^~~~~~~~~~~~~~~~~~~~~~~~
warning: src/raw_types/funcs.cpp:37:23: warning: ‘call_proc_by_id_byond’ initialized and declared ‘extern’
warning: DEFINE_byond_REGPARM3(call_proc_by_id, Value, (Value, uint32_t, uint32_t, uint32_t, Value, const Value*, uint32_t, uint32_t, uint32_t))
warning: ^
warning: src/raw_types/funcs.cpp:35:33: note: in definition of macro ‘DEFINE_byond_REGPARM3’
warning: extern "C" Fn##name##_byond name##_byond = nullptr;
warning: ^~~~
warning: src/raw_types/funcs.cpp:38:23: warning: ‘call_datum_proc_by_name_byond’ initialized and declared ‘extern’
@ZeWaka
ZeWaka / stddef.dm
Created February 2, 2021 03:07
stddef.dm for BYOND 513.1543
/*
Standard definitions for Dream Maker
Const vars below are for backwards-compatibility only. The compiler will
prefer the #define macros instead which are faster to use at runtime.
*/
// directions
var/const
NORTH = 1
@ZeWaka
ZeWaka / CA.dm
Created February 10, 2021 23:13
/proc/CAGetSolid(var/L, var/currentX, var/currentY, var/generation)
var/default = 1 //1 = wall, 0 = empty
var/minSolid = 5 //Min amount of solid tiles in a given window to produce another solid tile, less = more dense map
var/fillLarge = 0 //If 1, put rocks in the middle of very large open caverns so they don't look so empty. Can create very tight maps.
var/endFill = -1 //Reduce minSolid by this much in the last few passes (produces tighter corridors)
var/passTwoRange = 2 //Range Threshold for second pass (fill pass, see fillLarge). The higher the number, the larger the cavern needs to be before it is filled in.
var/count = 0
for(var/xx=-1, xx<=1, xx++)
for(var/yy=-1, yy<=1, yy++)
@ZeWaka
ZeWaka / scan.js
Created January 8, 2022 22:49
:)
let doc = eval("document"),
f = ["CSEC", "avmnite-02h", "I.I.I.I", "run4theh111z", "w0r1d_d43m0n"],
css = `<style id="scanCSS">
.sc {white-space:pre; color:#ccc; font:14px monospace; line-height: 16px; }
.sc .s {color:#080;cursor:pointer;text-decoration:underline}
.sc .f {color:#088}
.sc .r {color:#6f3}
.sc .r.f {color:#0ff}
.sc .r::before {color:#6f3}
.sc .hack {display:inline-block; font:12px monospace}
// ==UserScript==
// @name r/ss13 Logo template
// @match https://hot-potato.reddit.com/embed*
// ==/UserScript==
if (window.top !== window.self) {
window.addEventListener('load', () => {
document.getElementsByTagName("mona-lisa-embed")[0].shadowRoot.children[0].getElementsByTagName("mona-lisa-canvas")[0].shadowRoot.children[0].appendChild(
(function () {
const i = document.createElement("img");
i.src = "https://mocha.affectedarc07.co.uk/placemap.png";