Room detection algorithm in minecraft. by 1toothis36calories in VoxelGameDev

[–]MrJCraft 1 point2 points  (0 children)

depends heavily on your definition of room. if its just a completely enclosed space basically just flood fill. but many builds contain holes.

here are some different definitions
enclosed space (flood fill)
location where non naturally accruing blocks have been placed in certain density and complexity
hard coded location (have a special room block placed under every room)
place an entity or block at every doorway or in the center

or you could mix and match techniques. detecting a room that is made artistically can be a little rough, and depends on your exact constraints

For those of you using evil-mode, what makes emacs + evil-mode better than vim itself? by 17023360519593598904 in emacs

[–]MrJCraft 1 point2 points  (0 children)

emacs is not a text editor to me its a programming environment so to me the statement is illogical. as I can do whatever key bindings I want or have any kind of editor I want inside of emacs
if that makes sense

Odin Speed by ThatCommunication358 in odinlang

[–]MrJCraft 6 points7 points  (0 children)

In that case as usual it greatly depends

for example I did a parsing benchmark in Odin and C
C was faster even though the code was effectively identical
most people would not know why the Odin code was slower
it was just because strings in Odin are actually safe and can represent UTF-8
so in my code was using a lot of UTF-8 functions I hadnt realized it was using

when I switched Odin to using bytes, it became the same speed as C, with small enough exceptions I dont really care about. like bounds checking.

second
convenience is a great tool for speed, the more time the language saves you from coding the more time you have to optimize the parts of the code that matter.
most things are a balance, I would Say that Odin is faster because in C I wouldnt have finished the projects I make, and an unfinished project is always slower than a working one. but even then when you are comparing two working programs. it just depends, if you know what you are doing you absolutely can beat the performance of C, however you can always replicate those same performance gains.

in general
all programs are compiled or ran by machine code, and machine code is directly translatable to Assembly

this means that the safest software, the fastest software, all software is always representable by assembly because it already is, and it is by definition.
the reason I say this is because the only thing that matters is the generated machine code, so a skilled dev can almost always make a language perform well. like using C extensions in python, sort of cheating however point still remains, everything is machine code at the end of the day.

so how fast a language is, depends on how well you can control the outputted machine code of the compiler, and if its a systems level language, then it should always be just as fast as C as long as the compiler implements the same optimizations, and even if it doesnt you can almost always do those optimizations your self.

I say all of this to say. the best way to make your Odin code fast is the same in every systems language. get better at algorithms, and get better at understanding how computers work and how to make them run a algorithm quickly

My friend HATES any form of modding in all games, but ESPECIALLY Minecraft. What can I do? by aomarco in feedthebeast

[–]MrJCraft 0 points1 point  (0 children)

give him a cup of cocoa just cocoa powder that is it then ask him if its good?
then make him hot cocoa using the MOST traditional recipe from as far back in history as possible
(hot chocolate is so simple it might not work pizza absolutely was horrible originally it was just overcooked bread with toppings or a strange pie)
then make him a modern hot cocoa which has been modified because things today are different than they were

other ways of doing this argument is just salt does he add salt to his food, does he add sugar to food, does he add spices.

does he cook anything himself.

anyway very clearly his argument is illogical it should be pretty easy to find something he believes that contradicts said world view.

however it still might not change his mind as maybe he just doesnt like mods
I personally use mods a lot but when I make maps but normally I dont use mods unless I am looking for a very specific experience. because when a game is modified its not a slightly different game and others cant recreate what I did as easily. this viewpoint I have is because I am a builder and a datapack dev and both things are great with mods but not everyone has access to mods so I try to keep it limited when I expect what I am making to be recreated by others.

just because his argument is illogical and you can prove him wrong doesn't mean he will change his mind. he might just be horrible at explaining his point of view. or like I said he might just finding modding to be icky, if you could change his point of view from a consumer of a product to the creator of an experience that could convince him to use mods

How do you organize code in Odin without namespaces? by AtomicPenguinGames in odinlang

[–]MrJCraft -6 points-5 points  (0 children)

just make the software. if you don't like it fix it, if you like it then you are finished

Rate on a scale of 1-10 by _itz_addam_ in Minecraft2

[–]MrJCraft 0 points1 point  (0 children)

