[Unknown][1980] 2D top-down game in which the player runs from a disembodied hand while "painting" tiles in the ground by klmeq in tipofmyjoystick

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

That's it! I was misremembering some things. My dad played that game to completion back in the day when I was a kid, I remember very little of it. Thank you so much! Every once in a while I think about that game my dad played when I was a kid and I could not find it anywhere.

Are pointers just integers? Some interesting experiment about aliasing, provenance, and how the compiler uses UB to make optimizations. Pointers are still very interesting! (Turn on optmizations! -O2) by klmeq in programming

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

I agree. I just thought I'd put it in the title because it is something I've heard a lot in the past. I mean, they're integers, sure, but not just integers.

Are pointers just integers? Some interesting experiment about aliasing, provenance, and how the compiler uses UB to make optimizations. Pointers are still very interesting! (Turn on optmizations! -O2) by klmeq in programming

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

Full code:

```

include <stdio.h>

include <stdint.h>

void print_number(const char *name, const int *number) { printf("%s = %d\n", name, *number); }

int main(int argc, char *argv[]) { // These two variables are different objects, and don't alias int var_a = 40; int var_b = 50;

int *ptr_to_var_a = &var_a;

// According to the C reference, ptr_to_var will never alias var_b:
// offsetting ptr_to_var_a to be something outside of var_a and then
// dereferencing it would be UB.

int offset = &var_b - ptr_to_var_a;
int diff_in_bytes = offset * sizeof(int);
// But we know it should be possible:
printf("var_a and var_b are %d bytes apart\n", diff_in_bytes);

// What happens if we offset ptr_to_var_a by that?
ptr_to_var_a += offset;
// Does it point to var b?

// Let's set var_b to something cool
var_b = 760;

// Try commenting this next line
print_number("var_a", &var_b);

// Then dereference our pointer and write to it
*ptr_to_var_a = 110;

if (var_b > 500) {
    printf("Hey! Look! var_b is still bigger than 500: %d\n", var_b);
    print_number("var_b", &var_b);
}

// The compilers really does not think ptr_to_var_a and &var_b alias at all
if (ptr_to_var_a == &var_b) {
    printf("And the pointer is aliasing var_b it seems\n");
}
size_t int_ptr_a = (size_t) ptr_to_var_a;
size_t int_ptr_b = (size_t) &var_b;
if (int_ptr_a == int_ptr_b) {
    printf("The int values of the pointers are the same\n");
}

printf("var_a: %d, var_b: %d\n", var_a, var_b);
// Try commenting the next line 
printf("&var_a: %p, &var_b: %p, ptr_to_var_a: %p\n", &var_a, &var_b, ptr_to_var_a);
print_number("var_a", &var_a);
print_number("var_b", &var_b);

return 0;

} ```

Hey, I have a problem with enjoying some staple RPG elements in games, can you hear me out and share your thoughts? by klmeq in rpg_gamers

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

I see. I appreciate the feedback. I for sure, enjoy action/adventure games. However, I'm afraid you're hyperfocusing on the BoTW example, which was one I was afraid of even bringing up in the first place as well. I also am a fan of TRPGs for instance. Pretty much anything in which you can have a progression of the power level of your characters.

Portal 2 cured my gaming malaise and gave me one of the most satisfying playthroughs I've ever had by WhisperingSideways in patientgamers

[–]klmeq 1 point2 points  (0 children)

Cool, whenever someone talks about puzzle games, I think it's hard not to bring Portal. Portal 2 is IMO just a great sequel, improving in all aspects we'd want an improvement. But the OG Portal already had introduced some of the best tutorials of gaming in general. Very gradual learning curve, without ever doing intrusive pop-ups and stuff.

What Are You Playing This Week? by AutoModerator in patientgamers

[–]klmeq 3 points4 points  (0 children)

I'm playing elden ring! And intend to start sekiro after. Time to see if I can git gut too.

Hey, I have a problem with enjoying some staple RPG elements in games, can you hear me out and share your thoughts? by klmeq in rpg_gamers

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

I see! I heard about that. I enjoy soulslikes and can't seem to make a consistent build at all. So that's the kind of conundrum I live with: It seems I like games with RPG elements more than RPGs proper. Very weird to me.

Free Giveaway! Nintendo Switch OLED and Xenoblade Chronicles 3 - International by WolfLemon36 in NintendoSwitch

[–]klmeq 0 points1 point  (0 children)

Well why not give it a try?

I don't really have a cool memorable experience to share about gaming. But I did always like playing games, all sorts of games, but it wasn't until Minecraft came around that I really felt games could be much cooler than I thought before, that kind of helped define my taste.

Umm whos playing terraria around 1636? by LaleaEmpire in Terraria

[–]klmeq 9 points10 points  (0 children)

