Search found 76 matches

by cwbowron
Fri Apr 28, 2006 11:06 pm
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

Back in the saddle... possibly

I've been inspired to revisit pspChess and try to finally add the network support for using pspChess as an interface to the Free Internet Chess Server. I updated my pspsdk a couple days ago and I was able to rebuild the program, but when I tried to run it, the screen went black. I'm wondering if any...
by cwbowron
Fri Aug 26, 2005 8:08 am
Forum: PSP Development
Topic: -Os should be used instead of -O2 (or -O3)
Replies: 9
Views: 3230

I did a small test with pspChess. Compiled the app-level stuff using Os and O2. Library was standard library build. No background music. I tested using an 8 ply search and a 9 ply search. 3 runs per test. First move for black. reply to a2a4. -Os (984,232 bytes) 8 ply: 50s, 53s, 50s => 51s average 9 ...
by cwbowron
Thu Aug 18, 2005 5:02 am
Forum: PSP Development
Topic: 2D help for a n00b please
Replies: 4
Views: 2173

pspn00b999 wrote: One problem .... It seems to be a dead link --- will try later and see if it works
That server seems to be down. You can also get it at bace.bowron.us/pspchess_src.zip
by cwbowron
Wed Aug 17, 2005 11:22 pm
Forum: PSP Development
Topic: 2D help for a n00b please
Replies: 4
Views: 2173

Re: 2D help for a n00b please

I have my main C algorithm sorted but now (for the port) need to be able to sort graphics and sound out (sound later) In terms of graphics I need to 1) Draw a main background (e.g. chessboard) 2) draw and move pieces (e.g. chess pieces) 3) Toggle to an options view (with menu) and then back I think...
by cwbowron
Wed Aug 17, 2005 4:39 am
Forum: PSP Development
Topic: p-sprint (psp keyboard emu)
Replies: 77
Views: 68816

I also realise that I should probably write a keyread routine that reads keys in a non-blocking manner, so that an application can check for a key without ending up having to really wait for it and therefore halt the rest of the program. Am I right, coders? I think I saw something like this in the ...
by cwbowron
Tue Aug 16, 2005 3:02 am
Forum: PSP Development
Topic: p-sprint (psp keyboard emu)
Replies: 77
Views: 68816

I've been looking into some of the code for p-sprint, and I thought I might share a couple ideas on how to make it more maintainable and modifiable and cut down code size. Feel free to ignore. There are many places where you have lots of lines of code that really the same, something like KeyCodes&am...
by cwbowron
Sun Aug 14, 2005 5:14 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.31

I've been working on getting the infrastructure set up for networking so most of the changes are not user visible changes. The most visible change to end users will be the modification that should allow it to be installed in any directory not just psp/game/pspchess so you should be able to use the c...
by cwbowron
Thu Aug 04, 2005 9:14 am
Forum: PSP Development
Topic: Fast keyboard method, version 1.1
Replies: 34
Views: 18275

I'm limiting the number of keys used also. My maximum number of keys that need to be pressed is 3, averaging letter to key ration of 1:2.5. Whats the maximum number of keys that you need with your method if you need to switch back and forth to numbers a lot? It looked like you need to shift twice t...
by cwbowron
Thu Aug 04, 2005 9:05 am
Forum: PSP Development
Topic: Random Integer Generation
Replies: 25
Views: 14554

i was wondering if you could help me with some code like the snake game uses, based off the clock:
srand(time(NULL)) should seed with the current time, then you can use rand() to get a pseudorandom number.
by cwbowron
Thu Aug 04, 2005 6:40 am
Forum: PSP Development
Topic: Random Integer Generation
Replies: 25
Views: 14554

Re: Random Integer Generation

Im going to get straight to the point, Generating a random Integer between one and one hundred has been hell on me, its hard enough to generate an integer between two set integers in normal C++, would anyone mind helping (See: Spoonfeeding) Me with this? Thanks. rand() function in <stdlib.h> will r...
by cwbowron
Wed Aug 03, 2005 11:57 pm
Forum: PSP Development
Topic: Fast keyboard method, version 1.1
Replies: 34
Views: 18275

This looks worse than the origninal Sony OSK, because you have to hit 11 keystrokes for some keys. What about arranging it in a 3x4 matrix? This would reduce the maximum number of keystrokes from one char to another to 6 at least. I've thought about that, but I need it to take up as little vertical...
by cwbowron
Wed Aug 03, 2005 11:38 pm
Forum: PSP Development
Topic: Fast keyboard method, version 1.1
Replies: 34
Views: 18275

OSK in pspChess

I had to use an OSK for the upcoming network interface version of pspChess and this is what I came up with: http://www.cse.msu.edu/~bowronch/SCREEN0.PNG http://www.cse.msu.edu/~bowronch/SCREEN1.PNG The key layout is LEFT/RIGHT - change character frame TRIANGLE/CIRCLE/SQUARE/CROSS - select character ...
by cwbowron
Wed Aug 03, 2005 1:34 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

Network Help

I'm adding code to pspChess to interface with the free internet chess server, but I am not very familiar with the networking code for psp. To be honest, I havent even looked into it that much. Right now, I am using a captured buffer from a freechess session to write the initial parsing code. I wrote...
by cwbowron
Sat Jul 30, 2005 5:11 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.30

RELEASE 0.30 FOR THE LOVE OF GOD, DO NOT CALL ME IF YOU CANNOT FIGURE OUT HOW TO INSTALL THE PROGRAM. SEARCH THE WEB ON PSP HOMEBREW. READ THE README.TXT. UNDER NO CIRCUMSTANCES SHOULD YOU THINK, HEY I SHOULD JUST CALL UP CHRIS AND ASK HIM. NO. NO. NO. key changes: SQUARE+LTRIGGER: show the text fro...
by cwbowron
Sat Jul 30, 2005 3:06 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

