Results 1 to 18 of 18

Thread: EDU switcher for custom battle

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Member hoom's Avatar
    Join Date
    Oct 2002
    Location
    The country that replaced Zelix
    Posts
    1,937

    Default EDU switcher for custom battle

    THE EDU SWITCHER IS NOW SUPERCEEDED BY THE TRIVIAL SCRIPT ENGINE INCLUDED IN EB 1.1

    (I figure this is probably a bit better place for this than buried in the main forum)

    Intro
    With EB having a separate EDU for playing Custom Battles & Multiplayer, the apparent need arose for an automated switcher for those who are lazy or those who get fuzzy about technical stuff.
    I've written up two variants of batch file which perform this function.

    How it works
    There are two versions, menu driven & simple, choose which you want & use the code for that.

    What the menu driven version does:
    1: Menu gives several options, you can set for the mode you want on its own or set & then run EB. You can also exit with or without starting EB.
    2: When setting modes, the game copies the EDU files from the "\EB\mp custom game edu" & "\EB\sp game edu backup" directories, renaming where apropriate.
    It always overwrites the EDU in the "\EB\Data" folder but leaves the "\EB\mp custom game" edu & "\EB\sp game edu backup" copies unchanged.
    3: When it starts the game it uses the following commandline options: -mod:eb -nm -show_err

    What the simple version does:
    1: Swaps in the Custom Battle or Multiplayer EDU.
    2: Starts the game.
    3: The window stays open in the background & when the game exits, it swaps back to the Campaign Mode EDU.

    Instructions

    1: Open Notepad.
    2: Copy & Paste the relevant code (see below) into Notepad.
    3: Save As "swap_edu.bat" (or whatever, just keep the .bat at the end).
    4: Copy the .bat file to the same directory as the RomeTW.exe for your EB v1.0 install.
    5: Make a shortcut & put it where you like to launch EB from.

    The Code

    Simple version:
    Code:
    @echo off
    rem -EDU swapper for EB v1.0
    rem -MK2.2
    rem -by hoom 14 Oct 07
    rem -tested on Windows XP, should work on other Windows versions but not tested
    rem -feel free to use and alter as needed, its a very basic .bat file...
    rem -Note: place this file in the same directory as your RomeTW.exe
    
    rem -set for custommp EDU & start EB
    echo Configuring EB for Custom Battle or Multiplayer then starting EB
    echo.
    @echo on
    copy ".\EB\mp custom game edu\custom_edu.txt" .\EB\Data\export_descr_unit.txt
    @echo off
    rem -endstart
    echo.
    echo Now starting EB
    echo.
    echo This batch window should be left open until EB exits
    echo to enable automatic reset to Campaign Mode
    rem -start EB
    call .\RomeTW.exe -mod:eb -nm -show_err
    
    copy ".\EB\sp game edu backup\export_descr_unit.txt" .\EB\Data\export_descr_unit.txt
    exit
    Menu driven version:
    Code:
    @echo off
    rem -EDU swapper for EB v1.0
    rem -MK1.21
    rem -by hoom 14 Oct 07
    rem -tested on Windows XP, should work on other Windows versions but not tested
    rem -feel free to use and alter as needed, its a very basic .bat file...
    rem -Note: place this file in the same directory as your RomeTW.exe
    
    rem -menu
    :menu
    
    rem -options
    echo.
    echo =================EDU swapper=================
    echo 1 Campaign Mode
    echo 2 Campaign Mode and start EB
    echo 3 Custom Battle or Multiplayer
    echo 4 Custom Battle or Multiplayer and start EB
    echo 5 Exit and start EB
    echo 6 Exit without starting EB
    echo.
    
    rem -the choice code
    set choice=
    set /p choice=choose an option:
    rem if not '%choice%'=='' set choice=%choice:~0,1%
    if '%choice%'=='1' goto campaign
    if '%choice%'=='2' goto campaignstart
    if '%choice%'=='3' goto custommp
    if '%choice%'=='4' goto custommpstart
    if '%choice%'=='5' goto endstart
    if '%choice%'=='6' goto end
    echo '%choice%' is not valid, please try again
    echo choose a number 1 to 6:
    goto menu
    
    rem -set for campaign EDU
    :campaign
    cls
    echo.
    echo You chose to configure EB for Campaign Mode
    echo.
    @echo on
    copy ".\EB\sp game edu backup\export_descr_unit.txt" .\EB\Data\export_descr_unit.txt
    
    
    @echo off
    echo.
    echo EB is now configured for Campaign Mode
    goto menu
    
    rem -set for campaign EDU & start EB
    :campaignstart
    cls
    echo You chose to configure EB for Campaign Mode then start EB
    echo.
    @echo on
    copy ".\EB\sp game edu backup\export_descr_unit.txt" .\EB\Data\export_descr_unit.txt
    
    
    @echo off
    goto endstart
    
    rem -set for custommp EDU
    :custommp
    cls
    echo.
    echo You chose to configure EB for Custom Battle or Multiplayer
    echo.
    @echo on
    copy ".\EB\mp custom game edu\custom_edu.txt" .\EB\Data\export_descr_unit.txt
    
    
    @echo off
    echo.
    echo EB is now configured for Custom Battle or Multiplayer
    goto menu
    
    rem -set for custommp EDU & start EB
    :custommpstart
    cls
    echo You chose to configure EB for Custom Battle or Multiplayer then start EB
    echo.
    @echo on
    copy ".\EB\mp custom game edu\custom_edu.txt" .\EB\Data\export_descr_unit.txt
    
    
    @echo off
    goto endstart
    
    rem -endstart
    :endstart
    cls
    echo.
    echo Now starting EB
    echo This batch window should stay open until EB exits
    echo to enable automatic reset to Campaign Mode.Mode
    rem -start EB
    start .\RomeTW.exe -mod:eb -nm -show_err
    
    exit
    
    rem -end without starting EB
    :end
    cls
    echo.
    echo You chose to exit without starting EB
    pause
    exit
    Remember: If you use the menu version to swap the EDU files, make sure you run it & choose Campaign Mode when you want to play Campaign Mode!
    Bad things happen if you try to play Campaign Mode with the Custom Battle EDU

    THE EDU SWITCHER IS NOW SUPERCEEDED BY THE TRIVIAL SCRIPT ENGINE INCLUDED IN EB 1.1
    Last edited by hoom; 04-07-2008 at 23:33.
    maybe those guys should be doing something more useful...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO