Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rexim opened this issue Jul 10, 2019 · 2 comments
Open

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

rexim opened this issue Jul 10, 2019 · 2 comments

Comments

@rexim
Copy link
Member

rexim commented Jul 10, 2019

No description provided.

@elenderg
Copy link

elenderg commented Aug 6, 2022

You should run the game in QEMU

@Vyjill
Copy link

Vyjill commented Feb 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants