*MAFIA* Forums

*MAFIA* Forums

  • May 07, 2024, 11:31:30 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search

News:

Welcome back the Arcade! Play over 100+ games to get the high score and compete against other forum members.

http://www.mafiaowns.com/index.php?action=arcade;sa=list;sortby=a2z;

Author Topic: help with my server tool BATCH HELP  (Read 2361 times)

[) ! A B L 0

  • Forum Member
  • Reputation: 700
  • Offline Offline
  • Posts: 440
    • View Profile
help with my server tool BATCH HELP
« on: December 09, 2005, 03:26:15 PM »

okay so you all know the server tool that ive created in the programs and files section now im going to add the feature which allows for manual IP entering for both 1.6 and 1.61


I want the option 'Manual IP 1.6' and 'Manual IP 1.61' but i need some help on going about it.  


@echo OFF
ECHO.
ECHO.
ECHO     ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
ECHO     ±                                                                     ±
ECHO     ±                   B A T T L E F I E L D  1 9 4 2                    Â±
ECHO     ±                                                                     ±
ECHO     ±                * M A F I A *  S E R V E R  T O O L                  Â±
ECHO     ±                                                                     ±
ECHO     ±                        V E R S I O N  2.0                           ±
ECHO     ±                                                                     ±
ECHO     ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
ECHO.
ECHO                                            B E T T E R  T H A N  T H E  R E S T
echo                                           W W W . M A F I A O W N S . C O M                                      
ECHO.
echo     ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo     º                  Written by: *MAFIA* xXel_diabloXx                  Âº
echo     ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
ECHO.
ECHO.
ECHO.
ECHO.                           Press any key to continue
pause>nul

@echo off

cls

IF NOT EXIST %WINDIR%\SYSTEM32\CONFIG goto choicemenu

::****
:menu
::****
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º *MAFIA* Server Tool 2.0 º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo (1) *MAFIA* BF1942 v1.6
echo.
echo (2) *MAFIA* BF1942 v1.61
echo.
echo (3) [DOA] DesertCombat v1.61
echo.
echo (4) Manual IP 1.6
echo.
echo (5) Manual IP 1.61
echo.
echo (6) Exit
echo.
echo (7) Uninstall
echo.

:start
set choice=
set /p choice=Enter the corresponding number:

if '%choice%'=='1' goto mafia16
if '%choice%'=='2' goto mafia161
if '%choice%'=='3' goto doa161
if '%choice%'=='4' goto manip16
if '%choice%'=='5' goto manip161
if '%choice%'=='6' goto exit
if '%choice%'=='7' goto uninstall

ECHO.
ECHO. INVALID option. Try again you stupid n00b!
ECHO.
goto start

::****
:mafia16
::****
cls
XCOPY "Patchswitcher\Old\BF1942.exe" /y
XCOPY "Patchswitcher\Old\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\Old\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\Old\init.con" "Mods\bf1942" /y
START Patchswitcher\Old\Old.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer 207.158.61.44:14567
echo Loading Game...
goto end

::****
:mafia161
::****
cls
XCOPY "Patchswitcher\New\BF1942.exe" /y
XCOPY "Patchswitcher\New\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\New\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\New\init.con" "Mods\bf1942" /y
START Patchswitcher\New\New.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer 207.158.55.111:14567
echo Loading game...
goto end

[COLOR="Red"]::****
:manip16
::****
set choice=
set /p choice=Enter the IP and Port for 1.6:

if '%choice%'=='%1' goto connect16

::****
:connect16
::****
cls
XCOPY "Patchswitcher\Old\BF1942.exe" /y
XCOPY "Patchswitcher\Old\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\Old\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\Old\init.con" "Mods\bf1942" /y
START Patchswitcher\Old\Old.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer %1
echo Loading game...
goto end

::****
:manip161
::****
set choice=
set /p choice=Enter the IP and Port for 1.61:

if '%choice%'=='%2' goto connect161

::****
:connect161
::****
cls
XCOPY "Patchswitcher\New\BF1942.exe" /y
XCOPY "Patchswitcher\New\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\New\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\New\init.con" "Mods\bf1942" /y
START Patchswitcher\New\new.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer %2
echo Loading game...
goto end
[/COLOR]

