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 

Multiplayer

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Thu Jul 09, 2009 4:19 am    Post subject: Multiplayer Reply with quote

Hello !
Can you give me a short example (best would be a little application), how to use
1) Ad-Hoc Connections
2) Internet Playing (Later with Broadcating)
between 2 or more PSPs ?

The PspSDK Examples don't Start...

Thanks in advance !
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Thu Jul 09, 2009 4:26 am    Post subject: Reply with quote

hi,

look at the site of zorba
http://pspzorba.com//articles/articles.php?id=78&cat=10
he has some working samples and tutorial to use ad hoc communication
Back to top
View user's profile Send private message Send e-mail MSN Messenger
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Thu Jul 09, 2009 4:48 am    Post subject: Reply with quote

Thanks !!
But I thinks that's for cygwin...

Could you give me a working Makefile for devkitPSP ? (I don't know how to use this Options, so it throws always errors :-( )
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Jul 09, 2009 7:25 am    Post subject: Reply with quote

You shouldn't be using devkitPSP - it's old. Get one of Heimdall's packages.

http://forums.ps2dev.org/viewtopic.php?t=12149
Back to top
View user's profile Send private message AIM Address
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Fri Jul 10, 2009 5:12 am    Post subject: Reply with quote

Solved the Makefile Problems.

What's better with this new SDK ?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Jul 10, 2009 6:41 am    Post subject: Reply with quote

DevkitWhatever is ALWAYS out of date, but Heimdall's packages are brand spanking new! You can't do some things with devkitPSP that you can with Heimdall's stuff. The last version of devkitPSP I saw didn't even handle user-mode homebrew! All homebrew these days should be user-mode style homebrew. Anyone making 1.50-based homebrew is to be pointed and laughed at. :)
Back to top
View user's profile Send private message AIM Address
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Fri Jul 10, 2009 6:49 am    Post subject: Reply with quote

Wow. Thanks for your help.
These dialogs are very useful :-))

My only problem is than my object is displayed teo times :-(
I didn't change any code.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Jul 10, 2009 7:40 am    Post subject: Reply with quote

What's "teo"? Two? Ten? And you have yet to show any code. :)
Back to top
View user's profile Send private message AIM Address
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Fri Jul 10, 2009 7:50 am    Post subject: Reply with quote

It's displayed twice.
And the colors are not good...
The code is from here:
http://ghoti.nl/PSPtutorial12.php
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Jul 10, 2009 9:01 am    Post subject: Reply with quote

Works fine for me - I userized it like I mentioned in the other thread, so the makefile is

Code:
TARGET = out

OBJS = $(wildcard *.cpp) $(wildcard *.c)



INCDIR =

CFLAGS = -O2 -G0 -Wall -g

CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -g

ASFLAGS = $(CFLAGS)



LIBDIR =

LDFLAGS =

LIBS = -lc -g -lpspgum -lpspgu -lpng -lz -lstdc++ -lm -lpsppower



BUILD_PRX = 1

PSP_FW_VERSION = 500

PSP_LARGE_MEMORY = 1



EXTRA_TARGETS = EBOOT.PBP

PSP_EBOOT_TITLE = Tutorial 12



PSPSDK=$(shell psp-config --pspsdk-path)

include $(PSPSDK)/lib/build.mak



and main.cpp has these lines

Code:
// MODULE INITIALISATION



PSP_MODULE_INFO("Tutorial2", 0, 1, 1);

PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER|PSP_THREAD_ATTR_VFPU);

PSP_HEAP_SIZE_KB(-256);



It compiles just fine at that point, and runs fine in 5.00 M33-6. Be sure to copy all the .png, .mtl, and .obj files to the PSP along with the EBOOT.PBP.
Back to top
View user's profile Send private message AIM Address
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Sat Jul 11, 2009 7:14 am    Post subject: Reply with quote

But can you maybe post a short example (all other don't work with the newsetst pspSDK) how to conect to an AP (With 5.00 m33-6) ?

And maybe a short programm that connects two PSP and sends a bit text (Also 5.00 m33-6) ??

Please...
Back to top
View user's profile Send private message
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Sat Jul 25, 2009 7:06 am    Post subject: Reply with quote

Can't someone post two short examples for 5.00 m33-6 ???

1) WIFI (with AP) Sample
2) AD-HOC Sample

But not zorba, that' too old...

Please !
Back to top
View user's profile Send private message
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Sat Jul 25, 2009 9:26 am    Post subject: Reply with quote

No it's not, download it, and YOU make it new
Back to top
View user's profile Send private message
DarkShadow44



Joined: 09 Jul 2009
Posts: 31

PostPosted: Wed Jul 29, 2009 5:49 am    Post subject: Reply with quote

It throws errors like this:

Code:
cannot convert 'char*' to 'SceNetApctlInfo*' for argument '2' to 'int sceNetApctlGetInfo(int,SceNetApctlInfo*)


I tried it with cygwin (original MAKEFILE) and with pspSDK 9.5.0 (With devkitPSP it works, but that is VERY old)
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Thu Jul 30, 2009 10:21 pm    Post subject: Reply with quote

Hi! :)

From pspnet_apctl.h
Code:
/**
 * Get the apctl information.
 *
 * @param code - One of the PSP_NET_APCTL_INFO_* defines.
 *
 * @param pInfo - Pointer to a ::SceNetApctlInfo.
 *
 * @return < 0 on error.
 */
int sceNetApctlGetInfo(int code, union SceNetApctlInfo *pInfo);


Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
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