• 0 Posts
  • 34 Comments
Joined 2 years ago
cake
Cake day: March 4th, 2024

help-circle


  • I skimmed the article and they just say:

    • Don’t roll your own page scrolling.
    • Don’t roll your own link navigation.
    • Don’t roll your own text selection.
    • Don’t roll your own context menu.
    • Don’t roll your own copy and paste.
    • Don’t roll your own password field.
    • Don’t roll your own date picker.

    For a date picker I initially disagreed but then their argument about how you can just use 2x input type=date for the start and end date and then it’s consistent across every site was pretty reasonable. I’m not gonna go read mdn on its capabilities right now so maybe there’s still some valid use cases for not using one, like conveying to the use what valid ranges they can select.

    But yes I agree you shouldn’t use a library for something simple like left-pad


  • This always grinds my gears. When I was hosting custom Minecraft servers back in 2011 we had so many server side anti cheat measures in place. Prevented people from moving too fast. Randomized blocks until you exposed them so xray wouldn’t work. Logblock to identify griefers and do immediate rollbacks.

    I remember this one time we had a group get on and grief someone that didn’t set up a claim yet and they thought they were so sneaky by distributing the loot amongst friends and chests. We just followed the stacks in the logs and restored everything then banned them. We actually had more people end up joining because how much auditing we could do, they probably felt like they could invest time into the server.

    Now it’s like just trust the clients for everything and “oh we can’t ban them until the next ban wave because we don’t want them to know how we caught them”. It’s lazy. Back in the pubg days I remember seeing someone get 75 kills in a matter of 3 minutes. They didn’t get banned. They didn’t even have line of sight. Ban waves still allow peoples experiences to be compromised.






  • My experience might not match others but honestly I would recommend avoiding this trap. It’s just compromise and disappointment all the way up. Then you’ll be blamed for anything that goes wrong despite only 15% of your plan being accepted by executives. If the company culture is different and fosters leadership instead of stifling it then maybe it could work. At the end of the day you’re probably still going to be making someone else’s dreams come true until you start your own company.



  • Rust is a fantastic language for game dev. It just requires you to think completely differently if you want to have a good time. You can totally write the traditional game loop or my preference ECS (bevy as one example). ECS still let’s you do the crazy mutations without having to worry about ownership. Each system can focus on the components they care about and you can specify the order they run. If you want to be reckless and mutate global state, then you need to explicitly decide between things like RwLock<T> and RefCell<T> for example. I’m not saying everyone should drop whatever they prefer to instead use rust. It’s ok to stick with what you know or enjoy. Good games are agnostic to the tools used to make them. I just don’t think Rust deserves to be dismissed the way your statement does.









  • Looks like you are correct. I don’t think I could find most if not any of the leaders from the leader pass. Including Sejong. That’s incredibly disappointing. Looking through the contents of the dlc from a proton install I’m not seeing anything that would prevent someone from just using it on Linux other than editing the paths. I’ll experiment some. Maybe I’m naive and there’s a reason why no one else has done it.

    Edit: proton has come so far that maybe Linux peeps just opt to use that for civ6. Especially since the Linux build might be a tad buggy? At least for me it’s definitely had issues.

    Edit2: Ha. It works. That’s wild that they would just lazily not repack it…

    • just copy the windows dlc packs over,

    • copy DLC/_/Platforms/Windows -> DLC/_/Platforms/Linux

    • Then inside the platform Linux dir

    find . -type f -name '*.modinfo' -print0 |
        xargs -0 sed -i 's#Platforms/Windows#Platforms/Linux#g'
    

    Some don’t seem to show up in game still so I’ll experiment more this weekend if I get time and throw together a bash script that downloads all the windows depots and patches them.

    Edit3: for the ones not working it might be due to case sensitive file system. They use audio when looking for Audio