.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   New Race Viewer/Profiler (ESP) Utility Released (http://forum.shrapnelgames.com/showthread.php?t=5806)

ColdSteel May 3rd, 2002 01:10 AM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
Andrés,

Yes, it does work okay with the DevNullGoldMod on my PC.

No, I still don't have the new Version up yet because I'm working on some other changes that Raynor had suggested. I should be able to get Version 1.2 up by this weekend sometime.

Thanks again. http://forum.shrapnelgames.com/images/icons/icon7.gif

Atrocities May 3rd, 2002 02:56 AM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
This is a very cool program. Thanks. http://forum.shrapnelgames.com/images/icons/icon7.gif

ColdSteel May 4th, 2002 02:04 AM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
I just released a new Version 1.2 over in the mod area. http://forum.shrapnelgames.com/images/icons/icon6.gif

<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr> ESP Version 1.2 Released
SE4 Race Viewer/Stats HTML Generation Utility
Here's a new Version of my ESP utility.
1020470304.zip
Here are the changes since Version 1.0:

Version History.

v1.2
- Removed exit confirmation.
- Added yes/no choice for initial default path search on first load.
- Added status message to display HTML generation directory location.
- Added status message to display current search path on load.
- Changed main HTML index name from 'main.html' to '0_index.html'.
- Added status Messages for search directory change command.
- Changed the file select dialog to a directory select dialog.
- Increased size of status area and added word wrapping for multiline Messages.

v.1.1
- Added error checking and error message status window.
- Changed initial startup to provide feedback before searching for default dir. <hr></blockquote>

Andrés, try this Version out and let me know what error message you get for the Zorians. Thanks.

-CS

ColdSteel May 4th, 2002 03:07 PM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
You're welcome, Atrocities. http://forum.shrapnelgames.com/images/icons/icon12.gif

[ 04 May 2002: Message edited by: ColdSteel ]</p>

PDF May 4th, 2002 04:21 PM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
With new Version I had a crash while the prog were examining Andrès Lescanos races... an error in a Nostropholo files ... http://forum.shrapnelgames.com/images/icons/icon9.gif
Strange things is that v 1.0 worked all right through !

Andrés May 4th, 2002 09:24 PM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
Ok I continued to test, now with the new Version.

Error message it shows is:

Traceback (most recent call Last):
File (&lt;string&gt;, line 199, in onGen
File "HTMLgen.py", line 190, in write
IOError [Errno 9] Bad file descriptor

What doesn't look like much help.
The status line shows:

Generating HTML for RaceName


It generates succesfully RaceName.html, but not RaceName_Ships.html

What I did was remove that race and try again.
I repeated that 7 times, removing the romulan, vandron, SW-REB, SW-TF, ygath, zorian and regency before the program runned succesfully.
Number of htmls generated seems to be constant: 161, the error always seemed to appear before attempting to generate the 162nd file.
My guess is that it is some variable overflow generated because of the large number of races I have installed.
(I had re-installed some races after the previous test, so total number of races I have now is larger than what I had then, I guess that then removing the devnull mod removed enough races to make the difference back then.)
Now I have 78 races only in the main races dir.

To confirm that it is related to the total number and not to those races in particular, I re-installed them and removed other 7 races and the program worked ok.

Probably this is the same error PDF has found, I bet that he also has many races installed.

[ 04 May 2002: Message edited by: Andrés Lescano ]</p>

PDF May 4th, 2002 09:33 PM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
Andrés, indeed I had the *same* (senseless...) message and lots of races installed (TDM, yours, Atrocities'Trek races, DevNull, Hadrian A races, etc etc ...)
Perhaps when I ran ESP 1.0 I had less and so it worked ...

ColdSteel May 4th, 2002 10:45 PM

Re: New Race Viewer/Profiler (ESP) Utility Released
 
http://forum.shrapnelgames.com/images/icons/icon7.gif 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

ColdSteel May 5th, 2002 12:33 AM

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

ColdSteel May 7th, 2002 12:19 AM

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). http://forum.shrapnelgames.com/images/icons/tongue.gif


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

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