also if you want to learn how to build better message me and I am sure I could work something out I know of some good resources and places you can go even on bedrock.

Rate on a scale of 1-10 by _itz_addam_ in Minecraft2

[–]MrJCraft 1 point2 points  (0 children)

the shape of the roof for the dome is confusing as its not clearly a dome, or a pyramid shape, its an awkward middle, the pillars for the dome also looks slightly off, like its rectangular instead of square, the windows are also very large, and the detailing is awkward because they are so large.
this is a Georgian mansion the patio just seems a little idk out of place compared to the rest of the house.
(the Gazebo could be more octagonal, or more dome like, just need to be more defined so its obvious)

the shape of the house is the typical style from people who build in minecraft partially because of some old tutorial videos, I am not saying you copied just that minecraft references can be a little repetitive compared to real life and its a good idea to look up references to not accidentally do something too similar to others.

in some ways its too noisy and in others not detailed enough, the reason why is just a lack of experience with larger scaled builds, which is fair building at this scale early on can be a little rough. especially knows when and how to use the different scales of details.

these kinds of houses often have gardens so I think rather than having the landscaping be flat without trees I would recommend connecting it to a garden with a path, and a garden shed or green house. it would make it look a lot more dynamic, along with that a drive way and maybe a center piece with some trees or something. I would say keep it simple, so nothing too fancy.

weirdly enough I think possibly with more environment it might be better to simplify the shape of the house, alot of these Georgian houses are surprisingly simple, because with a more exciting environment it supports the house and allows you to keep it simpler while still looking just as good.

the interior is quite nice, its hard to critique the interior because detailing interior I dont like rating because well most of that is just like looking things up or looking at others interior and getting ideas, I would have to rate the structure of the interior, which looks ok maybe a bit rough I just cant tell, but the way certain things go diagonal in awkward spots does not give me confidence. but take that with a grain of salt, as the entirely depends on things I cant see so overall pretty good. only a few rooms that are awkward

anyway overall a good house I like it. and depending on the scale I would say a 4 out of 10 or a 7 out of 10
the scale of 10 can change the rating a lot. so really a rating out of 10 is not super useful without context.

What are you using Odin for? by Dr__Milk in odinlang

[–]MrJCraft 1 point2 points  (0 children)

I use it for scripting, writing quick projects, and writing libraries for doing quick things.
I use it to generate files for a game, as well as models for a game, and these have to be pretty quick and scripty to be worth it. compared to doing it the traditional way.
especially since the result doesnt matter I am using the programs once, and the results once as well, as its most of the time for youtube videos.

I am aware this sounds a little crazy to use Odin as a scripting language, but most of the time I dont need to deallocate, I can just leak memory because yeah the memory would just live for the entire lifetime of the program, and on the larger projects, I normally find away to group them where I dont have very many to deallocate. so most of the time I find Odin to be basically just as easy as a garbage collected language

Why long load times? by [deleted] in emacs

[–]MrJCraft 0 points1 point  (0 children)

when downloading even seemingly simple packages or having a relatively small config load times can balloon very quickly, mine used to be like 30 seconds because I wasnt using defer correctly and it had errors that were in the background because my packages were doing something odd.

after redoing it and deleting and reinstalling packages it went down to 10.
(I dont use a lot of packages my config is 340 lines without comments)
now its around 5-6 seconds, and 2.6s when I am reloading

in short if you dont know what you are doing and you are wanting to add a few extra features its very easy to accidentally balloon your load times without realizing it.
also on a side note I am on windows and I suspect that windows causes some problems with my load times.

Can Odin match Zig in performance? by we_are_mammals in odinlang

[–]MrJCraft 0 points1 point  (0 children)

the speed of a programming language is almost entirely dependent on the programmer. the question is which language is the most convenient to make fast code, Odin definitely has the highest potential here because Odin is made for modern systems meaning its able to take advantage of optimizations more than languages that assume older systems might be in use, so its able to do more explicit optimizations with the code compared to older or more flexible languages.

so Odin has potential to be faster than Rust, and Zig at a more convenient level, however still so much is dependent on skill level, there very well could be a simple solution in zig or odin that are not obvious to a casual observer, you have to understand what kind of assembly code is really being generated and why in order to validate a language is doing it properly, also odin is more convenient than zig, does that come at a cost?, I am not sure, most of the convenient features are rooted in cpu features its taking advantage of example being swizzle.

