Thread 714757167 - /v/ [Archived: 545 hours ago]

Anonymous
7/7/2025, 10:46:26 AM No.714757167
piratecoding
piratecoding
md5: e6cc8623ae8dab0d3fc7e982b54baf81๐Ÿ”
>7 years at Blizzard
Replies: >>714757691 >>714757703 >>714757756 >>714757825 >>714758193 >>714759102 >>714760146 >>714760498 >>714760624 >>714760675 >>714760818 >>714760854 >>714761353 >>714761804
Anonymous
7/7/2025, 10:47:25 AM No.714757224
I don't understand anything. What's happening?
Replies: >>714759340 >>714760906
Anonymous
7/7/2025, 10:47:46 AM No.714757239
He worked in security at Blizzard iirc so I image he didn't actually code anything and was just responsible for protecting the breastmilk fridge.
Replies: >>714760498 >>714761426
Anonymous
7/7/2025, 10:48:58 AM No.714757312
chinaman
chinaman
md5: 1393462bc6e387e67cdb24fa93bd3d86๐Ÿ”
>OH MY GOD LOOK AT WHAT MY INTERNET BOYFRIEND DID ON STREAM TODAY
Anonymous
7/7/2025, 10:52:59 AM No.714757519
ckULPDZ
ckULPDZ
md5: 98de68015df397cf2ed7ffeca07b0f8a๐Ÿ”
OK, this is hilarious.
Replies: >>714757849 >>714759761 >>714759875 >>714760146 >>714760535 >>714760783 >>714761121 >>714761635 >>714761861
Anonymous
7/7/2025, 10:56:25 AM No.714757691
hi there
hi there
md5: 42b7e10320d62e6ff9c417ae0bebb127๐Ÿ”
>>714757167 (OP)
What did you want him to do exactly?
You just made the list bud. Enjoy it.
Anonymous
7/7/2025, 10:56:37 AM No.714757703
>>714757167 (OP)
And yet he's making a (shitty) gaem and you're doing nothing with your life
Replies: >>714757873
Anonymous
7/7/2025, 10:57:39 AM No.714757756
12314123231
12314123231
md5: cd9fe91b4976272df1be4a381fd1b3fd๐Ÿ”
>>714757167 (OP)
>look up his game
>its a undertale ripoff
That's exactly what I imagine a bisexual furry would be into.
Anonymous
7/7/2025, 10:58:46 AM No.714757825
>>714757167 (OP)
why don't they just program a graph structure and use blueprints for dialogue trees
that's one of the best ways to do branching dialogue
you can even have a system to check if you have loops
this is first year CS major shit never trust self taught "cybersecurity" (aka IT) shmucks
Anonymous
7/7/2025, 10:59:36 AM No.714757849
>>714757519
Can you explain for the non-educated?
Replies: >>714757960 >>714758539 >>714759124 >>714759374 >>714759656 >>714760496 >>714761789
Anonymous
7/7/2025, 11:00:06 AM No.714757873
>>714757703
T. Jason
Anonymous
7/7/2025, 11:01:52 AM No.714757960
>>714757849
it's like fisher price programming. that kind of verbose, easily readable english code is inefficient and amateurish in comparison to lower level languages like c++
Replies: >>714758534 >>714759446 >>714759491 >>714759691
Anonymous
7/7/2025, 11:04:02 AM No.714758059
game maker sucks, but there's no reason he should be using it anyway.
Anonymous
7/7/2025, 11:07:21 AM No.714758193
>>714757167 (OP)
which twitch streamer are you worshipping tonight, OP?
Anonymous
7/7/2025, 11:14:13 AM No.714758534
>>714757960
That code is valid C (or C++) syntax you retard.
Yes I know it's GML that doesn't change what I said.
Anonymous
7/7/2025, 11:14:17 AM No.714758539
>>714757849
It's basically the most naive possible implementation of how to get a video game to output different text during different "events". Like lets say you have an RPG and you want some NPCs to all have unique dialogue if the MC walks up and talks to them, pretty standard right? Well this guy decided that rather than having some sort of event handler that matches NPCs to dialogue lines in a text file somewhere, he'd rather just put dialogue from every NPC into a gigantic internal data structure. Functionally, it does what you want it to do, but from a design perspective it's like buying a steamroller to iron your clothing. It's just inefficient in so many ways. Worst of all, maintaining it is a huge pain in the ass because it's this huge monolithic thing rather than any more compartmentalized or elegant system. What's worse is that, if I'm reading his comments correctly, there's branching dialogue based on either player input or flags previously set. So this gigantic array is probably referencing some other gigantic array of global flags.

