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

Cannot run self build image #2

Open
vollnhals opened this issue Jan 23, 2014 · 13 comments
Open

Cannot run self build image #2

vollnhals opened this issue Jan 23, 2014 · 13 comments

Comments

@vollnhals
Copy link

Hi!

I cloned this repository and followed the readme.
Finally i got everything to build.

I used the image files from http://jamesfriend.com.au/pce-js/pcejs20131028.zip .
Especially i tried to build the romsplus image.

After grunt afterbuild (and grunt ui), I have some files in the dist folder.

Now I run grunt run and access http://localhost:8080/pce-macplus.html

But i cannot get the image to run.
I get the following failure:

pce-macplus version 20140115-63acfb6
Copyright (C) 2007-2012 Hampa Hug <[email protected]>
CONFIG:   file="roms/pce-config.cfg"
*** loading config file failed

What can I do to fix this?
I added some debug output to the afterbuild step.
This are the packaged files:

Packaging file "/app/pcejs/romsplus/macplus-pcex.rom" to VFS in path "/macplus-pcex.rom".
Packaging file "/app/pcejs/romsplus/pram-mac-plus.dat" to VFS in path "/pram-mac-plus.dat".
Packaging file "/app/pcejs/romsplus/mac-plus.rom" to VFS in path "/mac-plus.rom".
Packaging file "/app/pcejs/romsplus/ser_b.out" to VFS in path "/ser_b.out".
Packaging file "/app/pcejs/romsplus/pce-config.cfg" to VFS in path "/pce-config.cfg".
Packaging file "/app/pcejs/romsplus/games10.dsk" to VFS in path "/games10.dsk".
Packaging file "/app/pcejs/romsplus/ser_a.out" to VFS in path "/ser_a.out".

Can you help?

@9tens
Copy link

9tens commented Jan 24, 2014

Well, lets take a backtrack ok?
Are you missing any files?

On Thu, Jan 23, 2014 at 9:53 AM, vollnhals [email protected] wrote:

Hi!

I cloned this repository and followed the readme.
Finally i got everything to build.

I used the image files from
http://jamesfriend.com.au/pce-js/pcejs20131028.zip .
Especially i tried to build the romsplus image.

After grunt afterbuild (and grunt ui), I have some files in the dist
folder.

Now I run grunt run and access http://localhost:8080/pce-macplus.html

But i cannot get the image to run.
I get the following failure:

pce-macplus version 20140115-63acfb6
Copyright (C) 2007-2012 Hampa Hug [email protected]
CONFIG: file="roms/pce-config.cfg"
*** loading config file failed

What can I do to fix this?
I added some debug output to the afterbuild step.
This are the packaged files:

Packaging file "/app/pcejs/romsplus/macplus-pcex.rom" to VFS in path "/macplus-pcex.rom".
Packaging file "/app/pcejs/romsplus/pram-mac-plus.dat" to VFS in path "/pram-mac-plus.dat".
Packaging file "/app/pcejs/romsplus/mac-plus.rom" to VFS in path "/mac-plus.rom".
Packaging file "/app/pcejs/romsplus/ser_b.out" to VFS in path "/ser_b.out".
Packaging file "/app/pcejs/romsplus/pce-config.cfg" to VFS in path "/pce-config.cfg".
Packaging file "/app/pcejs/romsplus/games10.dsk" to VFS in path "/games10.dsk".
Packaging file "/app/pcejs/romsplus/ser_a.out" to VFS in path "/ser_a.out".

Can you help?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

@jsdf
Copy link
Owner

jsdf commented Jan 24, 2014

I would recommend:

  • set "outputformat": "js" in pcejs-build-config.json
  • in the browser open the file called pce-macplus-gen.html

@vollnhals
Copy link
Author

Yes i am using the fork.

I actually got it working after creating a roms/ directory inside the
romsplus directory and copying the pce-config.cfg inside the roms/
directory.

When I open the website then the emulator actually loads.

What tool do you use to generate floppy and harddisk images?

2014/1/24 James Friend [email protected]

I would recommend:

set "outputformat": "js" in pcejs-build-config.json

in the browser open the file called pce-macplus-gen.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-33218835
.

@jsdf
Copy link
Owner

jsdf commented Jan 25, 2014

I use Mini vMac with the blank disk images and the ImportFl which can both
be found on the Mini vMac website. Also the tools which come with PCE are
useful.

On Friday, January 24, 2014, vollnhals [email protected] wrote:

Yes i am using the fork.

I actually got it working after creating a roms/ directory inside the
romsplus directory and copying the pce-config.cfg inside the roms/
directory.

When I open the website then the emulator actually loads.

What tool do you use to generate floppy and harddisk images?

2014/1/24 James Friend <[email protected] <javascript:_e({},
'cvml', '[email protected]');>>

