had a look at the source (SVN). wanted to make a maven project file, but well... SWT. :/ it might be possible somehow, but ... ARGH!! please... for future projects, use pure java stuff, at least if it is open-source. i mean.. for JOGL it is ok, no real way around native access there. they also seem to have better coverage on maven.
I also had the java not being in windows/system32 problem, fixed that now, but if I try create a map bigger than 8x8 I just get a flat back terrain, so it's near impossible to mess with the hightmap.
Also, if you rotate too many features with rotate same random, it can crash:
Code:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at backend.SpringMapEdit.findClosestFeature(SpringMapEdit.java:1888) at backend.SpringMapEdit.rotateSameRandom(SpringMapEdit.java:1123) at frontend.gui.SpringMapEditGUI.run(SpringMapEditGUI.java:546) at application.SpringMapEditApplication.main(SpringMapEditApplication.ja va:67)
java.io.FileNotFoundException: config/settings.cfg (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileReader.<init>(FileReader.java:55) at frontend.render.AppSettings.loadFromFile(AppSettings.java:266) at application.SpringMapEditApplication.main(SpringMapEditApplication.java:55) Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Composite at application.SpringMapEditApplication.main(SpringMapEditApplication.java:61) Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Composite at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 1 more
I fixed the first error by linking the settings.cfg to config/settings.cfg. But other errors persist.
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Composite at application.SpringMapEditApplication.main(SpringMapEditApplication.java:61) Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Composite at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 1 more
I am using gentoo , sun-jdk-1.6 no difference with sun-jre-bin-1.6.
@Beherith: Thx for reporting, was easy to fix due to crash log :) @KaiserJ: This is strange, it should start with a randomly generated _white_ map. @brodul: It looks like it can not find swt library. Maybe this is some relative path problem (It complained about config/settings.cfg too) What do you mean by "by linking the settings.cfg to config/settings.cfg"?
NEW RELEASE: r1335 -fixed "out of map access" bug in findClosestFeature(). Thx to Beherith for spotting.
Hmm, the question is, why did you need this symbolic link in the first place. This indicates you are trying to execute the startup script from the wrong directory. Did you extract with "keep directories"? Your directory layout should look like in the archive: \start_lin_x86.sh \springmapedit.jar \config\settings.cfg \lib_lin_x86\swt.jar (->swt is supplied within the archive) \lib_lin_x86\jogl.jar \lib_lin_x86\libjogl.so etc... Where resides your symbolic link, and where is it pointing to?
Wow, a very cool program for spring mapping, very easy to use. I really like that you can open map files with it, and compile.
Is it possible to adjust the compression rate during the compilation? It seems the map is compressed heavily by default. And if there is no such feature, could one be added?
Springmapedit doesnt use tiling compression like mapconv does, its quality is on par with mapconv set to 0 compression. Both also use the default .dds dxt1 compression.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum