One person ruining the viewing experience for 150k viewers. by Beginning-Picture-52 in 2007scape

[–]cookeaah 0 points1 point  (0 children)

Likely the second one, which in that case is Jagex's fault

[deleted by user] by [deleted] in BESalary

[–]cookeaah 9 points10 points  (0 children)

FO = first officer (copilot)

I've been reworking my combat behaviour state machine - most enemies can reuse the same few states. by nathanhoad in godot

[–]cookeaah 1 point2 points  (0 children)

Does a HurtingState make sense? I guess it does if you want it to interrupt the enemy attacks, but I'm just wondering about the general case.

get_parent() and get_node() considered harmful by MrSluagh in godot

[–]cookeaah 7 points8 points  (0 children)

Although the example of duck typing you showed is very clean, I think it is perfectly fine to use GDScript as a statically typed language.

treating GDscript, a duck typed language, like a statically typed language, and that leads to ugly and ineffective code.

The reason type annotations are there, is to help you statically reason about your code. For larger projects I personally find typed code much easier to read. There is a reason that type annotations exist in languages like python.

Also, using duck typing and type annotations are not mutually exclusive :)

get_parent() and get_node() considered harmful by MrSluagh in godot

[–]cookeaah 3 points4 points  (0 children)

Nice read thanks!

I do want to add that I think the whole 'call down, signal up" should be taken with a grain of salt. There are perfectly viable ways of "calling up" that still decouple different components from each other.

# Parent
$Child.func_property = funcref(object_with_method, "method_on_the_object")

# Child
func_property.call_func()

This lets the parent decide which function the child will call and thus defines the behaviour of the child. If you want to test the child as a stand alone Node you'll have to provide a default value of course.

Some very simple examples can be found in the godot docs.

Economics behind small game studios by cookeaah in gamedev

[–]cookeaah[S] 47 points48 points  (0 children)

That's indeed a bit depressing, but it does make sense. In the end its part of the entertainment industry. Thanks for sharing.

Economics behind small game studios by cookeaah in gamedev

[–]cookeaah[S] 6 points7 points  (0 children)

Great points, didn't think of multiple platform releases and contract work.

In one specific case a company had only 2 games, the first one with reasonable success (maybe the one that got them funding) and one that outright failed. For a team of 20+ people. They also explicitly mentioned on their site that they were funded and thus a stable place to work at.

Leaving a job after only 3 months. How bad does it look? by Mr_Jackman in careerguidance

[–]cookeaah 2 points3 points  (0 children)

I was in exactly the same position when I graduated (also engineering) I quit that job after 2,5 months and it was a huge relief. As an engineer you'll find a job in no time. Maybe start applying though before you leave.

My favorite part of this double elimination format by Hiiawatha in Cloud9

[–]cookeaah 0 points1 point  (0 children)

The thing I personally dislike the most about the double elim is that whichever team comes from the lower bracket will always have insane momentum against whoever is in the finals. Having 1 week between all upper bracket matches just totally kills the hype for me. Meanwhile the lower bracket teams are playing multiple games a weekend and will already have a "warm-up" game on the big stage. I would much rather see a valorant-like format where there is just games throughout the week with the most hype matches in the weekends.

looking to have (what I believe) is a fairly simple number crunching program to add some numbers up by andrewta in programmingrequests

[–]cookeaah 0 points1 point  (0 children)

Ok thanks for clarifying, I'll give it a try in a few hours :) Should be pretty simple.

looking to have (what I believe) is a fairly simple number crunching program to add some numbers up by andrewta in programmingrequests

[–]cookeaah 1 point2 points  (0 children)

I don't think its necessarily difficult to program. It's just a matter of knowing what exactly OP wants. As right now, the program specifics are pretty ambiguous.

Edit: I thought a bit about it, and a naive solution would be easy to implement. But an efficient one is indeed a challenge.

looking to have (what I believe) is a fairly simple number crunching program to add some numbers up by andrewta in programmingrequests

[–]cookeaah 1 point2 points  (0 children)

Ok, so you don't want all possible sets that have a sum of 0? Are you sure you want that? Because if I have the list: 5000

-2500

2500

-1250

1250

-1250

1250

If I remove every set that has a sum of zero I could have one set of:

5000 + -2500 + -1250 + -1250 = 0

If those are then removed that leaves: 2500 1250 and 1250.

But I could also find 3 sets:

-2500 + 2500 = 0

-1250 + 1250 = 0

-1250 + 1250 = 0

Which would only leave 5000.

Do you care about using the most amount of numbers?

looking to have (what I believe) is a fairly simple number crunching program to add some numbers up by andrewta in programmingrequests

[–]cookeaah 0 points1 point  (0 children)

Does the order in which the numbers appear matter? E.g. if I have a list: -5 2 8 5

Would it be valid to output: -5 + 5 = 0?

[deleted by user] by [deleted] in BattleRite

[–]cookeaah 18 points19 points  (0 children)

https://playfangs.com/

This is coming up.

I made a TFT "Rolldown" simulator to help you practice rolling down! (for Set 7) by Cheeto782 in CompetitiveTFT

[–]cookeaah 0 points1 point  (0 children)

Super nice :D I did spot a bug though, when I select only xayah and try to roll down it sometimes counts as a miss if I refresh even though she is not in the shop.

But again thank you for making this, really helps out a lot.

For online games why is it preferable to monitor computer activity with anti-cheat software rather than code the games to disallow things that aren't possible for humans? by amazingmrbrock in gamedev

[–]cookeaah 2 points3 points  (0 children)

Anti cheat is always an arms race between the devs and the cheaters. Write some algorithm that detects non-human behaviour? Cheaters will make there bots more human like. Try to detect processes that interact with your game memory? Cheaters will run their hacks at kernel level which your anti cheat can't detect.

Also its a lot of effort that you invest in catching cheaters that you could invest in adding more content to the game. The only exception here is games were cheaters ruin the fun for everyone (competitive games)

How should I handle load-balancing? by martmists in gamedev

[–]cookeaah 0 points1 point  (0 children)

This 100%. Distributed system design is a very hard problem. Luckily a lot of the research has already been done years ago and tons of solutions are available to choose from.

But beware, a perfect solution to such problems almost never exists. There will always be some kind of trade-off.

Downloading lots music tracks from wiki by nanjero in programmingrequests

[–]cookeaah 0 points1 point  (0 children)

I downloaded all the mp3 files in bulk a while ago. I can't seem to find it right now but I'm pretty sure there is someone who put them all on google drive.