tl;dr this is amateur hour bullshit and if his code is generally like this it's no wonder the game has spent 8 years in development with very little to show for it.
Replies: >>714759140 >>714759340 >>714759491 >>714760550
Anonymous
7/7/2025, 11:21:40 AM No.714758878
This thread is full of kids who think lambdas are so cool because it obfuscates their code when thatโ€™s the last thing you want.
Anonymous
7/7/2025, 11:24:16 AM No.714759025
What would u programmer niggas do? My jeet code ass would probably do something similar, but make a file for each character.
Replies: >>714759447 >>714759602 >>714759739 >>714760039
Anonymous
7/7/2025, 11:25:30 AM No.714759086
2nd year cs degree here
my retarded boomer prof would scream at me if I ever wrote shit like that
I'm still a nocoder and have no idea what I'm doing btw
Anonymous
7/7/2025, 11:25:50 AM No.714759102
>>714757167 (OP)
>python for gamedev
OOF
Anonymous
7/7/2025, 11:26:18 AM No.714759124
>>714757849
in programming you sometimes want a list of related things.
we call one popular version of that list, an "array".
the most common form of an array, is a list of individual characters that make up a person's name
"John", as an array would look like: ['J', 'o', 'h', 'n']
arrays come with a way to get an individual item, we call that Indexing.
to get the 'J' in "John", you'd index into its first element with: [0]
to index into the second element you do: [1]
With this info, you can now deduce that Roach Man has one giant array to maintain his story. For extra credit, you can think about how he's going to deal with story edits and the effect those have on that giant array.
Replies: >>714759270 >>714759491
Anonymous
7/7/2025, 11:26:38 AM No.714759140
>>714758539
Thank you anon, very informative.
Anonymous
7/7/2025, 11:28:52 AM No.714759270
>>714759124
Sounds normal and efficient to me
Replies: >>714759648 >>714759707
Anonymous
7/7/2025, 11:30:11 AM No.714759340
>>714757224
people who want to shit on him but dont understand code are nitpicking.
ultimately they are mad he didn't use enum and used integers with comments he can quickly find explaining what the integers do.

>>714758539
no, his game has spent 8 years in development because he unironically doesnt fucking work on it, from what people have said who watch his streams.
he just doesnt fucking work.
Replies: >>714759971
Anonymous
7/7/2025, 11:30:53 AM No.714759374
>>714757849
>
There isn't really anything hugely wrong other than not naming his constants.
Anonymous
7/7/2025, 11:32:13 AM No.714759446
>>714757960
it has nothing to do with the language more his lack of abstraction & hard coding of values, i.e. lacking loops and directly accessing indexes instead of using a data structure or class
Anonymous
7/7/2025, 11:32:13 AM No.714759447
>>714759025
I would have broken up the sections of game into what I wanted and looked at the most efficient way to code them for the language I chose, which in my case would be C++

the dialogue would depend entirely on how I wanted it to flow as well.
I wouldn't do it his way, but I can see why he did it that way.
Anonymous
7/7/2025, 11:33:04 AM No.714759491
>>714757960
>>714758539
>>714759124
Any guides now how i can get into programming?
I have a few game ideas
Replies: >>714759691 >>714759701 >>714759707 >>714759797 >>714760174 >>714760403 >>714760564 >>714761467 >>714761524
Anonymous
7/7/2025, 11:35:16 AM No.714759602
>>714759025
He's using hard coded indices all around so the first step would probably be to create some abstraction to handle a generic piece of dialogue and scripted story sequence. Depending on how much specialized logic is required you could probably feed this in from JSON even. Bethesda games do something like this rather than hard coding every interaction.
Anonymous
7/7/2025, 11:36:13 AM No.714759648
>>714759270
Ok now you need to add a line or two near the beginning of the game, now fix every other index to this single array
Replies: >>714759708
Anonymous
7/7/2025, 11:36:23 AM No.714759656
>>714757849
its a big array of flags for various events happening.
most people are either bitching because they don't understand but its fun, or because it doesn't match how they were taught.

the thing is, is that you can code a lot of stuff in fairly shit ways for a game on the level of what he is making (an undertale-ish game).
which is, EXACTLY what Toby Fox did when he made Undertale itself. The game was horribly coded, but he shit out the game itself fast, had it complete, and had a number of fun things in it.

There is far more to shit on pirate for not looking into more efficient ways to do his shit and simply NOT WORKING on his shit because he has spent like 8 times as long as toby did and the game isnt done.
Replies: >>714759783
Anonymous
7/7/2025, 11:37:06 AM No.714759691
>>714757960
if you don't know shit about coding you better shut your mouth retard.

>>714759491
coding is easy, being productive is the issue and following through with a 1-2 years project
Replies: >>714759936
Anonymous
7/7/2025, 11:37:13 AM No.714759701
>>714759491
It depends what kind of game you want to make. Undertale has some really bad code but it's a great game. On the other hand if you want to program an optimized game with a 3d world that's probably not something you should try to do as a solo dev even with experience. I would say just do a basic game dev course & pick up programming as you go.
Replies: >>714759936 >>714760197
Anonymous
7/7/2025, 11:37:25 AM No.714759707
>>714759270
the problem is more on the maintaining and error-prone nature of his approach.
It's extremely rigid, easy to mess up, and exhausting to extend.
But then again, Game Maker is extremely limited and encourages this type of code anyway.
>>714759491
For games, C#
avoid videos, read books
If you hate dry reading, try "c# players guide"
if you don't mind dry reading: Pro C# by Andrew Troelsen
Replies: >>714759936
Anonymous
7/7/2025, 11:37:27 AM No.714759708
>>714759648
>Presses enter twice where the code begins
There
Replies: >>714760242
Anonymous
7/7/2025, 11:38:12 AM No.714759739
>>714759025
Well I'm not a game dev, and to be charitable developing video games is genuinely pretty difficult compared to a lot of enterprise work, but dialogue systems are more or less a solved problem. NPCs have been talking at you when you pressed A since the NES era after all. Modern game engines have specific scripting languages built in that let you set up a neat and efficient dialogue system, including flags, trees, etc. But even if you had to do it all from scratch the basic system would likely be some kind of Dialogue ID system that references an external JSON file.

So you'd have something like Player talks to NPC->Code checks NPC's dialogue ID->Engine retrieves text from JSON file containing matching dialogue ID->Displays dialogue from file.

