Custom Config Generator

[ARCHIVED] About PearPC, a mostly obsolete PPC Mac emulator for Windows and Linux to run MacOS X 10.1 up to 10.4. Using QEMU is now recommended.

Moderators: Cat_7, Ronald P. Regensburg

Locked
Cessnao3
Student Driver
Posts: 11
Joined: Fri Oct 23, 2009 1:38 am

Custom Config Generator

Post by Cessnao3 »

I have been making an offline configuration file generator for PearPC, but I can't seem to get the files to work with PearPC. Is there a special character encoding that I have to use to make the configuration files work with PearPC?

Here is a link to my file generator: http://www.mediafire.com/?4cpq6gcr777b5lv

Any help would be appreciated! Thank you!

EDIT: Link Updated
Last edited by Cessnao3 on Thu Jan 19, 2012 11:50 pm, edited 3 times in total.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Custom Config Generator

Post by Cat_7 »

Your config file generator doesn't put the " after the line
pci_ide0_slave_type = "hd

That the first bug I found that stopped it from working.

Best,
Cat_7
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Custom Config Generator

Post by emendelson »

Cessnao3 wrote:I have been making an offline configuration file generator for PearPC...
Very nice! Thank you for this effort! (The tiny bug found by Cat_7 should be easy to fix, since all the other lines are generated correctly.)

One request: under Windows XP (at least with my color scheme) the top line menu isn't readable (the black File and Help are only slightly darker than the dark blue background). It took me a while to see that they were there. Is it possible to use a lighter color for the background of the file menu?

Terrific job. Thank you again.
Cessnao3
Student Driver
Posts: 11
Joined: Fri Oct 23, 2009 1:38 am

Re: Custom Config Generator

Post by Cessnao3 »

Ok. I have fixed the quotation mark error and I have edited the color scheme of the menu, but the configuration file will still not launch PearPC. I think that there is something wrong in the text encoding, but I do not know what.

Here is the new link:
http://www.mediafire.com/?9kfc4itwyz1n40x
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Custom Config Generator

Post by Cat_7 »

Indeed still doesn't start PearPC. A tiny edit in e.g. Textpad makes the generated config file usable. I looked at file rights, but those seem to be OK.
Textpad says encoding is utf8, which "should" be OK.

Can you build in a way to read in a file generated by your tool? Creating a new file every time is a bit tedious. And perhaps allow selection of screen width and height from a sane set of predefined values?

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Custom Config Generator

Post by Cat_7 »

Network settings are wrong:
pci_3c90x_installed = 0
pci_3c90x_mac = "ab:cd:de:12:34"
pci_rtl8139_installed = 0
pci_rtl8139_mac = "ab:cd:fe:12:35"

Should be (notice the 6 groups instead of your five)):
pci_3c90x_installed = 0
pci_3c90x_mac = "de:ad:ca:fe:12:34"
pci_rtl8139_installed = 0
pci_rtl8139_mac = "de:ad:ca:fe:12:35"

When starting PearPC from the command line, I see that parsing the file results in:
C:\PearPC>ppc05.exe Config.cfg
Config.cfg: invalid character '∩' (ef) in line 1.
usage: ppc configfile

There are lot of references on the internet about UTF8 and problems like these.

Best,
Cat_7
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Custom Config Generator

Post by Ronald P. Regensburg »

UTF-8 encoding need not be a problem as long as you make sure you only use low ascii characters.
Cessnao3
Student Driver
Posts: 11
Joined: Fri Oct 23, 2009 1:38 am

Re: Custom Config Generator

Post by Cessnao3 »

Here is the updated link:
http://www.mediafire.com/?4cpq6gcr777b5lv

It now works with PearPC, and I fixed the MAC addresses.
I have also added a save-as feature, and I will be working on a load feature.
Locked