Welcome to Spaceempires.net
Login or Register

Search
Modules
 Home

 Discussions
 Forums
Access restricted to our members Members List
 SE IRC Chat
 SEnet News
 Newsletter
 News by Topic
 News Archive
Access restricted to our members Submit News
 Files & Links
 Downloads
 Shipyards
 Upload File
 Web Links
 SEnet Content
 Content (Stories)
 FAQ
 Game Info
 Hangman
 ModWorks
 Top 10
 Strategy
 Surveys
 User Content
 Fan Fiction
 Image Gallery
 Pages
 SE.net Info
Access restricted to our members Feedback
 Recommend Us
Access restricted to our members Statistics
 Search
 Staff
 Your Info
Access restricted to our members Journal
Access restricted to our members Private Messages
 Your Account

User Info
· Welcome, Anonymous
Membership:
· New: majorgreg
· New Today: 0
· New Yesterday: 0
· Overall: 2827

People Online:
· Visitors: 155
· Members: 1
· Total: 156

Online Now:
01: lorq13

  

Spaceempires.net :: AI modding: No longer writes any Backup/*.txt log files :: View topic
Forum FAQ :: Search :: Memberlist :: Usergroups :: Profile :: Log in to check your private messages :: Log in


AI modding: No longer writes any Backup/*.txt log files

 
Post new topic   Reply to topic    Spaceempires.net Forum Index -> Balance Mod
View previous topic :: View next topic  
Author Message
Gilmoy
Space Emperor


Joined: Dec 20, 2006

PostPosted: Sat Jan 06, 2007 1:24 pm    Post subject: AI modding: No longer writes any Backup/*.txt log files Reply with quote

My SEV no longer writes any script log files into the Backup/ folder.
It did for about 1 day (and I saved the last batch). Now it doesn't.

I've tried most combinations of all of the following.
In every case, there is absolutely no output at all.
- The Backup/ folder remains empty. 0 files, 0 bytes. Nothing.
- If Backup/ doesn't exist (I moved it), it is not created. (If I move it back, see above.)

I've tried:
1. Editing DebugSettings.txt
1.a) in Data/ (the original one)
1.b) in GameType/<my mod>/Data/

2. In DebugSettings.txt, tried both FALSE and TRUE:
2.a) Generate Game Debug Log
2.b) Generate Engine Debug Log
2.c) Use Fast Debug Log
2.d) Debug Section Script Evaluation Detailed
2.e) Debug Section Script Evaluation Simple

3. Launching method
3.a) double-clicked on se5.exe in the install folder
3.b) clicked the Start Menu shortcut
3.c) clicked my Quick Launch shortcut (a copy of 4.b)

4. Game type
4.a) Standard game (no mod)
4.b) Balance 1.00 (old mod, completely untouched by me)
4.c) My mod (Balance 1.01 + my AI zygote)

5. Game setup
5.a) Load Empire From File (which has worked OK for 2 weeks)
5.b) a new all-random empire
5.c) Load Game Setup (which worked OK for 3 days)
5.d) manually selected exactly same options as 5(c)

6. Started a game and played to turn 2400.1 (second turn)
Normally, the order of output is:
6.a) se5 writes Backup/ScriptExecutionLog_*_Setup_Script.txt, for all AIs
6.b) Your turn 2400.0 begins.
6.c) Switch to Explorer, look in Backup/, see about 15 Setup log files.
6.d) You end Turn.
6.e) All AIs take their turns. End of turn processing.
6.f) se5 writes Backup/ScriptExecutionLog_*_Main_Script.txt, for all AIs
6.g) Your turn 2400.1 begins.
6.h) Switch to Explorer, look in Backup/, see about 15 more Main log files.

I don't see 6(c) or 6(h). I see 0 files, 0 bytes. It writes nothing.
During 6(e), the AIs no longer draw the little blue (or red) progress bars.
(They do seem to be doing their usual thing, because they all propose treaties to me at the start of turn 2.)

What could cause this?
Could a script error or exception before 6(a) essentially disable the entire logging service? (But that doesn't explain why 4(a) or 4(b) also fail.)

7. I've used the ScriptParser.exe IDE a few times. I noticed that it has touched the datestamps of the CodeListing_{BuiltIn,Interface}.txt files. (That must be automatic; I certainly didn't tell it to do that.) Could it have also modified some other system script file automatically (and broken it)?

8. I've searched my entire install folder('s subtree) for *.* modified "within the past 1 week". The only files that have changed are:
8.a) Data/DebugSettings.txt; see 1(a)
8.b) Utilities/ScriptParser/CodeListing_{BuiltIn,Interface}.txt; see 7

I have some new files that presumably the game engine wouldn't even know to look at (unless I explicitly tell it to):
8.c) Empires/<my saved empire>/ and SavedEmpires/<my empire>.emp; see 5(a)
8.d) GameSetups/<my test setup>; see 5(c)
8.e) GameTypes/<my mod>/AI/

That's it. No .csf files appear to have been changed (except in my 8(e) dev dir, and the game doesn't look there).

9. regedit, HCU/Software/Malfador Machinations/Space Empires V/:
All keys look correct. The "Install Directory" key shows the correct path.

How do I restore my se5.exe's ability to write the ScriptExecutionLog_*.txt files?
Not generating those files is a showstopper for AI mod development.

Back to Sanctum until this is fixed ...
--
Eric / Gilmoy


Back to top
CaptainKwok
Balance Guru


Joined: Aug 04, 2003
Location: Toronto, Canada

PostPosted: Sat Jan 06, 2007 4:10 pm    Post subject: Reply with quote

These are the settings I use. Only modifying the DebugSettings.txt in the default data directory will work to generate a log.

Code:

=======================================================================================
DEBUG SETTINGS DATA FILE
=======================================================================================

=======================================================================================
*BEGIN*
=======================================================================================

Generate Game Debug Log                                 := TRUE
Generate Engine Debug Log                               := FALSE
Use Fast Debug Log                                      := FALSE
Debug Section Engine Startup                            := FALSE
Debug Section Creation                                  := FALSE
Debug Section Sound Base                                := FALSE
Debug Section Display Class                             := FALSE
Debug Section Sobj Ship                                 := FALSE
Debug Section Display Object                            := FALSE
Debug Section Formula Evaluation                        := FALSE
Debug Section Script Evaluation Detailed                := TRUE
Debug Section Script Evaluation Simple                  := FALSE
Debug Section Script Evaluation Debug Print Only        := FALSE
Debug Print Sections                                    := TRUE
Debug Section Compute Highest Tech Level                := FALSE
Debug Section Master State Machine                      := FALSE
Debug Section Order Execution                           := FALSE
Debug Section Combat                                    := FALSE
Debug Section Combat Speed                              := FALSE
Debug Section Main Drawing Loop                         := FALSE
Debug Section TCPIP                                     := FALSE
Debug Section End All Players Turn                      := FALSE
Debug Section Host Processing                           := FALSE
Debug Section Phased Movement                           := FALSE

=======================================================================================
*END*
=======================================================================================


Space Empires Depot | SE:V Balance Mod


Back to top
Gilmoy
Space Emperor


Joined: Dec 20, 2006

PostPosted: Sun Jan 07, 2007 8:09 am    Post subject: Reply with quote

CaptainKwok wrote:
... the default data directory ...
Code:
Generate Game Debug Log                                 := TRUE
Debug Section Script Evaluation Detailed                := TRUE

That was the combination I missed. Game Debug Log is a master flag for script eval logging. I had it FALSE in my stock Data/, and TRUE in my mod Data/. Fixed!

I updated my Appendix A02 with what I learned. I prefer Script Evaluation Simple, which omits the Create Var lines and the types of variables.
--
Eric / Gilmoy



EricAppendix SEV 070107.zip
 Description:
Technical Appendix A02 covers DebugSettings.txt.

Download
 Filename:  EricAppendix SEV 070107.zip
 Filesize:  9.54 KB
 Downloaded:  107 Time(s)



Back to top
Display posts from previous:   
Post new topic   Reply to topic    Spaceempires.net Forum Index -> Balance Mod All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
All logos and trademarks used on this site, all comments and stories posted for reading, all files hosted for download,
and all art work hosted for viewing are property of their respective owners; all the rest copyright 2003-2010 Nolan Kelly.
Syndicate news: SpaceEmpires.net News RSS Feed - Syndicate forums: SpaceEmpires.net Forums RSS Feed
Page Generation: 0.24 Seconds