Page 1 of 1

Playstation 1 Development in 2013 (tutorial and my library)

Posted: May 13th, 2013, 3:36 am
by Orion_
I just had a tremendous amount of motivation today and finally wrote the first part of my psx dev tutorial.
It shows how to setup a development environment under modern os such as Windows 7 64bits (no need to use old pc, or virtual box)
What hardware are needed, how to flash the action replay, how to create a Psx CD, and also a release of my personal dev library built on top of the Psy-Q SDK for easier development. (auto cd/pc loading, 3d objects, advanced 2D, sprites, sfx, mod, cd audio, tile map, dialog engine, movie, bs image, etc...)
Unfortunately I didn't have more motivation to explain in details how my library works, but you can try to figure out with the given examples or if you have C language knowledge.
I will of course make update from time to time to complete this tutorial.
Check it here: http://onorisoft.free.fr/psx/tutorial/tuto.htm

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 13th, 2013, 9:23 am
by bizarro2011
you know something about turning an image into u_long tim?
or know anyone who may know

unsigned long mat0[] = {
0x10000000,
0x08000000,

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 15th, 2013, 9:13 am
by Orion_
You need a tool to convert an image (say bmp) into a tim file, I will cover that in my next tutorial.
You can use a tim plugin in photoshop, bmp2tim or tim tool. (from the official sdk)
then, you can convert the tim file into an hex tab in C, but I don't really recommend that.

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 15th, 2013, 7:55 pm
by t0rxe
TIMTOOL is the best. It makes it so easy to arrange the images in the framebuffer.
It can be found in psyq\zips\timtool3b.zip

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 16th, 2013, 1:08 am
by bizarro2011
If you can help I thank you, however, what I need is how to make the image look like tim. (u_long)

unsigned long mat0[] = { (using ,???)
0x10000000,
0x08000000,

so (char) I can do. (using ,winbin2src)

unsigned int fnt3_size=17804;
unsigned char fnt3[] = {
0x10, 0x00, 0x00, 0x00,

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 16th, 2013, 7:34 am
by Orion_
You should learn how to program in C first .. if you have an unsigned char data you can cast it to long:
example: (u_long*)fnt3

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 16th, 2013, 8:37 am
by bizarro2011
I'm from Brazil, my english is bad, but I try to write the best possible (with google translator) I just wanted to know how it was done in the tim HEXA format.

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 16th, 2013, 3:15 pm
by t0rxe
I think I know what he wants to do Orion_.
He wants to convert his TIM to HEX using WinBin2Src (http://psxdev.net/tools/WinBin2Src.exe).

Bizarro2011, when you have made your TIM in TIMTOOL and saved it how you wish in the framebuffer, open the TIM in WinBin2Src and convert it to a C-Language with a label called 'image' for example.

Once you do that, you rename the file 'IMAGE.C' to 'image.h' and include it in your PS-EXE (IE: #include"image.h").

When you compile, your image.h will get packed in with the PS-EXE :)
Now you just use the standard way of loading a tim, but you load it from the included name 'image' and not from a hard coded address.

You can see this code in Abetro if you are confused (http://www.psxdev.net/forum/viewtopic.php?f=46&t=6).

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 17th, 2013, 12:31 am
by bizarro2011
I know this creates winbin2src format (0x00, 0x00, 0x00, 0x00, 0x00,) but do not know how to create this format (0x42110000, 0x42110300) how does that program uses? you entend me now.

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 17th, 2013, 5:32 am
by Gradius
bizarro2011 wrote:I know this creates winbin2src format (0x00, 0x00, 0x00, 0x00, 0x00,) but do not know how to create this format (0x42110000, 0x42110300) how does that program uses? you entend me now.
Era melhor vc praticar mais o inglês. heheheh

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 17th, 2013, 6:26 am
by Orion_
bizarro2011 wrote:I know this creates winbin2src format (0x00, 0x00, 0x00, 0x00, 0x00,) but do not know how to create this format (0x42110000, 0x42110300) how does that program uses? you entend me now.
This is the same thing ! As I said, you should learn how to code in C before trying to code for the Psx.
Just convert your data into char with winbin2src and cast your data into long: (u_long*)fnt3

Re: Playstation 1 Development in 2013 (tutorial and my libra

Posted: May 17th, 2013, 10:07 pm
by bizarro2011
thank you, when I do, I post here. there you will understand