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: 26 Apr 2004, 17:56
Location: Quebec,Montreal

Developing Linux Version!

Post by Sull » 24 May 2004, 05:46

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: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 24 May 2004, 06:56

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: 22 May 2004, 21:35
Contact:

Post by natsuki » 24 May 2004, 21:21

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

.

Post by Sull » 24 May 2004, 21:35

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: 22 May 2004, 21:35
Contact:

Post by natsuki » 24 May 2004, 22:17

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

Post by ElvenProgrammer » 28 May 2004, 18:16

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

.

Post by Sull » 29 May 2004, 18:24

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