aliens

Author Topic: stdout / stderr  (Read 7946 times)

battlesquid

  • Guest
stdout / stderr
« on: July 08, 2010, 03:02:36 pm »
Like we talked about in the other thread I've created a patch that throws a message if it cannot open the file DATA/GEODATA/PALETTES.DAT - so it will throw if there is no DATA dir or if there's nothing in there. Which should be the usual cases I think. I'm not sure if this patch is any good at this point since it already says "ERROR: Failed to load palette" in the distributed version, like it should. Still it throws earlier as to avoid any potential sideeffects from resources not being loaded...

My problem is that when I build from source, I only get output in stout.txt and stderr.txt. It should be printed to the opening shell like the distributed binary does so it's easy to see. I don't understand why this differs...
« Last Edit: July 08, 2010, 03:05:05 pm by battlesquid »

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: stdout / stderr
« Reply #1 on: July 10, 2010, 04:24:39 pm »
That's not much of a change since it just throws the error earlier, but different systems / compilers seem to do different things with the outputs so it's not reliable besides debugging.

Don't worry about it, I've got an idea on how to solve it.