AOS Server Connecter - UPDATED!

The original, free Ace of Spades game powered by the Voxlap engine. Known as “Classic,” 0.75, 0.76, and all 0.x versions. Created by Ben Aksoy.
7 posts Page 1 of 1 First unread post
NerokinKage
Deuce
Posts: 4
Joined: Sat Feb 01, 2014 6:33 am


AoS Server Connecter Beta
Welcome all to AOS Server Connecter Beta Script, the rebirth / revision of AOS Server Join. The original AOS Server Join was originally created by 10Se1ucgo and then maintained by me (both versions in 2013). So, a few weeks ago, I've decided to recreate the script and this is what I have made. Right now this is just a demo, but it works for the servers that have been added.

I've noticed that there's a bug when your directory path has a space and the script just exits itself for no apparent reason, so if you have any tips on how to fix please reply to this thread. Here is the code if you want to try it out.

Installation Instructions:
1. Open up Notepad or preferred text editor
2. Click on SELECT ALL in the box and press CTRL+C.
3. Back at Notepad (or preferred text editor) press CTRL+V and then CTRL+S.
4. Name it whatever you want, then run it and do what it asks.
Code: Select all
@ECHO OFF
TITLE Server Connecter v1.0 (Server Join)
GOTO :sets


:START
TITLE AOS Server Connecter - Welcome!
CLS
ECHO   %LB%
ECHO  ^|   _     __    ___ ^| Made by Nerokin              ^|
ECHO  ^|  / \   /  \  /    ^| Original made by 10se1ucgo   ^|
ECHO  ^| ^|___^|  )  (  \--\ ^|                              ^|
ECHO  ^| ^|   ^|  \__/  ___/ ^|______________________________^|
ECHO  ^|  ___   __   __         __   __  ^|   Originally   ^|
ECHO  ^| /     ^|    ^|  ) (   ) ^|    ^|  ) ^|    known as    ^|
ECHO  ^| \--\  ^|--  ^|--\  ) (  ^|--  ^|--\ ^|   Server Join  ^|
ECHO  ^| ___/  ^|__  ^|  (  \_/  ^|__  ^|  ( ^|________________^|
ECHO  ^|  __   __                  __   __  ___  __   __  ^|
ECHO  ^| /    /  \  ^|\  ^|  ^|\  ^|  ^|    /     ^|  ^|    ^|  ) ^|
ECHO  ^| )    )  (  ^| ^| ^|  ^| ^| ^|  ^|--  )     ^|  ^|--  ^|--\ ^|
ECHO  ^| \__  \__/  ^|  \^|  ^|  \^|  ^|__  \__   ^|  ^|__  ^|  ( ^|
ECHO  ^|%LB%^|
ECHO  ^|%HB%^|
ECHO  ^|            Press any key to continue             ^|
ECHO  ^|%LB%^|
PAUSE>nul
IF EXIST aossc-config.bat (GOTO :LOAD) ELSE (GOTO :FIRST)


::FIRST RUN S
	:FIRST
	TITLE AOS Server Connecter - First time setup
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
	ECHO  ^| Welcome to the Ace of Spades Classic Server      ^|
	ECHO  ^| Connecter!                                       ^|
	ECHO  ^|%HB%^|
	ECHO  ^| For the first startup of the script, Please      ^|
	ECHO  ^| the directory path of AOS Classic.               ^|
	ECHO  ^|%LB%^|
	SET /P CONFIG="DIR> "
	IF /I '%CONFIG%'=='' (GOTO :NOTF) ELSE (GOTO :CHECK)
	:CHECK
	TITLE AOS Server Connecter - Check AOS Path
	ECHO.
	ECHO Is this path / directory correct for the installation
	ECHO of Ace of Spades Classic? Please navigate to check.
	ECHO Path entered: [%CONFIG%]
	SET /P CHECK="Y/N> "
	IF /I '%CHECK%'=='N' (GOTO :FIRST) ELSE (GOTO :SAVE)
::FIRST RUN E


::SLR S
	:SAVE
	ECHO %CONFIG%> aossc-config.bat
	GOTO :MAIN

	:LOAD
	CLS
	SET /P CONFIG=<aossc-config.bat
	ECHO %CONFIG%
	PING ::1 -n 2 >NUL
	GOTO :MAIN

	:RESET
	CLS
	DEL aossc-config.bat
	ECHO Reset Finished! Please wait.
	PING ::1 -n 2 >NUL
	GOTO :START
::SLR E


::MAIN S
	:MAIN
	TITLE AOS Server Connecter - Main Menu
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
	ECHO  ^| 1. Server List                                   ^|
	ECHO  ^| 2. Credits                                       ^|
	ECHO  ^|%HB%^|
	ECHO  ^| 0. Exit                                          ^|
	ECHO  ^| 9. Reset                                         ^|
	ECHO  ^|%LB%^|
	SET /P MainS="SEL> "
	IF /I '%MAINS%'=='' (
		GOTO :NOTM
	) ELSE (
		IF /I '%MAINS%'=='1' GOTO :LIST1
		IF /I '%MAINS%'=='2' GOTO :CREDS
		IF /I '%MAINS%'=='0' %E%
		IF /I '%MAINS%'=='9' GOTO :RESET
	)
	GOTO :NOTM

	:CREDS
	TITLE AOS Server Connecter - Credits
	CLS
	ECHO YOU MADE IT!
	PAUSE
	%E%
::MAIN E



::MAIN LIST S
	:LIST1
	SET LIST=LIST1
	TITLE AOS Server Connecter - AOS Server Main List PG1
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
	ECHO  ^|  1. *Sauerkraut List   ^|  6. Earth's Elite AOS   ^|
	ECHO  ^|  2. Hammertime CTF     ^|  7. GAMER KING NAITH    ^|
	ECHO  ^|  3. Aloha.pk List      ^|  8. German Spades List  ^|
	ECHO  ^|  4. Anal List          ^|  9. GieMap - Deutscher  ^|
	ECHO  ^|  5. CallOfLiberty List ^| 10. Nitrado.net List    ^|
	ECHO  ^|%HB%^|
	ECHO  ^|                        ^|                         ^|
	ECHO  ^|%LB%^|
	SET /P SER="> "
	IF /I '%SER%'=='1' GOTO :SAUELIST
	IF /I '%SER%'=='2' (
		SET IP=aos://3549258853:32887
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='3' GOTO :ALOHLIST
	IF /I '%SER%'=='4' GOTO :ANALLIST
	IF /I '%SER%'=='5' GOTO :CALLLIST
	IF /I '%SER%'=='6' (
		SET IP=aos://235234751:32887
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='7' (
		SET IP=aos://2420563543:32888
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='8' GOTO :GERMLIST
	IF /I '%SER%'=='9' (
		SET IP=aos://1112045143:32887
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='10' GOTO :NITRLIST
	IF /I '%SER%'=='N' GOTO :LIST2

	:LIST2
	SET LIST=LIST2
	TITLE AOS Server Connecter - AOS Server Main List PG2
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
::MAIN LIST E


:CONNECTER
CLS
START %CONFIG% %IP%
GOTO %LIST%


::ALT LISTS S
	:SAUELIST
	SET LIST=SAUELIST
	TITLE AOS Server Connecter - Sauerkraut Server List
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
	ECHO  ^|                Sauerkraut Servers                ^|
	ECHO  ^|  1. Babel Classes      ^|  4. Shoot the Deuce     ^|
	ECHO  ^|  2. Deathmatch         ^|  5. Zombie Survival     ^|
	ECHO  ^|  3. Push               ^|                         ^|
	ECHO  ^|%HB%^|
	ECHO  ^| Type BACK to go back to the Main Server List     ^|
	ECHO  ^|%LB%^|
	SET /P SER="> "
	IF /I '%SER%'=='1' (
		SET IP=aos://151723184:32890
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='2' (
		SET IP=aos://151723184:32888
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='3' (
		SET IP=aos://151723184:32891
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='4' (
		SET IP=aos://151723184:32895
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='5' (
		SET IP=aos://151723184:32882
		GOTO :CONNECTER
	)
	IF /I '%SER%'=='BACK' GOTO :LIST1
	
	
	
	
	
	
	
	
	
	:ALOHLIST
	:ANALLIST
	:CALLLIST
	:GERMLIST
	:NITRLIST
	CLS
	ECHO These lists are not yet coded into the script, please
	ECHO check the forums for a new update if availible.
	ECHO.
	ECHO You will now be taken back to main server list
	PING ::1 -n 2 >NUL
::ALT LISTS E


::ERROR Menus S
	:NOTM
	TITLE AOS Server Connecter - Incorrect Selection
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
	ECHO  ^| You did not chose a correct input or did not     ^|
	ECHO  ^| type in anything in the main menu!               ^|
	ECHO  ^|%HB%^|
	ECHO  ^|            Press any key to continue             ^|
	ECHO  ^|%LB%^|
	PAUSE>NUL
	GOTO :MAIN

	:NOTF
	TITLE AOS Server Connecter - Empty Directory Path
	CLS
	ECHO   %LB%
	ECHO  ^|           _     __    ___      ___   __          ^|
	ECHO  ^|          / \   /  \  /     @  /     /            ^|
	ECHO  ^|         ^|___^|  )  (  \--\  @  \--\  )            ^|
	ECHO  ^|         ^|   ^|  \__/  ___/     ___/  \__          ^|
	ECHO  ^|%HB%^|
	ECHO  ^| You left the directory path empty! Please type   ^|
	ECHO  ^| in the path for Ace of Spades Classic            ^|
	ECHO  ^|%HB%^|
	ECHO  ^|            Press any key to continue             ^|
	ECHO  ^|%LB%^|
	PAUSE>NUL
	GOTO :FIRST
::ERROR MENUS E


:sets
SET LB=__________________________________________________
SET HB===================================================
SET E=EXIT
SET N=Next Page, type N
SET P=Previous Page, type P
mode con: cols=54 lines=18
GOTO :START
Version History:
4/19/2016 - Beta released! (Beta 1)
4/20/2016 - Sauerkraut Servers have been added! (Beta 2)

Previous versions:
Beta1 - Pastebin

This is in no way affiliated with AoS and BnS, I just made this out of my free time and decided to re-release it into the wild (public).

Keywords.
Spoiler:
aos server join, aos server connecter, server join, server connecter, remake of, recreation of, rebirth of, revision of, utility, run script, script
Last edited by NerokinKage on Wed Apr 20, 2016 7:37 pm, edited 1 time in total.
Kuunikal
Deuced Up
Posts: 187
Joined: Sun Mar 13, 2016 8:37 pm


That's awesome. Nice work!! Green_BigSmile

I'm a fan of how portable it is. But yes, that bug with the spaces in the directory name did get me, but I changed the dir name and it worked. I hope you continue to work on it, it's fun using it. Green_Happy1
NerokinKage
Deuce
Posts: 4
Joined: Sat Feb 01, 2014 6:33 am


Glad someone likes it!

I'll get back to work on it and probably find a way around the directory space error. If anyone have some tips on how to make this better, feel free to post them on here. Thanks! Green_BigSmile
NerokinKage
Deuce
Posts: 4
Joined: Sat Feb 01, 2014 6:33 am


Quick bump!

Updated beta script with Sauerkraut Servers in the batch file. Check first post for further details.
10se1ucgo
3 Years of Ace of Spades
3 Years of Ace of Spades
Posts: 198
Joined: Sun Dec 16, 2012 4:29 pm


neat, i also made a thing Image

made it after i read your pm, took about 20 minutes.

ill put the source up once i feel like it (it's written in Python w/ wxPython + ObjectListView)

edit: found some better flags
NerokinKage
Deuce
Posts: 4
Joined: Sat Feb 01, 2014 6:33 am


Well @10se1ucgo, I do not know how to code with Python, so I wont be much of any help with that. I just code with DOS because I know it and enjoy. But I guess I should learn Python, since I think it's one of the next steps of going into further coding.
10se1ucgo
3 Years of Ace of Spades
3 Years of Ace of Spades
Posts: 198
Joined: Sun Dec 16, 2012 4:29 pm


here's the source. https://gist.github.com/10se1ucgo/c6f97 ... c775e2a032

learn from it :^)
7 posts Page 1 of 1 First unread post
Return to “Ace of Spades 0.x Discussion”

Who is online

Users browsing this forum: No registered users and 35 guests