I made a custom game_start, called from empire_init_capital_planet
I wanted to track what was happening in that custom game_start so I made some log = "" entries. But what I was getting was inconsistent and unreliable.
To test what what was going on, I commented out all my previous log files and made a scripted_effect to test the logging.
example:
I started Stellaris, started a new game, waited for it to load, then exited.
The log file looked like this: (edited for ease of reading )
As you can see "Owner.Sector", "Owner.Planet", "Owner.This.Capital", and the last line are missing entirely. And it seems to have printed the planets from each country all together.
Another oddity, is "Owner.GetName" is empty. The game_start event script from which I called print_scope_test DEFINITELY has an owner scope. I know because before I made print_scope_test I just had a single: log = " Owner [Owner.GetName]" call and it was always returning a name.
Is there a known issue with batch logging like this? If so, how can I avoid it?
How can I ensure at the very least that EVERY log call is printed?
EDIT:
I just tested again with the following log results:
This one isn't displaying a planet in the "Owner.This.Planet" lines. Is it overwriting previous log entries??
I wanted to track what was happening in that custom game_start so I made some log = "" entries. But what I was getting was inconsistent and unreliable.
To test what what was going on, I commented out all my previous log files and made a scripted_effect to test the logging.
example:
Code:
print_scope_test =
{
log = "---------------------------------------"
log = "- Printing the owner scopes (trigger) -"
log = "- Owner: . [Owner.GetName]"
log = "- Owner.Sector: . [Owner.Sector.GetName]"
log = "- Owner.Capital: . [Owner.Capital.GetName]"
log = "- Owner.Planet: . [Owner.Planet.GetName]"
log = "- Owner.This.Sector: . [Owner.This.Sector.GetName]"
log = "- Owner.This.Capital: . [Owner.This.Capital.GetName]"
log = "- Owner.This.Planet: . [Owner.This.Planet.GetName]"
log = "---------------------------------------"
}
I started Stellaris, started a new game, waited for it to load, then exited.
The log file looked like this: (edited for ease of reading )
Code:
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. ---------------------------------------
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Printing the owner scopes (trigger) -
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner: .
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.Capital: .
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Sector: .
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Planet: . Jura
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Planet: . Fubra
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Planet: . Great Gorf
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Planet: . Lokken
As you can see "Owner.Sector", "Owner.Planet", "Owner.This.Capital", and the last line are missing entirely. And it seems to have printed the planets from each country all together.
Another oddity, is "Owner.GetName" is empty. The game_start event script from which I called print_scope_test DEFINITELY has an owner scope. I know because before I made print_scope_test I just had a single: log = " Owner [Owner.GetName]" call and it was always returning a name.
Is there a known issue with batch logging like this? If so, how can I avoid it?
How can I ensure at the very least that EVERY log call is printed?
EDIT:
I just tested again with the following log results:
Code:
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. ---------------------------------------
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Printing the owner scopes (trigger) -
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner: .
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.Capital: .
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Sector: .
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Planet: . Civrantia Imperium
... Log command ... events/ERDTC_game_start.txt line: 23 line: 1. - Owner.This.Planet: . Unidentified Empire
This one isn't displaying a planet in the "Owner.This.Planet" lines. Is it overwriting previous log entries??
Last edited:
- 1