openage icon indicating copy to clipboard operation
openage copied to clipboard

Minimap

Open VelorumS opened this issue 9 years ago • 13 comments

Made some action buttons (hooked up 'kill' and 'garrison', haven't found the game logic for other ones).

Borrowed https://github.com/SFTtech/openage/pull/344 for the minimap. But can't understand why the player colours aren't bright. The player palette has only dark shades...

update: dissociated action buttons from this PR.

VelorumS avatar May 28 '16 18:05 VelorumS

Whoa. Cool! What do you think about we try fix the remaining issues so we can finally bring this now >10k lines pull upstream? :P I'm not sure what was left, I just remember libopenage/gui/CMakeLists.txt.

Do you want me to read through the pulls sonish or still wanna add stuff?

TheJJ avatar May 29 '16 21:05 TheJJ

I have nothing to add/change for https://github.com/SFTtech/openage/pull/422 and https://github.com/SFTtech/openage/pull/527

VelorumS avatar May 30 '16 11:05 VelorumS

The visuals are working as in #344. Just made the background generation trigger when chunks are added.

Implemented icons for types, so they go through the QML layer: to be able to assemble them there or animate them.

Leaving minimap navigation for the future (easy and independent).

VelorumS avatar Jul 09 '16 12:07 VelorumS

lisac@Pingus-PC ~/openage_mm $ ./run
INFO launching engine with data directory './assets' and fps limit 0
INFO SDL audio subsystems initialized
INFO Using audio device: default [freq=48000, format=32784, channels=, samples=2048]
INFO Initialized SDL video subsystems.
INFO loading configuration files...
INFO [py] loading config file /home/lisac/openage_mm/cfg/keybinds.oac...
INFO Loading time [engine]: 0.854 s
INFO Loading time   [game]: 0.925 s
 ERR file:///home/lisac/openage_mm/libopenage/gui/qml/main.qml:208 Type IngameHud unavailable
file:///home/lisac/openage_mm/libopenage/gui/qml/IngameHud.qml:232 DefaultMinimap is not a type

^CINFO freeing GUI...
INFO GUI was reset
Traceback (most recent call last):
  File "run.py", line 15, in init run (/home/lisac/openage/run.cpp:832)
    main()
  File "/home/lisac/openage_mm/openage/__main__.py", line 97, in main
    return args.entrypoint(args, cli.error)
  File "/home/lisac/openage_mm/openage/game/main.py", line 47, in main
    return run_game(args, assets)
KeyboardInterrupt

Doesn't work :(

lisacvuk avatar Jan 27 '17 17:01 lisacvuk

Again. Commits from the last year, but the copyright dates are already for this year in the upstream. Have to rewrite the commit dates.

VelorumS avatar Jan 29 '17 12:01 VelorumS

@lisacvuk what is the Qt version?

VelorumS avatar Jan 29 '17 13:01 VelorumS

lisac@Pingus-PC ~ $ qmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

@ChipmunkV

lisacvuk avatar Jan 29 '17 13:01 lisacvuk

I can only reproduce this kind of error when I delete the libopenage/gui/qml/DefaultMinimap.qml

VelorumS avatar Jan 29 '17 13:01 VelorumS

Sorry, I made a mistake. After cloning the repo, and re-compiling, it works.

lisacvuk avatar Jan 29 '17 14:01 lisacvuk

This thing was here for a long time. Is there anything specific to add?

VelorumS avatar Mar 03 '17 22:03 VelorumS

Time for rebase :P

TheJJ avatar Mar 21 '17 20:03 TheJJ

Is it possible to have the minimap on another monitor as seperate Window? (dual monitor setup)

timo-42 avatar Apr 26 '17 14:04 timo-42

Good idea, open a new issue for that please. We would need another window for that, though, currently openage is running in one window only.

TheJJ avatar Apr 26 '17 14:04 TheJJ