pspChess Piece Images Repository

I put up a thread on another forum for users to share their chess piece sets.

http://www.dcemu.co.uk/vbulletin/showthread.php?t=8514
by cwbowron
Thu Jul 28, 2005 9:18 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.29b

RELEASE 0.29b

fixed stupid bug in music - trust gcc -Wall
by cwbowron
Thu Jul 28, 2005 7:43 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

The original zip file of version 0.29 had a bad eboot.pbp in it. It has been fixed. if you have already downloaded it, please get it again.
by cwbowron
Thu Jul 28, 2005 4:14 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.29

RELEASE 0.29 new options to allow you to change the piece images. You can turn on external pieces and set the pieces file to the png of your choice. refer to pieces.png for the format. each piece is 32x32. must be PNG. If anyone makes some cool pieces, please share them with me and other users. You ...
by cwbowron
Wed Jul 27, 2005 4:49 am
Forum: PSP Development
Topic: Displaying a bmp at full resolution, newbie question
Replies: 4
Views: 2055

Re: Displaying a bmp at full resolution, newbie question

Sorry, I'm new to game programming (though I'm a programmer as a career), so this may be a dumb question. I created a 480x272 bitmap in mspaint and used ConvImage16 to convert it to a *.c file, brought that into bitmap.c from the hello world source code and compiled it. On the psp, my image appears...
by cwbowron
Tue Jul 26, 2005 6:19 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.28

RELEASE 0.28 castling support in wild5 and fischer random - redid all castling code mp3 background music (slows down computer a little more than mod file) --> switching back and forth and back between mp3 and mod is not working. mp3->mod->mp3 and mod->mp3->mod may cause crash. mod->mp3->mp3 is fine....
by cwbowron
Fri Jul 22, 2005 12:57 am
Forum: PSP Development
Topic: My bugs or maybe PSPSDK's bugs... sceIoDread and Callbacks
Replies: 10
Views: 3617

Re: My bugs or maybe PSPSDK's bugs... sceIoDread and Callbac

1. sceIoDread I use it to retrieve FS informations (is it a DIR, a FILE,...) and each time the SceIoDirent.d_stat.st_mode access mode is wrong : - 0x11FF for a dir instead of FIO_S_IFDIR (0x2000) - 0x21FF for a file instead of FIO_S_IFREG;(0x1000) So I have to patch them manually :( I have the same...
by cwbowron
Thu Jul 21, 2005 2:42 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.27

RELEASE 0.27 new save/load format that supports fischer random (old saves will still work) new variant: fischer random (does not yet support castling) http://en.wikipedia.org/wiki/Fischer_Random_Chess variant option game options: WHITE (moved from main option screen) BLACK (moved from main option sc...
by cwbowron
Mon Jul 18, 2005 11:12 pm
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

so will this now work on v1.5? what do i need to do? Yes, it will work on v1.5. The binary distribution has included files for 1.5 since about a day after the swaploit came out. copy the PSPCHESS and PSPCHESS% directories from the zip file into your \PSP\GAME\ directory. while you are at it, read t...
by cwbowron
Mon Jul 18, 2005 9:14 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELEASE 0.26

RELEASE 0.26 moves print use modified put char from sdk to display using lower and uppercase new feature for beginner players (and others): option: hilite checks - default off - shows the threatenings piece(s) when in check. (red mask) option: show available - default off - shows the possible moves ...
by cwbowron
Sun Jul 17, 2005 2:15 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

what is the rating of the computer player? i know youcan change the search depth..but any idea? From the readme.txt: The original PC version of BCE (on which pspChess is based) played as "ddlchess" and "BACE" on freechess.org, but they have not been active in years. BCE achieved...
by cwbowron
Sat Jul 16, 2005 3:27 pm
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

Red Bull = Insomnia = New Release

I couldn't sleep, so there's a new release. RELEASE 0.25 properly handle promotions: computer can choose promotional piece, so can player. option: show moves (show the moves in the current game) to show moves you must either have show options off or show captures off (or both) you can use show moves...
by cwbowron
Fri Jul 15, 2005 6:46 am
Forum: PSP Development
Topic: psp Chess
Replies: 75
Views: 86294

RELESE 0.24

RELEASE 0.24 analysis mode option - when in analysis mode, RTRIGGER will make the next move in the analysis stack. Analysis stack will be moves up to the point of switching into analysis mode. Should also work with stored games. button change: LTRIGGER goes back only 1 ply. This makes navigating ana...
by cwbowron
Fri Jul 15, 2005 6:08 am
Forum: PSP Development
Topic: Date Functions
Replies: 2
Views: 1760

Ok, I figured it out.

newlib implements localtime() so I used -lc -lpspglue rather than -lpsplibc
by cwbowron
Fri Jul 15, 2005 12:43 am
Forum: PSP Development
Topic: Date Functions
Replies: 2
Views: 1760

Date Functions

Has anyone uncovered or have functions to calculate the current year, month and day? I see that sceKernelLibcTime can return seconds since the epoch and that time() has been implemented in the pspsdk, but localtime() and gmtime() are missing according to LIB.status in the pspsdk. Are there any sce* ...
by cwbowron
Wed Jul 13, 2005 11:37 pm
Forum: PSP Development
Topic: Undeclared functions when compiling...
Replies: 13
Views: 8433

Some function names have been changed because I believe they were not the real function names

sceCtrlRead => sceCtrlPeekBufferPositive
sceCtrlSetAnalogMode => sceCtrlSetSamplingMode
sceCtrlInit => sceCtrlSetSamplingCycle

you are probably also going to have to use -lpspctrl when linking.