Voxelmanip Forums
ROllerozxa ROllerozxa
Site Admin
Posted on 2024-02-10 22:39, in The Voxelmanip First Thread Link | ID: 747
Hello. This place is kinda dead nowadays but is still up because there's no real harm keeping it around on the server that I host other stuff on anyways.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-10-23 17:30, in foodyummy's minetest experiments Link | ID: 734
Nice that you've got something up and working now, that's something at least. :)

so by exploiting a small technicality, I was able to get perlin noise outside of a mapgen thread. however the next problem, voxelmanip, is still stumping me as of tonight: it seems that every time I call minetest.get_voxel_manip() or VoxelManip() outside of a mapgen thread, it returns nil.
Huh? It should be possible to create a VoxelManip object outside of minetest.on_generated by using minetest.get_voxel_manip. Make sure you pass two arguments to the function, two corner positions which define the cuboid it will load from the map to allow for bulk manipulation. It will then return a VoxelManip object along with the minimum and the maximum emerge position, just like the VoxelManip mapgen object.

so I looked through minetest's github repo. In particular I looked through minetest/src/script/lua_api/l_vmanip.cpp and I think I have found the culprit, starting at line 367:

LuaVoxelManip::~LuaVoxelManip()
{
if (!is_mapgen_vm)
delete vm;
}

check it out for yourself... https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_vmanip.cpp#L367-L371

I don't fully understand c++ yet, but it seems here this function detects if the voxelmanip is in a mapgen thread or not and deletes the voxelmanip if it isn't. given that it was explicitly written like this, it has to be intentional, for reasons I don't know...
That's a destructor method for LuaVoxelManip (notice the tilde in the method name), which is called when a LuaVoxelManip object is deleted in C++.

I assume the mapgen LuaVoxelManip object's vm variable is not deleted because the engine's C++ mapgen code wants to keep that MMVManip object (the underlying C++ implementation for voxel manipulation) around for its own use. Meanwhile if you're creating your own VoxelManip object from Lua and it gets garbage collected, it can be safely destroyed so as to not leak memory. But I don't think that's related to the issues you had trying to obtain a VoxelManip object.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-10-21 23:23, in Embedding videos? Link | ID: 731
That's what happens when you need to keep into account every single possible permutation of YouTube video URLs into a regex... x_x
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-10-21 23:16, in Some pages still screwy on mobile Link | ID: 730
Form elements are really fucky to style because every user agent gives them different default styling to fit in their design narrative (and of course Apple is going to be the worst when it comes to this).

I assume Safari would comply if I "reset" the button border radius by setting it to just 0. Maybe this should be put in the common styling so it gives all themes a consistent form design independent of the platform that it then can style.

Post form tables look easy to fix though, just nom on the first column and put a second Title: that shows up on mobile. In fact that's what I just did. Feel free to look further into fixing up form elements though, since I can't be bothered to dig out our iPad Air to test it.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-10-21 22:16, in Hello people of Voxelmanip Forums I am glad that I could join you all. Link | ID: 725
Hello, I am one of the people of Voxelmanip Forums, I greet you for joining this forum.

Initially I thought you were a spambot who crawled here from the Minetest Forums, but I'll assume you're a real human who's just excited to be here. Welcome!
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-10-21 22:08, in foodyummy's minetest experiments Link | ID: 724
Yes, looks quite interesting, I'm interested to see what this will become. :D
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-09-22 00:35, in Voxelmanip Forums codebase changelog Link | ID: 704
Well this thread hasn't seen much activity... Using the Cirrusboard commit list is a much more better changelog than a forum thread. Generally the Voxelmanip Forums have run off of the master branch of Cirrusboard ever since I migrated from the old codebase.

However right now it is running off of the router branch, which contains a rather large restructuring of the codebase to be router-based rather than filesystem-based. Really this is just a technical change, improving the general organisation of things in the codebase. You shouldn't notice it apart from cleaner URLs and potentially some things being a tiny bit faster.

I don't consider it mature enough to be on the master branch, as I haven't documented the changes and new install instructions (or even figured out how the router would work on Apache), but feel perfectly okay dogfooding it as I myself will of course always be able to configure my own stuff and deal with it if it messes up.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-09-22 00:13, in The Voxelmanip First Thread Link | ID: 702
Welcome dibesfer!

This place is kinda dead these days but yeah...
This place isn't dead as much as it's in hibernation most of the time. Not that it's a bad thing either, a slow paced forum makes it easier to catch up with things. :)
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-09-22 00:08, in Opinion on Apple? Link | ID: 701
I feel like the purchase of any kind of Apple product can be put into at least one of the following categories:
- Technology for people afraid of technology
- People who use it as a means of attempting to show their wealth
- Professional graphic artists, designers, video editors and the like
- Tech people who have more money than brains

I fall into none of these, so as such don't really use any Apple products. But I also understand some people's reasons for going Apple. Being the only reasonably stable platform you can run Adobe products is great for before mentioned media professionals, and the hardware is at the very least predictable in what you will get, if you have the money to burn on it.

I used to be more extreme in my opinions about iOS devices when I was younger, but now I mostly don't care now that I'm no longer in primary school and don't get homophobic slurs thrown at me because I show up with an Android. The increasing degradation of Android's productive utility has probably played a role too, inching ever so closer to being as locked down as iOS.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-08-27 21:34, in The line ending wars - AKA CRLF hate thread Link | ID: 691
I always just presumed Windows did CRLF simply in a miserly attempt to break interoperability of sending .txt files and the like between Unix-based systems and WIndows-based systems. That or it was meant as some sort of compatibility hack that doesn't actually work and never did work properly.
CRLF originates from typewriters, CR moves the typewriter's position to the very left and LF moves down a line. I believe that the reason Windows uses it is because MS-DOS uses it (and in turn, CP/M), while Unix and its descendants would simply use LF for newlines.

