Developing Linux Version!

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
Sull
Novice
Novice
Posts: 163
Joined: Mon Apr 26, 2004 5:56 pm
Location: Quebec,Montreal

Developing Linux Version!

Post by Sull » Mon May 24, 2004 5:46 am

ah just got all the based allegro src compiled on gcc!
but im working hard on developing socket
for thos know a little on winsock can help me to convert it =)

http://sull.homelinux.net/mana0.3linux.tar.gz

thats how i define makeword byte and word for the moment(he just compile fine)if someone know if is ok?

Code: Select all

typedef unsigned char BYTE;
typedef unsigned short WORD;
#define MAKEWORD(low,high) \
        ((WORD)(((BYTE)(low)) | ((WORD)((BYTE)(high))) << 8))
for thos who dont know yu have to compile with
g++ -o game game.cpp `allegro-config --libs`


and for thos think thats im developing slowly
im still a newbies on C,C++
i read many book on C programming and after 15 book i still have to learn =)

*oh and thank yu elven to add my to prog list,i will help yu as soon i understand the code =)"
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Mon May 24, 2004 6:56 am

In windows is defined as follows:

Code: Select all

#define MAKEWORD(a, b)  ((WORD)((BYTE)((DWORD_PTR)(a) & 0xff)) | ((WORD)(BYTE)((DWORD_PTR)(b) &0xff))) << 8))
where:

Code: Select all

#define HIBYTE(w) ((BYTE)((DWORD_PTR)(w) >> 8))
#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))
and:

Code: Select all

typedef unsigned char BYTE
typedef unsigned short WORD
Hope this could help :D
User avatar
natsuki
Novice
Novice
Posts: 105
Joined: Sat May 22, 2004 9:35 pm
Contact:

Post by natsuki » Mon May 24, 2004 9:21 pm

nice^^
maybe i'll try check packets later too.
User avatar
Sull
Novice
Novice
Posts: 163
Joined: Mon Apr 26, 2004 5:56 pm
Location: Quebec,Montreal

.

Post by Sull » Mon May 24, 2004 9:35 pm

r1-version

http://sull.homelinux.net/mana0.3-r1.linux.tar.gz

Just got a new version,tryed to convert the socket but didnt know if they work i also removed
the MessageBox and the CreateTread command

thats how is look like
Image

=D
User avatar
natsuki
Novice
Novice
Posts: 105
Joined: Sat May 22, 2004 9:35 pm
Contact:

Post by natsuki » Mon May 24, 2004 10:17 pm

looks nice^^
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Fri May 28, 2004 6:16 pm

Mmmh I can't see the image. Maybe you removed it? :roll:
User avatar
Sull
Novice
Novice
Posts: 163
Joined: Mon Apr 26, 2004 5:56 pm
Location: Quebec,Montreal

.

Post by Sull » Sat May 29, 2004 6:24 pm

sorry just got a new adsl rooter i just rehave to redo the NAT thing =)
Post Reply