KokaKiwi / MCLauncher

Custom Launcher for Minecraft
38 stars 28 forks source link

Problem with the config.yml #16

Closed Ahava closed 11 years ago

Ahava commented 12 years ago

When I change something on the config.yml and build the project again nothing happens.

KokaKiwi commented 12 years ago

Upload your config.yml on Gist and send it to me please. ;)

Ahava commented 12 years ago

Hey, I only changed the name of the launcher. But it doesnt change anything. I took the source from here cause I don't get to compile it. https://www.dropbox.com/sh/x9dixjedivwx6by/ktznwlLS9b Could you make a tutorial how to build and use it?

KokaKiwi commented 12 years ago

To compile MCLauncher, you must use Maven by calling "mvn clean install" on project directory (Maven is embedded in base versions of Eclipse) With Eclipse, you must use "Run As > Maven Build > Goal: clean install" :)

Ahava commented 12 years ago

Now I get tons of errors.http://meincraft.eu/paste/cg1MPjIt/

Ahava commented 12 years ago

Could you just upload your eclipse workspace folder of MCLauncher? I don't get it

KokaKiwi commented 12 years ago

That's because your project don't fill Maven project format. Re-import MCLauncher from Github repo (Eclipse: "Import > Existing Maven Project"), do your modifications and re-compile it with "Run As > Maven Build > goal: clean install"

Ahava commented 12 years ago

At the goals it says "No entries available."

Ahava commented 12 years ago

Ok, now when I run the Launcher with "clean install" the Launcher doesn't appear.

KokaKiwi commented 12 years ago

Run with the console and paste the log please :)

Ahava commented 12 years ago

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Minecraft Custom Launcher 0.9.5 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mclauncher --- [INFO] Deleting D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mclauncher --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 8 resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ mclauncher --- [INFO] Compiling 29 source files to D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mclauncher --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ mclauncher --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mclauncher --- [INFO] No tests to run. [INFO] Surefire report directory: D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\surefire-reports


T E S T S

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [INFO] --- maven-jar-plugin:2.1:jar (default-jar) @ mclauncher --- [INFO] Building jar: D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\minecraft.jar [INFO] [INFO] --- maven-shade-plugin:1.4:shade (default) @ mclauncher --- [INFO] Including org.yaml:snakeyaml:jar:1.9 in the shaded jar. [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\minecraft.jar with D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\mclauncher-0.9.5-shaded.jar [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mclauncher --- [INFO] Installing D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\minecraft.jar to C:\Users\Wanja.m2\repository\com\kokakiwi\mclauncher\0.9.5\mclauncher-0.9.5.jar [INFO] Installing D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\dependency-reduced-pom.xml to C:\Users\Wanja.m2\repository\com\kokakiwi\mclauncher\0.9.5\mclauncher-0.9.5.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.140s [INFO] Finished at: Sun Jul 15 13:11:32 CEST 2012 [INFO] Final Memory: 21M/231M [INFO] ------

KokaKiwi commented 12 years ago

It's mean that your launcher is located at: D:\Downloads\KokaKiwi-MCLauncher-f93d67f\KokaKiwi-MCLauncher-f93d67f\target\minecraft.jar ;) "Run As > Maven Build" execute Maven on the project and build your launcher JAR

Ahava commented 12 years ago

When I double click on the minecraft.jar nothing happen :( But thanks for your Support :D

Ahava commented 12 years ago

Do you have a solution for that?

KokaKiwi commented 12 years ago

Nope sorry, i don't know what happened :(

Ahava commented 12 years ago

Could you send me your Project Folder of MCLauncher? I don't get it what im doing wrong.

KokaKiwi commented 12 years ago

My project folder is the same as yours, i just do "Run As > Maven Build" and exported jar is working fine for me. :o

Ahava commented 12 years ago

Can I just edit the config.yml in a compiled mclauncher.jar and it works?

KokaKiwi commented 12 years ago

Yep it's work too. ;)

Ahava commented 12 years ago

could you send me a compiled mclauncher.jar ;)

KokaKiwi commented 12 years ago

There are many downloads in "Downloads" section MCLauncher git repo ;)

Ahava commented 12 years ago

When I run those nothing happens o.O

Ahava commented 12 years ago

I dont know if it helps but i only have java 7 installed.

Ahava commented 12 years ago

When I run your jar file via console I get this error.

http://meincraft.eu/paste/7MisgkK2/

Ahava commented 12 years ago

Mhh that's strange. When I use MCLauncher v0.9.4 then I can run it but when I change something in the config.yml it doesn't appear in the programm

Ahava commented 12 years ago

Ok, the problem was I forgot to delete the profiles folder. Now it works fine. Thank you! But, could you upload me the sourcecode of the 0.9.4 because the other versions don't work for me (http://meincraft.eu/paste/7MisgkK2/).

Thanks, Ahava