This is similar to having a big fuckoff array, but is superior in two major ways. One; the hierarchical nature is way easier to debug/maintain, and two; it's much more space efficient. Storing a massive array of strings in live memory is much more wasteful than storing a couple dozen kilobytes of dialogue on disc. 1 byte of cache memory is much more valuable than 1 byte of storage space.

But even this is just a simple refactoring. The underlying problem of dialogue being this huge branching structure that can grow exponentially is still there. Ideally, you'd want some kind of tool or scripting system that is purpose-built to make dialogue easy to associate with events/actors, and easy to modify by viewing that event/actor. This is obviously a lot harder and requires more up-front work, but fuck me RPGmaker figured it out in the early 2000s and I wouldn't want to write a really dialogue heavy game without something like this.
Replies: >>714759881 >>714761750
Anonymous
7/7/2025, 11:38:27 AM No.714759761
>>714757519
nightmarish
Anonymous
7/7/2025, 11:38:59 AM No.714759783
>>714759656
The difference is that Toby Fox does not claim to be an authority with X years of game dev experience. The game he made was done in 2 years and it's good for what it is. The issue with pirate software is that he claims to be authoritative and he acts like his experience in QA, and IT (cybersec) has anything to do with computer science or game development (programming), it doesn't, and it's clear from his code. It'd be fine if he sucked at coding and never made those claims or tried to treat his QA/cybersec work as software dev exp, which it's not.
Replies: >>714759930 >>714760621
Anonymous
7/7/2025, 11:39:15 AM No.714759797
>>714759491
personally speaking as a noob I would recommend some basic stuff to understand how to think about programming first.
if you want to skip into game development you would want something lighter but it might hamper you in the long run.

If you want to really go into it, I would go for a grounding in object oriented programming using something core like C++, maybe C and then C++.
there are entire college courses for programming in multiple languages on youtube itself, and a lot of documentation on how to do things in various ways, and WHY you would want to use them to do that.

its a very self-discipline-intensive process because you need to keep yourself working and keep learning.
Anonymous
7/7/2025, 11:40:44 AM No.714759875
>>714757519
Why?
You can represent the story of your game as a graph and the progress of a player as a set of the visited nodes.
In this screenshot the storyline_array is the set of visited nodes. The only problem I see is that he should have an enum with a named value for each node in the story graph.
How would you track a players story progress?
Replies: >>714759949 >>714761030 >>714761501 >>714761635
Anonymous
7/7/2025, 11:40:49 AM No.714759881
>>714759739
Don't forget it lets you build tooling for non-developers. The creation engine for Morrowind, Oblivion, FO3, FNV and Skyrim did this and it's part of why their modding scene was so strong.
Replies: >>714760441
Anonymous
7/7/2025, 11:41:57 AM No.714759930
>>714759783
I completely agree with everything you say.
I am just an autist and its annoying to see people get shit wrong about the stuff pirate has touched because its HIM touching it.
Like when people try to compare him to yandere-dev.... it almost feels like its cheapening just how catastrophic everything with yandere-dev was, and I only know SOME of that story.
Replies: >>714760241
Anonymous
7/7/2025, 11:42:03 AM No.714759936
>>714759691
>>714759707
Thank you
>>714759701
Some sim game about what if earth was taken over by aliens and (Yiu) were put in charge of the quisling goverment.
Most of the game is going to be about keeping control, trying to stop rebels, keeping your local forces and pops loyal and crushing the last few old order army cells that have yet to get the memo that the war is over, while also having to bootlick and do the task your overlorde spared humanity to do
Replies: >>714760049
Anonymous
7/7/2025, 11:42:23 AM No.714759949
>>714759875
Because pirate software has no real game dev or programming exp. He claims his QA/"cybersecurity" exp was game dev exp. He has no formal CS training, and clearly knows very little about coding. His github has no public repos.
Replies: >>714759992
Anonymous
7/7/2025, 11:42:59 AM No.714759971
>>714759340
if he changes a value, he'll have to go through changing it everywhere and probably miss half the references. The best way to maintain event driven dialogue is to separate dialogue from event driven architecture. Dialogue is built from current state rather than "if event is this, then this is the dialogue". It will also be much easier building test cases when you can build the state in a structured way
Replies: >>714760313
Anonymous
7/7/2025, 11:43:22 AM No.714759992
>>714759949
Did you mean to reply to me? Your post is entirely unrelated to mine.
Replies: >>714760096
Anonymous
7/7/2025, 11:43:43 AM No.714760004
Is this equal to yandere dev coding skill?
Anonymous
7/7/2025, 11:44:28 AM No.714760039
>>714759025
define an enum of player choices
record each choice into a hash table (Kind of overkill but oh well)
give the player struct a game_choices hash table
That way, the choices are independent of everything else and can be modeled or extended easily
Anonymous
7/7/2025, 11:44:46 AM No.714760049
>>714759936
If you want to make a game like XCOM that'd be very CS heavy and I'd recommend reading a textbook on C++ that involves OOP and doing a few intro projects before tackling that, and also try making simpler games to begin. If you want to make an RPG maker game go do it and figure it out as you go.
Replies: >>714760623
Anonymous
7/7/2025, 11:45:57 AM No.714760096
>>714759992
i was explaining why his code fucking sucks lol
Replies: >>714760196
Anonymous
7/7/2025, 11:46:59 AM No.714760146
>>714757167 (OP)
>>714757519
Legit nothing wrong with that code. There are plenty of legitimate reasons to shit on this ferret fucking roach, but this isnt one of them.
Anonymous
7/7/2025, 11:47:51 AM No.714760174
>>714759491
Getting "in" to programming is kind of tricky because what you should study really depends on what you want to do for your game. For a 3D game I'd argue it's actually worth making sure you understand some pretty high level math, at least on a practical level. Quaternions and delta T shit in 3D games genuinely involves college level mathematical concepts. For just programming, I'd recommend w3schools as a total beginner. It's nice to be able to read a lesson and mess around in a code editor, though I should say they only really cover the basics. Try out the C++ or C# tutorials on that site, a lot of game engines use C# but C++ is pretty similar and a generally good language to know.

