Author Topic: [not a bug] Problematic implementation methods of Battle End Video/Music  (Read 1170 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Trying to set up battle end video/music I found that many of the methods outlined in this feature: https://forum.megaglest.org/index.php?topic=8618.0  do not work.

For example:

Videos:
look for videos in the following order:
1. check faction xml file for the following attributes (depends on win/lose) on the faction tag:
faction-battle-end-win-video="<path to video>"
faction-battle-end-lose-video="<path to video>"
3.if not found check the data/core/menu/videos/ paths for:
battle_end_win.*
battle_end_lose.*

Music:
 added support for custom music on battle end screen:
look for music in the following order:
1. check faction xml file for the following attributes (depends on win/lose) on the faction tag:
faction-battle-end-win-music="<path to music>"
faction-battle-end-lose-music="<path to music>"
3.if not found check the data/core/menu/music/ paths for:
battle_end_win.*
battle_end_lose.*

Nor does this method, Which was intended to fix issues mentioned above.

<?xml version="1.0" standalone="no"?>
<faction battle-end-win-video="x_battle_end_win_video.avi" battle-end-lose-video="x__battle_end_lose_video.avi" >
etc..

The only method that works is:

Videos:

2. check the faction folder for the files:
battle_end_win_video.*
battle_end_lose_video.*

Music:

2. check the faction folder for the files:
battle_end_win_music.*
battle_end_lose_music.*


Following other methods will not result in a crash, just ignored. Normally this would not be an issue, but if a mod is several techtrees big its quite wasteful. In Annex case I would have the same 4 videos and musics cloned in almost 20 techtrees. A huge and completely unnecessary increase in data size.
« Last Edit: 13 January 2013, 20:30:15 by tomreyn »
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Problematic implementation methods of Battle End Video/Music
« Reply #1 on: 10 December 2012, 17:40:51 »
Please post your specific test cases that fail with example of xml used for each one.

Thanks

*Update:

The xml tags should not have the word faction in them when used in a faction xml file, example:

Code: [Select]
battle-end-win-video
battle-end-lose-video
« Last Edit: 10 December 2012, 17:56:31 by softcoder »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Problematic implementation methods of Battle End Video/Music
« Reply #2 on: 12 December 2012, 18:56:52 »
I see both hyphons and underscores here, which one is correct?
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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Problematic implementation methods of Battle End Video/Music
« Reply #3 on: 12 December 2012, 19:02:19 »
hyphen for xml tag names, underscores for filenames.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Problematic implementation methods of Battle End Video/Music
« Reply #4 on: 12 December 2012, 19:11:04 »
Oh, right, now you're explaining it I realise this wasn't an issue in the first place.
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 · · ·

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Problematic implementation methods of Battle End Video/Music
« Reply #5 on: 10 January 2013, 21:03:36 »
Please post your specific test cases that fail with example of xml used for each one.

Thanks

*Update:

The xml tags should not have the word faction in them when used in a faction xml file, example:

Code: [Select]
battle-end-win-video
battle-end-lose-video

What is the exact syntax if i wanted to specify both a video and audio in a specific location lets say "techs/base_battle/video" from a faction xml? And where does it go in the xml

I tried to use <battle-end-win-video="../../../base_battle/video/alliance_battle_end_win_video.wmv" battle-end-lose-video="../../../base_battle/video/alliance_battle_end_win_video.wmv">  which does not work..
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Problematic implementation methods of Battle End Video/Music
« Reply #6 on: 10 January 2013, 21:18:17 »
if you run with
Code: [Select]
--verbose then the console will show exact paths used for files.

Thanks

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I'm not sure I understood the outcome properly, but reading over this thread my impression is this is not a bug - am I wrong?
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 · · ·