Skip to content

Commit

Permalink
Server switched to SACNR
Browse files Browse the repository at this point in the history
  • Loading branch information
spmn committed Jul 8, 2016
1 parent 8f3c01b commit 29450d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 78 deletions.
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,18 @@ Fixes the infamous SA-MP internet tab bug.


## How does it work?
Simple! This fix is composed of two main parts:
Simple!

1. A php script that parses [SACNR Monitor](http://monitor.sacnr.com/) and writes in a file all server IPs in the format used by SA-MP client;
This fix injects a DLL into SA-MP client which redirects all the requests outgoing to SA-MP Masterlist (hosted list is not affected) to the server specified in `masterlist_fix.cfg` (default: [SACNR Monitor](http://monitor.sacnr.com/))

Why SACNR? Because they have implemented an API which allows adding of new servers to their Monitor by simple running a filterscript. Details [here](http://monitor.sacnr.com/api.html).

2. A DLL injected into SA-MP client which redirects all the traffic outgoing to SA-MP Masterlist to the server specified in `masterlist_fix.cfg` (default: [nickdodd25](https://github.com/nickdodd25)'s server)
Why SACNR? Because they have implemented an API which allows adding of new servers to their Monitor by simple running a filterscript. Details [here](http://monitor.sacnr.com/api.html).


## My server still is not appearing on the internet tab.
Most probably your server is not registered on the [SACNR Monitor](http://monitor.sacnr.com/).

You can register your server by following these [steps](http://monitor.sacnr.com/api.html). In the next ~12 hours the server should appear on internet tab.
You can register your server by following these [steps](http://monitor.sacnr.com/api.html). In the next hours the server should appear on internet tab.


## How can I contribute?
There are several parts in this fix which can get better:

1. ~~Masterlist server~~
* thanks to [nickdodd25](https://github.com/nickdodd25), masterlist is now hosted on a powerful machine so it will support heavy traffic;
* if you're a maintainer of SACNR Monitor API and do not mind high traffic, then you can help by directly providing a list of servers in SA-MP client format, so the parser will be no longer needed.

2. Injection code
* this fix is currently injected into SA-MP process by a helper executable `masterlist_fix.exe` which means that the user has to open THAT executable instead of the original executable `samp.exe`
* an auto injector (like ASI Loader) would be a perfect solution
An **auto injector** would make this project more user-friendly because (at this moment) the DLL is injected into SA-MP process by a helper executable `masterlist_fix.exe` which means that the user has to open THAT executable instead of the original executable `samp.exe`.
2 changes: 1 addition & 1 deletion hook/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma comment(lib, "detours.lib")
#pragma comment(lib, "ws2_32.lib")

#define MASTERLIST_HOST_DEFAULT "monitor.teamshrimp.com"
#define MASTERLIST_HOST_DEFAULT "monitor.sacnr.com"
#define MASTERLIST_PATH_DEFAULT "/list/masterlist.txt"

int (WINAPI *pSend)(SOCKET s, const char* buf, int len, int flags) = send;
Expand Down
62 changes: 0 additions & 62 deletions update_masterlist.php

This file was deleted.

0 comments on commit 29450d0

Please sign in to comment.