I would recommend:

set "outputformat": "js" in pcejs-build-config.json

in the browser open the file called pce-macplus-gen.html


Reply to this email directly or view it on GitHub<
https://github.com/jsdf/pce/issues/2#issuecomment-33218835>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-33223757
.

@9tens
Copy link

9tens commented Jan 28, 2014

Interesting...

On Fri, Jan 24, 2014 at 10:42 PM, James Friend [email protected]:

I use Mini vMac with the blank disk images and the ImportFl which can both
be found on the Mini vMac website. Also the tools which come with PCE are
useful.

On Friday, January 24, 2014, vollnhals [email protected] wrote:

Yes i am using the fork.

I actually got it working after creating a roms/ directory inside the
romsplus directory and copying the pce-config.cfg inside the roms/
directory.

When I open the website then the emulator actually loads.

What tool do you use to generate floppy and harddisk images?

2014/1/24 James Friend <[email protected] <javascript:_e({},
'cvml', '[email protected]');>>

I would recommend:

set "outputformat": "js" in pcejs-build-config.json

in the browser open the file called pce-macplus-gen.html


Reply to this email directly or view it on GitHub<
https://github.com/jsdf/pce/issues/2#issuecomment-33218835>
.


Reply to this email directly or view it on GitHub<
https://github.com/jsdf/pce/issues/2#issuecomment-33223757>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-33282601
.

@vollnhals
Copy link
Author

Hi,

thanks for the help so far. But sadly i have run into further problems.
I downloaded the newest version from git today.
I copied the romsplus directory from your pcejs20131028 zip file.
Then i did the build

npm install
grunt build:macplus
grunt romdir:macplus
grunt afterbuild
grunt ui
grunt run

When I open http://localhost:8080/pce-macplus-gen.html everything is fine so far.

Now I try to add a disk of my own. I used the 800K.dsk from Mini vMac and copied some files in there. I modified the pce-config.cfg to load the 800K.dsk besides the already present hd1.img.

disk {
        drive    = 1
        type     = "auto"
        file     = "800K.dsk"
        #file     = "games10.dsk"
        optional = 0
}

I do another grunt afterbuild. When I open the page the image still runs and boots from the hd1, but the new disk is never shown. In the output log there is the failure "*** loading drive 0x01 failed".

22:53:21.915 Error: successfully compiled asm.js code (total compilation time 1262ms; 1 functions compiled slowly: s5:4055:9 (986ms)) pce-macplus.js
22:53:22.267 "run() called, but dependencies remain, so not running" pce.js:46
22:53:22.536 "pce-macplus version 20140124-92cd652" pce-macplus.js:1326
22:53:22.536 "Copyright (C) 2007-2012 Hampa Hug [email protected]" pce-macplus.js:1326
22:53:22.536 "CONFIG: file="pce-config.cfg"" pce-macplus.js:1326
22:53:22.547 "SYSTEM: model=mac-plus" pce-macplus.js:1326
22:53:22.548 "RAM: addr=0x00000000 size=4194304 file=" pce-macplus.js:1326
22:53:22.549 "ROM: addr=0x00400000 size=262144 file=mac-plus.rom" pce-macplus.js:1326
22:53:22.550 "ROM: addr=0x00f80000 size=262144 file=macplus-pcex.rom" pce-macplus.js:1326
22:53:22.550 "RAM: disabling memory test" pce-macplus.js:1326
22:53:22.551 "CPU: model=68000 speed=2" pce-macplus.js:1326
22:53:22.551 "VIA: addr=0xefe000 size=0x2000" pce-macplus.js:1326
22:53:22.551 "SCC: addr=0x800000 size=0x400000" pce-macplus.js:1326
22:53:22.552 "SERIAL: port=0 multichar=1 driver=stdio:file=ser_a.out:flush=1" pce-macplus.js:1326
22:53:22.552 "SERIAL: port=1 multichar=1 driver=stdio:file=ser_b.out" pce-macplus.js:1326
22:53:22.552 "RTC: file=pram-mac-plus.dat realtime=1 start= romdisk=0" pce-macplus.js:1326
22:53:22.552 "KEYBOARD: model=0 international=0 keypad=keypad" pce-macplus.js:1326
22:53:22.554 "*** loading drive 0x01 failed" pce-macplus.js:1326
22:53:22.554 "DISK: drive=128 type=auto blocks=41820 chs=41/16/63 rw file=hd1.img" pce-macplus.js:1326
22:53:22.555 "IWM: addr=0xd00000" pce-macplus.js:1326
22:53:22.555 "SCSI: addr=0x580000 size=0x80000" pce-macplus.js:1326
22:53:22.555 "SCSI: id=6 drive=128 vendor="PCE" product="PCEDISK"" pce-macplus.js:1326
22:53:22.555 "SCSI: id=4 drive=129 vendor="PCE" product="PCEDISK"" pce-macplus.js:1326
22:53:22.556 "SCSI: id=2 drive=130 vendor="PCE" product="PCEDISK"" pce-macplus.js:1326
22:53:22.561 "SONY: drive=1 delay=15" pce-macplus.js:1326
22:53:22.561 "SONY: drive=2 delay=15" pce-macplus.js:1326
22:53:22.562 "SONY: drive=3 delay=15" pce-macplus.js:1326
22:53:22.562 "SONY: drive=4 delay=15" pce-macplus.js:1326
22:53:22.563 "SOUND: addr=0x3FFD00 lowpass=6000 driver=null" pce-macplus.js:1326
22:53:22.564 "TERM: driver=sdl ESC=ESC aspect=3/2 min_size=512*384 scale=1 mouse=[1/1 1/1]" pce-macplus.js:1326
22:53:22.564 "VIDEO: addr=0x3FA700 w=512 h=342 bright=100%" pce-macplus.js:1326
22:53:22.565 "[000000] mac: reset" pce-macplus.js:1326
22:53:22.565 "[4000D2] main sound buffer" pce-macplus.js:1326
22:53:22.578 "Exit Status: 1" pce-macplus.js:2758
22:53:25.679 "00400594: undefined operation: 4E7B [4E7B 0002 600C 7201 0C6F]" pce-macplus.js:1326
22:53:25.680 "00400594: exception 04 (ILLG) IW=4E7B" pce-macplus.js:1326
22:53:25.680 "SONY: PCE ROM extension at 0xf8001c" pce-macplus.js:1326
22:53:25.681 "SONY: sony driver at 0x417d30" pce-macplus.js:1326
22:53:37.558 [object Array] pce.js:192
22:53:37.558 "2" pce.js:193
22:53:49.248 [object Array] pce.js:192
22:53:49.248 "1" pce.js:193
22:53:58.898 "[401F82] system too slow, skipping 1 second" pce-macplus.js:1326

