Ategon

Indie game developer 🇨🇦

Working on some games for game jams in my free time

Admin of programming.dev and frontend developer for sublinks

Account has automation for some scheduled posts

Site: https://ategon.dev Socials: https://ategon.carrd.co/

  • 481 Posts
  • 1.15K Comments
Joined 2 years ago
cake
Cake day: June 8th, 2023

help-circle



  • We just added a couple more people to have server access and ideally that situation wont happen again

    That problem specifially could only be reproduced on the main server so fixes couldnt be tested without taking the entire site down and at some point after the 0.19.5 upgrade (when the issue happened) it became too late to roll the server back since there was too many activities that came in but if it happens again after an upgrade we would roll back pretty much instantly)

    dbzer0 does seem like a better option for general privacy discussion though








  • Sites back, communities that previously had their community page not vieweable are now viewable

    An example of this is https://programming.dev/c/a11y

    Basically what I did was before the maintenance exported every single post in the post table and use a js script to check for duplicate ap_ids (checking using sql itself didnt work due to broken indices so it was always missing some). Then I generated sql statements to remove duplicate posts that had higher ids than the other posts theyre a duplicate of. Ran all those during maintenance and since all duplicate ap_ids were removed I could now reindex the table to fix the broken indices

    Did the same for communities after the posts (but also did some statements to move posts from one version of the community to the other)

    Site might be slow for a tiny bit as it processes the 2 hour of activities that were generated while it was down







  • Sites back up

    Got a lot of information about what it actually causing the issues which should help me automate some fixes for tomorrow + the weekend

    There likely will be some more downtime tomorrow if I have time (if not itll be on saturday)

    The issue is essentially a chain of issues with one needing to be fixed before I can fix the others. Some tables have duplicates entries which is preventing reindexing (since the indexes are broken). First one im going to try to fix is the post table.

    I did some changes to remove a duplicate community to test which is https://programming.dev/c/[email protected] and ive managed to make it merged and now comments will show if you sort by comments in the community. Posts however still aren’t showing up due to the posts table having the issue with duplicates as well. (fixing posts first so I can set all of the posts to the correct community in an automated way later for the communities)



















  • It definitely has more niche use due to the children interactions. Its pretty much just a shorthand for one specific case of function calls you would do so that you dont have to mess with all of reparenting, position, etc. for that case

    Its more useful for engine and tool development (and is used in the engine for the change type button when you right click)

    Off the top of my head a use case in a game would if for some reason you have placeholders, replacing the placeholder with the actual node. Another one is if your enemies change based on a specific metric in the game (e.g. once a run hits 1 minute all enemies change to be a harder enemy), you can just replace the old enemy node/script with the new one so that you get the updated script (would have to also manage the sprite in that case though)