Romhacking.net

Romhacking => Programming => Topic started by: Gemini on June 12, 2016, 11:50:37 am

Title: PlayStation development articles, feedback appreciated
Post by: Gemini on June 12, 2016, 11:50:37 am
Lately I started writing some PS development tutorials / advise articles that provide some directions to users who would like to get involved in the topic or for those interested in tackling the system in more efficient ways. So far I came up with four articles, but I have a fifth in mind about 3D effects; nothing too fancy, just a PlayStation pad with 3D analog sticks moving as they react to actual input, while other buttons would be flashing yellow to reflect the remaining input.

Article 1: The do’s and don’ts of PlayStation programming (http://appleofeden.de-doc.com/index.php/2016/06/10/the-dos-and-donts-of-playstation-programming/)
Article 2: Writing a good replacement for LibGS (http://appleofeden.de-doc.com/index.php/2016/06/11/writing-a-good-replacement-for-libgs/)
Article 3: Light sources: how they work and what you can do with them (http://appleofeden.de-doc.com/index.php/2016/06/11/light-sources-how-they-work-and-what-you-can-do-with-them/)
Article 4: Working around 2D primitives (http://appleofeden.de-doc.com/index.php/2016/06/12/working-around-2d-primitives/) (includes sources and VS201X project)

Are these articles any easy to follow or interesting to read? I'm thinking of writing more, but I need some directions to check if I'm making any sense.
Title: Re: PlayStation development articles, feedback appreciated
Post by: Madsiur on June 12, 2016, 12:18:21 pm
The links were not copied properly I think. You can find the articles here: http://appleofeden.de-doc.com/

I've read the first article and it was really interesting for someone with no PSX experience but some background in ROM hacking and programming. I think it was clearly written also. I'll check the others as well when I get more time. A complete PSX programming / ISO hacking series of article would definitely be a nice resource.
Title: Re: PlayStation development articles, feedback appreciated
Post by: Gemini on June 12, 2016, 12:22:06 pm
I'm not really going to do much for actual hacking, tho most of these tutorials, especially the 2D programming part, can be used for that purpose as well.

Thanks for the link advise, should be fixed now.
Title: Re: PlayStation development articles, feedback appreciated
Post by: tvtoon on June 12, 2016, 01:21:02 pm
From the first part, the first "do" and the second "don't" (to some extent) are programming praxes. But yeah, interesting stuff. :)
Title: Re: PlayStation development articles, feedback appreciated
Post by: BlackDog61 on June 12, 2016, 03:02:40 pm
This: https://www.youtube.com/watch?v=uAPUxvjbdcU (https://www.youtube.com/watch?v=uAPUxvjbdcU)
Anything PS family is welcome! We're sorely lacking docs in the matter.
I assume most of this would still apply to the PS2?
Do you have any recommended site(s) to get along with the PSX?
Any recommended dev' environment?
Title: Re: PlayStation development articles, feedback appreciated
Post by: tryphon on June 12, 2016, 07:13:35 pm
Really interesting. An intro article about how to code for PSX (compiler needed ? configuration ? How to test ? With emu ? Real hw ?) would be awesome. Just give some links towards articles you like if you don't want to lose the time to write it.
Title: Re: PlayStation development articles, feedback appreciated
Post by: Gemini on June 12, 2016, 10:29:57 pm
IIRC there are a bunch of sites telling you where to get the official compiler and libraries (configuration instructions should be part of the original package). You can go for either PSY-Q or Net Yaroze kit, tho the latter is quite limited in resources.

As for testing, there are a few emulators that make the task a bit easier nowadays: pSX 1.14 comes with a virtual cd feature, Xebra and no$psx are the "accurate" emulators you cab use to dig a whole lot of bugs that would kill real hardware. Not sure how mednafen and retroarch behave, they could have some interesting features; stay away from ePSXe. Other than that, sometimes I just burn a cd and check if my latest changes still work. Most of the time I mess up. :P
Title: Re: PlayStation development articles, feedback appreciated
Post by: Bregalad on June 13, 2016, 02:53:01 pm
It looks more like documentation about 3D graphics on the Playstation rather than documentation about PlayStation development in general I think.
Title: Re: PlayStation development articles, feedback appreciated
Post by: Gemini on June 14, 2016, 05:13:08 pm
Yeah, I'm trying to dig graphics out of the way as soon as possible and move to something else, like memory cards or the SPU.

Meanwhile, another article: 3D graphics and controller handling (http://appleofeden.de-doc.com/index.php/2016/06/14/3d-graphics-and-controller-handling/)

This time I tried a different approach, where the article actually tries to explain something from the demo embedded with sources. Not sure how it turned out, I was feeling rather lazy with the article itself and more entertained by the coding.
Title: Re: PlayStation development articles, feedback appreciated
Post by: Gemini on June 21, 2016, 07:13:51 pm
New article is up: Intro coding and CD-rom usage (http://appleofeden.de-doc.com/index.php/2016/06/21/intro-coding-and-cd-rom-usage/)

I'm open to tutorial requests at this point. Thinking of doing cooperative threading and async CD reads, unless something more demanded/interesting comes up.
Title: Re: PlayStation development articles, feedback appreciated
Post by: Gemini on August 23, 2016, 05:59:53 pm
Made a discord psxdev group, just in case people wanted a more direct approach: https://discord.gg/w8DcsNt
Title: Re: PlayStation development articles, feedback appreciated
Post by: Rai on August 23, 2016, 07:07:17 pm
Great work, Gemini; it's good to see more PSX documentation.

Could you possibly make a list of the PS1's opcodes?

Having a go to list of MIPS instructions would be very helpful.
Title: Re: PlayStation development articles, feedback appreciated
Post by: PhOeNiX on August 25, 2016, 05:55:07 am
http://alumni.cs.ucr.edu/~vladimir/cs161/mips.html (http://alumni.cs.ucr.edu/~vladimir/cs161/mips.html)
Title: Re: PlayStation development articles, feedback appreciated
Post by: SirSoundfont on August 25, 2016, 09:25:12 am
What tools would you use to make a PS1/PS2 game? And once you make the game, can you burn it to a CD disc and play it on a console?
Title: Re: PlayStation development articles, feedback appreciated
Post by: UltimateUrinater on August 29, 2016, 01:57:15 am
I'm under the assumption that it's not common for people to code the psx in assembly, or atleast just not practical. If so, then i've been approaching my studies the wrong way...LOL..and  must learn c/c++(which is the common language for psx right?) and donwload all that high level jazz (libraries and all that other stuff idfk). :laugh: :banghead:
Title: Re: PlayStation development articles, feedback appreciated
Post by: Gemini on August 29, 2016, 05:35:55 am
The only assembly stuff you need is for some low level access, like 3D operations with critical performance. For the rest you would use C; C++ isn't exactly recommended but can still be used and it's supported by the toolchain.