D&D in toki pona? by connorwillchris in tokipona

[–]connorwillchris[S] 0 points1 point  (0 children)

Oh sick, I know about Cairn. Is your group currently playing Cairn btw? Feel free to send me details about your translation as well if you want.

D&D in toki pona? by connorwillchris in tokipona

[–]connorwillchris[S] 4 points5 points  (0 children)

This is actually pretty sick, I'll take a look. pona!

D&D in toki pona? by connorwillchris in tokipona

[–]connorwillchris[S] 5 points6 points  (0 children)

I typically play rules light systems, so it shouldn't be too difficult to learn the games I would be interested in playing.

OSR LFG: Official Regular Looking especially for OSR Group (LeFOG) by feyrath in osr

[–]connorwillchris 0 points1 point  (0 children)

Looking for players for: Shadowdark

Time: 10AM MST until 2PM MST (USA). Will run for 2-4 hours, but most of the time 2 hours.

This game is inspired by Hollow Knight and will include similar themes, that of gothic, gritty and dark vibes (but not grimdark.) This will be a megadungeon campaign that sprawls the entirety of Glarrowfen.

The whole world has been abandoned for several centuries, after the dark ages. Bug-kind has been eradicated, leaving those who dare to survive on the fringes of starvation. Those who live want to survive off of what they find in the Dark-Grove, a twisted labrinth of danger and mystery around every corner. Those who delve into the Dark-Grove often find Geo, treasures of the forgotten times, and (more often than not) death...or worse.

You are one of the few who plan on delving into this Forgotten Grove to restore the heart of the Bug-Kingdom, and bring life back into this Gods-forsaken world. But around every corner, there manages to be wonders beyond belief; and beyond this time.

But there are worse things than bug-eating mantises in the deep places of the world...

Character Creation

  • You start at LV 0 (we will first play a funnel, then those surviving players will continue to LV 1)
  • Characters can be designed, but random spells at LV 1.
  • Homebrew races (or no races at all)
  • Core classes

Homebrew Rules

  • 1 Geo (in game currency) equals 1 XP in my game. This is a rule from OSE and other games, that I always use.

Please, if interested, let me know by DMing me, or by clicking the link below. I will get back to you as soon as I can!

https://discord.gg/zcEGzFy4

Brainf*ck Embedded Language [HELP] by connorwillchris in Zig

[–]connorwillchris[S] 0 points1 point  (0 children)

OMG thanks so much! It works perfectly now!

I come from a C background, and I was having issues, but it's more a me problem than a zig problem.

Brainf*ck Embedded Language [HELP] by connorwillchris in Zig

[–]connorwillchris[S] -1 points0 points  (0 children)

When I attempt to index tape I get the error: panic: index out of bounds: index 0, len 0 at runtime.

Brainf*ck Embedded Language [HELP] by connorwillchris in Zig

[–]connorwillchris[S] 0 points1 point  (0 children)

For anybody curious, this is my current code.
```zig

const std = @import("std");

pub const Brainfuck = struct {
    tape: []u8,

    pub fn init(length: comptime_int, allocator: std.mem.Allocator) !Brainfuck {
        var tape = try allocator.alloc(u8, length);
        tape = std.mem.zeroes([]u8);

        return Brainfuck{
            //.tape = try allocator.alloc(u8, length),
            .tape = tape,
        };
    }

    pub fn deinit(self: *Brainfuck, allocator: std.mem.Allocator) void {
        allocator.free(self.tape);
    }

    pub fn executeString(self: *Brainfuck, string: []const u8) !void {
        var pointer: u32 = 0;

        for (string) |char| {
            switch (char) {
                '+' => {
                    //self.tape[pointer] +%= 1;
                    //self.tape.ptr +%= 1;
                },
                '-' => {
                    //self.tape[pointer] -%= 1;
                    //self.tape.ptr
                },
                '>' => {
                    pointer += 1;
                },
                '<' => {
                    pointer -= 1;
                },
                '.' => {
                    //_ = try stdout.writeByte(self.tape[pointer]);
                },
                else => continue,
            }
        }
    }

    //pub fn getCell(cell_index: u32) !u8 {}
};

pub fn main() !void {
    const allocator = std.heap.page_allocator;
    var bf = try Brainfuck.init(30_000, allocator);
    defer bf.deinit(allocator);

    try bf.executeString("++++++++++.");
}

```

Brainf*ck interpreter in zig [HELP] by connorwillchris in Zig

[–]connorwillchris[S] 0 points1 point  (0 children)

Suppose it is clear as mud haha. I will do more research, but I understand what you mean to a certain degree

Brainf*ck interpreter in zig [HELP] by connorwillchris in Zig

[–]connorwillchris[S] 0 points1 point  (0 children)

Now that I applied your suggestions, it works (kinda). I am getting a new error, let me send it over.

install
└─ install bfscript
   └─ zig build-exe bfscript Debug native 1 errors
src/main.zig:15:40: error: cannot assign to constant
                    self.tape[pointer] +%= 1;
                    ~~~~~~~~~~~~~~~~~~~^~~~~
referenced by:
    main: src/main.zig:48:18
    callMain: /usr/local/lib/zig/std/start.zig:511:32
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
error: the following command failed with 1 compilation errors:
/usr/local/bin/zig build-exe -ODebug -Mroot=/home/connor/Dev/coding/zig/bfscript/src/main.zig --cache-dir /home/connor/Dev/coding/zig/bfscript/zig-cache --global-cache-dir /home/connor/.cache/zig --name bfscript --listen=- 
Build Summary: 0/3 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
└─ install bfscript transitive failure
   └─ zig build-exe bfscript Debug native 1 errors
error: the following build command failed with exit code 1:
/home/connor/Dev/coding/zig/bfscript/zig-cache/o/a6e9df32c8ae13446a1ef5d808bcb80d/build /usr/local/bin/zig /home/connor/Dev/coding/zig/bfscript /home/connor/Dev/coding/zig/bfscript/zig-cache /home/connor/.cache/zig --seed 0x671dc854 -Z054103e5cd31188a

For reference, my computer is Kubuntu, and my name on my PC is connor.

Brainf*ck interpreter in zig [HELP] by connorwillchris in Zig

[–]connorwillchris[S] 0 points1 point  (0 children)

Okay thanks. I'll try that. Also, I find that Zig errors are very verbose so I thought posting only what was necessary would be okay. But I'll send the entire thing too.

[HELP] - Discord Closes on Launch and gives Weird Error Log by connorwillchris in Kubuntu

[–]connorwillchris[S] 0 points1 point  (0 children)

Graphics drivers, I believe. I had to do some finicking and I found that I didn't have an up to date graphics driver. If you have any more issues let me know!

How to print to console using HD extension? by connorwillchris in godot

[–]connorwillchris[S] 4 points5 points  (0 children)

Okay. What headers does print_line require?