 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
hlidea
Joined: 23 Feb 2007 Posts: 3
|
Posted: Sat Feb 24, 2007 12:44 pm Post subject: |
|
|
| crazyc wrote: | | Posted a new patch and binary. It may be placebo, but some things seem to be significantly faster now. |
I always meet bus errors when using the binary running some games. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Sat Feb 24, 2007 2:05 pm Post subject: |
|
|
| hlidea wrote: | | crazyc wrote: | | Posted a new patch and binary. It may be placebo, but some things seem to be significantly faster now. |
I always meet bus errors when using the binary running some games. |
Which games and what is the register dump? |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Thu Mar 29, 2007 10:44 am Post subject: |
|
|
I've posted a new patch and binary. The memory access code has been redone to reduce the number of non-cache-line contiguous load required to access emulated RAM. Now, at 333, Commander Keen runs at full speed, SimCity 2000 is playable and Tie Fighter approaches playability. This new code is probably a little buggy (Warcraft 2 crashes now but I think it's fixable), but there will almost certainly be, even after the bugs are fixed, reduced compatibility (but I'm not sure of the extent).
Also, I've added two new dos commands: 'INPUTMAP <button> <keycode>' maps the given button to the given keycode and 'INPUTMAP exec <cmdline>' runs cmdline with the inputmap, and 'SYSOPT clock <rate>' sets the cpu clock to rate.
Before anyone complains about having to type in these options remember that is what batch files are for.
Here is the button and keycode option strings
| Code: | const keyinfo INPUTMAP::chartab[] =
{{KBD_1,"1"},{KBD_2,"2"},{KBD_3,"3"},{KBD_4,"4"},{KBD_5,"5"},{KBD_6,"6"},{KBD_7,"7"},{KBD_8,"8"},{KBD_9,"9"},{KBD_0,"0"},
{KBD_q,"q"},{KBD_w,"w"},{KBD_e,"e"},{KBD_r,"r"},{KBD_t,"t"},{KBD_y,"y"},{KBD_u,"u"},{KBD_i,"i"},{KBD_o,"o"},{KBD_p,"p"},
{KBD_a,"a"},{KBD_s,"s"},{KBD_d,"d"},{KBD_f,"f"},{KBD_g,"g"},{KBD_h,"h"},{KBD_j,"j"},{KBD_k,"k"},{KBD_l,"l"},{KBD_z,"z"},
{KBD_x,"x"},{KBD_c,"c"},{KBD_v,"v"},{KBD_b,"b"},{KBD_n,"n"},{KBD_m,"m"},
{KBD_f1,"f1"},{KBD_f2,"f2"},{KBD_f3,"f3"},{KBD_f4,"f4"},{KBD_f5,"f5"},{KBD_f6,"f6"},{KBD_f7,"f7"},
{KBD_f8,"f8"},{KBD_f9,"f9"},{KBD_f10,"f10"},{KBD_f11,"f11"},{KBD_f12,"f12"},
{KBD_esc,"esc"},{KBD_tab,"tab"},{KBD_backspace,"bs"},{KBD_enter,"enter"},{KBD_space,"space"},
{KBD_leftalt,"lalt"},{KBD_rightalt,"ralt"},{KBD_leftctrl,"lctrl"},{KBD_rightctrl,"rctrl"},{KBD_leftshift,"lshift"},{KBD_rightshift,"rshift"},
{KBD_capslock,"caplock"},{KBD_scrolllock,"scrllock"},{KBD_numlock,"numlock"},
{KBD_grave,"`"},{KBD_minus,"-"},{KBD_equals,"="},{KBD_backslash,"\\"},{KBD_leftbracket,"["},{KBD_rightbracket,"]"},
{KBD_semicolon,";"},{KBD_quote,"'"},{KBD_period,"."},{KBD_comma,","},{KBD_slash,"/"},
{KBD_insert,"insert"},{KBD_home,"home"},{KBD_pageup,"pgup"},{KBD_delete,"del"},{KBD_end,"end"},{KBD_pagedown,"pgdn"},
{KBD_left,"left"},{KBD_up,"up"},{KBD_down,"down"},{KBD_right,"right"},
{KBD_kp1,"n1"},{KBD_kp2,"n2"},{KBD_kp3,"n3"},{KBD_kp4,"n4"},{KBD_kp5,"n5"},{KBD_kp6,"n6"},{KBD_kp7,"n7"},{KBD_kp8,"n8"},{KBD_kp9,"n9"},{KBD_kp0,"n9"},
{KBD_kpslash,"n/"},{KBD_kpmultiply,"n*"},{KBD_kpminus,"n-"},{KBD_kpplus,"n+"},{KBD_kpenter,"nenter"},{KBD_kpperiod,"n."}, {KBD_LAST, NULL}};
const char *INPUTMAP::button[] = {"select", "start", "up", "right", "down", "left", "triangle", "circle", "cross", "square", NULL}; |
|
|
| Back to top |
|
 |
Wraggster
Joined: 26 Aug 2005 Posts: 121
|
Posted: Fri Mar 30, 2007 7:11 am Post subject: |
|
|
hi wheres the new patch i cant see the download.
also can you give detailed instructions for those who arent familar with dosbox to try this on the PSP _________________ Webmaster of http://www.dcemu.co.uk
DCEMU The Worlds Only Homebrew & Gaming Network of Sites. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Fri Mar 30, 2007 8:26 am Post subject: |
|
|
| Wraggster wrote: | | hi wheres the new patch i cant see the download. |
4th post, first page.
| Wraggster wrote: | | also can you give detailed instructions for those who arent familar with dosbox to try this on the PSP |
Do you mean the input mapping? I wrote it to be used with batch files, somthing like this:
| Code: | @ECHO OFF
INPUTMAP up up
INPUTMAP right right
INPUTMAP down down
INPUTMAP left left
INPUTMAP triangle w
INPUTMAP square a
INPUTMAP cross s
INPUTMAP circle d
INPUTMAP start enter
INPUTMAP select esc
SYSOPT clock 333
INPUTMAP exec doom2
|
(not that doom2 is playable, you'd be much better off with the psp port) |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Tue Apr 10, 2007 8:10 am Post subject: |
|
|
| New patch and binary. Fixed the audio somewhat and switched to the scummvm ym3182 emulator. Also, made the x87 use single floats instead of double, this will probably cause problems with some apps, but should be a lot faster with programs that use the fpu frequently. The 16 color vga modes now use 4bpp textures, not much of a speed improvement here though because converting the data from planer to packed is cpu intensive; if any has any ideas how to speed this up, right now it uses a lookup table , I'd like to hear them. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Thu Apr 12, 2007 12:11 am Post subject: |
|
|
Another new patch and binary at the links above. This fixes a serious bug in dpmi emulation. Also, the binary is 25% smaller since I now link it against uClibc++. I've added a three new config file options to control a very basic autocycle system. | Code: | [cpu]
autocycle=true
mincycles=600
maxcycles=3000 |
This will adjust the cycles between 600 and 3000 by attempting to match the emulated vsync with the actual one. This works well with games the run at or nearly full speed. |
|
| Back to top |
|
 |
l00k
Joined: 12 Apr 2007 Posts: 12
|
Posted: Thu Apr 12, 2007 12:41 am Post subject: |
|
|
hi
just playing around witth this nice project. I was finding the command prompt a bit fiddley so I stuck this on to auto boot from dosbox.conf
http://www.ritlabs.com/download/dn/dn151.zip
I used something similar back in the day when my brothers were too thick to type.
also found dropping the mouse sensetivity down to 10 helped alot |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Thu Apr 12, 2007 12:54 am Post subject: |
|
|
| l00k wrote: | | also found dropping the mouse sensetivity down to 10 helped alot |
The last version I just posted makes the mouse less sensitive, you will probably want to raise sensitivity to 80 or 90. |
|
| Back to top |
|
 |
l00k
Joined: 12 Apr 2007 Posts: 12
|
Posted: Thu Apr 12, 2007 1:16 am Post subject: |
|
|
| crazyc wrote: | | l00k wrote: | | also found dropping the mouse sensetivity down to 10 helped alot |
The last version I just posted makes the mouse less sensitive, you will probably want to raise sensitivity to 80 or 90. |
I've been trying to track down elf2pbp so I can patch myself a new eboot but I cant find it anywhere.
Can you stick up the new eboots somewhere please?
BTW The launcher thing works well cant believe 4dsports boxing just loaded up! shame I dont have the manual to get past copy protection :/ |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Thu Apr 12, 2007 1:32 am Post subject: |
|
|
| l00k wrote: |
I've been trying to track down elf2pbp so I can patch myself a new eboot but I cant find it anywhere.
Can you stick up the new eboots somewhere please?
BTW The launcher thing works well cant believe 4dsports boxing just loaded up! shame I dont have the manual to get past copy protection :/ |
The dosbox binary is ready to go. Just rename it to EBOOT.PBP and put it in the appropriate directory. I use psplink to load it so that why I didn't rename it. |
|
| Back to top |
|
 |
l00k
Joined: 12 Apr 2007 Posts: 12
|
Posted: Thu Apr 12, 2007 1:58 am Post subject: |
|
|
| crazyc wrote: | | l00k wrote: |
I've been trying to track down elf2pbp so I can patch myself a new eboot but I cant find it anywhere.
Can you stick up the new eboots somewhere please?
BTW The launcher thing works well cant believe 4dsports boxing just loaded up! shame I dont have the manual to get past copy protection :/ |
The dosbox binary is ready to go. Just rename it to EBOOT.PBP and put it in the appropriate directory. I use psplink to load it so that why I didn't rename it. |
cheers for that just showing my psp n00biness there.... |
|
| Back to top |
|
 |
Weaver1497
Joined: 12 Apr 2007 Posts: 18
|
Posted: Thu Apr 12, 2007 2:11 pm Post subject: |
|
|
CrazyC,
I would like to thank you. Playing Quest for Glory 1 VGA by Sierra on my PSP is an absolute dream come true! I really cannot thank you enough. This is AMAZING! Couple of questions to anyone, maybe some insight to a "noobie" (me)
I have been in the PSP emu scene from the start and consider myself somewhat knowledgable. And Love dosbox, I am very glad you have continued work. I actually downloaded a PSP ready version from DCemu that a user named Belthasar00 actually created.
I have tried to create one using the bin files that you upload but they always come up as corrupted data. Could someone teach me how to create them into eboots? So they are literaly "plug and play" for the PSP scene. If I knew how I will be more than happy to distribute so more people get to use this amazing program.
Also the interface, specifically typing is extremely difficult. Can anything be done about that? a virtual Keyboard like PSPUAE?
Once again, you have made a childhood dream of mine a complete reality! Thank you soooooooo much.
(I apoligize if these questions sound extremely amateur, just need some help.) |
|
| Back to top |
|
 |
l00k
Joined: 12 Apr 2007 Posts: 12
|
Posted: Thu Apr 12, 2007 6:20 pm Post subject: |
|
|
| Weaver1497 wrote: | CrazyC,
I would like to thank you. Playing Quest for Glory 1 VGA by Sierra on my PSP is an absolute dream come true! I really cannot thank you enough. This is AMAZING! Couple of questions to anyone, maybe some insight to a "noobie" (me)
I have been in the PSP emu scene from the start and consider myself somewhat knowledgable. And Love dosbox, I am very glad you have continued work. I actually downloaded a PSP ready version from DCemu that a user named Belthasar00 actually created.
I have tried to create one using the bin files that you upload but they always come up as corrupted data. Could someone teach me how to create them into eboots? So they are literaly "plug and play" for the PSP scene. If I knew how I will be more than happy to distribute so more people get to use this amazing program.
Also the interface, specifically typing is extremely difficult. Can anything be done about that? a virtual Keyboard like PSPUAE?
Once again, you have made a childhood dream of mine a complete reality! Thank you soooooooo much.
(I apoligize if these questions sound extremely amateur, just need some help.) |
If you dont want to type download this dos app (dos navigator) and copy it into dir called dosbox in the root of your psp which is then going to be mounted as C
[url]http://www.ritlabs.com/download/dn/dn151.zip [/url]
here's what I have in my dosbox.conf autoexec bit
| Code: | [autoexec]
# Lines in this section will be run at startup.
mount c ms0:/psp/dosbox
SYSOPT clock 333
c:
cd dn151\
dn.com |
If you copy all your dos program directories into /psp/dosbox/ you can then use the mouse control in dos navigator to lauch your programs.
works for me |
|
| Back to top |
|
 |
Retron
Joined: 13 Apr 2007 Posts: 5
|
Posted: Fri Apr 13, 2007 4:08 am Post subject: |
|
|
First up, many thanks for porting DOSBox! It's right up my street as I'm probably one of the few who's insane enough to keep an old PC running just for old games.
Anyway, I've got DOSBox for the PSP up and running. Wolf runs after a fashion, but the status bar doesn't draw - no biggy, as it's a relatively complex game and would doubtless be laggy anyway.
Duke Nukem I seems to run perfectly, that is apart from the input configuration. I used the batch file as posted earlier to set up a key config:
| Code: |
@ECHO OFF
INPUTMAP up up
INPUTMAP right right
INPUTMAP down down
INPUTMAP left left
INPUTMAP triangle d
INPUTMAP square a
INPUTMAP cross lctrl
INPUTMAP circle lalt
INPUTMAP start enter
INPUTMAP select esc
|
However, DOSBox crashed.
I then tried manually typing in:
inputmap up up
as a test, but it still caused DOSBox to crash. The dump looked like this:
| Code: |
Exception - Bus error (data)
EPC - 0888E48C
Cause - 1000001C
Status - 20008613
BadVAddr - 00841008
zr:00000000 at:08B60000 v0:00000018 v1:00000030
a0:00000002 a1:00000050 a2:08910000 a3:0000006E
t0:00000075 t1:00000070 t2:00000001 t3:00000002
t4:00000032 t5:00000000 t6:0890480C t7:08900000
s0:0000000C s1:00000034 s2:00000002 s3:00000050
s4:08CCEFB0 s5:00000002 s6:0885D8A4 s7:08910000
t8:00000000 t9:00000061 k0:0885FF00 k1:00000000
gp:08917FE0 sp:0885D660 fp:08910000 ra:00000048
eax:00004A00 ecx:00000000 edx:00000000 ebx:00000040
esp:00000400 ebp:00000000 esi:00000100 edi:00000000
es:0000006D os:0000006D ss:0000006D ds:0000006D
fs:00000000 gs:00000000 eip:0000010E
|
There's nothing fancy in my dosbox.conf, although I've disabled speaker and SB emulation. The following is in the autoexec section:
| Code: |
mount c ms0:/psp/dos
c:
#sysopt clock 333
|
Now, I'm still a relative newb to the PSP homebrew scene, but not to DOS in general. If it helps any, I'm running DarkAlex's modified firmware, 3.02 OE-B.
Am I just being daft, or is it likely to be a firmware issue causing that crash?
Last edited by Retron on Fri Apr 13, 2007 4:20 am; edited 1 time in total |
|
| Back to top |
|
 |
Weaver1497
Joined: 12 Apr 2007 Posts: 18
|
Posted: Fri Apr 13, 2007 4:17 am Post subject: |
|
|
Sweet! Thanks 100k, I'm actually at work right now, so I'll impliment that file when I get home. I have 1 more request though, can you walk me through how to compile CrazyC's binary's that he updates?
Now that he is working on the project somewhat regularly I would love to be able to compile the latest bin on my own. Instead of waiting or requesting in other forums for someone else to do it.
TO ALL: 100k adding the "gui" of dos navigator looks great, making it a much more fully functional "emu" my question is to the community how else, can we help to make this a better, more user friendly emulator? How many cycles can the PSP actually churn out safely before the speed is crippled? What's the ideal frameskip? Can we make a "user" dosbox.conf file that takes full advantage of what the "user" community can create? Sorry If I'm rambling, I want this project to go as far as possible!
GAMES IVE TESTED THAT WORK:
Space Quest 1 VGA Remake
Space Quest 4 CD version
Space Quest 5
King's Quest 5 CD version
King's Quest 6 CD version (some audio errors, unlike other CD versions)
Gabriel Knight CD version
Police Quest 1 VGA Remake
Police Quest 3
Quest for Glory VGA Remake
Quest for Glory 3
Quest for Glory 4 CD Version
Leisure Suit Larry VGA Remake
Leisure Suit Larry 5
Conquest of the Longbow
Freddy Pharkus Frontier Pharmicist
Laura Bow - Colonels Bequest
Laura Bow - Dagger of Amon Ra
Rex Nebular
Sherlock Holmes - Case of the Serrated Scalpel
The shocking thing is the games that worked the best were some of the later games like QFG4 and Freddy Pharkus, I also am using the first update he sent out that was compiled by someone at DCemu so I dont think this is upped to 333, and I'm not using frame skip, I consider these game playable.
Which is a great sign considering what I'm running it on a non-optimized dosbox.conf. (once again if someone could help me fine tune a .conf as well as compile the latest binary I would LOVE to continue to test these games.) Also all these games have the abillity under the control panel to up the speed in-game, making it much more playable. (The majority of sierra games had these.) |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Fri Apr 13, 2007 4:38 am Post subject: |
|
|
| Quote: |
However, DOSBox crashed.
|
It crashes for me too, I've got some other fixes i'm working on too. I'll try to make a new patch with a fix for this soon. |
|
| Back to top |
|
 |
l00k
Joined: 12 Apr 2007 Posts: 12
|
Posted: Fri Apr 13, 2007 4:44 am Post subject: |
|
|
How about this for a cool old dos game ?
Bullfrogs Syndicate
It works on pspdosbox too (bit slow for now tho)
for those without the compilation progs grab the binary "dosbox" that crazyc posted earlier and rename it eboot.pbp copy it to the dosbox_psp folder replacing the old one |
|
| Back to top |
|
 |
Weaver1497
Joined: 12 Apr 2007 Posts: 18
|
Posted: Fri Apr 13, 2007 4:50 am Post subject: |
|
|
100k,
I've downloaded his binaries renamed them as EBOOT.PBP and put that same file in both the Dosbox_psp folder and the dosbox_psp% folder, all I get is corrupted data, under my Game menu.
Am I doing something wrong?
Also 100k would you mind sharing your .conf file? if Im allowed to ask for it? if not I apoligize |
|
| Back to top |
|
 |
l00k
Joined: 12 Apr 2007 Posts: 12
|
Posted: Fri Apr 13, 2007 5:37 am Post subject: |
|
|
| Weaver1497 wrote: | 100k,
I've downloaded his binaries renamed them as EBOOT.PBP and put that same file in both the Dosbox_psp folder and the dosbox_psp% folder, all I get is corrupted data, under my Game menu.
Am I doing something wrong?
Also 100k would you mind sharing your .conf file? if Im allowed to ask for it? if not I apoligize |
Dont overwrite the eboot.pbp thats in the % directory just the one in Dosbox_PSP
heres my conf
http://www.deardenboys.co.uk/dosbox.conf |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Fri Apr 13, 2007 7:20 am Post subject: |
|
|
| Dangerous Dave goes too fast :/ Its hiliarious |
|
| Back to top |
|
 |
Weaver1497
Joined: 12 Apr 2007 Posts: 18
|
Posted: Fri Apr 13, 2007 7:49 am Post subject: |
|
|
100k, thanks for the walkthrough I'm a little slow at this stuff, and thank you SOOOOOO much for your .conf
What other games are people testing? I would love to piece together a compat chart |
|
| Back to top |
|
 |
W00fer
Joined: 13 Apr 2007 Posts: 40
|
Posted: Fri Apr 13, 2007 8:19 am Post subject: |
|
|
So well i'm brand new into this dosbox thing. First i had only the corrupted eboot.pbp :) but now dosbox runs :)
Also with the config from l00k, Navigator runs, but WHAT a hassle to run programs there omg.
I'm trying to play Duke Nukem 1, which runs. But how to play when you can't define controls ?
Standard Keymapper from Dosbox can't be run.
Now i know you have to run these games with BAT files, but it doesn't work very properly.
Anyone knows how to map keys correctly ? Sound works :)
I got this BUS ERROR:

Last edited by W00fer on Fri Apr 13, 2007 9:09 am; edited 2 times in total |
|
| Back to top |
|
 |
Wraggster
Joined: 26 Aug 2005 Posts: 121
|
Posted: Fri Apr 13, 2007 9:02 am Post subject: |
|
|
anyone tried theme park :) _________________ Webmaster of http://www.dcemu.co.uk
DCEMU The Worlds Only Homebrew & Gaming Network of Sites. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Fri Apr 13, 2007 9:58 am Post subject: |
|
|
| I posted a new binary that fixes the mapping problems and some problems with VGA. I'll post a new patch when I finish with some other things. |
|
| Back to top |
|
 |
