ConnectServer Extended (97d support only)
Resume
Well, I was playing around with node and I decided to do this. Its not crappy stuff at all, but just supports 97d protocol yet.
Protocols
If anyone has newer protocols (1.02, etc) I'll add later.
Packets I need:
1. "hello" packet (server -> client) *First packet
2. "serverlist request" packet (client -> server) *Sent after first packet
3. "serverlist" packet (server -> client) *C2 packet
4. "server info request" packet (client -> server) *When clicked a server
5. "server info response" packet (server -> client) *Contains address + port of the requested server.
Plus
6. Status packet that GS sends to CS on port 55557
Instructions
Installation
1. Go to node.js
2. Download and install Node.JS 0.6.14 (The one on the first page) - http://nodejs.org/dist/v0.6.14/node-v0.6.14.msi
3. Make sure node is on your windows PATH variable by opening command prompt and typing "node -v". Hit enter and if you see "v0.6.14" you're done. If not, try restarting or hate life.
4. Download and extract the ConnectServer from http://www.dtex.com.br/downloads/CSE_0.0.1.rar
5. Go to random.org and generate any string. Copy it.
6. Open the file <extraction_path>\data\settings.js with notepad and search for "secret: "YOUR_RANDOM_GENERATED_SECRET_KEY_HERE",".
7. Replace the value with your key.
8. On the line below you'll see the user list, make sure you change or remove the default ones.
9. Check your ports (its on the same file).
10. Check your server list (its on the end of this file also.)
11. Execute the file <extraction_path>\install.bat
12. Execute the file <extraction_path>\run.bat
13. If you didn't changed the 44406 port, this http://127.0.0.1:44406 should point you to your control panel.
14. Login with your own credentials.
15. You should now be able to disable connections to the connect server, view the current users online and server loads. Also clicking on the status of the server will toggle it to a hidden state. Clicking again will make it visible again.
:P:
Screenshots
NPM Installation window
http://www.dtex.com.br/images/shot1.png
Settings file
http://www.dtex.com.br/images/shot2.png
Server running
http://www.dtex.com.br/images/shot3.png
Authentication page
http://www.dtex.com.br/images/shot4.png
Server list page
http://www.dtex.com.br/images/shot5.png
Server list page with some servers online
http://www.dtex.com.br/images/shot6.png
Credits
Me (WoLfulus)
License
Licensed under GNU GPLv3
Re: ConnectServer Extended (97d support only)
It reminds me of counter strike web mode. Looks good, great job!
Re: ConnectServer Extended (97d support only)
Re: ConnectServer Extended (97d support only)
Great release, It's working fine here.
UPDATE: with cron for node (https://github.com/ncb000gt/node-cron) you can configure when to show or hide a specific server, thanks for the tip wolfulus!