samp.directory
← Betikler ve kütüphaneler

1therealcloud/samp

Reimplementation of SA-MP 0.3.DL.

Araç★ 53 gün önce güncellendiLisans yokC++
GitHub’da aç

Bu deponun lisans dosyası yok. Okumak için herkese açık, ama bu tek başına yeniden kullanma izni vermez.

README.md

SA-MP 0.3.DL-R1

This project aims to reimplement SA-MP 0.3.DL-R1 as closely as possible to its original source code through reverse engineering and matching decompilation.

The 0.3.DL-R1 client is reconstructed from its binary. The 0.2x sources serve as reference material for names and organization, and some legacy components, including the archive code, are reused.

Status

The client is fully functional and playable, with no known issues observed during testing. All SA-MP functionality is implemented. Matching the compiled code to the original binary remains a work in progress, with substantial work still ahead.

Reference binary: SA-MP 0.3.DL-R1 samp.dll.

SHA-256:

bccdb297464bd382625635be25585df07a8fa6668bc0015650708e3eb4ffcd4b

The current binary inventory contains 9,095 native entries: 9,012 function and compiler-helper entries, plus 83 import thunks. These counts describe native entry addresses, rather than unique C++ methods or byte-matched functions.

ComponentEntries
SA-MP code2,407
RakNet1,785
zlib43
libcurl839
LZMA135
ttmath215
BASS imports17
Detours51
DXUT1,038
DirectX SDK helpers34
D3DX953
CRT / STL864
MSVC-generated code / exception handling1,333
Shared code / uncertain ownership215
Other import thunks66
Total9,095

BASS is an external DLL; its entries above are import thunks. The other 66 import thunks cover D3DX9 and Windows APIs. Uncertain ownership is recorded separately from functionality and matching progress.

Dependencies

RakNet, zlib, libcurl, LZMA and ttmath are pinned Git submodules under third-party/. BASS, Detours and the modified DXUT sources are included directly in that directory. D3DX9 is supplied by the DirectX SDK. The MSVC runtime is linked statically.

Utilities

The repository also includes the server browser and supporting tools:

ToolSourcePurpose
samp.exetools/exguiServer browser, favorites, server queries and game launcher.
rcon.exetools/rconConsole client for remote server administration.
arctool2.exetools/arctool2Builds SA-MP archives from a file list.
launch3.exetools/launch3Alternative game launcher with DLL injection.
kdff.exetools/dff/dfftoolInspects DFF files, generates and attaches COL collision data, and imports night vertex colors.
kdff.dlltools/dff/DffFormatDllDFF/COL processing and vertex-color operations used by the DFF GUI.
kdffgui.exetools/dff/Project1Graphical DFF preview, collision generation and vertex-color editing.

kdff.exe compiles the shared DFF/COL backend directly into the executable and does not require kdff.dll. The GUI loads kdff.dll separately. DLL-specific code is selected with KDFF_DLL.

Building

Build requirements:

  • Git.
  • Visual Studio .NET 2003 (Service Pack 1 optional).
  • DirectX 9.0 SDK, April 2005.
  • Delphi 7 (optional, for the server browser and DFF GUI).

Initialize the dependencies:

git submodule update --init --recursive

Open sa-mp.sln in Visual Studio .NET 2003 and build the solution. The output is placed in build/binaries/.

The solution includes the C++ utilities: rcon, arctool2, launch3, dfftool and DffFormatDll.

To build the server browser, open tools/exgui/samp.dpr in Delphi 7 and build the project.

To build the DFF GUI, open tools/dff/Project1/Project1.dpr in Delphi 7 and build the project.

Formatting

Run format.cmd to format source/ using the included .clang-format.

Inline assembly is enclosed in // clang-format off and // clang-format on guards.

cppdelphigtasaopen-sourcereverse-enginneringsamp

Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir

1therealcloud/samp: SA-MP Araç | samp.directory