forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fixed, Pre-Built, Win32 PS2SDK :)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Tue May 12, 2009 4:14 am    Post subject: Reply with quote

OK, I'll try reinstalling Windows, but before it I'll check if PS2SDK will work on some other computer.
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Wed May 13, 2009 1:02 am    Post subject: Reply with quote

I reinstalled Windows, and now it works! Thank you! Can you tell of what how can I access basic text output functions (printf etc.), what should I #include, and what else should I do to display a simple message on the screen? Or where can I get an information on functions that are included in your pre-built PS2SDK?
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Wed May 13, 2009 4:02 am    Post subject: Reply with quote

Libraries and patches that have been included/applied are detailed in the ReadMe.txt file. I'd recommend Googling for and reading the documentation for those various pieces of the puzzle, if you're looking for specifics. As for source and examples for basic development, check out that compilable source collection I linked you to earlier.

If you'd like to take a look at a basic "Hello World" example, the bottom of this thread (misfire's post) provides one:

http://forums.ps2dev.org/viewtopic.php?t=1818&highlight=

I haven't gotten around to including an ELF version of the Hello World example in the pre-built SDK's sample dir (and I should do the same for the SDK here at PS2Dev.org, since I do have SVN write access), so for the time being, there's only an ERL (relocatable code) Hello World example, which isn't really suitable for absolute beginners...

You should also check the Tutorials section of PS2Dev.org (under PS2, of course). Let me know if there's anything else I can do to help.
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Wed May 13, 2009 5:03 am    Post subject: Reply with quote

Thank you, thank you very much! It worked, although I deleted part of it 'cause I haven't got my PS2 connected to PC. Thank you also for being nice to a beginner (me). Next several days I will look through documentation available inside your package, and of course I'll going to ask some more questions ('cause the main part, the PS2SDK, isn't well documented both in your pre-built package and in PS2DEV Wiki).
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Wed May 13, 2009 8:32 am    Post subject: Reply with quote

Of course; I help whenever I can. I'm able to help you because other people helped me. And I'm sure, they have the same story. Feel free to ask any questions you have. If there's something I haven't added to the PS2 Dev intro I wrote, and it seems pertinent, I'll add it, so others can benefit.
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Tue May 19, 2009 3:40 am    Post subject: Reply with quote

Well, I was busy for quite a time by doing my school work (and playing Violet) so only this evening I finally experimented with "Hello, world!". I reduced its source as much as I could, and that's what I got:

Makefile
Code:
EE_BIN = h.elf
EE_OBJS = h.o
EE_LIBS = -ldebug
all: $(EE_BIN)
include $(PS2SDK)/Makefile.pref
include $(PS2SDK)/Makefile.eeglobal


h.c
Code:
main(){init_scr();scr_printf("Hello, world!");}


I don't quite understand everything in Makefile, several interesting things that I discovered:
1) I don't need to #include any files to print out message;
2) I don't need to make any infinite loops in the end - it hangs anyway.

By the way, is the font that scr_printf() uses built in PS2 itself or PS2SDK? And, if the latter, how can I change to a home-made font or some freeware font downloaded from Internet?
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Sat May 23, 2009 2:47 am    Post subject: Reply with quote

The scr_printf font is a part of the SDK. FONTM is built in to the PS2, and you can access it via gsKit. As for utilizing your own fonts, you'd do well to use a graphics library, and print bitmap fonts to screen. G2 or gsKit would be best (though I do like some aspects of gsLib as well).
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Mon May 25, 2009 9:11 pm    Post subject: Reply with quote

I've got more questions :-)
1) Are there any functions to read a string from a keyboard?
2) If not, are there any functions to read a key from keyboard?
3) What drivers should I load and what libraries should I #include?
P.S. Of course, I've got a PS2 compatible USB keyboard.
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Thu May 28, 2009 6:34 am    Post subject: Reply with quote

You should check out this thread: http://forums.ps2dev.org/viewtopic.php?t=10259&highlight=keyboard

That example is also in the Compilable Source Collection I pointed you to :)

I would recommend reading all of whatisdot's threads, as he/she is quite prolific in enhancing current documentation and the spread of knowledge, particularly for a beginner (I consider myself a beginner as well, mind you).

On that note, I have a favor to ask of you. As you learn, it would be most helpful to the scene in general if you'd keep a brief record of the things you didn't quite understand initially, and how you solved them or figured them out (even if it's just "John Smith told me the answer", heh). This way, we can make more detailed and effective documentation, and the next guy to enter the scene won't have as many stumbling blocks to overcome. It sounds like a small contribution, but you'd be surprised at how many people are confused and discouraged by the same things, and many of them never get around to PS2 development because of this, or take years to reach a competent level, when they could have done so in weeks. Not only will you directly help many people, but if you help keep twenty people in the scene and developing, and only two of them make similar contributions to the pool of knowledge and understanding, you could indirectly help an uncountable number of people. If you're concerning about cluttering the forums or a thread, you could always PM me directly. In any case, it's just a request. You don't have to do it, but it would definitely be helpful.
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Fri May 29, 2009 3:45 am    Post subject: Reply with quote

Well, I thought of that myself. I guess I could write down all the functions I used, so it will be a small reference guide. Anyway, I'm going to look PS2SDK functions more closely.
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
CutToSleep



Joined: 09 May 2009
Posts: 10
Location: Russia

PostPosted: Thu Jul 23, 2009 6:30 am    Post subject: Reply with quote

LBGSHI, can you tell me where are those uLE patches you wrote about in readme? I can't find them.
_________________
If you want to ask me why my nick is CutToSleep, then GoToHell.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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