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
Custom Config Generator
Moderators: Cat_7, Ronald P. Regensburg
Custom Config Generator
Last edited by Cessnao3 on Thu Jan 19, 2012 11:50 pm, edited 3 times in total.
Re: Custom Config Generator
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
pci_ide0_slave_type = "hd
That the first bug I found that stopped it from working.
Best,
Cat_7
-
- Forum All-Star
- Posts: 1706
- Joined: Tue Oct 14, 2008 12:12 am
Re: Custom Config Generator
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.)Cessnao3 wrote:I have been making an offline configuration file generator for PearPC...
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.
Re: Custom Config Generator
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
Here is the new link:
http://www.mediafire.com/?9kfc4itwyz1n40x
Re: Custom Config Generator
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
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
Re: Custom Config Generator
Network settings are wrong:
pci_3c90x_installed = 0
pci_3c90x_mac = "abde:12:34"
pci_rtl8139_installed = 0
pci_rtl8139_mac = "abfe: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
pci_3c90x_installed = 0
pci_3c90x_mac = "abde:12:34"
pci_rtl8139_installed = 0
pci_rtl8139_mac = "abfe: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
- Ronald P. Regensburg
- Expert User
- Posts: 7821
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Custom Config Generator
UTF-8 encoding need not be a problem as long as you make sure you only use low ascii characters.
Re: Custom Config Generator
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.
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.