Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: AL|EN on January 22, 2019, 02:15:04 AM

Title: weidu next generation - add "game type" as a string to the weidu.log
Post by: AL|EN on January 22, 2019, 02:15:04 AM
Simple addition for weidu.log:


Code: [Select]
// Log of Currently Installed WeiDU Mods
// The top of the file is the 'oldest' mod
// ~TP2_File~ #language_number #component_number // [Subcomponent Name -> ] Component Name [ : Version]
// Game: BG1EE
// GameVersion: 2.6.11.0


It's for debugging information.
Title: Re: weidu next generation - add "game type" as a string to the weidu.log
Post by: DavidW on January 23, 2019, 02:15:44 AM
That would be pretty helpful, actually.
Title: Re: weidu next generation - add "game type" as a string to the weidu.log
Post by: subtledoctor on January 28, 2019, 11:51:42 AM
Srsly.
Title: Re: weidu next generation - add "game type" as a string to the weidu.log
Post by: AL|EN on January 30, 2019, 03:32:21 AM
I didn't mention one more thing because it was so oblivious: include game version

For classic games, it's possible to use BGMain.exe versioninfo or detect specific file.
For EE games, you either detect specific file or ask friendly Beamdog employee to provide a reliable method which Beamdog Devs use to determine game version.
Title: Re: weidu next generation - add "game type" as a string to the weidu.log
Post by: Wisp on February 19, 2019, 12:11:28 PM
Game type: I'll look into it. The usefulness could hit a snag or two with the exceptions GAME_IS has, and this would essentially have to be implemented as if GAME_IS foo print "foo"; if GAME_IS bar print "bar", etc.
Version: pass; I don't know where in ye olde binary the version is stored and if you say the EEs don't store it, I'll take your word for it.
Title: Re: weidu next generation - add "game type" as a string to the weidu.log
Post by: The Imp on March 03, 2019, 12:29:17 PM
I would for one prefer this:
~TP2_File~ #language_number #component_number #game_is // [Subcomponent Name -> ] Component Name [ : Version]

Yes, it would change from BG2EE to be EET after EET's install... of course, but that's to be expected.
And you should be alerted to find the log to contain multiple different things such as IWD, BG1 and TotSC in a log... which will totally tell you that something went very much off.
Title: Re: weidu next generation - add "game type" as a string to the weidu.log
Post by: DavidW on March 04, 2019, 10:20:19 AM
That’s redundant. Once you know the game type once, there’s no additional information provided by getting it again on a component-by-component basis.