Free Heroes II engine porting. Advice needed!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Xvonabur
Posts: 4
Joined: Sat Feb 28, 2009 1:07 am

Free Heroes II engine porting. Advice needed!

Post by Xvonabur »

Hi, all.
I'm a noob in porting questions, but I really want to try.
My comp has Ubuntu 8.04 + SDK (I used this tutorial) for psp and also Windows XP SP3, as a second OS.
I've downloaded the source files of engine (link)
C# and assembler basics are familiar to me, so it wouldn't be so dificult to understand some aspects of the source code.
But the problem is that i don't know what the next step should be.
So, if someone can give me food for thought about my problem (some tuts, advices), I'll be really grateful.

P.S. Sorry for my bad English.
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

When you have downloaded the source code the first thing you have to do is understand what's going on in the code.

If this is the first thing you are going to port i think it's very hard.

If you havn't port anything before i advice you to try to port some simple programs.

Code: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Xvonabur
Posts: 4
Joined: Sat Feb 28, 2009 1:07 am

Post by Xvonabur »

jojojoris, thanks for your reply.
The main problem is that there are a lot off *.cpp files and i don't know even how to compile them (I read that makefile is needed for this, but not all directories have them).
So, what would you advice me for my first step in porting, jojojoris? May be some helpful links, tutorials or something like that?
Anyway, thanks again.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Xvonabur wrote:jojojoris, thanks for your reply.
The main problem is that there are a lot off *.cpp files and i don't know even how to compile them (I read that makefile is needed for this, but not all directories have them).
So, what would you advice me for my first step in porting, jojojoris? May be some helpful links, tutorials or something like that?
Anyway, thanks again.
First step is to learn the basics of programming

Things like
a) Getting the toolchain compiled
b) knowing what basic compiler things mean (GCC, Binutils, libraries, etc)
c) Learning everything about makefiles and creating your own.
d) Consolidate, Consolidate, Consolidate, Consolidate..

If you want to get into the code, I suggest learning about algorithms and maybe porting a smaller game first.
Xvonabur
Posts: 4
Joined: Sat Feb 28, 2009 1:07 am

Post by Xvonabur »

Wally wrote: First step is to learn the basics of programming

Things like
a) Getting the toolchain compiled
b) knowing what basic compiler things mean (GCC, Binutils, libraries, etc)
c) Learning everything about makefiles and creating your own.
d) Consolidate, Consolidate, Consolidate, Consolidate..

If you want to get into the code, I suggest learning about algorithms and maybe porting a smaller game first.
Ok. I understood that.
It seems like a long road...
But is there some books about that? Especially books about section b.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Xvonabur wrote:
Wally wrote: First step is to learn the basics of programming

Things like
a) Getting the toolchain compiled
b) knowing what basic compiler things mean (GCC, Binutils, libraries, etc)
c) Learning everything about makefiles and creating your own.
d) Consolidate, Consolidate, Consolidate, Consolidate..

If you want to get into the code, I suggest learning about algorithms and maybe porting a smaller game first.
Ok. I understood that.
It seems like a long road...
But is there some books about that? Especially books about section b.
Yes there are books, I suggest looking at the C++ For Dummies book however a lot of information can be found by just googling each subject, there's a wikipedia page for each :)
Xvonabur
Posts: 4
Joined: Sat Feb 28, 2009 1:07 am

Post by Xvonabur »

C ++ isn't new for me (I mean syntax aspect).
I know C#, and some things about windows libraries. However, not so much. Ok, I'll try to google some info.
Sorry for my noob questions.
And thanks again.
pestrz
Posts: 3
Joined: Mon Apr 20, 2009 10:11 am

Post by pestrz »

Xvonabur have you already ported free heroes 2 engine? I would love to play homm2 on my psp!
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

Post by m0skit0 »

C# is no use on PSP. It's a .NET programming language, and as such, it needs .NET framework to be useful. So forget about C#.

IMHO C/C++ is the best programming language to use with PSP, because PSPSDK is again the best SDK available to program for PSP.

I would suggest you making a few simple programs like a hello world or something like that, because programming for PSP differs a bit in Windows programming.
The Incredible Bill Gates wrote:The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Post Reply