| View previous topic :: View next topic |
| Author |
Message |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Thu Jul 09, 2009 4:19 am Post subject: Multiplayer |
|
|
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 |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
|
| Back to top |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Thu Jul 09, 2009 4:48 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
|
| Back to top |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Fri Jul 10, 2009 5:12 am Post subject: |
|
|
Solved the Makefile Problems.
What's better with this new SDK ? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Jul 10, 2009 6:41 am Post subject: |
|
|
| 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 |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Fri Jul 10, 2009 6:49 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Jul 10, 2009 7:40 am Post subject: |
|
|
| What's "teo"? Two? Ten? And you have yet to show any code. :) |
|
| Back to top |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Jul 10, 2009 9:01 am Post subject: |
|
|
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 |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Sat Jul 11, 2009 7:14 am Post subject: |
|
|
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 |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Sat Jul 25, 2009 7:06 am Post subject: |
|
|
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 |
|
 |
slasher2661996
Joined: 22 Feb 2009 Posts: 91 Location: Melbourne Australia ZOMG
|
Posted: Sat Jul 25, 2009 9:26 am Post subject: |
|
|
| No it's not, download it, and YOU make it new |
|
| Back to top |
|
 |
DarkShadow44
Joined: 09 Jul 2009 Posts: 31
|
Posted: Wed Jul 29, 2009 5:49 am Post subject: |
|
|
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 |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Thu Jul 30, 2009 10:21 pm Post subject: |
|
|
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 |
|
 |
|