Weaver1497
Joined: 12 Apr 2007 Posts: 18
|
Posted: Fri Apr 13, 2007 10:42 am Post subject: |
|
|
| Sweet! New binary! I'm really glad you continue to develop this CrazyC! Got a question for anyone... What exactly do the patch updates do? Is that like a config file? |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Fri Apr 13, 2007 11:01 am Post subject: |
|
|
| Wraggster wrote: | | anyone tried theme park :) |
I will when i get home Wraggs :) |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Fri Apr 13, 2007 11:09 am Post subject: |
|
|
| Weaver1497 wrote: | | Sweet! New binary! I'm really glad you continue to develop this CrazyC! Got a question for anyone... What exactly do the patch updates do? Is that like a config file? |
Source code patch to satisfy the GPL and so others can help with development if they'd like. |
|
| Back to top |
|
 |
cloudhunter
Joined: 17 Aug 2006 Posts: 86
|
Posted: Fri Apr 13, 2007 12:44 pm Post subject: |
|
|
Are you going to consider implementing any keyboard libraries, such as pi-key by Fanjita?
Cloudy _________________ :) |
|
| Back to top |
|
 |
DarthGameR
Joined: 13 Apr 2007 Posts: 18
|
Posted: Fri Apr 13, 2007 1:02 pm Post subject: REMAPPING |
|
|
| remapping doesnt work for me. i tried using batch file & inputting commands directly but they dont affect the game. it just continues to run with the default ones. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|