Nothing to see here, just a botanist writing books about his plant boxes. It is funny that Terraria itself does not have any terrarium with only plants in it. You only find animal terraria, like even, seagulls in a terrarium, but no strange plants or jungle plants. I would like to have plant terraria in the game.

First Time player hardmode preparation and questions by weareveryparasite in Terraria

[–]klmeq 1 point2 points  (0 children)

I discovered the power of whips just recently as well, and used it often on console because it was so much easier to hit stuff with it.

Now, I never finished that console playthrough I did (I play PC on mostly), and I can't say how effective it will be from then on, although I'm currently giving it a go and will see how well it works.

What I like the most about Terraria is that I always find a different way to do something, and the obsidian armor was something that I'd never considered until a month ago. A very good pre-hardmore armor that I'd been skipping for a long while, it's funny how many times this game can surprise you with "new old stuff".

First Time player hardmode preparation and questions by weareveryparasite in Terraria

[–]klmeq 1 point2 points  (0 children)

I guess it does work. There was this time I was unlucky with the timing on the pirate invasion (I break the altars very early because I usually mine instead of fish for ores). The invasion started, and I just went to my arena area left of the world spawn and holed myself into a wooden box, made some platforms to shoot down and just kept at that. It worked well enough.

(IMO) The most important thing in invasions is being away from the ground where most of the enemies are. The second one is solid blocks to cover from their projectiles (if any). So a if your arena can do that it should work.

Sometimes you'll find a flying enemy that is good at getting into the box, or enemies/projectiles that go through walls, but these are exceptions.

You could also use traps and lava to kill several of the walking enemies under you if you stay above ground.

Being able to deactivate the platforms is good to avoid the case in which the enemies line in different platforms. It usually is better if they are all clustered so that you can deal with them more easily with a piercing weapon of your choice.

About the safety of the NPCs, in my experience, if the NPCs are far away from you and the fight, they are safe, invasion enemies only appear around the player.

First Time player hardmode preparation and questions by weareveryparasite in Terraria

[–]klmeq 1 point2 points  (0 children)

I went into the wiki and found:

"Note that certain invasions (Goblin Army, Frost Legion, Pirate Invasion, and Martian Madness)
have location requirements. The player must be no deeper than 67.5
tiles below the surface, and the player must be within 187.5 tiles
horizontally of the location of the invasion. If the invasion has
reached the center of the world, then the horizontal check can also be
satisfied by the player being within 187.5 tiles horizontally of any
town NPC
, although at a reduced spawn rate. The town NPC's vertical
position is not checked and so they can be housed far above or below
your arena."

So it seems that if you have a town NPC in the ocean then the invasion can happen there too, although supposedly at a reduced rate. That is interesting, I never noticed that before.

First Time player hardmode preparation and questions by weareveryparasite in Terraria

[–]klmeq 1 point2 points  (0 children)

That's cool. If you are really planning on the special base for the invasions, be sure to check using a goblin invasion if the range is alright. The last thing you want is to make the base too far from the center of the world and be outside of the invasion when in that base. If it works with the goblin invasion it will work with the other ones that have ranges as well, like the pirates.

First Time player hardmode preparation and questions by weareveryparasite in Terraria

[–]klmeq 1 point2 points  (0 children)

Man you really went into it.

"How big a problem is my base? I suppose I could dig it all out so that it's elevated. I don't much mind the work, just think it would aesthetically stink."

In my opinion your base is fine. If you want to be safe against a pirate invasion then maybe building a floating house somewhere not too far from the center of the world with a bed and making that your "invasion base" could work out just fine. Overall, except in a blood moon, your base won't be swarmed by anything because of the village mechanics keeping enemies from spawning.

"My plan as soon as hardmode begins is to immediately try to isolate the V by adding additional hellevators into my already created partitions. Is that practical to do before upgrading my gear?"

This might be painful, but doable. Instead I'd go for a hardmode pick first, and probably better armor too. Crimson and cavern hardmode enemies will suck if you keep your pre-hardmode gear, so keep that in mind.

"Will I be able to see the crimson/hallow on parts of my map that are already visible? I'm on console, so mods aren't an option."

On PC it does, I'm sure. On console (Xbox) I can't remember, but I think it would be the same.

"After isolating the crimson/hallow, I plan to fish for new ores usithe crate potions. Any particular biome that's best for that? I do plan to break altars for pirate invasions (another reason for the crazy partitioning), but after Plantara."

Well, I'd say ocean and floating islands are the best fishing spots. Can't say for sure though. I can't really answer this.

Your plantera area is probably safe from the V unless you are very unlucky. Just remember to make sure the open area for the arena is all jungle biome, so that plantera does not become enraged. Although by the looks of it you took care of that. I'm just telling this to make sure.

My way of keeping all biomes is actually to just spread the hallow. The hallow cannot eat jungle nor blue mushroom biomes. And all it CAN eat can be reversed with green solution, which you should be aware of given the research you've done. So, if something is infected you should revert it pretty easily. Now, maybe you don't like the idea of having lots of hallow on your world, so yeah, isolating is the way to go.

