fa icon indicating copy to clipboard operation
fa copied to clipboard

Evaluate the current amount of logging performed by the game

Open Basilisk3 opened this issue 1 year ago • 7 comments

I am by no means an expert on this, so if you feel like I am totally wrong, feel free to close this issue.

Example:

  • The entire text of the mod.info file of a UI mod is written to the log

Basilisk3 avatar Feb 29 '24 16:02 Basilisk3

I do not have info messages (1) and (2) in my logs, just once at the start. Do they also occur without UI mods?

Garanas avatar Mar 01 '24 11:03 Garanas

I do not have info messages (1) and (2) in my logs, just once at the start. Do they also occur without UI mods?

Apparently (1) and (2) are caused by the ZeP_MiniMapZoom UI mod. My bad, I removed them.

Basilisk3 avatar Mar 01 '24 19:03 Basilisk3

How about this for the mod info output? (in SessionInit.lua or console UI_Lua)

LOG('Active mods in session:')
for _, mod in __active_mods do
    LOG(string.format('\t"%-30s v%02d (%-37s by %s', mod.name..'"', mod.version, mod.uid..')', mod.author))
end

It avoids arbitrary output from longer fields like the description. I have noticed a 1-2 second lag spike because of the large amount of text printed to the log, especially with mods including changelog fields in their mod.info (supreme scoreboard). Example output:

INFO: Active mods in session:
INFO:         "Selection Deprioritizer"       v06 (bc7731b6-1416-11ea-8d71-362b9e155667) by partytime, changes by CodingSquirrel and Myxir
INFO:         "ZeP_MiniMapZoom"               v02 (5F593E02-FEF3-487C-916F-D6020903054B) by Ze_PilOt
INFO:         "Penguin's Icon Mod"            v02 (3ccc4eca-0cb1-11ec-ac65-a37599393411-02) by Emperor_Penguin
INFO:         "Ranges"                        v11 (71a26460-ec4e-11ea-adc1-0242ac120003) by Myxir, Anihilnine, BlackYps, Prophet
INFO:         "Better chat"                   v14 (better-chat-4z0t-v14)                 by 4z0t
INFO:         "Advanced Target Priorities Tweaked" v05 (afc472ed-ab3b-4c0a-a05d-e0ce966d08ee) by Strogo, Nomander
INFO:         "Notifications v5.2"            v05 (0faf3443-1122-633s-ya-V00000005002)   by Myxir
INFO:         "Share Condition Popup"         v01 (casdb00a-0ca5-11ec-bf8a-346f5a12eff26) by Emperor_Penguin
INFO:         "UI Party"                      v15 (022E3DB4-9C00-5ED7-9876-4866D316E015) by Anihilnine, with contributions (technical help / ideas / I stole their code) from Zock, Domino, Myxir, yorick, Sir Prize, Crotalus, Coding Squirrel, Morax, Speed2, Hotbuild, camelCase, HUSAR_PL, MaCielPL, tatsu, sheeo, icedreamer, JoonasTo, Heaven, Fast-Thick-Pants
INFO:         "Common Mod Tools"              v01 (zcbf6277-24e3-437a-b968-Common-v1)    by Crotalus
INFO:         "Supreme Score Board2"          v18 (RIGOMATE-a1e2-c4t4-scfa-ssbmod-v0180) by HUSSAR

lL1l1 avatar Mar 02 '24 00:03 lL1l1

I also get the following warnings at the start of the game:

WARNING: Duplicate definition of console command "" (seven times) WARNING: NUM PROPS = 5182

With all the performance improvements this game received, having 5182 props on the map is not that much anymore (this is on Seton's Clutch, a vanilla map). Concerning the other error, console commands are defined in the engine, right?

Basilisk3 avatar Mar 02 '24 20:03 Basilisk3

@lL1l1 that looks like a great alternative to me.

Garanas avatar Mar 03 '24 10:03 Garanas

By far the biggest spam is the debug log that tells you (read: us, as developers) what modules are loaded. We could just turn that off for non-fafdevelop games

Garanas avatar Mar 04 '24 18:03 Garanas

Is there anyway I could track/find what is causing the texture errors on launch? they seem to have been around for quite a while?

apollodeathstar avatar Mar 12 '24 09:03 apollodeathstar