Author Topic: Placeholders not working  (Read 1029 times)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Placeholders not working
« on: 5 October 2010, 22:32:29 »
My understanding of things is that if you're missing a g3d file, the game will show a cube instead, right?  For me, the game crashes, unable to load the tech tree instead of using placeholders.  However, placeholder textures do work.  This is true for 0.3 and 0.3.1 both.  This is using the addons folder, as I haven't tested it by messing with the main directory.

Linux Mint 32bit.

Code: [Select]
Glest Advanced Engine: Error log file.

XML Error in techs/magitech/resources/gold/gold.xml:
 Exception caught loading 3d file: techs/magitech/resources/gold/gold.g3d
PHYSFS_openRead failed: techs/magitech/resources/gold/gold.g3d
Error: No such file or directory

<tons-more-similar-errors />

While this is very useful for me, as I use the error log as a "to-do" list, I'm pretty sure it's not the intended behavior.

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Placeholders not working
« Reply #1 on: 5 October 2010, 22:48:05 »
Well, this made me remember that silnarm did put something like "the pathfinder lies..."
Hmm...probably not.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Placeholders not working
« Reply #2 on: 5 October 2010, 22:49:31 »
tons more similar errors? does it seriously say that or are you trolling/joking?
Neither.  I just didn't want to paste a multi-page error file of the same thing over and over again. ::)

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Placeholders not working
« Reply #3 on: 6 October 2010, 00:55:12 »
Here's a backtrace through the varies exceptions:
http://pastebin.com/TY9r04RC

commenting shared_lib/sources/graphics/model.cpp:513 fixes it but the error message is then lost. I'm currently to tired to fix it properly...

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Placeholders not working
« Reply #4 on: 6 October 2010, 03:56:23 »
The exception should be thrown, the problem is ResourceType wasn't modified to keep going after such an error, due to a poor test plan ;)

resource_type.cpp : 84 is the one that needed commenting out / removing.
Glest Advanced Engine - Code Monkey

Timeline | Downloads