Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Let the machine do the dirty work. -- "Elements of Programming Style", Kernighan and Ritchie


computers / comp.sys.apple2 / Re: Paperboy GS emulation

SubjectAuthor
* Paperboy GS emulationEdward Armstrong
`* Re: Paperboy GS emulationqkumba
 `* Re: Paperboy GS emulationKent Dickey
  `* Re: Paperboy GS emulationEdward Armstrong
   `- Re: Paperboy GS emulationqkumba

1
Paperboy GS emulation

<35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5145&group=comp.sys.apple2#5145

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:2812:b0:72b:25b4:565c with SMTP id f18-20020a05620a281200b0072b25b4565cmr408079qkp.2.1677271163799;
Fri, 24 Feb 2023 12:39:23 -0800 (PST)
X-Received: by 2002:a05:622a:1a9c:b0:3bf:c180:584b with SMTP id
s28-20020a05622a1a9c00b003bfc180584bmr352927qtc.1.1677271163539; Fri, 24 Feb
2023 12:39:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 24 Feb 2023 12:39:23 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=157.130.159.34; posting-account=v-0CogoAAAAJffWAWR1_ez-Rm0VZT_VJ
NNTP-Posting-Host: 157.130.159.34
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com>
Subject: Paperboy GS emulation
From: edward.a...@gmail.com (Edward Armstrong)
Injection-Date: Fri, 24 Feb 2023 20:39:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1484
 by: Edward Armstrong - Fri, 24 Feb 2023 20:39 UTC

Did anyone ever get Paperboy GS to work on MAME or any of the KEGS-based emulators? The latter doesn't really get passed the title page, and in MAME, it crashes when certain sounds are triggered (like breaking glass). It feels like a sound or timing issue.

I've tried all the copies floating around the net, plus I downloaded the Woz-a-day version, cracked it myself and tried it in KEGS and GSPlus, and still no joy. Any thoughts?

Re: Paperboy GS emulation

<c5a39a95-f2b6-429e-aeb7-38c53fb5d96fn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5147&group=comp.sys.apple2#5147

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:6214:a05:b0:56e:8c9a:2610 with SMTP id dw5-20020a0562140a0500b0056e8c9a2610mr3068585qvb.3.1677288996957;
Fri, 24 Feb 2023 17:36:36 -0800 (PST)
X-Received: by 2002:ac8:4091:0:b0:3bf:c76b:659 with SMTP id
p17-20020ac84091000000b003bfc76b0659mr13209qtl.13.1677288996604; Fri, 24 Feb
2023 17:36:36 -0800 (PST)
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 24 Feb 2023 17:36:36 -0800 (PST)
In-Reply-To: <35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=47.149.160.176; posting-account=bGpciwoAAACg2KT8pQMph7tnt3o_9vtu
NNTP-Posting-Host: 47.149.160.176
References: <35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c5a39a95-f2b6-429e-aeb7-38c53fb5d96fn@googlegroups.com>
Subject: Re: Paperboy GS emulation
From: peter.fe...@gmail.com (qkumba)
Injection-Date: Sat, 25 Feb 2023 01:36:36 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1401
 by: qkumba - Sat, 25 Feb 2023 01:36 UTC

I confirm that the sound timing is the issue in MAME. The game is waiting for the sound register to return a value in a specific range, which currently never occurs. I will see if I can work out why.

Re: Paperboy GS emulation

<ttga2o$3030p$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5152&group=comp.sys.apple2#5152

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: keg...@provalid.com (Kent Dickey)
Newsgroups: comp.sys.apple2
Subject: Re: Paperboy GS emulation
Date: Sun, 26 Feb 2023 18:57:28 -0000 (UTC)
Organization: provalid.com
Lines: 49
Message-ID: <ttga2o$3030p$1@dont-email.me>
References: <35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com> <c5a39a95-f2b6-429e-aeb7-38c53fb5d96fn@googlegroups.com>
Injection-Date: Sun, 26 Feb 2023 18:57:28 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="cd61a7d905dd7da5dc2464b43840a980";
logging-data="3148825"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182wp/+6/kMEt2NqwXJgzag"
Cancel-Lock: sha1:XEhrEhbRzVDJBiVKpDntOhojnkU=
Originator: kegs@provalid.com (Kent Dickey)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
 by: Kent Dickey - Sun, 26 Feb 2023 18:57 UTC

In article <c5a39a95-f2b6-429e-aeb7-38c53fb5d96fn@googlegroups.com>,
qkumba <peter.ferrie@gmail.com> wrote:
>I confirm that the sound timing is the issue in MAME. The game is
>waiting for the sound register to return a value in a specific range,
>which currently never occurs. I will see if I can work out why.

Ed Armstrong emailed me Feb 22 about KEGS not working, and it was an easy
fix (for KEGS).

Here's what I said:

I looked into running it on KEGS. At the title screen, Paperboy is
constantly reading the DOC last-sampled-played register, and is waiting
for certain values to occur. As an optimization 25 years ago, KEGS only
updates the DOC last-sample-played register at 60 times a second (to
basically make it work for DOCVU, and things like it). And KEGS code
had a comment saying this should be fixed.

So I fixed it, and then it seems to play. I'm quite bad at the game,
but I threw lots of papers, and even got 250 points eventually, and it
didn't hang.

I get the same results on the two .2MG files, and the .PO file. KEGS
does not work with the .woz file, I'll need to look into that.

If you want to patch KEGS.1.16 and see for yourself, modify sound.c at
lines 1776-1779, and change it from:

