Author Topic: [fixed in svn] 3.6.0.3: MG ignores custom hud.png if a folder 'hud' exists  (Read 1736 times)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
For some reason my custom hud is not shown in my mod.

my picture is named hud.png

My debug log in %appdata%\roaming\megaglest
http://pastebin.com/NTpRvxN1 (expires in one month(today is:21-01-2012)

Ive tried serveral things including moving my own techtree into the annex folder(wich have a working HUD. but the same hud just in my techtree wont work)

My fation XML's seems to be in order.
http://pastebin.com/kJAnuZih

« Last Edit: 3 March 2012, 07:48:32 by softcoder »
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: hud.png not being showed.
« Reply #1 on: 21 January 2012, 15:36:16 »
Since your custom HUD is not shown, what is shown instead: the default HUD or none at all?

It would also be good to see the hud.png you are trying to use. If you have enough upload, please consider making the entire techtree available, too. You can send the URL to where you uploaded it (not the techtree itself) by e-mail to our contact address if you prefer it not to be public at this time.

If that's not an option, can you provide the exact location (full file system path) of the HUD file?

The logs seems to indicate that the game is looking for a custom HUD but not finding one in the place where it expects it:
Code: [Select]
[2012-01-21 15:49:54] In [..\..\source\shared_lib\sources\platform\common\platform_common.cpp::Shared::PlatformCommon::findAll] scanning [D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef/hud.*]
[2012-01-21 15:49:54] In [game.cpp::Glest::Game::Game::loadHudTexture Line: 554] looking for a HUD 'D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef/hud'
[2012-01-21 15:49:54] In [..\..\source\shared_lib\sources\platform\common\platform_common.cpp::Shared::PlatformCommon::findAll] scanning [C:\Users\Frederick\AppData\Roaming\megaglest\techs/glestinspace/factions/uef/hud.*]
[2012-01-21 15:49:54] In [game.cpp::Glest::Game::Game::load Line: 714]
[2012-01-21 15:49:54] In [game.cpp::Glest::Game::Game::load Line: 718]
[2012-01-21 15:49:54] In [..\..\source\glest_game\world\world.cpp::Glest::Game::World::loadTileset Line: 262]

I.e. the game thinks that neither of these files exists (other file extensions would work for different file formats, too):
Code: [Select]
D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef/hud.png
C:\Users\Frederick\AppData\Roaming\megaglest\techs/glestinspace/factions/uef/hud.png
« Last Edit: 21 January 2012, 15:48:30 by tomreyn »
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 · · ·

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: hud.png not being showed.
« Reply #2 on: 21 January 2012, 15:55:43 »
Sure, This is the full path of the director in wich the hud.png is located.

D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\techs\glestinspace\factions\uef

in the directory(folder). the custom hud is placed with the name hud.png

I first tried with my own hud(that means the shematic with some black frames when that dindt work i tried using the annex hud, wich wouldnt work either)
WiP Game developer.
I do danish translations.
"i break stuff"

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: hud.png not being showed.
« Reply #3 on: 21 January 2012, 16:04:56 »
The odd thing, Both annex and the directory from wich i built MG in, the hud is shown fine.
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: hud.png not being showed.
« Reply #4 on: 21 January 2012, 17:29:59 »
So chances are something's wrong with your HUD file. Which is why I suggested you make it available.
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 · · ·

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: hud.png not being showed.
« Reply #5 on: 22 January 2012, 15:41:57 »
Sure.

http://imageshack.us/photo/my-images/40/huduj.png/

this is the hud im testing with(annex one because i know it works).
WiP Game developer.
I do danish translations.
"i break stuff"

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: hud.png not being shown.
« Reply #6 on: 26 January 2012, 22:15:32 »
Just a dumb idea,...Is the hud really enabled in options?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: hud.png not being shown.
« Reply #7 on: 26 January 2012, 22:24:46 »
what about this:
Code: [Select]
#
[2012-01-21 15:49:54] In [..\..\source\shared_lib\sources\platform\common\platform_common.cpp::Shared::PlatformCommon::findAll] scanning [D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef/hud.*]
#
[2012-01-21 15:49:54] In [game.cpp::Glest::Game::Game::loadHudTexture Line: 554] looking for a HUD 'D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef/hud'
#
[2012-01-21 15:49:54] In [..\..\source\shared_lib\sources\platform\common\platform_common.cpp::Shared::PlatformCommon::findAll] scanning [C:\Users\Frederick\AppData\Roaming\megaglest\techs/glestinspace/factions/uef/hud.*]

C:\Users\Frederick\AppData\Roaming\megaglest\techs/glestinspace/factions/uef/hud.*
D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef/hud.*

is the hud in one of those places?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: hud.png not being shown.
« Reply #8 on: 26 January 2012, 23:16:12 »
Yes, the hud is placed in this folder.

D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\\techs/glestinspace/factions/uef
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: hud.png not being shown.
« Reply #9 on: 2 February 2012, 15:58:59 »
When you start Windows Explorer (the Windows file browser) and copy and paste this to it's location bar (into the input field there) and press Enter, does some some application start up and display the file?
Code: [Select]
D:\Dropbox\GlestINSPaceModding\GlestINspaceModWorkingGame\techs\glestinspace\factions\uef\hud.png
And is the file displayed in Firefox or Internet Explorer when you use this URL?
Code: [Select]
file:///D:/Dropbox/GlestINSPaceModding/GlestINspaceModWorkingGame/techs/glestinspace/factions/uef/hud.png
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 · · ·

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: hud.png not being shown.
« Reply #10 on: 2 February 2012, 18:25:51 »
Yes, and Yes

and another yes to titi.
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: hud.png not being shown.
« Reply #11 on: 2 February 2012, 22:32:53 »
So based on the information we currently have available, this seems like a bug to me, and an odd one. If you can make all files available in an archive file (not uploaded in a way which may cause the files to be modified, like on an image hosting site) we should be able to reproduce it.
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 · · ·

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: hud.png not being shown.
« Reply #12 on: 3 February 2012, 10:14:39 »
Allright,i found out the cause, i had a folder named hud(from when conzar tried making hud availble), Aparently the hud folder confuses megaglest in some way and makes it not dectect the hud.png.

How to reproduce:
create a folder named "hud" in the faction folder where the hud.png exsist.

Also validation does not catch this.

i tried validating my techtree and it came out good.
WiP Game developer.
I do danish translations.
"i break stuff"

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.6.0.3: MG ignores custom hud.png if a folder 'hud' exists
« Reply #13 on: 3 March 2012, 07:48:12 »
Fixed in svn.

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Roger, and Exelent.
WiP Game developer.
I do danish translations.
"i break stuff"

 

anything