how this game(samp) built?
#1

How built this multi players game?
i mean which Programming language it's built?

Reply
#2

C/C++ I think.
Reply
#3

Search for Raknet.
Reply
#4

Quote:
Originally Posted by clum'
Search for Raknet.
RakNet is just network engine which is used by SA:MP too, but SA:MP itself is programmed in C/C++.
Reply
#5

Ok ...
Reply
#6

The server and client is written in C/C++.

There is some x86 assembly in the client that interfaces SA-MP with GTA:SA. San Andreas does not come with any SDK and there are no source/headers available. SA-MP is written without any source code or any assistance from Rockstar. It's all based on self research. I have to use memory editing, hooks, runtime hot-patching, and sometimes assembly to call functions. About 80-90% of the coding time on this mod is spent figuring out how to control San Andreas to make it do what I want - hopefully without crashing. But that's actually the most fun part.

SA-MP is one of the largest extensions ever written for another program without access to documentation or source files describing the original program's coding or limits.

RakNet provides SA-MP with the ability to do reliable messaging over the internet. That's so things like chat messages and server commands don't go missing while being transmitted. Some people think RakNet does most of the work in the mod but that's not true. RakNet is like DirectX, but for networking instead of graphics. Most of the protocol which makes everything sync still had to be designed and coded by the SA-MP team. RakNet has made our job a lot easier though.
Reply
#7

i think RakNet is an engine for the MP games ?
it juste represente the networking code, so you have to use RakNet instead of winsock
and the other is hooking d3d9.dll to create the chatbox and reverse engineering to modify the game
is this true ?
Reply
#8

Quote:
Originally Posted by Kye
RakNet is like DirectX, but for networking instead of graphics.
To correct you, its Direct3D, not DirectX. DirectX is a collection of APIs (Direct3D for graphics, DirectSound for sounds, ..) and isn't graphics only. Iam sure you knew this before, so it was only typo.
Reply
#9

Quote:
Originally Posted by Kye
The server and client is written in C/C++.

There is some x86 assembly in the client that interfaces SA-MP with GTA:SA. San Andreas does not come with any SDK and there are no source/headers available. SA-MP is written without any source code or any assistance from Rockstar. It's all based on self research. I have to use memory editing, hooks, runtime hot-patching, and sometimes assembly to call functions. About 80-90% of the coding time on this mod is spent figuring out how to control San Andreas to make it do what I want - hopefully without crashing. But that's actually the most fun part.

SA-MP is one of the largest extensions ever written for another program without access to documentation or source files describing the original program's coding or limits.

RakNet provides SA-MP with the ability to do reliable messaging over the internet. That's so things like chat messages and server commands don't go missing while being transmitted. Some people think RakNet does most of the work in the mod but that's not true. RakNet is like DirectX, but for networking instead of graphics. Most of the protocol which makes everything sync still had to be designed and coded by the SA-MP team. RakNet has made our job a lot easier though.
thenk you very much.
so now i know how it's built!
but I must to ask you a question...

I know it was hard, but you enjoy to make this game?
and how much years you know C++ / C?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)