pinpog icon indicating copy to clipboard operation
pinpog copied to clipboard

It's not clear how to run the project in VirtualBox

Open rexim opened this issue 5 years ago • 2 comments

rexim avatar Jul 10 '19 16:07 rexim

You should run the game in QEMU

elenderg avatar Aug 06 '22 17:08 elenderg

How to run this project on VirtualBox ?

TL;DR : use qemu.

Create a new virtual machine

  • Type : Other

  • Version : Other/Unknown image

  • Ram : 4M

  • Proc : 1 CPU image

  • Do not add a virtual disk image

Create a floppy disk containing the game

Assuming you already compiled the game, you should have the pinpog binary in the project directory.

Using windows powershell

$pinpog = [System.IO.File]::ReadAllBytes('pinpog')
$floppy = $pinpog + @(0) * (1474560-$bytes.Length)
[io.file]::WriteAllBytes('floppy_pinpog.vfd', $towrite)

Using linux bash

head -c 1474560 /dev/zero > floppy_pinpog.vfd
sudo dd if=./pinpog of=./floppy_pinpog.vfd

Using python

pinpog_file = open("pinpog", "rb")
floppy_file = open("floppy_pinpog.vfd", "wb")

game_bytes = pinpog_file.read()

floppy_file.write(game_bytes + b'\x00'*(1474560-len(game_bytes)))

pinpog_file.close()
floppy_file.close()

Add the floppy disk to Virtualbox storage

In your virtual machine configuration > storage, add a floppy controller I82078 (floppy). Then add the newly created floppy image to the floppy controller (Add > Add > select the .vfd file).

image image


You can now run pinpog on VirtualBox.

Vyjill avatar Feb 06 '24 15:02 Vyjill