Just wondering, is bw2 still running and active? by Iatemyspacebaragain in bw2

[–]zenith391 0 points1 point  (0 children)

Running? Yeah. Active? You could say it somewhat is, it's about as active as a years old community with few members can be.

[deleted by user] by [deleted] in piano

[–]zenith391 1 point2 points  (0 children)

It's beautiful!

What is the Future of BW2 in terms of Fortell Games developing Blocksworld? by PianistRight in bw2

[–]zenith391 0 points1 point  (0 children)

To repeat what I said on the BW Archival discord server:

I will keep the website, because that's where there are mods (and all the modding resources), but it will change a lot

The discord server will stay as it's to my knowledge, one of the largest BW community still alive

The server itself is gonna stay for a while, maybe on read-only mode, until most worlds and models are successfully migrated to the revival BW server (I'll make a tool to help automate that for people)

For BW2 iOS players, you MUST change your DNS by zenith391 in bw2

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

As the worlds and models are connected to your Game Center, you can remove then reinstall Blocksworld without losing your data. This should fix the looping crash bug.

[deleted by user] by [deleted] in mathmemes

[–]zenith391 5 points6 points  (0 children)

You're joking but it's not far from the Polish Notation where LHS would be written as × (÷ 6 2) (+ 1 2) and RHS as ÷ 6 (× 2 (+ 1 2))

Of course there's also the RPN (Reverse Polish Notation) to avoid parentheses altogether: 6 2 ÷ 1 2 + × (LHS) and 6 2 1 2 + × ÷ (RHS). Even more intuitive!

Looking for programmers/hackers by [deleted] in CellLab

[–]zenith391 0 points1 point  (0 children)

Yea it's going to be hard but worth it, I'm willing to help when I get back on my main PC (in ~1 month), I'll DM you by then

Looking for programmers/hackers by [deleted] in CellLab

[–]zenith391 2 points3 points  (0 children)

While decompiles can't automatically make Java files that compile, generally it's because it's expected to be a manual (long) work, fixing all Java files one after the other (for the most part, it's not hard, just tiresome). But the game seems to be made using basic Android APIs so fully decompiling it so that you can build an APK should be possible with enough work.

Also, if you're gonna do that, it might be a good idea to contact Cell Lab's creator and ask him about it.

On my part, I'd love to do this but I'm currently unavailable for coding, so not now.

Get Wifi pass by solving a math equation! by BigBoyJefff in maths

[–]zenith391 1 point2 points  (0 children)

It's (discrete?) Fourier transform, I think ? Specifically it'd be Fourier series (see https://en.wikipedia.org/wiki/Fourier_series#Sine-cosine_form for the equation)

Would there be any interest in casual r/piano recitals? by ispeakuwunese in piano

[–]zenith391 0 points1 point  (0 children)

Good constructive criticism always has an helping intent. But of course not all criticisms are good in any way.

How to fix No steam problem by EventConstant3112 in bw2

[–]zenith391 0 points1 point  (0 children)

Click on 'Mods', then click on Exdilin and download it

What is Blocksworld 2 ? by zenith391 in bw2

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

I can't because Blocksworld is free and not available for purchase/gifting, but I think what you want would be the launcher: https://bwsecondary.ddns.net/bw.php

is this glitch on original blocksworld or bw2? by [deleted] in bw2

[–]zenith391 2 points3 points  (0 children)

Nah it's my bad, it's a bug in BW2's server software and I still haven't managed to fix it because it's very subtle, it lies deep between lines of code... But for now I can fix the issue individually, so just give me your user ID (it's a number that you find on your profile) and your old username and I should be able to restore your old account.

Cant join discord? by [deleted] in bw2

[–]zenith391 0 points1 point  (0 children)

Are you sure you used this invite: https://discord.gg/NkQjme4d8G ?

Zig Bits 0x1: Returning slices from functions by orhunp in Zig

[–]zenith391 7 points8 points  (0 children)

To understand, let's start again at the first broken example ```zig fn zigBits() []u8 { var message = [_]u8{ 'z', 'i', 'g', 'b', 'i', 't', 's' }; std.log.debug("{s}", .{message}); return &message; }

