▲ 688 ▼ Rockstar selling you cracked copies on Steam (i.redd.it) submitted 2 years ago by Oha@lemmy.ohaa.xyz to c/piracy@lemmy.dbzer0.com 99 comments fedilink hide all child comments Source: https://www.reddit.com/r/Piracy/comments/16afo4x/rockstar_selling_you_cracked_copies_on_steam/
[–] seang96@spgrn.com 33 points 2 years ago (1 child) Found an article that details it again since it was a fun read at the time. Looks like it was 10MB json file and the method to read the lines used the expensive length function you mentioned. It also had other simple optimizations too. permalink fedilink source parent hideshow 2 child comments replies: [–] ipkpjersi@lemmy.ml 7 points 2 years ago* (1 child) Pretty funny that because of all their microtransactions being stored in a JSON file being loaded into memory, that ended up making their game more slow and annoying and frustrating to play. I am super curious if the devs knew about this issue but it just wasn't fixed because it wasn't given priority by management, or if the devs genuinely had no clue about this? The even weirder and funnier thing is I've worked with larger JSON files day to day at my job with a much smaller scale than Rockstar/GTA, although I guess it depends on how you work with the files and the fact they were checking string lengths for literally every single piece of data etc. permalink fedilink source parent hideshow 2 child comments replies: [–] seang96@spgrn.com 12 points 2 years ago* (1 child) The library used to read the line does the string length check, so my guess, whoever wrote it initially didn't know about it and tested with a small sunset of items without issue; I assume the games items grew in size over the years too. They also released an official patch with it and paid the modder $10k Edit fixed typo permalink fedilink source parent hideshow 2 child comments replies: [–] Petter1@lemm.ee 2 points 2 years ago Lol, in the meantime see what Nintendo does to modders who fix stuff for them permalink fedilink source parent
[–] ipkpjersi@lemmy.ml 7 points 2 years ago* (1 child) Pretty funny that because of all their microtransactions being stored in a JSON file being loaded into memory, that ended up making their game more slow and annoying and frustrating to play. I am super curious if the devs knew about this issue but it just wasn't fixed because it wasn't given priority by management, or if the devs genuinely had no clue about this? The even weirder and funnier thing is I've worked with larger JSON files day to day at my job with a much smaller scale than Rockstar/GTA, although I guess it depends on how you work with the files and the fact they were checking string lengths for literally every single piece of data etc. permalink fedilink source parent hideshow 2 child comments replies: [–] seang96@spgrn.com 12 points 2 years ago* (1 child) The library used to read the line does the string length check, so my guess, whoever wrote it initially didn't know about it and tested with a small sunset of items without issue; I assume the games items grew in size over the years too. They also released an official patch with it and paid the modder $10k Edit fixed typo permalink fedilink source parent hideshow 2 child comments replies: [–] Petter1@lemm.ee 2 points 2 years ago Lol, in the meantime see what Nintendo does to modders who fix stuff for them permalink fedilink source parent
[–] seang96@spgrn.com 12 points 2 years ago* (1 child) The library used to read the line does the string length check, so my guess, whoever wrote it initially didn't know about it and tested with a small sunset of items without issue; I assume the games items grew in size over the years too. They also released an official patch with it and paid the modder $10k Edit fixed typo permalink fedilink source parent hideshow 2 child comments replies: [–] Petter1@lemm.ee 2 points 2 years ago Lol, in the meantime see what Nintendo does to modders who fix stuff for them permalink fedilink source parent
[–] Petter1@lemm.ee 2 points 2 years ago Lol, in the meantime see what Nintendo does to modders who fix stuff for them permalink fedilink source parent