Also indeed, old Macintosh pre-OS X used to use only CR for newlines, but with OS X they dragged in the Unix standard LF alongside their new BSD-based operating system.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-08-16 21:43, in The line ending wars - AKA CRLF hate thread Link | ID: 677
Carriage Return, also known as CR, also known as \r, also known as 0x0D, is the bane of every developer working on both Unix-like and Windows systems, as well as the bane of every web developer working with forms.

It all started in 1960 when Cary Returno tried to send a letter without a postage stamp, and getting it swiftly returned to sender. On that day, Mr. Returno swore to curse every computer developer with endless misery. 15 years later this became a reality.

When making a new line, programs have the choice of representing the newline as one or two characters. Either simply \n (LF), or \r\n (CRLF). The latter is preferred by individuals who have been damaged by the dangers of Windows, the former is preferred by those who look beyond anything with CP/M legacy. Most programs are destined to have to deal with both, or convert to one or the other transparently.

However, some programs aim to make a political statement. Windows' batchfiles treat \n as simply thin air if it is not preceded by an \r beforehand, Notepad also behaved in this manner up until recently. On the other side, the Bourne Again Shell and others make a statement in favour of LF. This is especially disturbing if you run the Bourne Again Shell on enemy turf inside the MSYS2 environment, watching in real time both sides colliding in the comfort of your computer.



In a moment of brilliance by whoever decided on the web standards, they felt that web developers aren't suffering enough and decided that CRLF is the default form of newline in HTTP. It is used for newlines in HTTP headers, and it is used for form data, to the horror of any web developer who has to watch in terror as their backend parses these cursed line endings.

Many code functions have been written to solve one problem - strip those damn \r characters. This code snippets originates from a mentally ill PHP developer's codebase (The illness caused either by CRLF or PHP, doctors are still uncertain about the cause):

function normalise($text) {
// I HATE CRLF I HATE CRLF
return trim(str_replace("\r", "", $text));
}

It is still unclear who will win in the line ending wars... Just kidding LF has already won, fuck CRLF.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-08-16 20:52, in How good is MIneclone? Link | ID: 676
MineClone 2 used to target Minecraft 1.12 a while back, leading to a fork called MineClone 5 being created which added features from newer versions. Now most of MCL5 has been merged into MCL2, and they're not targeting any version and try their best to stay up-to-date with the latest version of Minecraft. There is also the Mineclonia fork which compared to MCL2's now break-neck speed wants to focus on stability and quality rather than throwing everything into the pot all at once.

From a player's perspective MineClone 2 is good I suppose, assuming it runs well on your system. From a quick glance it recreates a lot of Minecraft gameplay and features... some more accurately than others. I haven't tried redstone myself, but from what I've heard it's essentially just Mesecons and not the most accurate thing. It depends on how picky you are I suppose.

From a technical perspective though it's a mess. The codebase is extremely large, unwieldy, and there's clearly not enough developers on the project to maintain it all. It started out as a mod soup (Minetest Game as base, and throwing mods on top to flesh out the game in a Minecraft-like direction), is today completely incompatible with MTG but still keeps a lot of legacy from it.

That being said though nothing beats the original, and MineClone will just stand in the shadow of Minecraft no matter how hard it tries, cloning the good as well as the bad from Minecraft.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-08-15 14:27, in The Voxelmanip First Thread Link | ID: 668
It's because I'm ESL and usually blindly follow the a/an consonant/vowel rule. Most of the time it ends up right but sometimes it fails, I keep forgetting that 'u' can not only be a vowel but also a consonant sound depending on the word in English. (I can't think of any case in Swedish where 'u' becomes a consonant like that)

Seems to be more than just me though, Wuzzy (who is German) also has a similar quirk in his English:

ROllerozxa ROllerozxa
Site Admin
Posted on 2023-07-02 15:32, in Ask A Stupid Question / Get A Stupid Answer Link | ID: 662
Nowhere, he doesn't have any. :(

Why do people keep calling me a bassoon?
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-07-02 15:29, in Minecraft General Link | ID: 661
That's also the missing texture texture for Minecraft. ;)
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-07-02 15:17, in The new Voxelmanip Forums is live! Link | ID: 660
I never said I was gonna implement PM threads. PMs themselves are coming sometime though.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-07-01 14:00, in The Vending Machine Link | ID: 651
Hah. The vending machine spits out an umbrella handle. Nobody wants to know where that has been previously.

*inserts a coin*
(post in restricted forum)
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-06-03 20:46, in Box Smasher Link | ID: 641
You might be thinking: Hey, whaa, this game isn't particularly old? And yeah, you're right. But it also so happens to be a mobile game made by yours truly, and I'm an admin so I decide on what is old and what is not.


Box Smasher is a physics-based puzzle game where you throw balls at various constructions composed of boxes, and the aim is to rid the level of all boxes with a limited amount of balls. I originally wrote it as the final assignment for my programming course in high school, though I plan on continuing development of it.



It's available for Android on Google Play and also a desktop version available on Itch.io.
ROllerozxa ROllerozxa
Site Admin
Posted on 2023-06-03 16:13, in Forum software woes (edited 2023-06-03 17:32) Link | ID: 637
I would have spoke over on landon's board but blarg.
well I forgot the password to that account anyways... >_> and unfortunately there are still no PM capabilities in Cirrusboard.

(btw I'd be up for chatting a bit on Discord if you'd like, just send me a friend request)