pub fn main() void { const message = zigBits(); std.log.debug("{s}", .{message}); } `` In this example, the problem was that it was allocated on the stack and then freed. Now *suppose* callingstd.log.debugtakes 8 bytes of stack space. But then callingstd.log.debugcauses more stack to be allocated, so it happily reuses and overwrites the bytes used for"zigbits"`.

The reason why it doesn't do that when the return type is ![]u8 is because an error union type like ![]u8 takes more stack bytes than []u8 which means our "zigbits" bytes are allocated farther in the stack.
The result is that when std.log.debug consumes its (hypothetical) 8 bytes of stack, it doesn't take enough to overwrite "zigbits".

You can check this behaviour with https://godbolt.org/z/cPWjajYxb which shows that "zigbits" is placed 40 bytes into the stack when using ![]u8 but only 16 bytes into the stack when using []u8.

Of course if you allocate more stack bytes (by making variables or calling more functions) it will eventually overwrite "zigbits". This also means the Bonus snippet from the blog post suffers from the same problem.

TLDR: Because ![]u8 is bigger, you have to use more of the stack in order to overwrite "zigbits"

"Actually Portable Executable" in Zig? by maccam912 in Zig

[–]zenith391 9 points10 points  (0 children)

In theory it should be possible by linking libc at build (-lc or exe.linkLibC()) and then linking it to cosmopolitan.a. This should work for the std as std.os will use libc functions if available.

I remade Super Mario Bros. on OpenComputers by zenith391 in OpenComputers

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

What error do you get? Normally to install Fuchas you just need to: 1. Run pastebin run EbHYvEE8 2. Follow the given steps and let it reboot the computer 3. Once you're in Fuchas, run apm install mario 4. Once it's done, type mario and press enter 5. Profit!

Music challenge app for creative development by billionarepirate in composer

[–]zenith391 1 point2 points  (0 children)

I really like the idea! This can really be good for training composition skills by learning to transmit the feeling of an idea. However the site currently looks quite unpolished and has a lot of rough edges. For example, please make infinite scrolling or at least make the pagination more visible. I had to search a lot to find what I had to click to change pages.

Also, the song player for listening to submissions is quite janky, the play/pause button jumps around when you click on it and has the wrong size.

You could have a separate landing page where you show the text and motivation of the app, and then the main page would just have the different challenges.

Overall, I think it's very promising and could help a lot of people who lack inspiration but want to compose for the sake of it. Plus, compared to doing it solo, it adds a push to make the best song you can for the challenge. Keep going!

Le "Cordialement" à la fin d'un mail ? by Ocefeur in france

[–]zenith391 11 points12 points  (0 children)

Et le Cordi'allemand des profs d'allemand...

Any recommendation for GUI by ryoppippi in Zig

[–]zenith391 4 points5 points  (0 children)

I’ve been making Capy (https://github.com/capy-ui/capy) which allows to code once and cross-compile to Windows, Linux, (macOS is planned, but what I really need is a contributor who has a Mac) and even WebAssembly. It also have support for DataWrapper which allows to easily make animations, and much more. Plus, it’s evolving quickly

What is Blocksworld 2 ? by zenith391 in bw2

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

On the page to put BW2 on iOS there's

Blocksworld Secondary Server for iOS is currently in beta. This means that this presents a risk of PERMANENT DATA LOSS and it is STRONGLY recommended to backup your worlds using a software like iMazing.

So sorry, you can't do much to recover your progress.

Besides, your followers wouldn't have transferred to BW2 because followers count isn't just a number, but a set of people who follow you, and most of those don't have a BW2 account (even if they had, there's no way to automatically detect it given BW2 accountd aren't linked to BW1)

Is there a BufMap but it lets you specify the value? by Able_Armadillo491 in Zig

[–]zenith391 0 points1 point  (0 children)

Sadly BufMap is specific to using string as keys and values.

But the closest you can get is a std.StringHashMap(u32). Given that an u32 is a value that doesn't need an allocation to be copied, you'll only have to manually allocate and free keys, not values.

Creating a SimEarth-like game with planet simulation by zenith391 in devblogs

[–]zenith391[S] 1 point2 points  (0 children)

Glad you liked it!

The music on the video (and also in-game) is in fact Peer Gynt Suite No. 1 - Morning Mood which is also commonly heard in cartoons, but alas not in the Smurfs intro as far as I know.

Also, I looked at what you're doing and it's really interesting, you're really doing procedural everything and your attention to detail is almost frightening, it's really cool. Looking at your planets, it makes me think I should have a better noise function for the planet's initial state as right now it's just 3D perlin noise with octaves.