Author Topic: GAME_IS, ENGINE_IS  (Read 10518 times)

erik

  • Guest
GAME_IS, ENGINE_IS
« on: November 04, 2008, 02:46:11 PM »
GAME_IS lacks BGT detection. Checking for bgintro.mve should be enough, I think, tutu doesn't rename the intro movie. I confused myself hopelessly adding negative detection for it in the SOA/TOB entries, however. I'll leave that to someone else.

Not that I need BGT detection in my current mod, but for completeness...

ENGINE_IS is undocumented, but better for my purposes. I'll use that.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #1 on: November 04, 2008, 03:40:20 PM »
Unfortunately, I can't change these without breaking backwards compatibility with Widescreen.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #2 on: November 04, 2008, 03:54:13 PM »
How's that? You mostly use ENGINE_IS, don't you? Adding bgt detection to GAME_IS wouldn't break that as far as I can tell...

And you only try to match IWD2 using GAME_IS in widescreen v1, at least.

Anyway, happy to report that ENGINE_IS is doing the job just fine here. :)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #3 on: November 04, 2008, 04:51:21 PM »
Right, you're correct. Done.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #4 on: November 04, 2008, 05:51:46 PM »
You'll need to find a more unique match for PST, by the way. FACTION.IDS leaked into the Icewind Dale I biffs. :o I don't have any PST around so I can't find a better one...

My plain unpatched IWD install matches both ENGINE_IS iwd and ENGINE_IS pst.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #5 on: November 04, 2008, 06:01:23 PM »
Fixed.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #6 on: November 23, 2008, 10:20:37 AM »
By the way, with DLTC/Glory of Istar demo installed, ENGINE_IS doesn't match any game. Surely it should still match ENGINE_IS ~tob~ ?

Worked around it by || FILE_EXISTS ~dltc_uninstall.exe~

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #7 on: November 23, 2008, 11:11:15 AM »
In-biffs marker file, thank you.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #8 on: November 23, 2008, 01:52:57 PM »
xnewarea.2da looks like our best bet. Does not exist in bg1, soa, pst or the iwd games, exists in stock tob and also in dltc's own biffs.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #9 on: November 23, 2008, 04:54:08 PM »
Cheers.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #10 on: November 25, 2008, 03:24:33 PM »
Grumblegrumblegrumble.

Easytutu soa doesn't match ENGINE_IS ~soa~ when the bg1 and bg2 stock installs are deleted, which the easytutu install doc. says I can do with no problems. (but most of the bg2 movie files referenced in chitin disappears) And for some bizarre reason, it creates a xnewarea.2da in override, so it suddenly matches the new ENGINE_IS ~tob~.

*mutter*

So, say, tob = xpbonus.2da + xnewarea.2da + areaflag.ids then?

soa ... *mutter* ... xpbonus.2da and not (xnewarea.2da and areaflag.ids) ?

Seems to work for all cases I've seen so far, including easytutu soa and dltc.  8)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #11 on: November 25, 2008, 04:53:38 PM »
:'(
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #12 on: November 26, 2008, 04:04:14 PM »
Tested my criteria. Works fine for:

BG2 SOA
BG2 TOB
Easytutu SOA
Easytutu TOB
TOB + DLTC
TOB + Classic Adventures TC
IWD (no false positives, yay)

... bgt untested (due to wine and bat files disagreeing about things), but I'd be surprised if that failed.

Case closed?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #13 on: November 29, 2008, 05:28:00 PM »
Code: [Select]
      let tutu = if game_or_engine then f "_eregost.mve" else false in
      let  bgt = if game_or_engine then f "bgintro.mve"  else false in
      let  bg2 = f "xpbonus.2da"  in
      let  tob = f "xnewarea.2da" && f "areaflags.2da" in
      let iwd2 = f "subrace.ids"  in
      let  pst = f "baator.mve"   in
      let  bg1 = f "beregost.mve" in
      let tosc = f "durlag.mve"   in
      let iwd1 = f "avalanch.mve" in
      let  how = f "howdrag.mve"  in
      let tolm = f "ar9700.tis"   in
      let ttsc = f "_durlag.mve"  in
      let res = List.exists (fun this ->
          match String.uppercase this with
          | "BG2"
          | "SOA"        -> bg2 && not tutu && not tob
          | "TOB"        -> bg2 && not tutu && not bgt && tob
          | "IWD2"       -> iwd2
          | "PST"        -> pst
          | "BG1"        -> bg1 && not tosc
          | "TOTSC"      -> bg1 && tosc
          | "IWD"
          | "IWD1"       -> iwd1 && not how && not tolm
          | "HOW"        -> iwd1 &&     how && not tolm
          | "TOTLM"      -> iwd1 &&     how &&     tolm
          | "TUTU"       -> tutu && not ttsc
          | "TUTU_TOTSC"
          | "TUTU+TOTSC" -> tutu &&     ttsc
          | "BGT"        -> bgt
          | _ -> failwith (Printf.sprintf "No rule to identify %s" (String.uppercase this))
      ) game_list in

