Emulator Issues #5078
closedAR Codes Broken. Gives A Series of Errors in Properties Window
0%
Description
- Game Name and ID (as it appears in right click > properties: "GZ2P01",
"RSBE01", etc):
Any game with AR codes in its config.
2) What is the expected output? What do you see instead?
Expect to see the properties window. Instead I get a series of errors like this before reaching the properties window:
"invalid AR Code line: XXXXXXXX XXXXXXXX"
"The address is invalid"
"The value is invalid"
It also clears any previously existing AR codes after those series of errors. I can still add codes and save them, but once I view its properties again, the error messages above appear and deletes them.
4) What steps will reproduce the problem?
- Viewing the Properties of a game with AR codes.
5) What version of dolphin are you using (32bit/64bit along with the
version as it appears in the title bar, etc)?
On what operating system, drivers, and hardware? Be sure to list OS,
graphics driver information, and video card model if you are having
graphics problems, for example.
Windows 7 Professional 64-bit
Dolphin 3.0-235
Updated by dgarahana1 about 13 years ago
Forgot to add, it also gives these errors when trying to run a game with them on.
Updated by daco65 about 13 years ago
would be nice to know what the XXXXX is ?
also, see if it saved correctly by checking the ini
Updated by dgarahana1 about 13 years ago
The X's are in hexadecimal. Here is an INI file that can be examined. It looks like it's saved correctly.
Updated by delroth about 13 years ago
- Status changed from New to Accepted
I saw some reports of that bug on the forum, marking it confirmed.
Updated by mingting1028 about 13 years ago
Comment 4 by project member delroth@gmail.com, Today (13 hours ago)
"Maybe due to mth's recent changes?"
YES...I think...
I have just test 3.0-229 & 3.0-228...
In 3.0-228,AR codes works fine...(test games:SB3J08 - BASARA[Sengoku Basara 3] & S5QJC8 - SengokuMusou 3 Moushouden)
In 3.0-229,AR codes does not work,and codes doesn't show in AR codes list...
Same in 232&235...
Updated by mthuurne about 13 years ago
Could you try reverting only the "value == ULONG_MAX &&" part of that commit?
Also, does this bug occur on all platforms or only on Windows? And on 64-bit only or 32-bit as well?
Updated by mthuurne about 13 years ago
I tried to reproduce the problem on 32-bit and 64-bit OS X, but the AR codes showed up fine there. So I think the issue is Windows specific.
Updated by delroth about 13 years ago
- Regression set to Yes
- Operating system Windows added
Updated by mthuurne about 13 years ago
This bit from MSDN's description of strtoul is a bit worrying: "The LC_NUMERIC category setting of the current locale determines recognition of the radix character in nptr; for more information, see setlocale." It means that the format of a hex number could differ depending on what locale settings you are using. Although it is unlikely to explain this issue, since the old code would have had the same problem.
Updated by mingting1028 about 13 years ago
forgot to say...my OS:win7-64
test both 64-bit and 32-bit (229 & 235)
Updated by mingting1028 about 13 years ago
I usually copy old config (Dolphin.ini...) to new ver.,in this way,it doesn't show the error like marioman...@gmail.com says...,can play the game,but AR codes just not work...
It shows error if not copying old config to new ver.
"invalid AR Code line: XXXXXXXX XXXXXXXX"
"The address is invalid"
"The value is invalid"
Updated by tommyhl2.SS almost 13 years ago
myuhh: Just opening the properties gives the errors here with the latest builds, not even trying to use an AR code. Windows 7, x64. This should be reverted until it gets sorted out.
Updated by mthuurne almost 13 years ago
I'm not in favor of reverting because then the whole issue is likely to be forgotten. I'd like to get this fixed soon, but I need help with that since I don't have a Windows system at my disposal.
Isn't there a Windows coder out there who could have a look at this? The messages are PanicAlerts from ActionReplay::LoadCodes(). Apparently both the address and the value are being rejected. There are 3 "return false" statements in TryParse(), so it would be very useful to know which one of them triggers and on what input(s).
Actually, anyone who is capable of building Dolphin on Windows could try out the suggestion from comment #8, which would narrow things down quite a bit already.
Updated by tommyhl2.SS almost 13 years ago
mthuu: Master is not the place to try out code and hope that it works. It causes issues and should be reverted. Maybe next time you should commit to a branch and not subject everyone to code that causes issues.
For what it's worth, I'm on irc most days and can test your changes, it won't be forgotten if you fix it. I'll be the guy named [SS] and you can ask me to test your attempted fixes. Until then, please revert.
Updated by hatarumoroboshi almost 13 years ago
It may seem somewhat like a PC developer publishing a game without testing it on Ati(Amd) and/or Nvidia video cards and then asking the users to fix the bugs:-)
Updated by mthuurne almost 13 years ago
@#17: It wasn't a "let's hope it work" type commit: I checked the code, I wrote a unit test for it and cotton did the same on Windows. Somehow this issue slipped through, but it was not because of carelessness. I didn't revert it because I expected to be able to fix it very soon, but I need help for that from a Windows user and I've received no help yet. I hope we can sort it out on IRC today.
@#18: PC game devs have internal builds fail like that regularly, you just don't see those because they are tested and the issue is fixed before release. Devs and power users are our equivalent of a company's QA team, users who download only releases are the equivalent of users of PC games.
Updated by skidau almost 13 years ago
- Status changed from Accepted to Fixed
This issue was closed by revision 1df7af35e994.
Updated by mthuurne almost 13 years ago
Thanks to skidau for testing and fixing this!