News:

Currently available MegaGlest gameservers are listed on Play.MG.

Main Menu

WIP: dabascht's QT4/5 based map editor

Started by tomreyn, 15 March 2014, 18:33:07

Baŝto

Today I made some huge changes to the painting of tiles. Thus I can now use a standard-method for zooming, this had also the option to keep a tile under the cursor when scaling. Titi and Tomreyn requested this behavior.

still TODO:


  • Making menus "Edit" and "View" functional
  • Scrolling and moving the canvas
  • Reducing/vanishing pen-lag
  • History (part of Edit)
  • Selection of tiles
  • fixing repainting of objects and resources
  • correctly linking to Qt on windows
  • Catching exceptions and showing warning messages
  • code cleanup

titi

This gets better and better and I bet this will replace original map editor soon!

things I would like to see:
- no painting with middle mouse.
- instead move pane with middle mouse down and not with shit + left mouse down
- maybe scroll can be done in smaller steps




Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Baŝto

Quote from: titi on  6 August 2014, 23:20:16
things I would like to see:
- no painting with middle mouse.
- instead move pane with middle mouse down and not with shit + left mouse down
- maybe scroll can be done in smaller steps (2px steps now)

Using middle click turned out being too difficult, also especially some laptops lack a middle mous button.

kagu

Im not sure if this is a bug but I'm posting it anyway.

Not rectangular maps not centred , and if you zoom it , the zoom doesn't happen centred in mouse area (like in GIMP).

Megaglest Chat
Please support:
1. CEGUI 2. In-process games 3. Registered Players
Playtime:
Every Sunday 21:00 - 01:00 CET

Baŝto

If the map size shrinks, this also happens when you open a map or create a blank one, the surrounding view doesn't. And this view is centered. Did not figure out how to fix this, but this is probably possible.

As long as the whole map fits in the window it's centered. As soon as it does not fit anymore, the pixel under the mouse cursor is the anchor for zooming. The Gimp has exactly the same behavior.

kagu

As soon as I hit Ctrl + Z , it crashes for me. The terminal shows no errors.
Megaglest Chat
Please support:
1. CEGUI 2. In-process games 3. Registered Players
Playtime:
Every Sunday 21:00 - 01:00 CET

Baŝto

Oh forgot to mention, that I can't reproduce that bug.

Also it won't compile with newest Qt versions, will try to fix that next week, this week I try to make the windows version compilable, but with an older version of Qt.

Baŝto

This time it was easier than expected.

Icons can't be displayed, also opening and saving files crashes ... but rest looks good.

Revision 3100276fa79512b068d3860a0fe6ade7e493da48 from windows-test branch should work with VS2010 Express.

You need to install Qt 5.2.1 to C:\Qt\5.2.1\msvc2010_opengl ... I plan to change this in the future.

Baŝto

It's now possible to compile on linux with Qt 5.4 (released Dec 10)

Now I'm trying to reduce the posibilities to cause memory leaks and segmentation faults. (using less pointers in C++)

Coldfusionstorm

#34
Well, i tried installing QT and Tried compiling This is the result

vs10c++
Windows 10.

Pastebin
http://pastebin.com/JEPy1nxK
WiP Game developer.
I do danish translations.
"i break stuff"

Coldfusionstorm

Got it to compile, But Binary does not :/.
WiP Game developer.
I do danish translations.
"i break stuff"

softcoder

What is the status of this editor? Is it functional enough to replace the wxwidget editor?

Baŝto

This project is frozen at the moment.

Basically it's feature complete if I recall correctly.

It's broken with newest Qt version and titi said, it's to slow on his computer.

titi

I cannot remember that I said slow. For me this editor works very well!
@softcoder try it here:
https://github.com/basxto/megaglest-source



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

I think I used to say that some things are slower than on the old editor. But this was a while ago, and I think you optimized things since.
And you definitely improved a lot of things already, and ironed out some old bugs.

Also, QT should work cross platform which is not the case for wxgtk (it does not seem to build on OS X).

So it would be great if we could replace the old editor by yours.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·