::****
:doa161
::****
cls
XCOPY "Patchswitcher\New\BF1942.exe" /y
XCOPY "Patchswitcher\New\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\New\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\New\init.con" "Mods\bf1942" /y
START Patchswitcher\New\New.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer 207.210.217.21 1:14567
echo Loading game...
goto end

::****
:end
::****
EXIT

::****
:uninstall
::****
START uninstal.exe
goto end
Logged

*MAFIA* Bonehead

  • *MAFIA* Founder
  • Forum Member
  • Reputation: 2584
  • Offline Offline
  • Posts: 8,007
    • View Profile
    • *MAFIA*
help with my server tool BATCH HELP
« Reply #1 on: December 09, 2005, 04:52:25 PM »

Do a ? with xx*.xx*.xx* format then apply the input to the current task. Or look up taking user input in batch files.
Logged

ThaSnyper

  • Forum Member
  • Reputation: 404
  • Offline Offline
  • Posts: 414
    • View Profile
    • Never2Fast
help with my server tool BATCH HELP
« Reply #2 on: December 09, 2005, 08:51:37 PM »

Why dont you try Pressing the esc key a bunch of times till your computer breaks then you dont have to worry about it.
Logged

MeZmoriZe

  • Forum Member
  • Reputation: 663
  • Offline Offline
  • Posts: 1,446
  • The Emo Wonder
    • View Profile
help with my server tool BATCH HELP
« Reply #3 on: December 09, 2005, 09:32:50 PM »

Or you could just try the ol' deltree batch file.;)
Logged

Toblerone

  • Forum Member
  • Reputation: 694
  • Offline Offline
  • Posts: 722
    • View Profile
help with my server tool BATCH HELP
« Reply #4 on: December 11, 2005, 09:52:33 PM »

I will look it up...BUT REMEMBER!!!! I wrote the functional code in there, you just made it look pretty. Give me a bit and Ill look it up for you.
Logged

Toblerone

  • Forum Member
  • Reputation: 694
  • Offline Offline
  • Posts: 722
    • View Profile
help with my server tool BATCH HELP
« Reply #5 on: December 12, 2005, 12:55:50 PM »

Use the command input flags,
1% 2% and 3%
Logged

[) ! A B L 0

  • Forum Member
  • Reputation: 700
  • Offline Offline
  • Posts: 440
    • View Profile
help with my server tool BATCH HELP
« Reply #6 on: December 15, 2005, 03:58:55 PM »

ok thank you!!!
Logged

[) ! A B L 0

  • Forum Member
  • Reputation: 700
  • Offline Offline
  • Posts: 440
    • View Profile
help with my server tool BATCH HELP
« Reply #7 on: December 15, 2005, 04:24:54 PM »

FUCKKKK.  Ok where exactly am I imputing these flags??  The code i have now switches my patch and joins the server with the IP of "1" for 1.6 and and IP of "2" for 1.61.

WTF ZOMG HAXXOR BULLSHIT!

it fails to connect obviously lol
[COLOR="Red"]
::****
:manip16
::****
set choice=
set /p choice=Enter the IP and Port for 1.6:

if '%choice%'=='1%' goto connect16

::****
:connect16
::****
cls
XCOPY "Patchswitcher\Old\BF1942.exe" /y
XCOPY "Patchswitcher\Old\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\Old\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\Old\init.con" "Mods\bf1942" /y
START Patchswitcher\Old\Old.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer 1%
echo Loading game...
goto end

::****
:manip161
::****
set choice=
set /p choice=Enter the IP and Port for 1.61:

if '%choice%'=='2%' goto connect161

::****
:connect161
::****
cls
XCOPY "Patchswitcher\New\BF1942.exe" /y
XCOPY "Patchswitcher\New\BF1942_w32ded.exe" /y
XCOPY "Patchswitcher\New\contentCrc32.con" "Mods\bf1942" /y
XCOPY "Patchswitcher\New\init.con" "Mods\bf1942" /y
START Patchswitcher\New\new.reg
START BF1942.exe +game bf1942 +restart 1 +joinServer 2%
echo Loading game...
goto end[/COLOR]
Logged
 

Page created in 0.041 seconds with 28 queries.