---
case 0x3: /* data register */
/* HACK: make this call sound_play sometimes */
g_doc_saved_val = rptr->last_samp_val;
break;
---

to

---
case 0x3: /* data register */
dsamps = dcycs * g_dsamps_per_dcyc;
sound_play(dsamps);
g_doc_saved_val = rptr->last_samp_val;
break;
---

Just add the "dsamps =" and sound_play() lines, and then recompile.

You can probably make a similar patch to GSPort.

Re: Paperboy GS emulation

<7bd6a13d-8b95-4b42-a575-60b76e038188n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5153&group=comp.sys.apple2#5153

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:200f:b0:71f:b908:7b76 with SMTP id c15-20020a05620a200f00b0071fb9087b76mr4630985qka.2.1677530243134;
Mon, 27 Feb 2023 12:37:23 -0800 (PST)
X-Received: by 2002:ac8:9b:0:b0:3bf:abef:4e7 with SMTP id c27-20020ac8009b000000b003bfabef04e7mr160425qtg.4.1677530242901;
Mon, 27 Feb 2023 12:37:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Mon, 27 Feb 2023 12:37:22 -0800 (PST)
In-Reply-To: <ttga2o$3030p$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=99.246.87.29; posting-account=v-0CogoAAAAJffWAWR1_ez-Rm0VZT_VJ
NNTP-Posting-Host: 99.246.87.29
References: <35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com>
<c5a39a95-f2b6-429e-aeb7-38c53fb5d96fn@googlegroups.com> <ttga2o$3030p$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7bd6a13d-8b95-4b42-a575-60b76e038188n@googlegroups.com>
Subject: Re: Paperboy GS emulation
From: edward.a...@gmail.com (Edward Armstrong)
Injection-Date: Mon, 27 Feb 2023 20:37:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 57
 by: Edward Armstrong - Mon, 27 Feb 2023 20:37 UTC

On Sunday, February 26, 2023 at 1:57:30 PM UTC-5, Kent Dickey wrote:
> In article <c5a39a95-f2b6-429e...@googlegroups.com>,
> qkumba <peter....@gmail.com> wrote:
> >I confirm that the sound timing is the issue in MAME. The game is
> >waiting for the sound register to return a value in a specific range,
> >which currently never occurs. I will see if I can work out why.
> Ed Armstrong emailed me Feb 22 about KEGS not working, and it was an easy
> fix (for KEGS).
>
> Here's what I said:
>
> I looked into running it on KEGS. At the title screen, Paperboy is
> constantly reading the DOC last-sampled-played register, and is waiting
> for certain values to occur. As an optimization 25 years ago, KEGS only
> updates the DOC last-sample-played register at 60 times a second (to
> basically make it work for DOCVU, and things like it). And KEGS code
> had a comment saying this should be fixed.
>
> So I fixed it, and then it seems to play. I'm quite bad at the game,
> but I threw lots of papers, and even got 250 points eventually, and it
> didn't hang.
>
> I get the same results on the two .2MG files, and the .PO file. KEGS
> does not work with the .woz file, I'll need to look into that.
>
> If you want to patch KEGS.1.16 and see for yourself, modify sound.c at
> lines 1776-1779, and change it from:
>
> ---
> case 0x3: /* data register */
> /* HACK: make this call sound_play sometimes */
> g_doc_saved_val = rptr->last_samp_val;
> break;
> ---
>
> to
>
> ---
> case 0x3: /* data register */
> dsamps = dcycs * g_dsamps_per_dcyc;
> sound_play(dsamps);
> g_doc_saved_val = rptr->last_samp_val;
> break;
> ---
>
> Just add the "dsamps =" and sound_play() lines, and then recompile.
>
> You can probably make a similar patch to GSPort.

Yes, can confirm that this fixes the issue. It also helps with some other titles as well (more on this later).

Now we're just desperately trying to get a working exe on Windows and we'll be good!

Re: Paperboy GS emulation

<180109a4-a943-4819-addb-2975c4ee09f4n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5202&group=comp.sys.apple2#5202

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:143b:b0:742:357d:ca2c with SMTP id k27-20020a05620a143b00b00742357dca2cmr225715qkj.11.1678403853561;
Thu, 09 Mar 2023 15:17:33 -0800 (PST)
X-Received: by 2002:ac8:82:0:b0:3bf:ba7f:58f8 with SMTP id c2-20020ac80082000000b003bfba7f58f8mr6743116qtg.3.1678403853277;
Thu, 09 Mar 2023 15:17:33 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Thu, 9 Mar 2023 15:17:32 -0800 (PST)
In-Reply-To: <7bd6a13d-8b95-4b42-a575-60b76e038188n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=47.154.29.230; posting-account=bGpciwoAAACg2KT8pQMph7tnt3o_9vtu
NNTP-Posting-Host: 47.154.29.230
References: <35521f4e-9b0e-4ab0-9630-9859d2e5ac5cn@googlegroups.com>
<c5a39a95-f2b6-429e-aeb7-38c53fb5d96fn@googlegroups.com> <ttga2o$3030p$1@dont-email.me>
<7bd6a13d-8b95-4b42-a575-60b76e038188n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <180109a4-a943-4819-addb-2975c4ee09f4n@googlegroups.com>
Subject: Re: Paperboy GS emulation
From: peter.fe...@gmail.com (qkumba)
Injection-Date: Thu, 09 Mar 2023 23:17:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1439
 by: qkumba - Thu, 9 Mar 2023 23:17 UTC

MAME was dropping the fractional part of the phase from the accumulator, so some parts of the sample weren't playing.
I've proposed a fix which is waiting for approval or refinement.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor