papillon88 / tectonicus

Automatically exported from code.google.com/p/tectonicus
0 stars 0 forks source link

java exception #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When i try to lauch tectonicus from command line i get this :

c:\tectonicus>java -jar Tectonicus_v2.18.jar config=fullConfig.xml
Parsing config from c:\tectonicus\fullConfig.xml
Exception in thread "main" java.lang.NumberFormatException: For input string: 
"old1"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at tectonicus.Minecraft.findMinecraftJar(Minecraft.java:107)
        at tectonicus.configuration.XmlConfigurationParser.parseConfiguration(XmlConfigurationParser.java:94)
        at tectonicus.TectonicusApp.main(TectonicusApp.java:1178)

When i try with another config file, it display the same error.
I am on Windows 7x64 with Java 1.7.0_25.

Original issue reported on code.google.com by DrWe...@gmail.com on 28 Jul 2013 at 1:43

GoogleCodeExporter commented 9 years ago
I got the same problem. I think it happens when tectonicus tries to scan your 
Minecraft versions folder, and if it contains directories with incorrect names 
(like that 'old1'), Tectonicus fails to parse it's version and crashes.
There are two ways to solve: remove all non-standard directories from 
.minecraft/versions or manually specify the the path to your minecraft.jar: 
minecraftJar="~/.minecraft/versions/1.6.2/1.6.2.jar"

Original comment by medved...@gmail.com on 30 Jul 2013 at 6:41

GoogleCodeExporter commented 9 years ago
Don't use the fullConfig.xml file it's not a valid config file.  It's used to 
show all possible values for each config attribute.  You probably want to use 
simpleConfig.xml to start out with.
The exception you're seeing is caused by a parsing error like medvedx64 
mentioned.  Tectonicus looks for folder names that have period separated 
version numbers in them, so I'm guessing the full folder name is something like 
'old1.5' or similar.  Tectonicus tries to parse each separated value into an 
integer but doesn't know what to do with 'old1'.  I'll get it fixed.  In the 
meantime you can follow the advice that medvedx64 gave to get things working.

Original comment by skoeven on 31 Jul 2013 at 1:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
#1 : I had a "old" folder inside version folder of minecraft, i moved elsewhere 
it and it everything work fine.

skoeven : i should have specified that i started from fullConfig.xml to make my 
config file and i did not rename it after saving it.

Thanks you, problem solved !

PS : how do i mark the issue as solved ?

Original comment by DrWe...@gmail.com on 5 Aug 2013 at 11:30

GoogleCodeExporter commented 9 years ago
Invalid directory names in the versions folder will no longer cause an 
exception.

Original comment by skoeven on 7 Nov 2013 at 5:52