Saving *.prg in VICE (was: Robovic.prg Robotron style game)

You need an actual VIC.

Moderator: Moderators

Post Reply
IsaacKuo
Vic 20 Hobbyist
Posts: 147
Joined: Tue Aug 04, 2009 5:45 am

Saving *.prg in VICE (was: Robovic.prg Robotron style game)

Post by IsaacKuo »

I've programmed my robotron style game, in VICE, but I don't know how to save the .prg file. It's very crude and not optimized in any way. I just wanted something quick and dirty and fun.

The gameplay is not very Robotron-like, but it has a suitable feeling of fast action and panic. The big difference is how enemy movement works. To keep things fast, I only move one random robot per turn. This means that the robots get faster when they are fewer! You need to carefully set up the destruction of the last few robots.

The other big difference is that there's only one bullet. This bullet can mow through multiple enemies, though, and you can reshoot the bullet at any time (Gorf style). The result is a strange sniping style of shooting rather than the classic Robotron bullet hose.

Despite the differences, the overall experience feels like Robotron to me--it's fast, relentless, and HARD.

So how do I post this program here? I'm using VICE on a Linux machine. Thanks!
Diddl
Vic 20 Afficionado
Posts: 425
Joined: Wed Jun 10, 2009 3:18 am

Post by Diddl »

Code: Select all

SAVE"GAME V001",8
User avatar
Mike
Herr VC
Posts: 4842
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

And within 'Settings' > 'Peripheral settings ...' > Drive 8, select Directory '.', and uncheck the box 'write P00 files'.

Denial currently doesn't host binaries for the forum, you'll need to use your own webspace, and set a link to the *.prg file.
IsaacKuo
Vic 20 Hobbyist
Posts: 147
Joined: Tue Aug 04, 2009 5:45 am

Post by IsaacKuo »

I'm very confused.

I figured out how to create an empty disk image (I named it vd1.gdx), and I was able to save the program onto that disk image.

If I detach the disk image, then I can try SAVE"GAME V001",8, then it tries to save and it acts like it works, but no file is created. From then on, any attempt to access the disc just gives me ?DEVICE NOT PRESENT ERROR. I have to reset the VIC (losing my program) in order for it to be able to perform any load/save operations successfully (after reattaching my disk image)...

I didn't see an option for "write P00 files", but there are two options called "Convert P00 file names" and "Create P00 files on save"; both of these were checked by default.
IsaacKuo
Vic 20 Hobbyist
Posts: 147
Joined: Tue Aug 04, 2009 5:45 am

Post by IsaacKuo »

Is there some way to simply copy/paste program text?
Gabriel Angelos
Vic 20 Drifter
Posts: 33
Joined: Fri Jul 17, 2009 10:46 pm

Post by Gabriel Angelos »

Hit up Settings->Peripheral Settings

Check "Use IEC Device"

Select Directory

Browse to a directory you want to save the prg

Uncheck "Read P00 files"

Uncheck "Write P00 files"

Hit OK

then in the emulator SAVE "MY.PRG",8

and you'll have a PRG in the directory you specified. You may want to detach any disk image first.
Gabriel Angelos
Vic 20 Drifter
Posts: 33
Joined: Fri Jul 17, 2009 10:46 pm

Post by Gabriel Angelos »

I probably should have asked this first: What version of VICE are you using?
IsaacKuo
Vic 20 Hobbyist
Posts: 147
Joined: Tue Aug 04, 2009 5:45 am

Post by IsaacKuo »

I'm using the version in Debian Stable, so it's probably a bit old. Help->About says xvic 1.22 (c)1998-2007.
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

Yes, version 1.22 was the last of the 1.X branch. The most current version is 2.1 which has a couple of improvements on the VIC-20 emulation like a completely rewritten sound emulation and also some video improvements that some of the most recent demos may take advantage of. You probably should step aside what the Debian packet handling system offers and compile it from sources.
Anders Carlsson

Image Image Image Image Image
TBCVIC
Vic 20 Hobbyist
Posts: 127
Joined: Thu Mar 05, 2009 3:38 am

Post by TBCVIC »

Or use debian unstable, it's about as stable as any Windows two years after release :)
Don't know if debian unstable got any newer version of VICE though.
Ola Andersson
Image
IsaacKuo
Vic 20 Hobbyist
Posts: 147
Joined: Tue Aug 04, 2009 5:45 am

Post by IsaacKuo »

Quick update--I've downloaded VICE version 2.1 for Windows, on my Windows computer, and I've tried all of the above suggestions and I still haven't been able to save a ".prg" file.

It behaves the same way as described above. It acts like it works, except the virtual drive error light stays blinking after the save. No file is created. Any further attempts to save to or load from the disk gives ?DEVICE NOT PRESENT ERROR.

This is highly frustrating and demoralizing. I have all of these ideas for VIC20 programs to develop, but I'm stuck on the most basic issue!

I've tried Checking "Use IEC Device", explicitly specifying a directory, and Unchecking both "Read P00 files" and "Write P00 files". I've also tried it with those options checked (performing a full quit and restart of VICE between attempts).

No matter what I do, "MY.PRG" is never created.

I am not attempting to attach or create any disc image.
User avatar
Mike
Herr VC
Posts: 4842
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

Within Options, uncheck 'true drive emulation'.

When we access a host directory, we aren't emulating the 15xx hardware, no?
IsaacKuo
Vic 20 Hobbyist
Posts: 147
Joined: Tue Aug 04, 2009 5:45 am

Post by IsaacKuo »

THANK YOU! :D

It works now, and it also works for the version of VICE on my Debian Stable machines. Hooray!
Post Reply