Author Topic: WIP: dabascht's QT4/5 based map editor  (Read 4749 times)

Baŝto

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #25 on: 6 August 2014, 16:03:04 »
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

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: WIP: dabascht's QT4/5 based map editor
« Reply #26 on: 6 August 2014, 23:20:16 »
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

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #27 on: 8 August 2014, 08:14:42 »
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

  • Administrator
  • Horseman
  • ********
  • Posts: 203
    • View Profile
Re: WIP: dabascht's QT4/5 based map editor
« Reply #28 on: 21 August 2014, 13:33:02 »
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

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #29 on: 21 August 2014, 13:59:10 »
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

  • Administrator
  • Horseman
  • ********
  • Posts: 203
    • View Profile
Re: WIP: dabascht's QT4/5 based map editor
« Reply #30 on: 5 September 2014, 14:31:12 »
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

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #31 on: 23 December 2014, 16:49:12 »
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

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #32 on: 23 December 2014, 17:38:05 »
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

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #33 on: 13 February 2015, 21:29:08 »
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

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: WIP: dabascht's QT4/5 based map editor
« Reply #34 on: 20 February 2015, 19:25:57 »
Well, i tried installing QT and Tried compiling This is the result

vs10c++
Windows 10.

Pastebin
http://pastebin.com/JEPy1nxK
« Last Edit: 20 February 2015, 20:39:16 by Coldfusionstorm »
WiP Game developer.
I do danish translations.
"i break stuff"

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: WIP: dabascht's QT4/5 based map editor
« Reply #35 on: 28 February 2015, 00:53:41 »
Got it to compile, But Binary does not :/.
WiP Game developer.
I do danish translations.
"i break stuff"

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: WIP: dabascht's QT4/5 based map editor
« Reply #36 on: 3 October 2015, 16:52:10 »
What is the status of this editor? Is it functional enough to replace the wxwidget editor?

Baŝto

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: WIP: dabascht's QT4/5 based map editor
« Reply #37 on: 3 October 2015, 22:16:57 »
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

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: WIP: dabascht's QT4/5 based map editor
« Reply #38 on: 4 October 2015, 20:30:41 »
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

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: WIP: dabascht's QT4/5 based map editor
« Reply #39 on: 31 December 2015, 14:04:54 »
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 · · ·

 

anything