Removing the money cap in Saints Row 2

hey i was working on a mod that changes the prices of everything and i was tryna remove the $2000000 money cap n I was wondering if anyone knew how I would go about doing so if its possible.
 
It's not possible, because it's a signed integer int32_t -2000000000 and 2000000000 how it's represented internally with the yellow being the cents, it's a little below INT32_MAX which is 2147483647 so the therotical max could be 21474836.47 but they chose 20000000 as it's cleaner, it's technically possible to just have it be represented as an unsigned integer so the max could be 42949672.95, pretty sure they have negatives because of loan sharks in SR1, either ways upgrading it to int64_t would be practically impossible
 
It's not possible, because it's a signed integer int32_t -2000000000 and 2000000000 how it's represented internally with the yellow being the cents, it's a little below INT32_MAX which is 2147483647 so the therotical max could be 21474836.47 but they chose 20000000 as it's cleaner, it's technically possible to just have it be represented as an unsigned integer so the max could be 42949672.95, pretty sure they have negatives because of loan sharks in SR1, either ways upgrading it to int64_t would be practically impossible
damn alright so it wouldnt be possible to even up it to 42949672.95?
 
Also SR2 PC was compiled with LTCG, so a lot of the functions got inlined as well, so it's incredibly difficult to find all references of human_cash's operators where it sets the limit, in contrast to SRTT and SRTTR where they aren't inlined,
(~244
1773708342377.png
cases in SR2 compared to ~8
1773708309445.png
in SRTT/R's executable
 
damn aight i aint gon lie Im really not the most computer literate i was just fuccin around with gibbeds tools does anyone feel like taking this mod over tho or helpin a mf out it would be a good addition to the game I was tryna work on the drug effects n notoriety too I feel like it would be a dope ass mod I just dont really have the technical know-how
 
I damn near got all the prices edited in all the file you need im pretty sure i just need someone with a lil technical experience to really make it happen
 
Back
Top