New Mapping Tool - "SpringMapEdit" - r321 - Page 18

New Mapping Tool - "SpringMapEdit" - r321

Tutorials & Resources For Mappers

Moderator: Moderators

User avatar
hoijui
Former Engine Dev
Posts: 4342
Joined: 22 Sep 2007, 09:51

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby hoijui » 26 Nov 2010, 14:44

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.
0 x

User avatar
Karl
Panzerstahl Developer
Posts: 746
Joined: 01 Apr 2010, 21:05

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby Karl » 05 Jan 2011, 14:01

here is a little suggestion:

how about spacing/grid like on the tiles? wich is setable
like for making a straight wall (also align like)
0 x

se5a
Posts: 86
Joined: 25 Nov 2010, 20:47

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby se5a » 06 Jan 2011, 12:22

is this project still alive?

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.
0 x

User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21
x 17

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby Beherith » 06 Jan 2011, 14:58

What maximum heap did you specify for it? as it still works fine for me. Can you load up an .smf map? (un7zip an existing map)
0 x

se5a
Posts: 86
Joined: 25 Nov 2010, 20:47

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby se5a » 06 Jan 2011, 20:15

It wouldn't start at 4096, or 2048. it's currently at 1536.
0 x

User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21
x 17

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby Beherith » 13 Jan 2011, 23:25

Post your .bat file, I may be able to help.

Also, if you rotate too many features with rotate same random, it can crash:

Code: Select all

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)
0 x

User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby KaiserJ » 14 Jan 2011, 01:14

se5a... do you mean even if you use texture brushes or texgen the map stays black? (i always get a black texture to start with)
0 x

brodul
Posts: 20
Joined: 04 Feb 2009, 11:38

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby brodul » 14 Jan 2011, 18:05

i got a problem running the script:

Code: Select all

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: Select all

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.

HF
0 x

Frostregen
Posts: 179
Joined: 17 Jul 2007, 00:52

Re: New Mapping Tool - "SpringMapEdit" - r1334

Postby Frostregen » 15 Jan 2011, 11:54

@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.
0 x

brodul
Posts: 20
Joined: 04 Feb 2009, 11:38

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby brodul » 16 Jan 2011, 00:52

I made a file symbolic link (linux).

And yea, I did not have the swt lib installed 3.5.2 swt. :lol:
But I still get the same error.

I am not familiar with java devel.
If you need more info, please request for more.
0 x

Frostregen
Posts: 179
Joined: 17 Jul 2007, 00:52

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Frostregen » 16 Jan 2011, 03:50

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?
0 x

Von66341
Posts: 111
Joined: 10 Feb 2011, 03:00

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Von66341 » 22 Feb 2011, 10:42

Hey! does anyone know if there is a tutorial on springmapedit?

I was looking at the wiki section and most use mapconv instead

Thanks
0 x

User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21
x 17

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Beherith » 22 Feb 2011, 10:51

Check the readme included in the archive.
0 x

Von66341
Posts: 111
Joined: 10 Feb 2011, 03:00

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Von66341 » 23 Feb 2011, 02:24

In the readme there only a list of keys to what to do the options in springmapedit.

Is there a proper tutorial that teaches what the buttons /functions does?

Anyone knows if there is a guide to like what files I need to save?
Am a newbie and trying to pick creating map =)
0 x

User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21
x 17

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Beherith » 23 Feb 2011, 08:17

You need to save as 'Export spring sm2 map'.
0 x

Von66341
Posts: 111
Joined: 10 Feb 2011, 03:00

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Von66341 » 23 Feb 2011, 09:45

Yup, I did that.

I met with the following error
Content Error MapInfo

Thanks
0 x

User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21
x 17

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Beherith » 23 Feb 2011, 10:40

Did spring throw that error? Or did springmapedit?
0 x

Von66341
Posts: 111
Joined: 10 Feb 2011, 03:00

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Von66341 » 24 Feb 2011, 01:24

SpringLobby.

When I load the map and want to start the game that error pop out. =X
0 x

Sprang
Posts: 35
Joined: 10 Oct 2008, 15:05

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Sprang » 04 May 2011, 04:50

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?
0 x

User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21
x 17

Re: New Mapping Tool - "SpringMapEdit" - r1335

Postby Beherith » 04 May 2011, 16:44

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.
0 x


Return to “Map Tutorials & Resources”