I don't know if this problem has been fixed or not, but I'm going to go ahead and ask anyway...
Im using mb 6, the newest one that works with mac, and I can't load worlds 1 or 3, the two most explored. I tried lowering the resolution, changing the bits to 16, no anti-alias... but all that happens is that a black screen pops up with the F-key commands, and my little red arrow-man. Has anyone found a solution to this problem? or am i just out of luck?
Try running either of them from the commandline itself; you'll be able to see the error message then, and post it here.
Okay here is the .bat error
C:\Users\Jason>java -Xms256m -Xmx1024m -cp AppleJavaExtensions.jar;jinput.jar;lw
jgl.jar;lwjgl_test.jar;lwjgl_util.jar;lwjgl_util_applet.jar;lzma.jar;xray.jar -D
java.library.path=. com.apocalyptech.minecraft.xray.XRay
Exception in thread "main" java.lang.NoClassDefFoundError: com/apocalyptech/mine
craft/xray/XRay
Caused by: java.lang.ClassNotFoundException: com.apocalyptech.minecraft.xray.XRa
y
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.apocalyptech.minecraft.xray.XRay. Program wi
ll exit.
Hm, thanks. Could you give me a list of the files in that directory? Seems like that command should work, to me (though there shouldn't be a space between the "-D" and "java.library.path=.", but I assume that's just because of getting pasted in here). Edit: Also, it'd probably be useful to peek inside the xray.jar file which should be in that directory; could you open that up, too, just to make sure it's got the right stuff inside? Jar files are just Zip files; it should be openable by anything that understands zips.
Quote from HAK2 »
Im using mb 6, the newest one that works with mac, and I can't load worlds 1 or 3, the two most explored.
I'd guess that worlds 1 and 3 have been converted to the new region format, which only the most recent X-Ray build understands. What happens exactly when you try to run the new version from Terminal, again?
well, I guess that would make since...
but I can't use the new version, it doesn't have a mac port (does it?), all I can use is mb 6.
it brings up the settings, I change them to the lowest possible amounts, choose one of my more developed worlds (the ones that were updated), and all i get is a black screen, the minimap is black (but has a little red arrow-man, the spawn point, and the player point), and all the F-kay functions.
But it's probably just the update thing you mentioned. is there a way to use the newer one on a mac?
but I can't use the new version, it doesn't have a mac port (does it?), all I can use is mb 6.
I had been hoping to find out why you can't use the new version. All versions of X-Ray should run fine on OSX, as far as I know; if you downloaded the tbz2 version you should be able to just run the minecraft_xray_osx.command file. If that doesn't work, run it from a Terminal and let me know what the error is.
But it's probably just the update thing you mentioned.
Right - only MB9 understands the new Region format.
Quote from Sitethief »
How can I use X-Ray to look at blocks that are used by mods, like for example IndustrialCraft ?
Right now you can't. The "More Block IDs" mod in specific is something that I simply don't feel like working around in my code at the moment, which IndustrialCraft looks to depend on. For dealing with mods that DON'T use More Block IDs but still add new blocks, it might be nice to have X-Ray read its list of allowed blocks from a config file (and the matching texture IDs) but that's not really a priority for me at the moment.
Does X-Ray at least run for you, on those worlds, though? I seem to think it'll just have an empty space around those mod-based blocks.
How can I use X-Ray to look at blocks that are used by mods, like for example IndustrialCraft ?
Right now you can't. The "More Block IDs" mod in specific is something that I simply don't feel like working around in my code at the moment, which IndustrialCraft looks to depend on. For dealing with mods that DON'T use More Block IDs but still add new blocks, it might be nice to have X-Ray read its list of allowed blocks from a config file (and the matching texture IDs) but that's not really a priority for me at the moment.
Does X-Ray at least run for you, on those worlds, though? I seem to think it'll just have an empty space around those mod-based blocks.
Yes it does, I was using it to find exactly those blocks :wink.gif:, but since it doesn't highlight them its kinda hard :tongue.gif:. And I started using the mod when I already had a big mining operation running, I was wondering where it would start spawning, i.e. what area underground is unexplored. I tried using the unexplored feature in X-Ray, but that only highlights walls??
I was wondering where it would start spawning, i.e. what area underground is unexplored. I tried using the unexplored feature in X-Ray, but that only highlights walls??
The "explored" highlighting should highlight (in green) any blocks within N spaces of a torch (I forget the exact number). This would include walls and any other blocks in the area (with the probable exception of Paintings; I never thought to check those out) but obviously wouldn't be able to highlight blocks that it's not drawing in the first place.
I had the same problem, but adding double quotes around the .jar files of the classpath made it work for win7 (64bit here).
Command is then:
java -Xms256m -Xmx1024m -cp "AppleJavaExtensions.jar;jinput.jar;lwjgl.jar;lwjgl_test.jar;lwjgl_util.jar;lwjgl_util_applet.jar;lzma.jar;xray.jar" -Djava.library.path=. com.apocalyptech.minecraft.xray.XRay
(the copy/paste might fail for posting, but you get the idea)
Also, keep up the good work, the program is awesome and works really fast (60+ fps, no matter what I try).
I don't think this is too bad for a 'first post' after being a lurker for ... a long time.
I'm a noob when it comes to the cmd. How exactly do I add quotation marks around all the .jars?
If it's not too much trouble, could you compile against Java 1.5 for those folks with OSX 10.5.8 who cannot upgrade to 1.6? The Java update workaround (soylatte) only works for intel machines, and we don't all have intel :-(
I'll see if I can do this. After running a quick test, it looks like I'm using a method of java.util.LinkedList which was introduced in Java 1.6, so I'd have to make at least one code change. I'll take a closer look tonight when I've actually got some time.
I'm a noob when it comes to the cmd. How exactly do I add quotation marks around all the .jars?
Open the folder where your minecraft_xray.exe is located. In that folder, open the minecraft_xray.bat with a text editor (i.e. notepad).
In there, you add the quotes, save the file, then start up the program with the .bat file.
I just did that and it still gives me the same error.
I just did that and it still gives me the same error.
Hm, too bad. Out of curiosity, what's the output when you run "java -version" ?
Also, what happens when you try and run the EXE from the commandline, instead of the batch file?
And also also, just for kicks, could you post a list of the file contents inside "xray.jar?" It's just a zipfile, so anything that can open zipfiles should be able to look inside.
If it's not too much trouble, could you compile against Java 1.5
Ha, turns out that method which was only available in 1.6 was really just an alias for a function that does exist in 1.5. So here you go: http://www.multiupload.com/AVWH8LLK3L
There's a couple of very small other changes in that build, btw: the default up/down keys are now Q and Z (which matches what mcedit uses); I'm still trying to decide if I'll keep that for the eventual official MB10 release. You can always change them in the conf file of course.
The other change should please badfeet: there's an "invert mouse" checkbox in there now.
(Again for clarification, this isn't actually a new release of X-Ray really; it's just a new build against Java 1.5; PPC Mac users should find it handy)
im no good with computers, but how do i open the xray with minecraft.. if that makes any sense. if anyone could send me a pm explaining that would be great.
Ah, interesting. I've been using JSmooth to generate the Windows EXEs, but it seems that JSmooth doesn't quite know what to do with a 64-bit JVM, like the one you're using. I'll have to investigate a different way of generating that for the next release. Seems http://izpack.org/ is popular...
I'm wondering if perhaps there's something odd with the 64-bitness when trying to run it via the batch file, too, though I don't see what that could be. Does Java actually generate different bytecode depending on the architecture? (That was more of a rhetorical question to myself, for later looking-up). Edit: Okay, and as I'd expected, that wouldn't be the issue; bytecode doesn't care about that kind of thing. Hm.
Quote from EFTH »
Second of all... I can't change my speed. I've tried to change the hotkey with the prefs but it still doesn't work, any ideas?
The speed-change keys aren't a toggle; you actually just hold them down while moving. I suppose it might make sense to set the speed as a toggle of some sort. Perhaps it could actually be another slider, as with the brightness and such. The mouse could still be used to provide temporary boosts and slowdowns, but the "base" speed could be set by the user. Hmm...
My folders and whatnot are the same as the guy that already posted.
And the "java -version" output was the same, as well?
Quote from EFTH »
Thank you. That helped a lot. Although it kinda is a toggle since the speed is remembered even after you release the key and stop. So just be sure to move when you change the speed and you have a toggle
That actually doesn't happen to me at all. If you're on Windows, perhaps you're running into a StickyKeys kind of thing?
Quote from EFTH »
EDIT: Do you think you might be able to get coordinates in future updates?
Hit the grave accent key (otherwise known as a backtick, on the same key as the tilde).
Im using mb 6, the newest one that works with mac, and I can't load worlds 1 or 3, the two most explored. I tried lowering the resolution, changing the bits to 16, no anti-alias... but all that happens is that a black screen pops up with the F-key commands, and my little red arrow-man. Has anyone found a solution to this problem? or am i just out of luck?
Okay here is the .bat error
C:\Users\Jason>java -Xms256m -Xmx1024m -cp AppleJavaExtensions.jar;jinput.jar;lw
jgl.jar;lwjgl_test.jar;lwjgl_util.jar;lwjgl_util_applet.jar;lzma.jar;xray.jar -D
java.library.path=. com.apocalyptech.minecraft.xray.XRay
Exception in thread "main" java.lang.NoClassDefFoundError: com/apocalyptech/mine
craft/xray/XRay
Caused by: java.lang.ClassNotFoundException: com.apocalyptech.minecraft.xray.XRa
y
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.apocalyptech.minecraft.xray.XRay. Program wi
ll exit.
Hm, thanks. Could you give me a list of the files in that directory? Seems like that command should work, to me (though there shouldn't be a space between the "-D" and "java.library.path=.", but I assume that's just because of getting pasted in here).
Edit: Also, it'd probably be useful to peek inside the xray.jar file which should be in that directory; could you open that up, too, just to make sure it's got the right stuff inside? Jar files are just Zip files; it should be openable by anything that understands zips.
I'd guess that worlds 1 and 3 have been converted to the new region format, which only the most recent X-Ray build understands. What happens exactly when you try to run the new version from Terminal, again?
but I can't use the new version, it doesn't have a mac port (does it?), all I can use is mb 6.
it brings up the settings, I change them to the lowest possible amounts, choose one of my more developed worlds (the ones that were updated), and all i get is a black screen, the minimap is black (but has a little red arrow-man, the spawn point, and the player point), and all the F-kay functions.
But it's probably just the update thing you mentioned. is there a way to use the newer one on a mac?
I had been hoping to find out why you can't use the new version. All versions of X-Ray should run fine on OSX, as far as I know; if you downloaded the tbz2 version you should be able to just run the minecraft_xray_osx.command file. If that doesn't work, run it from a Terminal and let me know what the error is.
Right - only MB9 understands the new Region format.
Right now you can't. The "More Block IDs" mod in specific is something that I simply don't feel like working around in my code at the moment, which IndustrialCraft looks to depend on. For dealing with mods that DON'T use More Block IDs but still add new blocks, it might be nice to have X-Ray read its list of allowed blocks from a config file (and the matching texture IDs) but that's not really a priority for me at the moment.
Does X-Ray at least run for you, on those worlds, though? I seem to think it'll just have an empty space around those mod-based blocks.
Yes it does, I was using it to find exactly those blocks :wink.gif:, but since it doesn't highlight them its kinda hard :tongue.gif:. And I started using the mod when I already had a big mining operation running, I was wondering where it would start spawning, i.e. what area underground is unexplored. I tried using the unexplored feature in X-Ray, but that only highlights walls??
The "explored" highlighting should highlight (in green) any blocks within N spaces of a torch (I forget the exact number). This would include walls and any other blocks in the area (with the probable exception of Paintings; I never thought to check those out) but obviously wouldn't be able to highlight blocks that it's not drawing in the first place.
Oh, interesting! IronToBind - be sure to let me know if that works for you too. I can get that updated for the next release.
I'm a noob when it comes to the cmd. How exactly do I add quotation marks around all the .jars?
I'll see if I can do this. After running a quick test, it looks like I'm using a method of java.util.LinkedList which was introduced in Java 1.6, so I'd have to make at least one code change. I'll take a closer look tonight when I've actually got some time.
I just did that and it still gives me the same error.
Hm, too bad. Out of curiosity, what's the output when you run "java -version" ?
Also, what happens when you try and run the EXE from the commandline, instead of the batch file?
And also also, just for kicks, could you post a list of the file contents inside "xray.jar?" It's just a zipfile, so anything that can open zipfiles should be able to look inside.
Ha, turns out that method which was only available in 1.6 was really just an alias for a function that does exist in 1.5. So here you go: http://www.multiupload.com/AVWH8LLK3L
There's a couple of very small other changes in that build, btw: the default up/down keys are now Q and Z (which matches what mcedit uses); I'm still trying to decide if I'll keep that for the eventual official MB10 release. You can always change them in the conf file of course.
The other change should please badfeet: there's an "invert mouse" checkbox in there now.
(Again for clarification, this isn't actually a new release of X-Ray really; it's just a new build against Java 1.5; PPC Mac users should find it handy)
What's the output on the command prompt when you try to run the EXE, though? (Thanks for the other information, btw.)
Ah, interesting. I've been using JSmooth to generate the Windows EXEs, but it seems that JSmooth doesn't quite know what to do with a 64-bit JVM, like the one you're using. I'll have to investigate a different way of generating that for the next release. Seems http://izpack.org/ is popular...
I'm wondering if perhaps there's something odd with the 64-bitness when trying to run it via the batch file, too, though I don't see what that could be. Does Java actually generate different bytecode depending on the architecture? (That was more of a rhetorical question to myself, for later looking-up). Edit: Okay, and as I'd expected, that wouldn't be the issue; bytecode doesn't care about that kind of thing. Hm.
The speed-change keys aren't a toggle; you actually just hold them down while moving. I suppose it might make sense to set the speed as a toggle of some sort. Perhaps it could actually be another slider, as with the brightness and such. The mouse could still be used to provide temporary boosts and slowdowns, but the "base" speed could be set by the user. Hmm...
It doesn't even give me an output. It just goes:
C:/Users/Josh>c:/minecraft_xray/minecraft_xray.exe
C:/Users/Josh>
And the "java -version" output was the same, as well?
That actually doesn't happen to me at all. If you're on Windows, perhaps you're running into a StickyKeys kind of thing?
Hit the grave accent key (otherwise known as a backtick, on the same key as the tilde).
yes. its 1.6.0_14