# Play! - Official Documentation

## Table of Contents

- Disclaimer
- What's this?
- System Requirements
- Technical Features
- Basic User Guide
  - Home Directory
  - Playing a Game
  - Game Controls
  - State Saving/Loading
- OpenGL Extensions
- Compatibility
- Contact Information
- Special Thanks/Greetings

## Discalimer

This PlayStation 2 emulator is provided as is with absolutely no garantees.
The author takes no responsability for any damage/loss caused by the use of this emulator.
You are not allowed to sell this emulator.

## What's this?

Play! is a PlayStation 2 console emulator still in preliminary stages. This won't run your favorite PlayStation 2 game perfectly at optimal speed: this only works with a few demos and games created by people involved in the non-professional PS2 coding scene.

## System Requirements

- OS: Windows XP/Vista/7/8/8.1/10
- CPU: x86 SSSE3 CPU running @ 2.0GHz and + is recommended.
- RAM: 256MBs of RAM is recommended.
- Video Card: Any DirectX9 class GPU should be enough.
- Note: Play! doesn't take advantage of multi-core CPUs yet.

## Technical Features

- EmotionEngine:
  - Near complete emulation of the base MIPSIV core.
  - Good COP0 (System Control Unit) / COP1 (Floating Point Unit) emulation.
  - Fair emulation of the MMI instruction subset.
  - CPU emulation done using an instruction caching/recompilation scheme.
- OS:
  - ELF binaries loading support.
  - BIOS emulation done in high-level
- GS/GIF:
  - Basic GIF transfers implemented.
  - Basic GS registers emulation.
  - Basic GS rendering supported (using OpenGL).
- VU/VIF:
  - Micromode support for the VU0/VU1.
  - Macromode support for the VU0.
  - Basic VIF transfers implemented.
  - VU flags emulation not very well supported.
- IPU:
  - MPEG-1/2 macroblock decoding supported.
  - All commands emulated.
  - Still very buggy, so it won't playback movies really well.
- IOP/SIF:
  - High-level emulation of the IO processor done by intercepting SIF commands and routing them to native modules.
  - Common IOP modules emulated in high-level.
  - Can load and execute game specific IOP modules.

## Basic User Guide

### Home Directory

The first time you'll be running the emulator, it'll create a new "Play Data Files" folder in your "My Documents" folder. This is going to be the place where the emulator will store saved games and also the place where it will look for homebrewn games data files.

### Playing a Game

To play an homebrewn game or demo, follow these steps:

- Extract the contents of the archive containing the game or demo data into the "/vfs/host" subdirectory of the home directory.
- In the emulator, select "File | Load ELF..." from the menu bar.
- Select the ELF executable image file that should have been extracted in the "/vfs/host" directory.
- After a successful loading, the virtual machine will start executing the program.

To play a commercial game on a DVD-ROM or in a disk image in raw ISO9660 format (.iso file), follow these steps:

- Configure the source that will be used for the disk data by selecting "Options | Virtual File System Manager..." from the menu bar and double clicking on the "cdrom0" device.
  - If you want to use a physical DVD-ROM, click the "Physical CD/DVD Reader Device" radio button and select the drive that'll be containing the disk in the combo box below.
  - If you have a disk image, click the "ISO9660 Disk Image" radio button and select your image file by clicking the "..." button.
  - Confirm your changes and go back to the main window.
- Select "File | Boot cdrom0" from the menu bar.
- After a successful loading, the virtual machine will start executing the program.
- Note: You can also use the "File | Boot Disk Image..." to load a disk image file directly.

### Game Controls

You can change your controller configuration by selecting "Options | Controller Settings...". It's possible to use either your keyboard or your DirectInput compatible game controller to bind with the Dual Shock controller keys. The default config is this one:

Dual Shock Controller Button | Keyboard Equivalent
Left (d-pad) | Left Arrow
Right (d-pad) | Right Arrow
Up (d-pad) | Up Arrow
Down (d-pad) | Down Arrow
Square | A
Cross (X) | Z
Triangle | S
Circle | X
Start | Return
Select | Left or Right Shift

### State Saving/Loading

To save a state, simply press F7 or select the "Virtual Machine | Save State" menu item. To load a previously saved state, press F8 or select the "Virtual Machine | Load State" menu item. There's also 10 slots available for you to place your saved states in, accessible through the "Virtual Machine | State Slot" submenu. Please note that saved states aren't very stable and could result in data loss. Prefer using the game's save mechanism if it's available.

## OpenGL Extensions

The current GS handler requires some OpenGL extensions in order to emulate some features of the GS correctly. To check which extensions are supported by your video card driver, consult the "Renderer Settings" dialog in the emulator. The following table lists which extensions are currently being used and what might be the consequences if your video card driver do not support them.

Extension | Absence Effect
glBlendColor function | Used for "Ys I & II: Eternal Story". Some elements of the game that should appear translucent will appear opaque.
glBlendEquation function | Used for "Ys I & II: Eternal Story". Some elements of the game that should appear translucent will appear opaque.
glColorTable function | Used for "Ys I & II: Eternal Story". Textures need to be converted to the RGBA8888 format resulting in a slow down.
GL_UNSIGNED_SHORT_1_5_5_5_REV texture format | Used for "Lobotomia". Textures need to be converted to the RGBA8888 format resulting in a slow down.

## Compatibility

The following table lists the games I've tested with the emulator and the status of thier support. Please note that sound isn't considered in this compatibility list.

Game/Demo | Compatibility Status
Commercial Games
Akumajou Dracula - Yami no Juin (SLPM_661.75) | Deadlocks occuring during loading screens (rare). 3D broken at some places. Use SMODE2 flipping mode.
Atelier Iris - Eternal Mana (SLPM_660.81) | Sluggish 3D scenes. Use SMODE2 flipping mode.
Castlevania - Lament of Innoncence (SLUS_207.33) | Initial menu only. Use SMODE2 flipping mode.
Final Fantasy X (SLUS_203.12) | 3D scenes are very slow and glitchy. Use SMODE2 flipping mode.
Guilty Gear XX Accent Core Plus (SLPM_669.65) | Saved games doesn't work. Use VBLANK flipping mode.
Half-Life (SLES_505.04) | Saved games doesn't work. Very sluggish and broken 3D scenes. Use SMODE2 flipping mode.
Mega Man X Collection (SLUS_213.70) | Initial menu only. Use SMODE2 flipping mode.
Ys I & II: Eternal Story (SPLS_252.06) | No particles when hitting enemies; Flickering in some scenes. Saved games doesn't work. Use SMODE2 flipping mode.
Homebrewn
1987 (1987.elf) | Slow. Use VBLANK flipping mode.
By The Way (bytheway.elf) | Slow. Video output is cut in half. Use VBLANK flipping mode.
Cube Mastah (cubemastah.elf) | Broken.
FiRE (FiRE.elf) | Working.
Lobotomia (LOBOTOM.ELF) | Broken.
Plasma Tunnel (plasma_tunnel.elf) | Working.
PS2 Invaders v1.6 (space.elf) | Broken.
Quake (quake.elf) | Working with the version that doesn't use the USB module.
Slave of the VU (slave_of_the_vu.elf) | Broken.
PS2 Doom | Use FBDISP2 flipping mode.

## Contact Information

e-mail: jean-philip.desjardins@polymtl.ca
WWW: http://purei.org
Forums: http://forum.purei.org

## Special Thanks/Greetings

ps2dev (great source for technical info/demos/source code), boost, zlib, bzip2, Valnyan, Charles Verdon, Eric Bernard, Brian Guthrie, thrended.