Hopefully it's a) intelligible without knowing OCaml b) correct.

Up as 20840 in the usual quarter of hour anyway.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #14 on: November 30, 2008, 02:12:10 PM »
Every bg2 is soa in 20840.

areaflag.ids, not areaflags.2da

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #15 on: November 30, 2008, 04:14:22 PM »
208.41 up in ten minutes. Can you test a bit of weidu, weigui and weinstall (including the elkhound grammar)? I had to run some changes in my Linux compiling environment (moved from Debian Sid to Ubuntu Intrepid server after losing the vmware drivers).
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #16 on: December 01, 2008, 12:47:20 PM »
OK, 208.42 REALLY up in ten minutes. Apparently asking Ubuntu to consider ~/bin when accessing non-interactively is too hard.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #17 on: December 01, 2008, 02:15:10 PM »
May I recommend sshd_config :  PermitUserEnvironment and friends?  :pirate

we're still all-soa in 20842 - areaflag not areaflag_s_

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #18 on: December 01, 2008, 02:46:01 PM »
Oh, I thought that ~/bin was a Basic Unix User Right - how stupid of me. Fixed the typo, up as 20843 in ten minutes, yada yada. Have you checked if the Elkhound grammar works?
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #19 on: December 01, 2008, 03:21:02 PM »
Nngh. That's the new fancy parser, triggered by using VERSION and such in the tp2, right?

Almost always using it, if so... haven't noticed anything weirder than usual.

Having some "chinese values of interesting" trouble installing scsii though. "Smarter mages" failing when I've installed a whole bunch of other components in the same session, but succeeding if I quit the session, restart weinstall and install that component on its own. Which smells like weidu trouble. That's from earlier in the 208 series, though.

Can't reproduce with 20800, can with 20833 (earliest post-208.00 I have), can with 20842. You want a debug file or other debug output?

erik

  • Guest
Re: GAME_IS, ENGINE_IS
« Reply #20 on: December 01, 2008, 03:24:32 PM »
Code: [Select]
SUCCESSFULLY INSTALLED      Detectable spells and effects (required for most other components)
SUCCESSFULLY INSTALLED      Smarter general AI
INSTALLED WITH WARNINGS     Better calls for help
SUCCESSFULLY INSTALLED      Improved Spiders
SUCCESSFULLY INSTALLED      Give fiends more staying power by increasing their hit points (this component has no effect unless Improved Fiends is installed)
SUCCESSFULLY INSTALLED      Fiends cast spells like normal wizards
SUCCESSFULLY INSTALLED      Give Celestials slightly more staying power
SUCCESSFULLY INSTALLED      Celestials cast spells like normal wizards
NOT INSTALLED DUE TO ERRORS Mages never cast short-duration spells instantly at start of combat

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #21 on: December 01, 2008, 04:20:58 PM »
I've had it a couple of times but ignored it as a random fluke. The fact that scsii has more KLOC than WeiDU itself further dampened my will to investigate it.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: GAME_IS, ENGINE_IS
« Reply #22 on: December 01, 2008, 04:46:32 PM »
Having some "chinese values of interesting" trouble installing scsii though. "Smarter mages" failing when I've installed a whole bunch of other components in the same session, but succeeding if I quit the session, restart weinstall and install that component on its own. Which smells like weidu trouble. That's from earlier in the 208 series, though.

Can't reproduce with 20800, can with 20833 (earliest post-208.00 I have), can with 20842. You want a debug file or other debug output?
Could you grep through the .debug looking for ERROR?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: GAME_IS, ENGINE_IS
« Reply #23 on: December 01, 2008, 04:53:15 PM »
Please run as grep -B10 -A10 -i '\(error\|warning\)' to get some context and more matches.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: GAME_IS, ENGINE_IS
« Reply #24 on: December 01, 2008, 04:55:46 PM »
-A10 -B10 => -C10 ;)

 

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.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

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)?: