A few questions about SRB2...

Status
Not open for further replies.

neon

Member
People at PSP Hacks are planning to port SRB2 to PSP. The thing is I'm the only one who has an account on both fourms.
So first off, can somebody tell me if SRB2 is written in C or C++
 
SRB2 is written in C, Alam's already tried porting SRB2 to PSP but his work was lost, so I am unsure if he's lost the will to do so. Anything else?
 
neon said:
People at PSP Hacks are planning to port SRB2 to PSP. The thing is I'm the only one who has an account on both fourms.
So first off, can somebody tell me if SRB2 is written in C or C++

where is this fourm?, Alam had been trying again at a PSP port, but it's hard to do without a PSP to work on (soo far was got SRB2 to work partly with psp-config to get where the toolchain is installed)
 
God damn it!!! Now they have GOT to make a exploit for 2.7.
 
I own a PSP that I could test the binary for you guys. I'm a newbie in programming, but I could help you out.

To help you out even though you don't have a PSP, there is a PSP emulator that can play some homebrew so you could test SRB2 with it first and then send the compiled binary to me to test it on the real thing.

The emulator was made for Windows. Here's the link where you can download it from: http://www.emulator-zone.com/doc.php/psp/pspe.html

I hope this helps as I would love to play this game while I'm on the road.

Sonict
 
Where is PSP hacks and what topic?

http://forums.psphacks.net/index.php?topic=15776.0

To get my work on SRB2PSP

Subversion:
(note: this is not a URL for web browsers)
Code:
svn co svn://lawarias.game-server.cc/SRB2109
(HEAD reversion of this have 1.09.3.7)

all I have done is the makefile system produring a SRB2PSP.elf file

Code:
make -C src PSP=1

My Linux/GNU Debian/Etch system's harddrive went bad, so I lost the rest of my work
 
When I try to compile the elf using cygwin, it borks out this error:

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src PSP=1
make: Entering directory `/home/user/srb2_sc/src'
Creating dependency file, depend.dep
/bin/sh: ../objs/PSP/SDL/Release/depend.ped: No such file or directory
make: *** [../objs/PSP/SDL/Release/depend.dep] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

When I add it in, it does this next:

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src PSP=1
make: Entering directory `/home/user/srb2_sc/src'
Creating dependency file, depend.dep
d_main.c:43:28: error: SDL/SDL_getenv.h: No such file or directory
make: *** [../objs/PSP/SDL/Release/depend.dep] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

Could you help the newbie please?

Regards,

Sonict
 
Spazzo said:
why is this in off-topic?

Good question. Moved.

Kudos to everybody if this goes through; a new system for SRB2 would be great, and PSP is doable from what little I know about the system.
 
what SRB2PSP needs

You need SDL and SDL_mixer
you can drop SDL_mixer(and not play any music) by adding NOMIXER=1
 
I tried it again after checking out the code for the SDL and SDL_mixer on the site that you gave me. I downloaded it. Moved it into the cygwin root. I ran ./autogen.sh, then "make" and then "make install" for both of the packages. I did get installed so I tried it to compile srb2 for PSP again. It stopped at the same point.

Here is where the file that the compiler is asking for is installed on my computer: "C:\cygwin\usr\local\include\SDL\SDL_getenv.h" It doesn't seem to see the fact that I have the SDL library installed...

Here is what happened when I tried to compile a standard SDL exe.

Code:
user@your-9d53aa1067 ~/srb2_sc/src
$ make SDL=1
Creating dependency file, depend.dep
Created dependency file, depend.dep
sdl/i_main.c: In function `main':
sdl/i_main.c:142: error: `HANDLE' undeclared (first use in this function)
sdl/i_main.c:142: error: (Each undeclared identifier is reported only once
sdl/i_main.c:142: error: for each function it appears in.)
sdl/i_main.c:142: error: parse error before "ci"
sdl/i_main.c:150: warning: implicit declaration of function `FreeConsole'
sdl/i_main.c:151: warning: implicit declaration of function `AllocConsole'
sdl/i_main.c:156: error: `ci' undeclared (first use in this function)
sdl/i_main.c:156: warning: implicit declaration of function `GetStdHandle'
sdl/i_main.c:156: error: `STD_INPUT_HANDLE' undeclared (first use in this functi
on)
sdl/i_main.c:157: warning: implicit declaration of function `GetFileType'
sdl/i_main.c:157: error: `FILE_TYPE_CHAR' undeclared (first use in this function
)
sdl/i_main.c:159: error: syntax error before "CM"
sdl/i_main.c:160: warning: implicit declaration of function `SetConsoleMode'
sdl/i_main.c:160: error: `CM' undeclared (first use in this function)
sdl/i_main.c:170: error: `DWORD' undeclared (first use in this function)
sdl/i_main.c:170: error: parse error before "OldRights"
sdl/i_main.c:171: error: `BYTE' undeclared (first use in this function)
sdl/i_main.c:171: error: `pBaseOfImage' undeclared (first use in this function)
sdl/i_main.c:171: error: parse error before ')' token
sdl/i_main.c:172: error: `IMAGE_OPTIONAL_HEADER' undeclared (first use in this f
unction)
sdl/i_main.c:172: error: `pHeader' undeclared (first use in this function)
sdl/i_main.c:172: error: parse error before ')' token
sdl/i_main.c:173: error: `IMAGE_DOS_HEADER' undeclared (first use in this functi
on)
sdl/i_main.c:173: error: parse error before ')' token
sdl/i_main.c:174: error: `IMAGE_NT_SIGNATURE' undeclared (first use in this func
tion)
sdl/i_main.c:174: error: `IMAGE_FILE_HEADER' undeclared (first use in this funct
ion)
sdl/i_main.c:175: warning: implicit declaration of function `VirtualProtect'
sdl/i_main.c:175: error: `PAGE_EXECUTE_READWRITE' undeclared (first use in this
function)
sdl/i_main.c:175: error: `OldRights' undeclared (first use in this function)
make: *** [../objs/SDL/Release/i_main.o] Error 1

Help me...

Regards,

Sonict
 
to compile a normal window exe, add MINGW=1
or to compile a cygwin exe, add CYGWIN32=1
 
It doesn't work. I tried and it gives me the same thing.

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src MINGW=1 SDL=1
make: Entering directory `/home/user/srb2_sc/src'
sdl/i_main.c: In function `main':
sdl/i_main.c:142: error: `HANDLE' undeclared (first use in this function)
sdl/i_main.c:142: error: (Each undeclared identifier is reported only once
sdl/i_main.c:142: error: for each function it appears in.)
sdl/i_main.c:142: error: parse error before "ci"
sdl/i_main.c:150: warning: implicit declaration of function `FreeConsole'
sdl/i_main.c:151: warning: implicit declaration of function `AllocConsole'
sdl/i_main.c:156: error: `ci' undeclared (first use in this function)
sdl/i_main.c:156: warning: implicit declaration of function `GetStdHandle'
sdl/i_main.c:156: error: `STD_INPUT_HANDLE' undeclared (first use in this functi
on)

ETC.......

I tried to produce a normal exe, but I need to download the directx SDK. Which one should I get and can you help me solve this mystery?

Sonict
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top