[RESOLVED] BuildTools will fire up an endless amount of PortableGit instances

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor
    • Environment:

      Windows 10 Home 64-bit

      i7-7700K
      Gigabyte GeForce GTX 1060 Windforce OC
      16 GB DDR4-2166

       

    • latest (there is no /version because it's not in-game)
    • Yes

      I am writing a batch script that will automatically make new folders and essentials files etc.
      since I downloaded the newest BuildTools.jar it will run and download PortableGit but then launch endless instances of PortableGit and slow down my entire machine.
      after about 10 seconds I'm not able to end the process successfully and I have to force shutdown my entire computer.

      the batch script:

      @echo off
      title BuildTools Installation
      
      rem setting the variables
      set /p version="Version (1.x.x) = "
      set /p bungee="Bungee (y/n) = "
      set /a port=%RANDOM%+4096
      
      rem making the directory for the specified version
      title Creating directories...
      if exist %version% (
      	echo There is already a folder called "%version%",
      	echo Removing the existing "%version%" folder and creating a new one.
      	rmdir /s %version%
      )
      mkdir %version%
      cd %version%
      
      rem downloading and running buildtools
      title Downloading BuildTools.jar...
      bitsadmin /transfer bToolsDownload /download /priority normal https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar %cd%\BuildTools.jar
      timeout 3 /nobreak
      title Running BuildTools %version%
      java -jar BuildTools.jar --rev %version%
      del BuildTools.jar
      
      rem creating run script and accepting eula
      title Writing necessary files...
      (
      echo @echo off
      echo title Spigot %version%
      echo java -Xmx4G -jar spigot-%version%.jar 
      echo PAUSE
      )>run.bat
      (
      echo "#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula)."
      echo "#Tue Jul 16 03:22:59 CEST 2019"
      echo eula=true
      )>eula.txt
      
      rem bungee-specific options.
      if %bungee% == y (
      	rem spigot.yml
      	(
      	echo settings:
      	echo   bungeecord: true
      	echo   late-bind: true
      	echo   restart-on-crash: true
      	echo   restart-script: ./run.bat
      	echo messages:
      	echo   whitelist: §fWhitelist §aenabled§f.
      	echo   unknown-command: §cUnknown command. Type §f/help§c for help.
      	echo   server-full: §cThe server is full.
      	echo   outdated-client: §cOutdated client§f. Please use §c{0}
      	echo   outdated-server: §cOutdated server§f. I'm still on §c{0}
      	echo   restart: §6Server is restarting
      	echo world-settings:
      	echo   default:
      	echo     verbose: false
      	)>spigot.yml
      	
      	rem server.properties
      	(
      	echo enable-command-block=true
      	echo max-world-size=4096
      	echo server-port=%port%
      	echo level-name=spigot-%version%
      	echo online-mode=false
      	echo level-seed=spigot-%version%-%port%
      	echo prevent-proxy-connections=false
      	echo motd=spigot %version% test server (port=%port%)
      	)>server.properties
      ) else (
      	rem spigot.yml
      	(
      	echo settings:
      	echo   bungeecord: false
      	echo   late-bind: true
      	echo   restart-on-crash: true
      	echo   restart-script: ./run.bat
      	echo messages:
      	echo   whitelist: §fWhitelist §aenabled§f.
      	echo   unknown-command: §cUnknown command. Type §f/help§c for help.
      	echo   server-full: §cThe server is full.
      	echo   outdated-client: §cOutdated client§f. Please use §c{0}
      	echo   outdated-server: §cOutdated server§f. I'm still on §c{0}
      	echo   restart: §6Server is restarting
      	echo world-settings:
      	echo   default:
      	echo     verbose: false
      	)>spigot.yml
      	
      	rem server.properties
      	(
      	echo enable-command-block=true
      	echo max-world-size=4096
      	echo server-port=%port%
      	echo level-name=spigot-%version%
      	echo online-mode=true
      	echo level-seed=spigot-%version%-%port%
      	echo prevent-proxy-connections=true
      	echo motd=spigot %version% test server (port=%port%)
      	)>server.properties
      )
      PAUSE
      

            Assignee:
            Unassigned
            Reporter:
            Robin Riezebos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: