Isometric Map Editor

Hey, I’m trying to create a graphical mud with an isometric view - the gameplay will be inspired by Diablo.

At the moment I’m working hard on the map editor - it’s also got a button to test the fps, so I would appreciate if people would test and send me their fps + system specs :slight_smile: (without the grid - apparently linedrawing slows down the rendering a lot)
Download:
http://www.javaengines.dk/editor.zip

http://www.javaengines.dk/editor.png

Even with the grid up the FPS never drops below 100 sitting still. I tried moving around as fast as I could, and I couldn’t get it to drop below 50. I think you’re not gonna have any speed problems there :wink:

60-100 fps, if I move a window around over top or move the window around ~30-40

EDIT: line grid was on

Without hitting the FPS button I could see it updating around 45
After hitting the button: 100+

I also hit the Full button (oops)
The screen went into fullscreen mode
The screen was light gray
my cursor could move
thats all, I saw no GUI, I couldnt get back to windowed mode
ctrl+alt+del didnt work
I had to hit reset


Win98
PIII 700
GF4 4800 ti
JRE 1.4.1_01 (yeah I need a new one, well I need a new everything :slight_smile: )

Yeah, I’m having trouble with that too, it seems like something strange happens when I swap between full screen and windowed mode. Here’s the source:


else if (e.getSource() == fullButton)
            {
                  editor.dispose();
                  GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
                  if (device.getFullScreenWindow() == editor)
                  {
                        editor.setUndecorated(false);
                        device.setFullScreenWindow(null);
                        editor.setVisible(true);
                        editor.validate();
                        editor.repaint();
                  } else
                  {
                        editor.setUndecorated(true);
                        //editor.setVisible(true);
                        device.setFullScreenWindow(editor);
                        editor.validate();
                  }

            }


if you make a webstart version, I’ll test it ;D… (and it’s good practice for webstarting your game later on)

I tried, apparently there’s a bug when you read gif images with imageio from JWS, it totally screws up the image ;p It works perfectly fine as application

After a little messing around it opens the same gif image fine if I save it with Ultimate Paint instead of MS Paint, heh.

[quote]After a little messing around it opens the same gif image fine if I save it with Ultimate Paint instead of MS Paint, heh.
[/quote]
Welcome to the world of “you’re running windows and you DON’T have paintshop pro or better? You poor bastard :(”. There are also other “fun” things to discover, like the fact that MS programs corrupt PNG images when saving (they don’t handle transparency because MS programmers are lazy, or possibly their bosses were just a bit dumb and thought transparency wasn’t relevant).

Recommendation: buy PSP for $40 (second hand if you have to; I think the prices these days may be much much higher?) it’s worth it just as a general image editing program for non-professionals. And it supports filters for big expernsive stuff like Adobe Photoshop, but without the big price tag, so you can have fun with it too ;D.

Yeah I noticed, at work I can’t even save transparent gif in Paint . if I open transparent ones and save them the transparency disappears too;p
I might start shopping around for a decent paint program, biggest problem isn’t the money but the fact that I don’t own a credit card eg

[quote]Yeah, I’m having trouble with that too, it seems like something strange happens when I swap between full screen and windowed mode. Here’s the source:


else if (e.getSource() == fullButton)
            {
                  editor.dispose();
                  GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
                  if (device.getFullScreenWindow() == editor)
                  {
                        editor.setUndecorated(false);
                        device.setFullScreenWindow(null);
                        editor.setVisible(true);
                        editor.validate();
                        editor.repaint();
                  } else
                  {
                        editor.setUndecorated(true);
                        //editor.setVisible(true);
                        device.setFullScreenWindow(editor);
                        editor.validate();
                  }

            }


[/quote]
I haven’t done much fullscreen stuff, but I don’t think you want to dispose the window that you’re going to be using in fullscreen mode.

If you do… it sounds like you’re going to want to call pack() or show() when you switch back out of fullscreen mode.

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html#dispose()

Also, in my experience, you can’t decorate or undecorate a frame after it’s been visible. That could have been a bug in the version of java I was using then, or maybe I was just doing it wrong.

I’m a newb, so I’m probably wrong about everything. Just trying to help :wink:

Edit: fixed link

That is exactly why I dispose it first, so that I can use setUndecorated().
Perhaps I’m running into some race conditions because some of my calls are asynchronous.

[quote]After a little messing around it opens the same gif image fine if I save it with Ultimate Paint instead of MS Paint, heh.
[/quote]
So…webstart?

PS: please add beanshell as a scripting language for your game. Keep the current one if you must, but at least add beanshell as an alternative - don’t shoot all the java programmers in the head by making your java game unscriptable using java :(.

http://www.beanshell.org

Even better, make it accept beanshell scripts AND compiled classes - I have a class that will look for both and return whichever it finds first (either a script or a class) indistinguishable to the appl. I’ve been waiting for JGFv3 before posting it, but could send it to you now if you don’t mind quirks and lack of documentation)

I haven’t considered scripting language much yet.
The game will have to go through quite a few cycles before I’ll even think about it :slight_smile:

  • If I ever get to the point where people want to write mods for my game I’ll have exceeded my expectations wildly ;p

Ah. I was looking at the arenabots page on your site, which talks about a custom scripting language you wrote, and I moaned in pain :(, because it’s just like a mix of java with pascal, when instead you could simply have re-used beanshell for free.

I thought this editor was primarily for the arenabots game…oops.

nah, arenabots is dead:) It was a project I made at the university in the “languages and compilers” course, so using beanshell was no optioneg

[quote]Recommendation: buy PSP for $40 (second hand if you have to; I think the prices these days may be much much higher?) it’s worth it just as a general image editing program for non-professionals. And it supports filters for big expernsive stuff like Adobe Photoshop, but without the big price tag, so you can have fun with it too ;D.
[/quote]
I would recommend Gimp also ;D ;D ;D

I always get told off for this, but … I would avoid the Gimp if you can. Just last week, GIMP demonstrated its 70% repeatable ability to crash itself because of very poor algorithm design by the developers (inability to sensibly deal with memory limits) and repeatedly crashed linux.

Paint is crap, and is very honest that it has no features, but the GIMP gives you lots of swanky features and great expectations then trips you up and kicks you in the crotch while you’re down ;D.

Ok, got it web-started, but the ImageIO bug is still there, no matter what program I’m using to save my images, weirdness…
And it’s only with webstart this thing is happening, I wonder if webstart’s classloader screws up the files?

Anyway, it’s http://www.javaengines.dk/test/editor.jnlp

-ps: You can’t add new tiles or open/save files with the webstart version because of permissions, I could sign it but the map-editor is meant to be a desktop application anyway