Author Topic: weidu next generation - add "game type" as a string to the weidu.log  (Read 476 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 307
  • Gender: Male
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.
« Last Edit: January 30, 2019, 04:54:29 AM by AL|EN »
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

Offline DavidW

  • Planewalker
  • *****
  • Posts: 268
Re: weidu next generation - add "game type" as a string to the weidu.log
« Reply #1 on: January 23, 2019, 02:15:44 AM »
That would be pretty helpful, actually.

Offline subtledoctor

  • Planewalker
  • *****
  • Posts: 101
Re: weidu next generation - add "game type" as a string to the weidu.log
« Reply #2 on: January 28, 2019, 11:51:42 AM »
Srsly.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 307
  • Gender: Male
Re: weidu next generation - add "game type" as a string to the weidu.log
« Reply #3 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.
« Last Edit: January 30, 2019, 04:04:38 AM by AL|EN »
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1035
Re: weidu next generation - add "game type" as a string to the weidu.log
« Reply #4 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.

Offline The Imp

  • Planewalker
  • *****
  • Posts: 280
  • Gender: Male
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.

Offline DavidW

  • Planewalker
  • *****
  • Posts: 268
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.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: