Object link disappearing when Timer ticks - Web Version

Quantus
10 Jan 2016, 02:10
My issue:

Timers on the web based version will cause the link pop-ups to disappear upon each tick of the timer. If I click on an object link after entering a room, that popup on the link will disappear after 2 seconds. I have to keep clicking it. If I disable the Timers, the popups stay active after one click of the link.

The timers I have keep random events continually calculating in the background, and occasionally spawn a creature, or they are to regenerate HP 1 point per 2 seconds, etc...

Timer is setup to start at the start of the game, and runs a script every 2 seconds.

Is there a reason why the link's popup will disappear only when timers are constantly ticking? I am thinking maybe Quest counts a timer tick a turn, even though it's not printing anything on screen, other then a change in HP or spawning a object into the Places and Objects window pane.

jaynabonne
10 Jan 2016, 22:46
(Moved to the proper forum from the "Libraries and Code Samples" forum.)

Are you able to provide a link to a game that exhibits this problem?

Quantus
11 Jan 2016, 02:14
This is a simple test game to show how this issue causes the pop-ups to disappear, and you must re-click the link.

http://textadventures.co.uk/games/view/ ... imer-issue

jaynabonne
11 Jan 2016, 21:32
Ah yes. I see what you mean. I've looked through the Quest source a little (not tons yet), but it hasn't jumped out at me yet where the problem might lie. I'll look again some more.

You could also open an issue, and Alex will get back to you.

lightwriter
12 Jan 2016, 01:23
I don't know what the timer does but maybe turn it into a turn script, if it's the one that is
x = x+1

maybe make a turn script that gets a random number:
http://docs.textadventures.co.uk/quest/ ... omint.html
Or a random double every turn:
http://docs.textadventures.co.uk/quest/ ... ouble.html
Timers set at 1 tick per a second lag the game anyhow...

Quantus
12 Jan 2016, 14:40
In this example the timer only increments an integer by 1 each second. This is only a web version issue though. It works fine on the pc version.