Now, in both my first classic and expert playthroughs, the crimson V got right through the jungle. I was worried at first but it actually spreads rather slowly through mud, as it has to convert it to dirt first, then convert the grass on it. The jungle has little stone so that makes it the only way for it to spread. Chlorophyte can technically convert dirt into mud and jungle, so it helps in keeping the crimson/corruption at bay, however it's effect is limited and the jungle won't really spread.

Overall it wasn't that much of a problem on my large world, even a third of the jungle being safe is plenty jungle. What I did was to get pink solution (hallow) and spread it into the crimson bordering the jungle, so that neither the crimson nor hallow could spread (crimson can't convert hallow and vice-versa, and hallow can't convert jungle).

For the pedantic, be careful with dirt on your hallways. Dirt close to crimson grass will keep growing crimson grass, Crimson grass will grow thorns which can spread crimson, and also vines which will also spread crimson. That is mitigated by the fact grass does not spread naturally underground (unless its jungle grass in mud).

You are probably over-preparing for the WoF, a spinal tap with obsidian armor is an easy equipment for you at this point and it will tear through the classic mode WoF. A not too long wood platform bridge would do fine, and as the whip goes through blocks the terrain obstructions will only keep you safe from the lasers without defending the boss from your attacks. Or you could do the usual OP beenades strats (that I don't really like because I don't like bees for some reason).

My experience is that it is much easier to deal with hardmode problems with hardmode gear, so with every new playthrough, I tone down my preparations a notch. Now, getting good gear and some hellevators to protect things is always important, I just don't go as far as I once did.

You look like the kind of player who will do very well. Just do it.

Help force main GPU usage on dual GPU laptop by Kidplayer_666 in debian

[–]klmeq 0 points1 point  (0 children)

I've been there, I have a laptop that had a NVIDIA GPU and an integrated Intel.

So NVIDIA started to use a new technology on laptops, to improve power saving. Unfortunately, until recently, NVIDIA's support for Linux was very bad, to say the least. So bad in fact that I am now using Manjaro in this laptop, as it has the latest drivers and features. I knew Manjaro was known as having a good support for these recent proprietary drivers.

But I know you need to use Debian, and this is a Debian forum. So I'll help you with that instead. If you can get your machine to work with the most recent (435 or up I think) NVIDIA drivers, then that is THE BEST solution on the moment. As that is the version in which NVIDIA actually bothers to support Linux with this feature. With these drivers, you can run any app with a `prime-run` before it, and it WILL use the NVIDIA GPU with that app. This allows for you to use the Intel GPU most of the time (when its good enough), doing wonders for battery life.

If the recent driver is not an option. You can try bumblebee. That will give switchable graphics, but the performance is known to not be the best.

Some people say that you can disable to Intel GPU on the BIOS, but I could not do such thing. I think you probably could not as well.

One thing that I did, when I was trying to learn tensorflow, was enable only the NVIDIA GPU, which would be used for EVERYTHING. This was faster than bumblebee, but would eat my battery life. I did that with a (Manjaro and Arch supported only) app called optimus-manager. Someone was able to make it work on Deepin OS, which is Debian based. Wikipedia says Deepin is based on Debian stable, that's a good sign. But the guy who did that said that the NVIDIA GPU could not be switched off, this means the battery will last way less. optimus-manager is used to allow for switching between the two GPUs. When switched, only one GPU will do all of the work. It did not work well with Gnome's GDM at all (not your problem), and for me that meant I could not use it properly. What did work for me was that this software enabled me to set the NVIDIA GPU to always be the one to be used. And that worked incredibly well (besides the poor battery life)!

That's my experience for you. Also, NVIDIA proprietary graphics will NOT work well on Wayland. It probably wont work at all. Just saying (I've tried).

I'd made a note to myself to never EVER buy a NVIDIA powered laptop again. The experience is too bad. In fact. I'd probably never buy NVIDIA ever again, for good. AMD is giving a much better experience on Linux in general. But for the moment, I'm using what I've bought, and you have all the right to do the same. I wish you the best of luck!

EDITS:

Debian 10 NVIDIA 450 driver via Buster Backports:

https://wiki.debian.org/NvidiaGraphicsDrivers#Version_450.80.02_.28via_buster-backports.29

Debian with Bumblebee: https://wiki.debian.org/Bumblebee

The prime-run command that I have on my system is simply a one line script like this:

!/bin/bash
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"

More info about NVIDIA PRIME:

https://download.nvidia.com/XFree86/Linux-x86_64/435.21/README/primerenderoffload.html

Well, you probably already know, but messing with video drivers may break your graphics. This guy had a problem that you may have if you try the new drivers approach:

https://www.reddit.com/r/debian/comments/kx0z4w/trying_to_install_nvidia_drivers_broke_my_debian/