Skip to content

System X wen

This article was originally published in the RANews - November/2020

Introlink

There seems to be a lot of speculation on what the next available systems to support achievements will be. With the recent announcement of a PS2 core, there have been a lot of questions regarding if/when it will be supported. If you're only interested in the answer to that question, skip to the end of this article. But if you want to understand what exactly is needed to add support for a new system, keep reading.

Requirementslink

These are the things that are required in order to add RetroAchievements support for a new system:

  1. Emulation (preferably a libretro core).
  2. The core must expose memory.
  3. The core must function in RALibretro.
  4. Unique identification of games.
  5. Server support.

Step 1: Emulationlink

The first step is, obviously, to have an emulator for the system to be supported.

In the early days of RetroAchievements we used standalone emulators - one for each system. Keeping all those emulators bug-free and up-to-date requires a lot of effort and we don't have enough programmers involved on this front.

It's currently preferred to use a libretro core for emulation. This way the core developers can push new features and we can focus only on the achievement functionality. Cores can be updated and released without any additional effort for us.

Another big advantage is that libretro cores also function in RetroArch, which allows RetroAchievements to be earned on many platforms (the standalone emulators were all Windows-only applications).

Managed by: libretro core developers.

Step 1a: Exposed Memorylink

As achievement triggers are a series of conditions that watch for things that happen in the emulated RAM, another requirement is access to the system's RAM.

Without exposed memory, the Memory Inspector appears blank and achievement creators are unable to create achievements.

Additionally, as RetroAchievements only reads the memory once per frame, some systems which heavily leverage paged memory have to provide some way to access the entire memory, not just the current page of memory.

Managed by: libretro core developers with some interaction with RetroAchievements developers.

Step 1b: RALibretrolink

The core must function in RALibretro, as that is where the achievement developers will identify the important pieces of memory and create the achievements.

This is usually only an issue if the core relies on some functionality not yet implemented in RALibretro (like the recently added keyboard and OpenGL 3D support), but some issues are caused by the RALibretro implementation being sufficiently different from the RetroArch implementation. Unless the core can be modified to not require the missing functionality, it cannot be supported until RALibretro is updated.

This page lists the status of each core the last time they were tested.

Managed by: RetroAchievements

Step 2: Game Identificationlink

We must be able to uniquely identify the games for the system.

We use a method called MD5, which scans the game's file and generates a number that we usually call as "hash". With this number it's possible to confirm if two copies of a file are identical, which makes it possible to ensure the player is using a ROM that the achievements were designed or tested against.

For most systems, we are able to just hash the entire ROM file, minus any header information. For larger games (particularly those on CD or DVD) we only hash what we consider to be the most important data to minimize load times. More information on how we identify games can be found here.

For systems with writable media (mostly home computers), we have to make sure that we don't hash any files that may be modified by the game itself. Systems that write to the game file must treat the original disk file as readonly and only write changes to a copy of the disk. If the core/emulator modifies the disk file, it can no longer be identified and cannot be considered viable for achievements.

Managed by: RetroAchievements

Step 3: Configure the Web Serverlink

In order to support a new system, the RetroAchievements web server must be properly configured to accept new game and achievement entries for that system.

Managed by: RetroAchievements

When will RA support PlayStation 2?link

Regarding PS2 support on RetroAchievements, the libretro team is still working on the PCSX2 core. It seems that they're progressing quite well but it's still a work in progress.

Given the requirements described above, we're still on step 1. Therefore, there is still a lot of work to be done before making it possible to support PS2 on RetroAchievements. So a realistic answer for "PS2 when?" would be "not so soon".

When will RA support System X?link

This page lists the status of each core the last time they were tested.

Changeloglink

Last 10 changes on this page:

  • [2020-12-05 20:13] meleu: remove '?' from the title