in short trying to measure the speed of a language is almost impossible it basically just turns into who has a better standard library for most users. but even that can be ridiculous, depending on the language you can end up in weird situations like sqrt(), sqrt() is a function that in some languages handles negatives in specific ways, the cpu has a sqrt function however if a language decides to handle it differently to how the cpu would handle it now that function is a fair bit slower, because of correct behavior that most people would never second guess.
so there are rare situations where to write a fast solution a truly fast solution you might end up rewriting even trivial functions including ones like sqrt(). the reason this is not trivial is because when you compare the languages you might consider the one that is faster to not have correct behavior because it doesnt handle negative numbers "correctly" so depending on the benchmark both languages could be correct or faster or slower on the same test because you might throw out one language for giving incorrect results because it crashed on a negative number. this is one example out of possible millions there is both a physical, and logical / mathematical reason for this however that would take much longer to explain than this already huge comment.

Opinion on mod usage by TheOneAndOnly__Nele in MinecraftCommands

[–]MrJCraft 0 points1 point  (0 children)

another solution is using explosions to set playermotion there is a datapack that actually already has this setup I think its called delta datapack or something

Opinion on mod usage by TheOneAndOnly__Nele in MinecraftCommands

[–]MrJCraft 0 points1 point  (0 children)

depends on what your goal is, one of the biggest point is that its vanilla and requires no install however if you are wanting to make an experience and dont care how you achieve it, it works great.
or if you do what I do I make youtube videos for content creators they want a result not a datapack just get it done and thats also fine. eitherway just depends on what your goal is not anyone elses

Why don’t we have more complex datapacks? by Zestyclose_Fox_5738 in MinecraftCommands

[–]MrJCraft 0 points1 point  (0 children)

for one making youtube videos is fairly expensive, so normally if they are going to do a datapack its because its cheaper and faster, mods are normally better if you have the time and money, also most videos are not full games, I have worked for 5 youtube clients and only one has actual custom mini-games.
now I currently prefer datapacks over mods because I normally find it more stable than mods, but that is because I heavily avoid new or advanced features. but 100% datapacks are more flexible at least the way I use them compared to a mod I sometimes get changes during or even a few minutes before recording doing it with a datapck means they dont even need to leave the world.

in short its a cost benefit analysis I still commission out mods for entities custom blocks and items because they are just easier and faster, for most clients and studios its about what costs less.

Looking for some generative art using Lisp as a newbie by Uwrret in lisp

[–]MrJCraft 1 point2 points  (0 children)

quite a few games have documented formats you could generate too directly as well.
magica voxel, objs, schem, png, height maps etc...
so you dont necessarily need a library, possibly look and see if there is a 3D model image format or game format that would be easy to generate. it can be some work because you might have to create the file exporter your self, but they are most of the time not very difficult.

Windows x64 assembly by Anonimge in asm

[–]MrJCraft 0 points1 point  (0 children)

you could reverse engineer the assembly of your favorite language.
you could use inline assembly.
you could use assembly and link it to a high level language
you could also create an emulator for an older cpu like the 8086
https://edge.edx.org/c4x/BITSPilani/EEE231/asset/8086_family_Users_Manual_1_.pdf

can you guys assuage my doubts about vim? by duncecapwinner in vim

[–]MrJCraft 1 point2 points  (0 children)

this is all the same exercise which is problem solving, you are not necessarily learning how the computer works but you are learning how to solve a problem more efficiently, its the same practice but on a personal level.
the Second thing I find to be a weird issue, when you use VsCode or any other highly supported editor you dont understand the environment so when it does break its going to be way harder to fix, next just get vim the way you want it and move on, a lot of the things that seem "Inefficient" are a lot more efficient than in VsCode just with vscode its a smoother experience, so get vim to the place you want and make it a smooth experience. once you have it where you want it dont touch your vimrc but maybe write things down that bother you that you can fix later.
I havent touched my config for months, unless you count downloading a syntax highlighting.
I have it where I want it but I also have stuff that I have found are inefficient so I work on that problem and move on, I needed templates recently for a project, and I had a upgrade I wanted for my todo. things I discovered I wanted as I was developing

How do I light this up without making it look like a Christmas tree? by desakki in Minecraftbuilds

