Skip to content

Commit 627f964

Browse files
committed
v1.0.0
0 parents  commit 627f964

File tree

15 files changed

+1200
-0
lines changed

15 files changed

+1200
-0
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Compiled Object files
2+
*.slo
3+
*.lo
4+
*.o
5+
*.obj
6+
7+
# Precompiled Headers
8+
*.gch
9+
*.pch
10+
11+
# Compiled Dynamic libraries
12+
*.so
13+
*.dylib
14+
*.dll
15+
16+
# Fortran module files
17+
*.mod
18+
19+
# Compiled Static libraries
20+
*.lai
21+
*.la
22+
*.a
23+
*.lib
24+
25+
# Executables
26+
*.exe
27+
*.out
28+
*.app

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 spmn
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SA-MP Masterlist Fix
2+
Fixes the infamous SA-MP internet tab bug.
3+
4+
5+
6+
## Installation:
7+
* Download the latest package from the [releases page](https://github.com/spmn/sa-mp_masterlist_fix/releases);
8+
* Unpack it into SA-MP directory where `samp.exe` is located;
9+
* Run `masterlist_fix.exe`
10+
11+
12+
## How does it work?
13+
Simple! This fix is composed of two main parts:
14+
15+
1. A php script which parses [SACNR Monitor](http://monitor.sacnr.com/) two times a day and saves all server IPs on my (free) webhost server in the format used by SA-MP client;
16+
17+
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).
18+
19+
2. A DLL injected into SA-MP client which filters all the traffic outgoing to SA-MP Masterlist and redirects it to the server specified in `masterlist_fix.cfg` (default: my webhost server)
20+
21+
22+
## My server still is not appearing on the internet tab.
23+
Most probably your server is not registered on the [SACNR Monitor](http://monitor.sacnr.com/).
24+
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.
25+
26+
27+
## How can I contribute?
28+
There are several parts in this fix which can get better:
29+
30+
1. Masterlist server
31+
* this is currently hosted on a free account, which means:
32+
* it may or may not handle heavy traffic;
33+
* the account can be terminated at any time.
34+
* if you have a webhost/VPS/dedi with unlimited bandwidth and relatively high transfer speed at your disposal then you can help this project by hosting the masterlist. Just upload `update_masterlist.php` to your server, `crontab` it and create an issue containing the link to `masterlist.txt`;
35+
* or better, 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.
36+
37+
2. Injection code
38+
* 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`
39+
* an auto injector (like ASI Loader) would be a perfect solution
40+

0 commit comments

Comments
 (0)