Page 1 of 1

Programming a Loading Screen? (Not a Background)

Posted: February 16th, 2020, 6:53 am
by MrQuetch
I've tried looking for other threads about this topic on this website. Perhaps I've been looking in the wrong places... If I have been, please let me know. Anyways, I've been reading the LIBREF46.PDF file lately. I've noticed there are functions for initializing different libraries, and I'm not exactly sure what libraries are needed for doing this - even after reading about them.

More specifically, I want to read files off a CD. I want to show a loading bar, and print the text of what file is currently being read. Drawing the bar and text should be easy enough, but I'm uncertain of how to 'move' the bar as it reads the data. I'm going to make it very clear that I'm programming a game - not an application.

Would it be best to use the libds system? From what I understand, it's the extended CD-ROM library. Or, would it be better to use the ISO-9660 file system, which manages access to the CD-ROM? They both sound like they could do what I need. But, I'm honestly not sure - and if one works better for a game or an application.

I guess one important thing I should know already is this... How do I put a file on a disc? Thank you in advance.

Re: Programming a Loading Screen? (Not a Background)

Posted: February 16th, 2020, 3:30 pm
by Shadow
You got a lot of learning and looking at example codes ahead of you. Use the forums to search and find programs already written or look at the examples in the 'Homebrew' section on the website.

Use a VSync callback to display what is being loaded or to show a loading bar. LibDS is quicker then LibCD, but it's a nightmare to use. Best to stick with LibCD :)

Re: Programming a Loading Screen? (Not a Background)

Posted: February 16th, 2020, 4:06 pm
by MrQuetch
Shadow wrote: February 16th, 2020, 3:30 pm You got a lot of learning and looking at example codes ahead of you. Use the forums to search and find programs already written or look at the examples in the 'Homebrew' section on the website.

Use a VSync callback to display what is being loaded or to show a loading bar. LibDS is quicker then LibCD, but it's a nightmare to use. Best to stick with LibCD :)
Yea... You're right. I should download every PS1 source code I can get my hands on, and go through everything little by little. I guess I'm just too quick to get a game up and running. :(

Re: Programming a Loading Screen? (Not a Background)

Posted: February 17th, 2020, 3:50 am
by ArthCarvalho
Shadow wrote: February 16th, 2020, 3:30 pm You got a lot of learning and looking at example codes ahead of you. Use the forums to search and find programs already written or look at the examples in the 'Homebrew' section on the website.

Use a VSync callback to display what is being loaded or to show a loading bar. LibDS is quicker then LibCD, but it's a nightmare to use. Best to stick with LibCD :)
Shadow, what kinds of problems does LibDS have? I recently switched from LibCD to LibDS but I'm currently only using the high level functions (CdRead/DsRead) so I didn't get to experience any problems with it yet.

Re: Programming a Loading Screen? (Not a Background)

Posted: February 17th, 2020, 4:58 pm
by Shadow
Read the documentation. It explains what one of the key issues is when programming it :)

Re: Programming a Loading Screen? (Not a Background)

Posted: February 17th, 2020, 10:48 pm
by ArthCarvalho
I've been reading the documentation a lot, but I don't think it came up with anything related to this yet (so it is probably at some document I didn't read yet), could you point out which documents have any information about this?

Re: Programming a Loading Screen? (Not a Background)

Posted: February 18th, 2020, 1:15 am
by Shadow
LIBOVER47.PDF

Re: Programming a Loading Screen? (Not a Background)

Posted: February 18th, 2020, 6:43 am
by MrQuetch
Shadow wrote: February 18th, 2020, 1:15 amLIBOVER47.PDF
Thank you for pointing this out. I have only been reading the LIBREF46.PDF file. Hopefully things start making more sense.

Re: Programming a Loading Screen? (Not a Background)

Posted: June 7th, 2020, 4:42 am
by inc^lightforce
Have you ever finished a working loading screen?
Wanna see it!

Cheers

Re: Programming a Loading Screen? (Not a Background)

Posted: February 18th, 2021, 4:43 am
by MrQuetch
inc^lightforce wrote: June 7th, 2020, 4:42 am Have you ever finished a working loading screen?
Wanna see it!

Cheers
Hi, inc^lightforce. Sorry for the late reply. No - I didn't even get close. My schedule got very busy, but has since toned down a bit. I've set up some goals for this year, and have assigned different programming task to do each month. I think I may have something at the end of the year, as I plan to tackle the CD portion later.

Re: Programming a Loading Screen? (Not a Background)

Posted: January 11th, 2023, 3:35 pm
by inc^lightforce
so, what's the problem to show off a different screen? i managed this in 1998. if your post is still important, leave a massage. help is behind the next corner ;)