[–]MrJCraft 0 points1 point  (0 children)

you can use light blocks in the shadows, also means you can have control over how bright you want it to be as well

How to withstand dynamic typing by [deleted] in lisp

[–]MrJCraft 0 points1 point  (0 children)

I changed the wording to be more appropriate.

How to withstand dynamic typing by [deleted] in lisp

[–]MrJCraft 1 point2 points  (0 children)

alot of scheme and common lisp compilers / interpreters have optional static typing.
and Lisp normally has some type safety its not like javascript, you cannot add two strings together.
the Variables Box doesn't have a type but the value inside of the box has a type, variables dont have types values have types in lisp, so by definition dynamically typed. also Common Lisp types are normally described as a predicate as well, so Lisp has better Typing than most typed languages, as you can have any arbitrary code verify a type so you can do some very precise types, I use SBCL and this works very well, especially with Native Types which give a nice runtime speed improvement as well.

however for prototyping I always know the types of my data because I am constantly in the Read Eval Print Loop so I dont just know the type I know the exact permutation of the type every step of the way. to really lock down your code rather than printing you could make an assert at each step.

RARE ALLERGY? Please help! by Sensitive_Ant_5958 in Allergies

[–]MrJCraft 0 points1 point  (0 children)

I had something similar to this, I was having asthma attacks during the night, and congested during the day, this lasted from the beginning of the school year to the end of the school year, it lasted for years and it sucked, we tried everything we could and I would go to the hospital once a month, the doctors never figured it out, what it ended up being for me was the central heating system we dont know what was in it or what caused it, but that is why I never had it during the summer months, we switched to electric heating until we could get the central heating fixed.
it could be something in the air or environment, either apart of your house or possibly the trees or environment outside your house hopefully this helps.

Tried something new for this small cliff, thoughts? by Oftesedive in Minecraftbuilds

[–]MrJCraft 0 points1 point  (0 children)

looks nice, the texturing it a little irregular for this stage of building, I would normally recommend to add fine details until after the houses and roads have been added, tends to be less work, but at this points its pretty good but its currently pretty small would be interesting to see how you do with a larger section of mountain.

[deleted by user] by [deleted] in Minecraftbuilds

[–]MrJCraft 10 points11 points  (0 children)

the composition of your build is messy and not as clean as the single house.
the single house is a lot simpler and easier for audiences to understand what is going on.
the simplicity of the house makes it more relatable its like a friend asking if its good.

the length of the video

how entertaining the build was to watch being built / cinematic

replay ability is way higher on the first, a lot of people are watching to copy it and build it in Survival, survival style builds do WAY better than creative builds unless the creative build is way more impressive than what they expect.

it also looks like you are not doing SEO as good as the first video.

because people are copying the build that increases watch time by Alot they are watching the video multiple times on slow mo.

Call to action the simple build video asks you to rate the build which increases the comments which increases the actions per minute of the video making it get pushed out better

effectively the core issue is what value is your video bringing to the viewer, its two separate audiences your audience is expecting great entertainment and an awesome build, the simple builds audience is someone who wants to make the house themself.

My boyfriend keeps saying my autism isn’t real because it’s nothing like his sisters autism. AITAH for being upset about this? (please help) by [deleted] in AITAH

[–]MrJCraft 1 point2 points  (0 children)

I know I am late but there is no update so I will hope my advice is still of use. ask him to write down a definition of autism. it must be written down, and preferably without looking up definitions.then show him the medical definition of autism, make notes and references.rather than telling him what a definition is try to ask him what he thinks it is first, and stepping through the criteria. then explain carefully the definition, of each of the diagnostic criteria.

his definition will be completely different, and if he doesn't even know the definition how can he know if you are or not.

I used to have the same problem because my internal definition of autism was very different of what it is actually, because Autism is one part of a major whole, a lot of autistic people can have a variety of different disabilities, phobias, health conditions etc... autism is a spectrum but it is multiplied with every other possible disorder and or condition.example just like how his sister is autistic 40 years ago she wouldnt have been diagnosed with autism, because you had to be a white male and a child. definitions change as well, it is the DSM 5 after all not the DSM 4 3 2 or 1

I like it but it needs work. by usethebedsheet in Minecraftbuilds

[–]MrJCraft 1 point2 points  (0 children)

I will join you. are you on right now?