Sign in to follow this  
Followers 0
  • entries
    21
  • comments
    57
  • views
    171,072

For the next custom map...

Mecmax

1,127 views

Hey guys,

My next custom map is gonna need alot of new sounds, textures, and a bunch of stuff, so I thought it would be simpler if I made a completely new launcher that would be compatible with all my custom maps. (a bit like deep space turtle chase)

Do any of you know how to do this? If so, please teach me and help me achieve (virtual) lifetime success: :P

If this isn't possible, Do any of you know how to make a automated installer?

Thanks :D




5 Comments


I looked at that myself and the only answers I found were 'you need to learn java' and that sort of stuff. I do know that you can make an installer however using a batch file however I'm clueless to how. There are probably tutorials on the internet though or you could ask @wave100, although I haven't seen him for a while.

Share this comment


Link to comment

Batch would be a good idea, if you've got the files unpackaged (not in a Zip or anything, just in a folder), and a batch script, you could easily have it do something like that.

 

For example, I've got one to launch my various minecraft jars. It's handy because if I accidentally hit "yes" to an update when JR isn't updated to it yet, all I have to do is restart the JAR and then it uses the old version again.

 

If you have played with any code at all, my code should appear pretty straight forward, how ever if you don't understand something, feel free to shoot me a PM. :)

Tim's Launcher Script

@echo off


color 0F
title Minecraft Launcher

:home
cls
echo Welcome, %USERNAME%
echo Which version of Minecraft should be started?
echo.
echo 1. 1.4.6 w/ Mods       [JR CURRENT]
echo 2. 1.4.6 Vanilla
echo 3. 1.4.5 w/ Mods
echo 4. 1.4.5 Vanilla
echo.
echo 90. 1.4.2 for WorldEdit work w/ SPC
echo 91. Start Technic Launcher
echo 92. Start FeedTheBeast Launcher
echo.
echo 0. Cancel
echo.

set /p choice="Enter your choice: "
if "%choice%"=="1" goto 146mod
if "%choice%"=="2" goto 146van
if "%choice%"=="3" goto 145mod
if "%choice%"=="4" goto 145van
if "%choice%"=="90" goto 142-SPC
if "%choice%"=="91" goto technic
if "%choice%"=="92" goto ftb
if "%choice%"=="0" exit
echo Invalid choice: %choice%
echo.
pause
cls
goto home

:146mod
COPY "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft146.jar" /y "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft.jar"
goto start

:146van
COPY "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft-1.4.6.jar" /y "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft.jar"
goto start

:145mod
COPY "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft145.jar" /y "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft.jar"
goto start

:145van
COPY "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft-1.4.5.jar" /y "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft.jar"
goto start

:142-SPC
COPY "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft142-SPC.jar" /y "C:\Users\Tim\AppData\Roaming\.minecraft\bin\minecraft.jar"
goto start

:technic
echo Starting Technic Lanucher...
@echo off
"C:\Minecraft\TechnicLauncher.exe"
exit

:technicreboot
echo.
echo Reboot?
echo.
echo [1] Reboot
echo [2] Switch JARs
echo [3] Quit
echo.
set /p reboot="Enter your choice: "
if "%reboot%"=="1" goto technic
if "%reboot%"=="2" goto home
if "%reboot%"=="3" exit
echo Invalid choice: %reboot%
echo.
goto technicreboot

:ftb
echo Starting FeedTheBeast Launcher, allocating 1~2GB of RAM.
@echo off
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xms1G -Xmx2G -jar "C:\Minecraft\FTB_Launcher.exe"
goto ftbreboot

:ftbreboot
echo.
echo Reboot?
echo.
echo [1] Reboot
echo [2] Switch JARs
echo [3] Quit
echo.
set /p reboot="Enter your choice: "
if "%reboot%"=="1" goto ftb
if "%reboot%"=="2" goto home
if "%reboot%"=="3" exit
echo Invalid choice: %reboot%
echo.
goto ftbreboot

:start
echo Starting Minecraft with 1GB ~ 2GB RAM...
@echo off
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xms1G -Xmx2G -jar "C:\Minecraft\Minecraft.exe"
goto reboot

:reboot
echo.
echo Reboot?
echo.
echo [1] Reboot
echo [2] Switch JARs
echo [3] Quit
echo.
set /p reboot="Enter your choice: "
if "%reboot%"=="1" goto start
if "%reboot%"=="2" goto home
if "%reboot%"=="3" exit
echo Invalid choice: %reboot%
echo.
goto reboot



Obviously, that's the current code, and the most recent stuff. I've made changes to it over time, as versions come and go. I just recently cleaned it out actually, before that I had a way to start every version of minecraft with or without my mods back down through about 1.8 Beta. :P

 

EDIT: Oh Java, why can't you be as simple as batch? :'(

Share this comment


Link to comment

@MakestikMoos

actually, I'm working on 3 different maps right now, and the horror one is far from done. I'll release it first, but it will be in quite a while. But the horror map is the one I'm gonna need sound changes the most.

 

@tim and @kyle, thanks for the help, But I'm actually gonna learn Javascript in a IT class soon enough, so It might help.

I'd really love to have a custom launcher where you just pick the map you want to play and it starts up all the textures and sounds and everything.

Share this comment


Link to comment

Javascript is to do with websites. Java is completely different to Javascript. You could also use the custom pack ability in the techniclauncher ;)

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now