question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.13.5, QUESTING: "create foe msg ####" allows duplicate message display

See original GitHub issue

Describe the issue

I’m writing a custom quest that spawns two enemies at irregular intervals:

create foe _vamw1_ every 25 minutes 1 times with 20% success msg 1011 create foe _vamw2_ every 17 minutes 1 times with 15% success msg 1011

Msg 1011 fires when the first enemy spawns. However, I expected it to only fire once; the game currently shows message 1011 when the first instance of each enemy spawns, so in this case I get two of message 1011 at two different times.

To Reproduce

Steps to reproduce the behavior: A quest file is attached: JHKN201.txt

  1. Start the quest with the console.
  2. Loiter until the ghosts/wraiths spawn.
  3. The 1011 message will appear at the first spawn of each enemy.

Expected behavior

Message 1011 should appear only once, as is the rule in the quest engine.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Interkarmacommented, Aug 2, 2022

The ‘once - ever’, is that once per quest, once per task?

@BadLuckBurt Per message block. Meaning once a message is displayed it can never be shown again. This is actually how classic operates. I tried to make things more flexible and implemented this based on task arming instead, so DFU is more flexible here.

This actually works OK almost all of the time. The problem @JayH2971 presents here is with the msg suffix and the assumption it would work like classic and lock out the text data once presented.

I’ll solve this problem in a way that compromises with Burt and retains some flexibility.

1reaction
JayH2971commented, Jun 11, 2022

Following that logic, a fix is needed. I’ll demonstrate:

  1. If I want a message to only appear once when multiple groups of enemies spawn, I cannot accomplish this currently.

  2. If I want a message to appear at the first spawn of each type of enemy, I can do this.

If we were to change it:

  1. If I want a message to only appear once when multiple groups of enemies spawn, I would be able to do this; and

  2. If I want a message to appear at the first spawn of each type of enemy, I would be able to do this. (I can create a different message block for each enemy type with duplicate contents, thus showing the same message each time).

Therefore, the fix I recommend opens more possibilities rather than closing any.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I just got a 24 digit code from Fence. What is this about?
It's the ID of a message in the database. If the message isn't found, the game displays the ID instead. Every item, message,...
Read more >
Enable duplicate message detection - Azure Service Bus
To create a queue with duplicate detection enabled, set requiresDuplicateDetection to true in the queue properties section. For more information ...
Read more >
Hot Fixes and Known Issues :: Siralim 2 General
Fixed a display bug in the 'Detailed Stats' menu that caused the incorrect stats to be displayed for your creatures.
Read more >
Changelog - The Official Escape from Tarkov Wiki
This page contains a collection of official patch notes for Escape from Tarkov. ... Ability to delete the system chat with messages.
Read more >
Vapourware - Daggerfall Unity isnt Vaporware | Page 81
Performance: I noticed that the GOG cut is ridiculously hardware hungry. I'd suggest to throw out that DREAM-mod entirely. Playing with this mod...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found