Missing Log file with Update 141935

:play_button: GAME INFORMATION

Age of Empires DE update 141935. Version: 101.03.10863.0 (#141935) 17957298

  • GAME BUILD #: 141935
  • GAME PLATFORM: Steam / Microsoft Store
  • OPERATING SYSTEM: Windows 11 24H2

:play_button: ISSUE EXPERIENCED

Using Launch options in steam SKIPINTRO DEBUGSPEEDS LOGSYSTEMS=AIScript AISCRIPTDEBUGGING
However the created log folder for the session only has Main.txt
Example
Age of Empires 2 DE\logs\2025.04.22-2252.06
→ contains only Main.txt and not detailed logging

:play_button: FREQUENCY OF ISSUE

:backhand_index_pointing_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

  • 100% of the time / matches I play (ALWAYS) → No log created

:play_button: REPRODUCTION STEPS

:backhand_index_pointing_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Here’s the steps to reproduce the issue:

  1. Add LOGSYSTEMS=AIScript AISCRIPTDEBUGGING to start options.
  2. Start the game and create a game/lobby. start /end the game. Close AoE application.
  3. Check the logs Users\userrname\Games\Age of Empires 2 DE\logs
  4. Go into latest folder (timestamp of session). Check for log. No log there

:play_button: EXPECTED RESULT

A detailed log file consisting of detailed log, also stuff that the AI pushed into log with (log "lorem ipsum)

:play_button: IMAGE / Additional Information

Main.txt content

[Main] :   BaseGame constructor 1 
[Main] :   BaseGame constructor Before OpenFileById() 
[Main] :   BaseGame constructor After OpenFileById() 
[Main] :   BaseGame constructor 3
[Main] :   BaseGame constructor 4
[Main] :   BaseGame constructor 6
[Main] :   BaseGame constructor 7
[Main] :   BaseGame constructor 8
[Main] :   BaseGame constructor done
[Main] : Game constructor 1
[Main] : Game constructor 2
[Main] :   PreModManagerInit 1
[Main] :   ...success! About to setup graphics...
[Main] :   ...success! About to setup mouse...
[Main] :   ...success! About to setup cursors...
[Main] :   ...success! About to setup blank screen...
[Main] :   ...success! About to setup chat...
[Main] :   ...success! About to setup communications handler...
[Main] :     Game::install modded languages
[Main] :     Game::open resource packages
[Main] :   BaseGame::GameSetupPostModManagerInit() enter
[Main] :     palettes
[Main] :     shapes
[Main] :     sound system
[Main] : .oO Wwise Audio - Init Oo.
[Main] : .oO Wwise Audio - Init Finished Oo.
[Main] :   BaseGame::GameSetupPostModManagerInit() succeeded
[Main] : 
Play intro video AOEIIDE_TITLEVIDEO...
[Main] :   ...Skipping due to commandline
[Main] : VideoPlayer shutting down. Advance to main menu...
[Main] : endMovieFunction complete
[Main] : set_interface_messages...
[Main] : ... done set_interface_messages
[Main] : 
About to load player profile (player.nfp)...
[Main] : Attempting load profile Player.nfp
[Main] : Successfully loaded profile 
[Main] : ...finished with player profile.
[Main] :     Game::setup() before hotkeys
[Main] :     Game::setup() after hotkeys
[Main] : 
About to load player profile (player.nfp)...
[Main] : Attempting load profile Player.nfp
[Main] : Successfully loaded profile 
[Main] : ...finished with player profile.
[Main] :     Game::setup() before hotkeys
[Main] :     Game::setup() after hotkeys
[Main] : .oO Wwise Audio - Begin Shutdown Oo.
[Main] : .oO Wwise Audio - Shutdown Complete Oo.
[Main] : exiting

Notice its detecting the command line [Main] : …Skipping due to commandline

ALso i noticed that SlowLog Creation also stopped. So sth. changed for logging.

:play_button: GAME FILES (SAVE / RECORDING)

— Happens every session

1 Like

Any updates with this? I am also facing this issue. A MainLog.txt log file was only created in one of my last ten game sessions. My Main.txt log from the game session that generated the MainLog.txt is identical to the Main.txt files from other game sessions.

I think the “[Main] : …Skipping due to commandline” is probably due to the SKIPINTRO launch parameter which skips the intro title video.

@brezelbakery Hopefully this bug gets fixed, but I found a workaround in the meantime. You can add the CONSTANTLOGGING Steam launch option, and the game successfully creates the MainLog.txt file, also allowing you to view the log in real time, rather than after the game is closed. There could be downsides to using this though which I don’t know about.

1 Like

@LeifEricson7029 Nice! Thank you very much for the workaround! See you back on your Discord :smiley:

what does this log do for AI?

It’s just for debugging your AI. It allows you to write a message to a log file, and this message can contain the current value of a variable or goal. It’s better than the AI sending a chat message for debugging that contains this variable because chat messages can actually cause lag if you send too many of them, and it doesn’t have the 20-30 in-game chat message history limit before old messages are cleared from the chat history.

1 Like