If you have read the entirety of this guide or you're confused about any part, feel free to ask in my discord server. Please check the troubleshooting & faq section before asking. Your issue or question might've already been covered here. I try my best to keep this guide up to date, but I do forget about it at times and I could also miss anything in the guide when updating it to a new version. Please do your own research (for mods in particular) and try using newer versions of the mods/software available if it breaks!
This is a small list to explain the linux commands being used in this guide.
cd
- This allows us to change our working directory (also known as ./
) into another directory, by default, you will be in your home directory (/home/user/
also known as ~
). If you wish to go to a parent directory (the directory which your current directo
const std = @import("std"); | |
pub fn VLA(comptime ArrayType: type, comptime ParentStruct: type, comptime fieldName: []u8) type { | |
return struct { | |
const headerSize: usize = comptime std.mem.alignForward(@sizeOf(ParentStruct), @alignOf(ArrayType)); | |
const headerAlign: u29 = comptime std.math.max(@alignOf(ArrayType), @alignOf(ParentStruct)); | |
len: usize, | |
pub fn get(self: *@This()) []ArrayType { |
uint wang_hash(uint seed) | |
{ | |
seed = (seed ^ 61) ^ (seed >> 16); | |
seed *= 9; | |
seed = seed ^ (seed >> 4); | |
seed *= 0x27d4eb2d; | |
seed = seed ^ (seed >> 15); | |
return seed; | |
} | |
/* Written in 2017 by Tommy Ettinger (tommy.ettinger@gmail.com) | |
To the extent possible under law, the author has dedicated all copyright | |
and related and neighboring rights to this software to the public domain | |
worldwide. This software is distributed without any warranty. | |
See <http://creativecommons.org/publicdomain/zero/1.0/>. */ | |
#include <stdint.h> |
#! python3 | |
# Copyright 2020 Benedikt Bitterli | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |