Simple Aos favorite menu

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.
13 posts Page 1 of 1 First unread post
J2D2
Deuce
Posts: 8
Joined: Sun Jun 16, 2013 7:33 pm


Hello hello , boyz and girls , this is ande...
wait nevermind

Hello , everyone ! im here to show you a very simple AOS favorite server list

i made it with cmd. if you dont trust me , here's the code :
Spoiler:
@echo off
:refresh1

REM ---- reading the favorite name variables

for /f "Delims=" %%a in (zq.txt) do (

set a=%%a

)

for /f "Delims=" %%a in (xq.txt) do (

set b=%%a

)

for /f "Delims=" %%a in (dq.txt) do (

set c=%%a

)

for /f "Delims=" %%a in (vq.txt) do (

set d=%%a

)

for /f "Delims=" %%a in (tq.txt) do (

set t=%%a

)

for /f "Delims=" %%a in (nq.txt) do (

set f=%%a

)

for /f "Delims=" %%a in (mq.txt) do (

set g=%%a

)

for /f "Delims=" %%a in (lq.txt) do (

set h=%%a

)

for /f "Delims=" %%a in (pq.txt) do (

set i=%%a

)
:start
REM ---- menu

cls
echo.
echo J2D2's AOS utility
echo ____________________________________________________________
echo ============================================================
echo Commands :
echo Command Function
echo -(1 to 9) Starts the server associated with the number
echo - add Adds a server to the list
echo -reset Resets the list
echo -ref / refresh refresh the server list (use after reset)
echo -exit Quit the menu
echo. (Don't mind if it says echo command is on / off)
echo.
echo 1 %a%
echo 2 %b%
echo 3 %c%
echo 4 %d%
echo 5 %t%
echo 6 %f%
echo 7 %g%
echo 8 %h%
echo 9 %i%


REM ---- Getting user input for the choice


set /p Comm= Enter your choice :
cls


REM ---- Selecting the thing to do

if %comm% == add (goto add) else (goto %comm%)



:add

REM ---- Adding the server to the list
echo you choosed to %Comm%
set /p ser= What server number do you want to set ? (1 to 9)

goto %ser%q

:1q
set /p z= What is the name ?
set /p au= What is the url ?
goto end
:2q
set /p x= What is the name ?
set /p bu= What is the url ?
goto end
:3q
set /p c= What is the name ?
set /p cu= What is the url ?
goto end
:4q
set /p v= What is the name ?
set /p du= What is the url ?
goto end
:5q
set /p t= What is the name ?
set /p eu= What is the url ?
goto end
:6q
set /p n= What is the name ?
set /p fu= What is the url ?
goto end
:7q
set /p m= What is the name ?
set /p gu= What id the url ?
goto end
:8q
set /p l= What is the name ?
set /p hu= What is the url ?
goto end
:9q
set /p p= What is the name ?
set /p iu= What is the url ?

:end

REM ---- Setting the server url file variables
@echo on
echo %au% > zu.txt
echo %bu% > xu.txt
echo %cu% > cu.txt
echo %du% > vu.txt
echo %eu% > tu.txt
echo %fu% > nu.txt
echo %gu% > mu.txt
echo %hu% > lu.txt
echo %iu% > pu.txt

REM ---- Setting the server name variables

echo %z% > zq.txt
echo %x% > xq.txt
echo %c% > dq.txt
echo %v% > vq.txt
echo %t% > tq.txt
echo %n% > nq.txt
echo %m% > mq.txt
echo %l% > lq.txt
echo %p% > pq.txt

@echo off
goto start
:connect
cls
@echo on
:1
for /f "Delims=" %%a in (zu.txt) do (

set qc=%%a

)
@echo off
echo connecting
cd c:/ace of spades
client.exe -%qc%
pause
goto start
:2
for /f "Delims=" %%a in (xu.txt) do (

set wc=%%a

)
echo connecting
cd c:/ace of spades
client.exe -%wc%
pause
goto start
:3
for /f "Delims=" %%a in (du.txt) do (

set ec=%%a

)
echo connecting
cd c:/ace of spades
client.exe -%ec%
pause
goto start
:4
for /f "Delims=" %%a in (vu.txt) do (

set rc=%%a

)
echo connecting
cd c:/ace of spades
client.exe -%rc%
pause
goto start
:5
for /f "Delims=" %%a in (tu.txt) do (

set tc=%%a

)
echo connecting
cd c:/ace of spades
client.exe -%tc%
pause
goto start
:6
for /f "Delims=" %%a in (nu.txt) do (

set yc=%%a

)
echo connecting
cd c:/ace of spades
client.exe -%yc%
pause
goto start
:7
for /f "Delims=" %%a in (mu.txt) do (

set uc=%%a

)

echo connecting
cd c:/ace of spades
client.exe -%uc%
pause
goto start:8
for /f "Delims=" %%a in (lu.txt) do (

set ic=%%a

)
echo connecting
cd c:/ace of spades
client.exe -%ic%
pause
goto start
:9
for /f "Delims=" %%a in (pu.txt) do (

set oc=%%a

)
@echo off
echo connecting
cd c:/ace of spades
client.exe -%oc%
pause
goto start



pause
goto start


:exit
exit

:reset
cls
set /p sure= Are you sure you want to do this ? (y/N)
goto %sure%
cls
echo Wrong answer
pause
cls
goto reset

:y
echo deleting files
del zu.txt
del zq.txt
del xu.txt
del xq.txt
del vu.txt
del vq.txt
del tu.txt
del tq.txt
del pu.txt
del pq.txt
del nu.txt
del nq.txt
del mu.txt
del mq.txt
del lu.txt
del lq.txt
del dq.txt
del cu.txt
echo All files have been deleted
pause
goto start

:n
echo Returning to main menu.
pause
cls
goto start

:ref
:refresh
cls
echo Refreshing the servers
pause
goto :refresh1






exit
Here's the download link :

http://www.mediafire.com/?ohadz1wbzkwbbc1

Put it in a separate folder or it will spam with text files !

have fun !
Last edited by J2D2 on Mon Jun 17, 2013 1:09 am, edited 1 time in total.
GreaseMonkey
Coder
Coder
Posts: 733
Joined: Tue Oct 30, 2012 11:07 pm


COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE

I'm almost tempted to write my own batch script launcher, because the amount of unneccessary COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
COPY PASTE
in EVERY batch file launcher is getting on my nerves.
Handles
League Participant
League Participant
Posts: 1087
Joined: Tue Jan 08, 2013 9:46 pm


Lol,i know.
J2D2
Deuce
Posts: 8
Joined: Sun Jun 16, 2013 7:33 pm


i hope you didnt mean copy / paste the name and url.

because there is no way as far as i know to retrieve the server list with cmd.
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


J2D2 wrote:
i hope you didnt mean copy / paste the name and url.

because there is no way as far as i know to retrieve the server list with cmd.
if you can't go to servers then what is it supposed to do?
J2D2
Deuce
Posts: 8
Joined: Sun Jun 16, 2013 7:33 pm


jdrew wrote:
J2D2 wrote:
i hope you didnt mean copy / paste the name and url.

because there is no way as far as i know to retrieve the server list with cmd.
if you can't go to servers then what is it supposed to do?

Its a FAVORITE MENU.

Its supposed to save a list of servers for quick acess
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


I thought there was no way to get a server list if you were using CMD, thats what you said
J2D2
Deuce
Posts: 8
Joined: Sun Jun 16, 2013 7:33 pm


it asks you for then name and the url. you can just try it you know
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


Now I get it, you have it to where it just add the aos:// and a name and then thats it, then it would be broken when the aos:// changes. Well Its good for a first project and is better then anything I could do. Might want to improve it later though.
J2D2
Deuce
Posts: 8
Joined: Sun Jun 16, 2013 7:33 pm


jdrew wrote:
Now I get it, you have it to where it just add the aos:// and a name and then thats it, then it would be broken when the aos:// changes. Well Its good for a first project and is better then anything I could do. Might want to improve it later though.
it actually lauches AOS with the url argument

EX: url = aos//:12345566

cd c:/???/ace of spades

client.exe -url

thats it

even if the url changes it should still work.
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


how? If a server changes the url to aos://344:0066 to aos://5806:7089 those were just test urls but still if it changes how would the it know to change the server url? it would be better if you grabbed the master server and then chose which server ti favorite via the server name so that if the server went offline and then came back with the same name even if the IP/url changed it would show in the favorites.
J2D2
Deuce
Posts: 8
Joined: Sun Jun 16, 2013 7:33 pm


jdrew wrote:
how? If a server changes the url to aos://344:0066 to aos://5806:7089 those were just test urls but still if it changes how would the it know to change the server url? it would be better if you grabbed the master server and then chose which server ti favorite via the server name so that if the server went offline and then came back with the same name even if the IP/url changed it would show in the favorites.
This is what i was talking about . there are no ways (as far as my knowledge goes) to retrieve the actual server list with cmd.
Sonarpulse
Coder
Coder
Posts: 443
Joined: Thu Dec 13, 2012 7:18 pm


Well, it's possible with wget and pain and suffering, but that's not worth your time.
13 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 31 guests