Why does it not read the image?

@vollnhals
Copy link
Author

On another note, i cannot open the hd1.img mentioned above in Mini vMac. Do i need some tool to convert formats?

@jsdf
Copy link
Owner

jsdf commented Feb 2, 2014

Yeah that file is a hard disk image (raw) with legacy hfs file system. Mini vmac only reads floppy images and apple removed support for legacy hfs in snow leopard. Either you can use leopard in a vm or just use the larger blank floppy images which come with vmac, or any other tools you can find for working with hfs. If you just need to move files around use a native build of PCE. Cheers,
James

On Sat, Feb 1, 2014 at 6:05 AM, vollnhals [email protected]
wrote:

On another note, i cannot open the hd1.img mentioned above in Mini vMac. Do i need some tool to convert formats?

Reply to this email directly or view it on GitHub:
#2 (comment)

@jsdf
Copy link
Owner

jsdf commented Feb 2, 2014

You can install a native build of PCE with homebrew or just run grunt build:native which will build all the PCE executables in the build-native/ dirCheers,
James

On Sat, Feb 1, 2014 at 6:05 AM, vollnhals [email protected]
wrote:

On another note, i cannot open the hd1.img mentioned above in Mini vMac. Do i need some tool to convert formats?

Reply to this email directly or view it on GitHub:
#2 (comment)

@ociebieda
Copy link

Hello.
I have your pce-ibmpce-games.rar file which includes pce-ibmpc.html (1.27 MB) and pce-ibmpc.data (17.5 MB), and it works great.
My question is what is this data format and what PC Windows software can be used to create, edit, import and export files in this image?
I already tried many popular image software, including this for hard disk IMG files, but none of them is able to read your file.

I would like to have minimal FreeDOS data file (source image: http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz) and be able to export and import data there.
What tool on my PC Windows should I use to do it?

@jsdf
Copy link
Owner

jsdf commented Oct 11, 2014

The .data file is an archive format generated by emscripten. However, you can use normal .img disk images with PCE.

You can follow the instructions on this page to get it working yourself. Note that the line which says npm install -g browserify should be npm install -g [email protected].

You'll need to add your boot image to the pce-config.cfg file as a floppy image, and update the autoloadFiles array in the emulator initialisation to reference your disk image. You'll also probably want to disable the hd0.qed file from being mounted as a hard drive in the config file.

@cantino
Copy link

cantino commented Nov 23, 2014

Thanks, I also couldn't build the mac one until I used [email protected]

@jsdf
Copy link
Owner

jsdf commented Nov 26, 2014

Oh I looks like I forgot to update the readme in relation to the noparse opt not working in browserify versions after 4.x

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

5 participants