After you feel you have a good grasp of the basics I'd recommend just trying to make a basic game. Nothing too crazy or complicated, think free flash games. The process of trying to make that game will let you know what you still need to learn and hopefully give you some practical problem solving experience. Above all, remember that programming is really just about learning to solve problems. Don't focus on memorization, learn how to think about problems in the abstract.
Anonymous
7/7/2025, 11:48:07 AM No.714760192
As someone wrote in the youtube comment section

Pirate software has 42 years worth of 6 months experience jobs
Anonymous
7/7/2025, 11:48:11 AM No.714760196
>>714760096
You weren't. You are a clueless retard that shitd on everything piratesoftware (not that I disagree with that).
It is clear that you know even less of programming than piratesoftware does.
Anonymous
7/7/2025, 11:48:12 AM No.714760197
>>714759701
>really bad code
the irony is that most people who complain about bad code never finished a game. No matter how many object factory interfaces you create and design patterns you use or how optimized your code is.
You are only slowing yourself down thinking about those things too much
Replies: >>714760348 >>714760458
Anonymous
7/7/2025, 11:49:10 AM No.714760241
>>714759930
>Like when people try to compare him to yandere-dev.... it almost feels like its cheapening just how catastrophic everything with yandere-dev was, and I only know SOME of that story.
Yanderedev's game is more ambitious and has more frequent updates than Jason "I worked at Blizzard for a thousand years" Hall's quirky 2d undertale clone
Replies: >>714760313
Anonymous
7/7/2025, 11:49:11 AM No.714760242
>>714759708
gz you now need to edit every hard coded value in the entire code base related to that index to add 2 & hope you didnt fuck up and add a bug
Replies: >>714760419
Anonymous
7/7/2025, 11:50:32 AM No.714760313
>>714759971
anon... you can track that fairly easily with the ctrl+f keys, among other things.
I aint arguing about the difficulty in adding more to the middle of it though.
If he commits to a story and refuses to change it I would say its actually fine.
A bad habit, but fine.

>>714760241
his fuckups are FAR more spectacular as well.
pirates shit is tame in comparison. he is just lazy.
Replies: >>714760407 >>714760557
Anonymous
7/7/2025, 11:51:32 AM No.714760348
>>714760197
you have a point but pirate has ALSO never finished a game.
Replies: >>714760505
Anonymous
7/7/2025, 11:51:39 AM No.714760351
1748229578083704
1748229578083704
md5: f3ffb6f9037de2c2ff4e795b5b2f48ab๐Ÿ”
i just beat his gay game and holy shit was it bad.
Anonymous
7/7/2025, 11:52:51 AM No.714760403
>>714759491
Follow youtube tutorials. Maybe do some webpages with javascript on them - even if you don't want to get into webdev, doing shit on pages is easy because all you need is your browser and notepad. The idea is to get programming concepts down, and javascript is as simple as it gets.

Though install something like Visual Studio Code, don't actually just use the windows notepad.
Anonymous
7/7/2025, 11:52:57 AM No.714760407
>>714760313
sometimes you might have spaces between operators, or different case for your variable names in different pages that have been written months apart. Relying on ctrl+f is exactly how you miss multiple references
Replies: >>714760515
Anonymous
7/7/2025, 11:53:26 AM No.714760419
>>714760242
You'd put it at the end of and array. Why would you put it at the start?
Anonymous
7/7/2025, 11:54:01 AM No.714760441
>>714759881
Yes, this is another big advantage. Even beyond modding, small indie developers might amass a creative team, like having a writer with no coding experience. With a monolithic array system, translating their dialogue into actual game code would take forever and you'd have to do it by hand. With a scripting system, they could likely be trained to do it themselves inside an afternoon. This also has knock-on effects for selling games worldwide if your game gets popular enough. Translations are important if you want to have a global audience, and the easier they are the better.

