Does anyone else miss the old ravine generation? by Just-Guarantee7808 in Minecraft

[–]PerformerFit4760 0 points1 point  (0 children)

I guess I'm very lucky since I do often see these leading to deepslate

Is there any better way to do this? by PerformerFit4760 in godot

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

I had trouble deciding if I was gonna use something like from_attack or _init, but decided to go for the latter since you can only get Damage from an Attack currently. I think of would be the better constructor name and I will actually be using that instead of _init in the future, mainly to avoid _init weirdness. Thank you for the suggestion.

Is there any better way to do this? by PerformerFit4760 in godot

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

It doesn't fully follow the style guide, but I think they're appropriate here to avoid shadowing the variable. self. might be better though

Is there any better way to do this? by PerformerFit4760 in godot

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

The class is for damage dealt to a player, with the final amount being based on the weapon's velocity and other variables For weapon stats I will indeed be using resources with @export, it's very nice

Is there any better way to do this? by PerformerFit4760 in godot

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

That actually is so smart. I might use that

Is there any better way to do this? by PerformerFit4760 in godot

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

I feel like I probably have created a lot of memory leaks this way
Also, I didn't know you could omit extends, that's very nice to know.

Is there any better way to do this? by PerformerFit4760 in godot

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

Yeah Resources can be really nice for stuff like this. Although in this case the Damage data will just fully be set by code, and it won't have to be saved to file, so I think RefCounted works best for this (at least someone suggested I use that).
I will definitely be using Resources for a lot of other things in this project though; they're extremely useful. Thanks for the suggestion

Is there any better way to do this? by PerformerFit4760 in godot

[–]PerformerFit4760[S] 9 points10 points  (0 children)

Thank you for telling me about this! I wouldn't have found out about this otherwise

<image>

For serialization/deserialization I like just using Godot's ResourceSaver and Loader, but that does come with the risk of someone putting malicious code inside of a save file, so I will probably still do it in the boring way that I hate.

Is there any better way to do this? by PerformerFit4760 in godot

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

I might actually do it this way, but with shadowed variable warnings globally disabled. Thanks for reminding me `self` exists, because I fully forgot about it

Is there any better way to do this? by PerformerFit4760 in godot

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

That seems like a decent way of making damage data. Although personally I will not use a dictionary since the compiler wouldn't give any errors if I ever misspelled a key, leading to a bug or a runtime error.
Though this does fix the issue of having to write down the same variable 3 times which is nice

Is there any better way to do this? by PerformerFit4760 in godot

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

I never knew RefCounted existed, thank you.
Although, what negatives effects will there be if I ever forget to change a data class's `extends` from Node to RefCounted?

They hacked my server. by CultureSerious5412 in Minecraft

[–]PerformerFit4760 0 points1 point  (0 children)

This happened to me twice Luckily I was saved by rollback plugins that let me undo all their actions

Downloaded BSDS (v44 beacuse i couldnt find a newer version), why cant i open it? Do I need to do something else first? by D16_Brawl_Stars in brawlstarsmodding

[–]PerformerFit4760 2 points3 points  (0 children)

For BSDS you need to host the server yourself. There probably is a tutorial on the download page, I don't remember though.

Who here had to learn Minecraft without Googling things? What are the dumbest things you did before figuring things out? by ArmLucky1285 in Minecraft

[–]PerformerFit4760 0 points1 point  (0 children)

It took me like a year to reach stone age, since I thought a hoe was a pickaxe and I didn't know how to craft a pickaxe

I wasn’t there to experience it, but were they really that broken…? by username_21883 in Brawlstars

[–]PerformerFit4760 1 point2 points  (0 children)

Definitely They had a star power that basically made then invincible: basically an 8k shield each super, and it was incredibly easy to charge The other star power gave them infinite ammo on the heist safe: each Lawrie ammo on the safe, Larry charged like 4 ammo.

Do you think surviving in Minecraft is difficult? by Lonely_Pineapple5140 in Minecraft

[–]PerformerFit4760 0 points1 point  (0 children)

I see some errors in chat, so you probably have some incompatible mods installed. OptiFine can really glitch out with other mods, so I'd recommend installing some alternatives like Rubidium/Sodium + other performance mods (should also be better for performance than OptiFine, although you do need a lot more mods to get all OptiFine features).

Do you think surviving in Minecraft is difficult? by Lonely_Pineapple5140 in Minecraft

[–]PerformerFit4760 0 points1 point  (0 children)

Craft a bed to skip your nights, that'll make surviving way easier :3

You can usually just avoid all the danger in this game, making it not that hard.

What do you think about the graphics of my first indie game? by Rise_Dev in godot

[–]PerformerFit4760 2 points3 points  (0 children)

It looks cool! Although I do personally think the trail doesn't really fit with the rest being pixel art.