Author Topic: possible issue with FILE_EXISTS_IN_GAME  (Read 1019 times)

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
possible issue with FILE_EXISTS_IN_GAME
« on: June 05, 2022, 04:28:18 PM »
I found that FILE_EXISTS_IN_GAME dw#hlpit.bcs returns true if dw#hlpit.bcs is just sitting in the master game directory, even if it's not biffed or present in override. Is that intentional?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: possible issue with FILE_EXISTS_IN_GAME
« Reply #1 on: June 20, 2022, 09:41:07 AM »
Legacy behaviour I cannot fix without mods catching fire and falling out of the sky. IIRC, I had to push out a hotfix when I inadvertently fixed it, once.

I never did end up exposing the "non-broken" check in TP2. Would such a feature be useful? In any event, I see I neglected to update the documentation of FILE_EXISTS_IN_GAME.
« Last Edit: June 20, 2022, 10:13:19 AM by Wisp »

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
Re: possible issue with FILE_EXISTS_IN_GAME
« Reply #2 on: June 20, 2022, 09:41:06 PM »
I guess for a couple of things like this it might be worth having a TP2 flag like 'IGNORE_PRE_V250_LEGACY' that would let you fix, e.g., this issue and the anomaly with READ_2DA_ENTRY. It's genuinely convenient to have some way to detect whether a file actually exists *in game*, after all.

But it's easy to ask for things if you don't have to implement them.

 

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