Basically, as a programmer you want to build systems that are easily changed, because a majority of work in a codebase is maintaining that code. Writing a naive solution to a recurring problem comes back to bite you in so many ways.
Anonymous
7/7/2025, 11:54:20 AM No.714760458
>>714760197
Yeah I don't want to be a game dev and I haven't spent 10 years on one that will never come out tho.
Bugthesda (joking) spent a lot of time thinking about their dialogue system & how to track player narrative state and it paid off for them, that was apparent when I made mods and they had tons of non-developer tooling that required zero scripting.
Anonymous
7/7/2025, 11:55:11 AM No.714760496
>>714757849
midwits learn "how it is supposed to work" and then REEE when people do things in their own way because that makes them feel clever. IT is filled with these retards.
Replies: >>714760716
Anonymous
7/7/2025, 11:55:19 AM No.714760498
>>714757167 (OP)
I know nothing about programming so I can't see anything wrong here
>>714757239
Even IT security requires programming
Replies: >>714761426 >>714761642
Anonymous
7/7/2025, 11:55:22 AM No.714760505
>>714760348
he has that rpg maker breakfast game
Anonymous
7/7/2025, 11:55:33 AM No.714760515
>>714760407
that sounds more like you haven't used ctrl+f properly or are inconsistent in the code formatting.
I have had to map out functions in spaghetti code that went across multiple files and ctrl+f was all I needed... but that code was consistent in its formatting despite its horrific mess.
it had a specific bit of scripting to autoformat all code to be put into the github.
Replies: >>714760831
Anonymous
7/7/2025, 11:56:05 AM No.714760535
>>714757519
I'm not a great programmer, but what would be a better way of handling a save file?
Replies: >>714760668
Anonymous
7/7/2025, 11:56:16 AM No.714760548
programming is so fucking easy you sit in a chair in air conditioning typing or baby tier logic statements and now they're all completely redundant because chatgpt can efficiently create whatever code you want. I had it make me a dynamic system objective function solver. telling it to make you some fucking game is nothing to chatgpt. how are there even coders anymore?
Replies: >>714760630 >>714760670
Anonymous
7/7/2025, 11:56:17 AM No.714760550
fucking idiot
fucking idiot
md5: 68b3fe6e5187eaa33645adeb0c234f66๐Ÿ”
>>714758539
>yeah, let's read from a text file so every time you talk to someone the game freezes for an instant to access secondary storage, with its abysmal load times, and add unnecessary overhead, instead of keeping a script less than 1mb in ram
No to defend that retard, but you imbeciles truly are something else.
Replies: >>714760656 >>714760692 >>714760720
Anonymous
7/7/2025, 11:56:19 AM No.714760557
1734502730664075
1734502730664075
md5: dd49ee2e3976b26aeffc425a902223af๐Ÿ”
>>714760313
>pirates shit is tame in comparison. he is just lazy.
I know that you don't need to be performancemaxxing in a simple 2d game, but it shows that he really doesn't have as much coding experience has he claims he does
Replies: >>714760646 >>714760785 >>714761187
Anonymous
7/7/2025, 11:56:31 AM No.714760564
>>714759491
use a combination of chatgpt and claude
Anonymous
7/7/2025, 11:56:56 AM No.714760586
>actually arguing for search-replace
good morning sar
Anonymous
7/7/2025, 11:57:42 AM No.714760621
>>714759783
Toby Fox is like a prefect example of how to start out as an indie dev. Made romhacks for years, gathering experienced, used his transferable music skills, learned how to code and draw and shit to a degree, just to have a grasp on it, decided to start out with a small, manageable game first, kept shit consistent, never feature creeped, never fell into perfectionism, good was always good enough for him, made a decent product and shipped it. And NOW, with massive critical acclaim and a good funding can he build a team and work on his (literal) dream game. Undertale is coded like shit, but it literally does not matter because its functional, playable and achieves every core goal, he spent his effort on his strengths, music and writing, not getting it to run 20% faster.
Anonymous
7/7/2025, 11:57:42 AM No.714760623
>>714760049
not that complicated
i was thinking more in style of paradox games, mixed with the very start of tyranny
Replies: >>714760696 >>714760763 >>714761610
Anonymous
7/7/2025, 11:57:43 AM No.714760624
>>714757167 (OP)
Three Big Black Defcon badges!
AND contracted by the gubment to hack a nuclear plant.
Anonymous
7/7/2025, 11:57:48 AM No.714760630
>>714760548
If you don't already know how to code and ask ChatGPT to generate something even half complex then you will get hardstuck asking ChatGPT to troubleshoot its own code in infinite loops.
Anonymous
7/7/2025, 11:58:14 AM No.714760646
>>714760557
>oh no he didn't put case 2 3 and 5 right next to each other
Readable code > compact code
Replies: >>714760695 >>714761659
Anonymous
7/7/2025, 11:58:25 AM No.714760656
>>714760550
These are the retards who complain about premature optimization when you don't want to end up with a code base that makes it so your indie game doesn't come out for 10 fucking years due to utilizing hard coded indices & dialogue in source code
they aren't even worth talking to desu
Anonymous
7/7/2025, 11:58:47 AM No.714760668
>>714760535
That's not a save file, it's an array of story flags. You could make them all enums, but the advantages are minimal. Just doing a block of them raw like that is perfectly fine as long as you comment them.
Replies: >>714761584
Anonymous
7/7/2025, 11:58:48 AM No.714760670
>>714760548
>how are there even coders anymore?

