Developing Linux Version!

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
Sull
Novice
Novice
Posts: 163
Joined: 26 Apr 2004, 16:56
Location: Quebec,Montreal

Developing Linux Version!

Post by Sull »

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
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

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, 20:35
Contact:

Post by natsuki »

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

.

Post by Sull »

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, 20:35
Contact:

Post by natsuki »

looks nice^^
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

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

.

Post by Sull »

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