OrionSR Posted April 12, 2013 Share Posted April 12, 2013 (edited) You have worked out enough for today, come back tomorrow! I wanted to take another shot at figuring out what is really going on with the gym glitch but I lost the save I had with this glitch in place. If anyone has a gym glitched save (any PC or PS2 version) please upload it to http://gtasnp.com and post the link here. Edited April 21, 2013 by OrionSR Link to comment Share on other sites More sharing options...
OG Viking Posted April 12, 2013 Share Posted April 12, 2013 Darn! I had some saves with the gym glitch but I deleted them some days ago. But I've had this glitch so many times that I'm sure I'll get it later. I have an idea of how to get this glitch too. But if/when I get it, I will have to learn how to copy the save from the PS2 to the PC. Link to comment Share on other sites More sharing options...
GTASAddict Posted April 16, 2013 Share Posted April 16, 2013 Which gym glitch are you referring? I had a gym glitch where the insiders would attack each other, but I had to start on a new memory card due to corrupted data that arisen when I misused Rics codes. Link to comment Share on other sites More sharing options...
lil weasel Posted April 16, 2013 Share Posted April 16, 2013 The gym glitch is one where CJ is unable to exercise. He is 'Finished for the Day'. Believed to be caused by never feeding CJ at a restaurant or vendor (only feeding by saving.) Link to comment Share on other sites More sharing options...
hmvartak Posted April 17, 2013 Share Posted April 17, 2013 http://gtasnp.com/36731 Link to comment Share on other sites More sharing options...
OG Viking Posted April 17, 2013 Share Posted April 17, 2013 (edited) Which gym glitch are you referring? I had a gym glitch where the insiders would attack each other, but I had to start on a new memory card due to corrupted data that arisen when I misused Rics codes. The one that prevents you from working out, both indoor and outdoor. I do have a document where two types of the gym bug is explained, it was posted on another (now defunct) GTA forum. If gtaforums.com doesn't already have a document on the gym bug, I could perhaps post the old document as long as I give credit to its author. http://gtasnp.com/36731 That solution seems to be for PC. I play on PS2. But thanks for the link - it may be useful if I will play on PC some day. Edited April 17, 2013 by OG Viking Link to comment Share on other sites More sharing options...
OrionSR Posted April 21, 2013 Author Share Posted April 21, 2013 Update based on the gym glitch save provided by hmvartak: http://gtasnp.com/36731 $5345=$Current_Month_Day $5346=$Current_Month $5347=$GYM_Month_Day_When_Limit_Reached $5348=$GYM_Month_When_Limit_Reached $5349=$GYM_Day_Limit I've got my eye on a dance array $5340([email protected],5f) that could overwrite the gym variables, but it seems to be limited properly, and would probably write floats instead of the integers I'm seeing in the data. I don't think dancing is related to the gym glitch. Based on the only example I've got so far, the gym glitch occurs when $GYM_Month_Day_When_Limit_Reached and $GYM_Month_When_Limit_Reached mysteriously get set to 30 and 12 respectively. Mysterious because this save only has 313 days on it, which would put the date around 8 days and 11 months, although I'm still not exactly sure how the SA calendar works just yet. And mysterious because the values are higher than the $Current_Month_Day and $Current_Month at 12 days and 7 months, which shouldn't be possible either. So if the glitch is always the mysterious 30/12, then the gym glitch should never occur after the first in-game year. The first month appears to have 31 days, some other months may as well but I haven't tested that yet. During months with 31 days it should be possible to use the gym equipment, but if I'm reading this right, it would be necessary to exceed the daily limit to fully clear the glitchy data. But that doesn't really match my expectations about the gym glitch. IIRC, the problem usually goes away on it's own long before the first year is up, once it starts up again the gyms continue to work without the need to exceed the limit. Link to comment Share on other sites More sharing options...
hmvartak Posted April 21, 2013 Share Posted April 21, 2013 Some more files uploaded on repair tool : http://www.fileconvoy.com/dfl.php?id=g6a15...dedbc2d16374c71 Link to comment Share on other sites More sharing options...
OG Viking Posted April 21, 2013 Share Posted April 21, 2013 Update based on the gym glitch save provided by hmvartak: http://gtasnp.com/36731 $5345=$Current_Month_Day $5346=$Current_Month $5347=$GYM_Month_Day_When_Limit_Reached $5348=$GYM_Month_When_Limit_Reached $5349=$GYM_Day_Limit I've got my eye on a dance array $5340([email protected],5f) that could overwrite the gym variables, but it seems to be limited properly, and would probably write floats instead of the integers I'm seeing in the data. I don't think dancing is related to the gym glitch. Based on the only example I've got so far, the gym glitch occurs when $GYM_Month_Day_When_Limit_Reached and $GYM_Month_When_Limit_Reached mysteriously get set to 30 and 12 respectively. Mysterious because this save only has 313 days on it, which would put the date around 8 days and 11 months, although I'm still not exactly sure how the SA calendar works just yet. And mysterious because the values are higher than the $Current_Month_Day and $Current_Month at 12 days and 7 months, which shouldn't be possible either. So if the glitch is always the mysterious 30/12, then the gym glitch should never occur after the first in-game year. The first month appears to have 31 days, some other months may as well but I haven't tested that yet. During months with 31 days it should be possible to use the gym equipment, but if I'm reading this right, it would be necessary to exceed the daily limit to fully clear the glitchy data. But that doesn't really match my expectations about the gym glitch. IIRC, the problem usually goes away on it's own long before the first year is up, once it starts up again the gyms continue to work without the need to exceed the limit. I don't see any reference to months in the game, just weekdays and number of days played. Is this different on the PC version? Do you only see references to months when you analyze the game with an editor? I do see number of days in the stats, but they don't tell nothing about months. As far as I can see, months don't exist. But I have never had a look under the surface of the game code. Link to comment Share on other sites More sharing options...
OrionSR Posted April 22, 2013 Author Share Posted April 22, 2013 (edited) Um..., Viking. Why the long quote? Thanks for the saves, hmvartak. I think I figured it out. There doesn't appear to be any way to get the current day and month from in-game stats. The game days stat doesn't correlate well, 200 is about a year, but it varies a bit. I'll keep working on it, but I wanted to post my hypothesis first. The mysterious 30/12 was just a fluke; the glitchy dates vary but are always reasonable dates. There are a lot of month 12s and day 30s, but it makes sense that these would be more persistent glitches that would prompt the player to seek out a repair tool. What I'm not seeing are months greater than 12. I think this is a roll over problem. So the predictions would be: Gym Glitch Explained? The Gym Glitch: CJ cannot work out after waiting more than one day. Technical: (current month > exceeded month) or (current day > exceeded day) is not true The glitch occurs when CJ exceeds the daily workout limit late in the year and then the current month rolls over to 1 after a new year. So, it should be impossible to get the glitch during the first year or if CJ never exceeds the daily limit. Even if the exceeded month is too high, CJ should be able to use the equipment again when the current day is finally greater than the exceeded day. However, if the day limit is not exceeded then the glitch will reoccur again next month (I haven't noticed this in the glitch reports). Exceeding the daily limit will bring the exceeded month down to a reasonable level and things should work normally for the rest of the year. A player who exceeds the daily limit on December 31st would not be able to clear the glitch without an editor, mod, or cheat code. The player with that 12-30 save would need to wait until new years eve to use the equipment, but then needs to exceed the limit after the new year to avoid getting into the same situation as the player above. Starving CJ for weeks on end won't make the glitch occur; food and clothing changes won't clear it up. Updated with calendar information: San Andreas Monthly Calendar The Current Month/Day calendar for San Andreas appears to operate like a standard leap-day calendar, with 29 days for every February, and 31 or 30 days like a standard calendar. San Andreas does not record the in-game year. The calendar will advance as expected when the current game hours and minutes roll over after 23:59. The calendar also advances every time the game is saved. If the day rolls over during a save the calendar only advances one day, so there doesn't appear to be any hope of estimating the game day by adding the number of saves and game day stats. Edited April 22, 2013 by OrionSR Link to comment Share on other sites More sharing options...
fnxrak Posted April 30, 2013 Share Posted April 30, 2013 (edited) This one is the mastersave the glitch doesn't affect the game yet Save 1 This one is a little further in the game but yet it doesn't glitch Save 2 Ok now in this one the glitch occurs Save 3 This one is the earliest save I have where the glitch occurs (sorry lost the others before this) Save 4 This one is the first time I exceed the time in a Gymn Save 5 Hope it helps if I find the exact time the glitch occurs I will post it also PS. The first 2 and the last one are part of the game I'm playing now, #3 and #4 were made with the mastersave (first) but were just a test to see if it was possible to end the game Edited April 30, 2013 by fnxrak Link to comment Share on other sites More sharing options...
OrionSR Posted April 30, 2013 Author Share Posted April 30, 2013 (edited) Since there is no in-game method to check the calendar I'm using the Japanese editor available at the link below. The current date is found on the Misc tab under In-Game Time. The values of the global variables can be found on the Script tab. Select Type Int to display the numbers in the familiar decimal format. GTA:SA Save Game Editor v1.0 by Ryosuke: http://gtasamod.web.fc2.com/tool/sase/index.html $5347=$GYM_Month_Day_When_Limit_Reached $5348=$GYM_Month_When_Limit_Reached ^I'm referring to these values as the exceeded date, exceeded day, and exceeded month. On all of these saves except #5, the exceeded date is 8/30. This is a tough date for the glitch because after the new year CJ will only be able to work out or attempt to fix things a little on the 31th day of any month with 31 days. Save 1: Current date is 10/20. The current month is greater than the exceeded month so CJ can workout. Save 2: Current date is 11/29. Same as above. Save 3: Current date is 3/25. Neither value is more than the corresponding exceeded value so CJ can't workout. Save 4: Current date is 1/29. Same as above. Save 5: Current date is 1/30; Exceeded date is 1/29. No new information found. In theory, if you wanted to reduced the damage for save 3 you could wait/save until March 31st and CJ should be able to workout. Then wait until after midnight and exceed the limit on April 1st. Then as long as you don't exceed the limit again the gym glitch will only be apparent on the 1st of each month. The same strategy would apply to save 1, the master save. The year hasn't rolled over yet so you don't need to worry about starting before midnight on the 31st, but you'd still want to change the exceeded date to a low value, preferably 1. Or if you are willing to wait that long, start on new years eve and exceed on new years day and then you'll only notice the glitch on the first of each year. One day is added when the clock rolls over past midnight, and also for each save, but not both. There may be other ways to advance the date; I can only run limited tests. I posted the link to the editor so you could check your in-game date yourself, but I don't recommend it as an editor. It has some odd quirks, probably because it was based in part on the Japanese version. However, it is an outstanding save viewer. Edited April 30, 2013 by OrionSR Link to comment Share on other sites More sharing options...
fnxrak Posted April 30, 2013 Share Posted April 30, 2013 (edited) Cool I was thinking of using the repair tool but I will give it a try on the 1st day of the year method and see what happens. Thanks this way I won't use an external tool and will minimize the glitch. My current game is 11/24 so it won't be that long. Tell me something I won't probably use it on the PC version but since I haven't reached the part to go to the gymns in the PS3 I can avoid this glitch by never exceeding the time on the gymns? Edited April 30, 2013 by fnxrak Link to comment Share on other sites More sharing options...
OrionSR Posted April 30, 2013 Author Share Posted April 30, 2013 I can avoid this glitch by never exceeding the time on the gymns? Yes, well... that's what is predicted by this new and untested hypothesis anyway. I usually run much more extensive tests on my own system to increase my confidence level, but I can't keep my game running for much more than a minute or so anymore. Still, the theory is sound and my confidence is high enough to suggest strategies to other players. Avoid the Glitch: If CJ never exceeds the daily limit then the exceeded date will remain at default levels, -1 / -1, so it should be impossible to get the glitch. Link to comment Share on other sites More sharing options...
fnxrak Posted May 2, 2013 Share Posted May 2, 2013 (edited) Ok so for this to work out I have to start using the equipement on the gymns on december 31 and then pass midnight and exceed the workout time on january 1? I'm almost there only 4 or 5 day left ###edit### Dude I think it works here are the saves Day 12/31 22:35 just before I went to the gymn Save 1 Day 01/02 06:54 right after I went to the gymn (working out is available) Save 2 Day 01/01 04:39 alternative save without going to the gymn (glitch occurs) Save 3 Here is a video I've made I will keep on playing and testing if it's still available, if something comes up I will post it. ###edit### Well I just tried to open a save game made in the ps3 with the editor and it opened and it tells me the date so this might be good news for the ps3 users to know what day you are in the game thus making them possible to use this exploit. I don't know about the other type of files for PS2 and Xbox or even for users of the new PSN version but maybe someone else could try it. Edited May 3, 2013 by fnxrak Link to comment Share on other sites More sharing options...
OG Viking Posted May 4, 2013 Share Posted May 4, 2013 (edited) Um..., Viking. Why the long quote? I didn't see a reason to edit your post, it's how I normally do things. I'll change if it's a problem, sorry. So, it should be impossible to get the glitch during the first year or if CJ never exceeds the daily limit. I have just discovered that I do have the Gym Glitch, and last time I successfully visited the gym I did stop the work-out before I reached the daily limit. Last time I worked out was long ago, so I don't know when the glitch occurred. EDIT: The game was saved on day 359. I thought I would be safe if I stopped before I reached the daily limit, but this seems untrue. Something have triggered the glitch. I'll try to learn how to move the save file to my computer and upload it, if you think it would be of value to you. I play on PS2. Edited May 4, 2013 by OG Viking Link to comment Share on other sites More sharing options...
OrionSR Posted May 4, 2013 Author Share Posted May 4, 2013 (edited) Oh, crap. I missed fnxrak's updates. The paranoia regarding double posts makes it difficult to notice changes. Um... I'll have to look over the saves later, but it certain sounds like he's got a good handle on his glitch. I think I need to rewrite my hypothesis to make things a bit more clear now that I've had a chance to mull things over and results are coming in. Do think a new topic is in order now that I have a working hypothesis or should I update the opening post and see if I can get a moderator to rename this topic for me? Anyway, according to... um, The Gym Glitch Calendar Hypothesis: In order to avoid the glitch completely CJ must never exceed the daily limit during the entire game. If you have the glitch then at some point the limit was reached. I suspect this new information will be very frustrating for some players who have been working under the old theory that feeding CJ regularly would prevent the glitch. The game days stat is a poor indicator of the calendar. Game days plus number of saves is closer but still not very accurate. I'm still not sure though if players will find this information useful. I don't think I need any more saves. That last batch from hmvartak provided enough information to form this hypothesis. However, if you can get your PS2 save onto a computer then it's possible for you to examine the save with the Japanese editor yourself and use this information to minimize the glitch as much as possible using the same strategy that fnxrak did in the previous post. The global variables are a bit different on PS2 though; check the table below for your version. $GYM_Month_Day_When_Limit_Reached, $GYM_Month_When_Limit_Reached PC = $5347, $5348 PS2v1 = $5346, $5347 PS2v2 = $5351, $5352 In the meantime, you can get rid of the glitch until next year if you keep checking the gym equipment until CJ can finally workout again and then intentionally exceed the limit. This will set the exceeded month and day to the current month and day and things should work normally for a while. PS2 cheat device codes that fix the gym glitch by resetting the variables to beginning levels are available at the link below for NTSCv1, NTSCv2, and PALv1. PC players can use the Savegame Editor v3.x or hmvartak's Online Glitch Repair Tool to reset the gym variables. Cheat Device Codes: http://www.gtaforums.com/index.php?showtop...st&p=1058178034 GTA SA Savegame Editor v3.0 by Paul Breeuwsma: http://www.paulinternet.nl/sa hmvartak's Online Glitch Repair Tool: http://hmvartak.freeiz.com/fix.htm Edited May 4, 2013 by OrionSR Link to comment Share on other sites More sharing options...
OrionSR Posted May 18, 2013 Author Share Posted May 18, 2013 I was typing up a report on this glitch at GameFAQs and had an idea that might help PS2 players determine the current date. But it's a lot of work and may have unknown pitfalls: A particularly clever player might determine the 1st day of the month because on the previous day CJ could work out but now he can't. If the player carefully tracked each and every day for several months it might be possible to determine the current month based on a leap year calendar. It will be March 1 the day after a month with only 29 days. It will be October 1 the day after 2 consecutive months of 31 days followed by a month with 30 days. However, accurately tracking calendar for such a long period of time might not be possible. Link to comment Share on other sites More sharing options...
fnxrak Posted June 21, 2013 Share Posted June 21, 2013 Ok so it has been a year in game play since I used this technique to minimize the glitch and I still can use the gym equipement it actually has passed a few days already on the 3rd year and I didn't had to repeat the process again this year, so it seems that this exploit will go around the glitch forever. I'll keep on checking to see if anything changes. Link to comment Share on other sites More sharing options...
roggan Posted July 23, 2013 Share Posted July 23, 2013 Ok so it has been a year in game play since I used this technique to minimize the glitch and I still can use the gym equipement it actually has passed a few days already on the 3rd year and I didn't had to repeat the process again this year, so it seems that this exploit will go around the glitch forever. I'll keep on checking to see if anything changes. I guess the glitch will still remain there, but you will not be able to train only during the first day of each month. And you will have all remaining days of the month to reach the limit and fix the glitch till the end of the current year. Link to comment Share on other sites More sharing options...
fnxrak Posted July 23, 2013 Share Posted July 23, 2013 (edited) Yeah that was what I thought it would happen, but I already tried it at the 1st day of a moth, sorry I can't remeber the month, and I was able to use it. I haven't tried it with the 1st day of the year though, I'm gonna go back and try it later. I'm really more interest now on finishing my topic on the undrowning glitches first then I will give it a try and if anything changes I will post it here. Also I'm thinking of trying to make a new save with never exceeding the gym time and not feeding CJ so that once and for all that idea that the feeding has an influence in this glitch can be verified. Edited July 23, 2013 by fnxrak Link to comment Share on other sites More sharing options...
roggan Posted July 23, 2013 Share Posted July 23, 2013 I haven't tried it with the 1st day of the year though, You won't be able to check it, because you have to save before, which proceeds the calendar to January, 2nd Link to comment Share on other sites More sharing options...
fnxrak Posted July 23, 2013 Share Posted July 23, 2013 It's just a question of saving in the right time I have to make a save that loads at 31st of December near 10pm or something like that so that I have enough time to go the gym and try, I already did it when I applied the trick to minimize it. Link to comment Share on other sites More sharing options...