because actual act of writing code is the easy part. Workarounds and working around workaround and getting security to fuck off is what the job is actually about.
Anonymous
7/7/2025, 11:58:55 AM No.714760675
>>714757167 (OP)
There's nothing wrong with this, you don't even understand what's going on.
Anonymous
7/7/2025, 11:58:59 AM No.714760679
why is modern /v/ so obsessed with ecelebs? did people from kiwi just come over here at some point? how do you spend all day obsessing over someone online lol
Anonymous
7/7/2025, 11:59:12 AM No.714760692
>>714760550
1. not how it works, you load it into memory once when your game starts
2. you do it in a text file so when you do Chinese localization you can just put a different file there instead.
Replies: >>714760735
Anonymous
7/7/2025, 11:59:24 AM No.714760695
>>714760646
i'd argue it's less readable than if he had made it more compact
Anonymous
7/7/2025, 11:59:25 AM No.714760696
>>714760623
paradox games are extremely complicated
Replies: >>714761236
Anonymous
7/7/2025, 11:59:56 AM No.714760716
>>714760496
this
Anonymous
7/7/2025, 11:59:59 AM No.714760720
>>714760550
And how do you know he's reading from a text file every time, instead of keeping this array stored in memory?
Anonymous
7/7/2025, 12:00:01 PM No.714760725
1730116211374821
1730116211374821
md5: 43c1e4801539342768129d3cddf7d851๐Ÿ”
THE FUCK YOU DOING NIGGA!!!!
Replies: >>714760776 >>714760810 >>714760841
Anonymous
7/7/2025, 12:00:16 PM No.714760735
>>714760692
>he's a chink shill
Anonymous
7/7/2025, 12:01:02 PM No.714760763
>>714760623
>i was thinking more in style of paradox games
Those are extremely complicated. Modding the existing games is not complicated, but the creation and optimization of a game engine that can handle thousands of provinces, characters, events/checks etc every day is complicated.
Replies: >>714761236
Anonymous
7/7/2025, 12:01:18 PM No.714760776
>>714760725
Is he storing choices in this giant array too?
Replies: >>714760812 >>714760814 >>714760908
Anonymous
7/7/2025, 12:01:24 PM No.714760783
>>714757519
he even stole how toby fox writes code
Anonymous
7/7/2025, 12:01:27 PM No.714760785
file
file
md5: 7edd14d218dadcedcc505e1075d6c9ce๐Ÿ”
>>714760557
true, and I will NEVER argue against that or him being a pretentious dick.
its just... I don't see him doing shit like THIS, you know?
Replies: >>714761471
Anonymous
7/7/2025, 12:01:49 PM No.714760810
>>714760725
Looks like a stub anon. Its not particularly egregious to leave blank switch cases if there's a good chance you will put something in them eventually.
Anonymous
7/7/2025, 12:01:51 PM No.714760812
>>714760776
he's storing literally all story related state in that array
Anonymous
7/7/2025, 12:01:52 PM No.714760814
>>714760776
yes he is doing that, thats how he stores all choices
Anonymous
7/7/2025, 12:02:01 PM No.714760818
>>714757167 (OP)
i program every day but ive never coded a story or dialog system so i cannot tell whats wrong with this sorry
Anonymous
7/7/2025, 12:02:24 PM No.714760831
>>714760515
it's nothing to do with "using ctrl+f" properly, using ctrl+f to search for magic numbers spread all over the codebase and where they might be used and referenced in multiple different ways. It is long term pain and will break things because you missed it somewhere
Replies: >>714761074
Anonymous
7/7/2025, 12:02:40 PM No.714760841
>>714760725
Are you just watching his stream to get mad at something?
Replies: >>714760878
Anonymous
7/7/2025, 12:02:53 PM No.714760854
1742979817107893
1742979817107893
md5: 3bafdff287b71d2e9938c59832c4a02c๐Ÿ”
>>714757167 (OP)
Average /v/irgin dropped out of university after 1 year and is unable to tell why EvaXephon's huge if/else statements were actually bad.
Replies: >>714760946
Anonymous
7/7/2025, 12:03:24 PM No.714760878
>>714760841
it's in the OP
Anonymous
7/7/2025, 12:03:47 PM No.714760906
>>714757224
One of the most obvious signs of a beginner is the Magic numbers abuse. He does it everywhere. In switch statements, in indexes, in values, everywhere. All meaningless gibberish.

It's EXTREMELY BAD having magic numbers in code because the author and committer of the magic numbers is the only one who knows what they mean.

And he does it constantly. As a new programmer and still learning, always focus on trying to make your CODE the documentation.

99% of the time if you write a code comment or a docstring, you can most likely have made a more verbose explicit function or variable. Comments are to be put in only if absolutely necessary as you may be doing something non-standard that is hard to explain through code (e.g. retrying 6 times on a REST request or something funky).

Looking at his screenshot, he's doing quite literally one of the worst possible things he could do. It's unbelievably hard to read, maintain and expand on.
Replies: >>714761034 >>714761121 >>714761170
Anonymous
7/7/2025, 12:03:51 PM No.714760908
>>714760776
Really hard to know what this does without proper context, but judging by it only being 60 lines long it's probably not.
Replies: >>714761041
Anonymous
7/7/2025, 12:04:34 PM No.714760946
>>714760854
when you learn how to do something properly you realize almost everyone on the internet is fucking retarded and/or a fraud
Anonymous
7/7/2025, 12:05:00 PM No.714760971
i love that this thread exposes actual pirate fanboys
imagine being (you) in 20fucking25
Replies: >>714761102
Anonymous
7/7/2025, 12:05:52 PM No.714761030
>>714759875
because the array coordinates of your gamestates being a fucking magic number that only exists in code is nightmarish to maintain and all around retarded. Just parse a json like a normal fucking person for your static data
Replies: >>714761257
Anonymous
7/7/2025, 12:05:53 PM No.714761034
>>714760906
I have been doing programming for 9 years now and yeah, magic numbers are bad, but in reality everyone does them. You will just not bother for 90% of menial cases where you know the number might as well be a constant, it's not a good indicator of experience.
Replies: >>714761670
Anonymous
7/7/2025, 12:06:01 PM No.714761041
>>714760908
The array is at least 368 lines long based of that screenshot
Replies: >>714761142
Anonymous
7/7/2025, 12:06:39 PM No.714761074
>>714760831
it sure seems like it is ctrl+f to me.
I wouldnt be looking for magic numbers though.
I would look for the bits of code where he references the array itself.
the contents can be as magic as they want but that array name WILL pop up.
the other thing, and I don't know if he did this
but if I was insisting on doing things like that with the damn numbers I would also be putting comments where I use those magic numbers, explaining what story flag was being messed with.
and I would ctrl+f for those.

