.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old May 4th, 2002, 10:45 PM
ColdSteel's Avatar

ColdSteel ColdSteel is offline
Sergeant
 
Join Date: Dec 2000
Posts: 248
Thanks: 0
Thanked 0 Times in 0 Posts
ColdSteel is on a distinguished road
Default Re: New Race Viewer/Profiler (ESP) Utility Released

Thanks guys for the bug reports. That gives me some idea of what may be going on. I'll do some testing.

Andrés, do you by any chance have any race set .bmp graphics files stored in the RaceName directory? For some reason it looks like it thinks RaceName is a race directory and it shouldn't do that unless there are some race graphics there.

Thanks again,

-CS
__________________
The difference between genius and stupidity is that genius has its limits.
Reply With Quote
  #2  
Old May 5th, 2002, 12:33 AM
ColdSteel's Avatar

ColdSteel ColdSteel is offline
Sergeant
 
Join Date: Dec 2000
Posts: 248
Thanks: 0
Thanked 0 Times in 0 Posts
ColdSteel is on a distinguished road
Default Re: New Race Viewer/Profiler (ESP) Utility Released

Okay, I did some testing and confimed that it is indeed the number of files causing the "bad file descriptor" error 9. Interestingly, if I run the program in the command window mode (Command Window in background), it works just fine, no matter how many race files there are.

From this, it appears to be a Python bug. I can always just enable the command window mode on the next release to make the error go away but I'd like to find a nicer fix than that if I can. I'm going to play with it some more.

In the meantime, just be aware that if you install more than 80 race sets on your PC search path, the current Version of ESP will error off. A temporary work-around is to set the default path lower down so that the program processes fewer files at a time. I'm working on it...

If any Python guru out there has an idea what causes this error, please let me know.

-CS
__________________
The difference between genius and stupidity is that genius has its limits.
Reply With Quote
  #3  
Old May 7th, 2002, 12:19 AM
ColdSteel's Avatar

ColdSteel ColdSteel is offline
Sergeant
 
Join Date: Dec 2000
Posts: 248
Thanks: 0
Thanked 0 Times in 0 Posts
ColdSteel is on a distinguished road
Default Re: New Race Viewer/Profiler (ESP) Utility Released

Good news Andrés!

I was able to find the problem causing ESP to crash when more than 80 races are processed. I should have a new Version up shortly with the fix.

Turns out that the problem was in the HTMLgen module and not in my program after all. Every time it wrote out a HTML file it printed a confirmation message to sys.stdout. The problem is that it apparently expected this message to go to a DOS command window but my program is not running in that mode. So instead it goes to an internal Windows buffer and once 160 such Messages are printed, the buffer fills up and the program gets hosed.

Fortunately, Python modules like HTMLgen come complete with the source code. I was able to track it down, comment out the offending code in the module and, whoooha, it doesn't crash anymore.

If you're a programmer, it's times like this when you feel really good (you programmers know what I mean).
__________________
The difference between genius and stupidity is that genius has its limits.
Reply With Quote
  #4  
Old May 7th, 2002, 11:39 AM

liga liga is offline
Second Lieutenant
 
Join Date: Apr 2001
Location: Modena, Italy
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
liga is on a distinguished road
Default Re: New Race Viewer/Profiler (ESP) Utility Released

Thank you for the ESP ... it's really a great utility

bye bye and goog luck
Liga
__________________
##############
www.liga3m.it
##############
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.