ah well, its still not how I would do it in the first place so its me grasping for fucking straws.
Anonymous
7/7/2025, 12:07:05 PM No.714761102
>>714760971
I love a good lolcow but he already has plenty of dumb reasons to laugh at him, we really don't need to grasp at straws like these.
Anonymous
7/7/2025, 12:07:33 PM No.714761121
>>714760906
I bet even he doesn't know what the numbers mean and constantly has to reference the file with comments
>>714757519
Replies: >>714761182
Anonymous
7/7/2025, 12:08:00 PM No.714761142
>>714761041
I figure it would be way longer than that if he really handled every single story decision inside one script, but I also don't know how he handles that in the first place.
Replies: >>714761181 >>714761274
Anonymous
7/7/2025, 12:08:43 PM No.714761170
>>714760906
no one taught him enums exist, and that he could just Dictionary<StoryEventEnum, bool>
Replies: >>714761446
Anonymous
7/7/2025, 12:08:56 PM No.714761181
>>714761142
>I figure it would be way longer than that if he really handled every single story decision
the game is only 2~ hours long
Anonymous
7/7/2025, 12:08:57 PM No.714761182
>>714761121
he has drawn that shit out for so many years he would be even stupider NOT to reference everything with comments.
Anonymous
7/7/2025, 12:08:59 PM No.714761184
he was employed at Blizzard, you weren't
his code just works, your """Clean"""""""""""" code doesn't (exist)

that's all you need to know
Anonymous
7/7/2025, 12:09:07 PM No.714761187
>>714760557
it'd compile to the same -O assembly anyway
also you'd probably want to keep it separated for debug anyway
Replies: >>714761278
Anonymous
7/7/2025, 12:10:13 PM No.714761236
>>714760696
>>714760763
i was thinking a overmap but not really provinces just regions like wester europe, eastern, japan, china, na etc
the events and characters somewhat is what i really want to focus on
is it hard to code it?
Replies: >>714761424 >>714761485
Anonymous
7/7/2025, 12:10:38 PM No.714761257
>>714761030
>json
you want a binary format pajeet
Replies: >>714761329
Anonymous
7/7/2025, 12:11:02 PM No.714761274
>>714761142
Hes only made 3h of game in 8 years
Anonymous
7/7/2025, 12:11:06 PM No.714761278
>>714761187
the real noob trap is allowing switch statements in your codebase at all.
one missed break; and you have an invisible bug impossible to find.
Replies: >>714761437
Anonymous
7/7/2025, 12:12:13 PM No.714761329
>>714761257
>binary format for static dialog data
shut the fuck up you subhuman retard
Replies: >>714761505
Anonymous
7/7/2025, 12:12:46 PM No.714761353
>>714757167 (OP)
he was in charge of the breastmilk fridge
Anonymous
7/7/2025, 12:12:54 PM No.714761361
1739606993392919
1739606993392919
md5: e91831dd7eb5980f8187c914d9893e08๐Ÿ”
>meanwhile paracuckz
now tell me which is a better solution, an array or a mess like picrel
Replies: >>714761420
Anonymous
7/7/2025, 12:14:12 PM No.714761420
>>714761361
What's the problem here? It's a map split up into territories
Anonymous
7/7/2025, 12:14:16 PM No.714761424
>>714761236
Like risk but with characters and events? Then that's not very hard
Replies: >>714761523
Anonymous
7/7/2025, 12:14:16 PM No.714761426
>>714757239
>>714760498
He did NOT work in security anything, Jason was a fucking QA tester
Anonymous
7/7/2025, 12:14:31 PM No.714761437
>>714761278
exhaustive switches are nice, switches are pretty standard for any programming language's tokenizer as well.
Replies: >>714761717
Anonymous
7/7/2025, 12:14:42 PM No.714761446
>>714761170
The way GMS is now, yeah, you can probably store all relevant data and even functions inside structs and then call those as necessary, but there are some disadvantages with that, like potential scope fuckery. This is also relatively recent functionality for GMS, so chances are good he's established the hacky megaswitch script before that was a thing and ultimately, unless he calls this script like 1000 times every frame its entirely a moot point and the only issue there is of readability.
Anonymous
7/7/2025, 12:14:51 PM No.714761457
ecelebs just shouldn't share their code online
it's going to be used against them at some point, same thing happened to yandere guy
Replies: >>714761554
Anonymous
7/7/2025, 12:14:58 PM No.714761467
1746402049333035
1746402049333035
md5: faafce6da54f8fdaa4cd06acdcb27b9c๐Ÿ”
>>714759491
Assembly.
jk, C or C++ is usually a good starting point
Anonymous
7/7/2025, 12:14:59 PM No.714761471
>>714760785
What would lead someone to do this?
Replies: >>714761621
Anonymous
7/7/2025, 12:15:20 PM No.714761485
>>714761236
It depends how you choose to make it.
Europea Universalis, Hearts of Iron, and especially Victoria are very complicated with lots of edge cases because the AI should in theory be able to do everything the player can. It's not too complicated to spawn stupid barbarians like in civ.
Anonymous
7/7/2025, 12:15:33 PM No.714761501
>>714759875
have fun debugging that shit
Anonymous
7/7/2025, 12:15:41 PM No.714761505
>>714761329
>i want less efficient code!
sar please, it's not hard to learn binary formats. They're quite nice for save systems.
Anonymous
7/7/2025, 12:15:48 PM No.714761514
ps2
ps2
md5: 764c3a0c932931f88e22477360a76288๐Ÿ”
Anonymous
7/7/2025, 12:15:58 PM No.714761523
>>714761424
yeah probably something like that but more detailed
Anonymous
7/7/2025, 12:15:58 PM No.714761524
>>714759491
Just pick up Unity, Godot, or Gamemaker, watch a tutorial or few on how to do the basics, and then google things as you go along.
Anonymous
7/7/2025, 12:16:43 PM No.714761554
>>714761457
Eh, your achievements overshadow your shit code.
Blow's code is pretty horrid, but it's not worth arguing about because he's actually done and made impressive things.
Anonymous
7/7/2025, 12:16:50 PM No.714761559
ps
ps
md5: 44265f189c802a92fedb0d502e4384ae๐Ÿ”
Anonymous
7/7/2025, 12:17:28 PM No.714761584
>>714760668
no, the benefits of using enums is significant.
they are readable, they offer one source of truth (comments end up being outdated), they give you ide support (find where an enums was used) and as opposed to using raw integers making changes is unproblematic.
there are no downsides, so you have to be retarded to not use them.
Anonymous
7/7/2025, 12:18:11 PM No.714761610
>>714760623
>i was thinking more in style of paradox games
Depends on how much you want to simulate and how deep your systems go. Basic management games are actually pretty simple to code, and something like the tax system from EU4 is basically a simple mathematical equation that the game checks periodically. And not hard math either IIRC it just adds up all the development in your country that contributes to tax revenue, adds relevant modifiers, and outputs that as added ducats every month.

So similarly if you had something like "Compliance" you could just have a basic equation that updates every given period of time, and that number influences other events like chances of rebel uprisings and their severity. You'd have some kind of base percentage number that is added/multiplied by stuff the player does. So a successful crackdown could give +25% "Compliance", and maybe you'd have some kind of automatic decay to light a fire under the player's ass.

Where Paradox games get hard to code is when there's a shitload of branching options, like the Vicky 2 economy, CK event chains/personalities influencing decisions, or the HOI4 battle AI. Because this gets hard to test, and as a result, is hard to get desired behavior out of. Like if you had a problem in Vicky 2 where the AI systemically undervalued rubber factories, how would you even find what's causing that? Not even Paradox knows, since they forgot how a lot of the economy code works, hence 3 simplifying it.
Anonymous
7/7/2025, 12:18:21 PM No.714761621
>>714761471
this is why yandere-dev is on another fucking level, man
Anonymous
7/7/2025, 12:18:22 PM No.714761623
so how does piratesoftware's job experience look like? and what education does he have?
Replies: >>714761737
Anonymous
7/7/2025, 12:18:42 PM No.714761635
>>714757519
In her defense, dialogue tools are always messy one way or another.
>>714759875
There could be a graph tool that references dialogue lines by array index. That way you kinda ensure that no duplicated dialogue lines are created.
Anonymous
7/7/2025, 12:18:54 PM No.714761642
>>714760498
he worked on social engineering security as in
>hey blizzard employee can you give me company secrets if I ask for them?
Replies: >>714761754
Anonymous
7/7/2025, 12:19:14 PM No.714761659
>>714760646
that would make it more readable, retard.
Replies: >>714761696
Anonymous
7/7/2025, 12:19:32 PM No.714761670
>>714761034
For sure, but if he's taking time to have a giant map with comments then he might as well do the same exact amount of typing to name those flags and put them inside an enum.
The fact that he's re-commenting what each magical number means wherever he uses them is painful.
Anonymous
7/7/2025, 12:20:03 PM No.714761696
>>714761659
>235 then 4 is more readable
ok
Anonymous
7/7/2025, 12:20:28 PM No.714761717
>>714761437
my main problem is accidental fall-through cases, which some developers like to use intentionally, they see it as a feature and I see it as a bug waiting to happen (and it has multiple times).
switch expressions are fine however because it cant happen with those.
Anonymous
7/7/2025, 12:20:48 PM No.714761737
>>714761623
his daddy is a blizzard big shot but even with nepotism he could only get a job as a QA tester because he has no dev qualifications.
Anonymous
7/7/2025, 12:21:07 PM No.714761750
>>714759739
There's simple dialogue and there's complex dialogue systems like in the Witcher, with condition checking, branching dialogue, dialogue that drives events, etc. Simple, scripted dialogue is simple to do.
Anonymous
7/7/2025, 12:21:13 PM No.714761754
>>714761642
>social engineering
to be fair this might be the only thing he is good at, considering his only viable career has been ecelebing
although, once someone sees through his gaslighting it all falls apart
Anonymous
7/7/2025, 12:21:54 PM No.714761789
>>714757849
An array is a shit way to do decision trees and are hard to maintain because they are flat and the references (indexes) meaningless. In languages with lists (c#) you can write the reference in the code so you don't have to remember numbers or comment every array item. In languages that don't have complex list functions baked in you can build them with enumerated types and a basic knowledge of data structures.
Anonymous
7/7/2025, 12:22:12 PM No.714761804
>>714757167 (OP)
Would you rather play Earthbound or Em8er?
Anonymous
7/7/2025, 12:23:41 PM No.714761861
>>714757519
Is it wrong to use strings for things like this?
Anonymous
7/7/2025, 12:23:47 PM No.714761867
>Named Thor
>Is the most basedest of basedboys
>Completely embarrasses his father everyday