Bug Reports / GetTimer(e) is broken in version 1.121?

Author
Message
Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 23rd Mar 2016 21:25
One of my scripts stopped working after the update (simplified version here):

No matter what I do, it always prompts "You are too slow.". It worked fine before the update. As a test I made it prompt the entity timer and noted that for some reason the timer goes back to 0 every time the enemy is hit even though it should only happen when enemy is hit AND GetTimer(e) is over threshold. So my guess is that asking GetTimer(e) inside an if statement resets the clock. For some reason.

I still have to do some further testing, but my main point is that my script worked before, but doesn't anymore.
Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 23rd Mar 2016 21:40 Edited at: 23rd Mar 2016 21:44
I fixed the script by replacing one if with elseif so not sure whether this is a bug. The script wasn't my most well written one, but ever since I wrote it back in November 2015 it has worked fine until today. So I'm curious, why now? What has changed in version 1.121 to cause this?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 23rd Mar 2016 22:33
i think there was a change in 1.2(?) that made the StartTimer(e) reset the value instantly rather than waiting until the next cycle, this would make it read as lower than the threshold straight after being higher because you used it inbetween.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
mik50
9
Years of Service
User Offline
Joined: 23rd May 2015
Location: Phelan, Ca.
Posted: 27th Mar 2016 17:15
Can you tell us how you fixed it exactly. Your script stopped working for me too.
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 27th Mar 2016 19:30
Do not own their script, but when he said:
Quote: "I fixed the script by replacing one if with elseif so not sure whether this is a bug"

Perhaps....



Anyway due to the timer does not working fine in GG lately, so I'm not 100% sure about that.

3com

Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 28th Mar 2016 08:30
That is correct. I'll update it in the store tonight after I've made sure there aren't other new bugs.
Moshroom
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location: Finland
Posted: 28th Mar 2016 19:39
Should work now.

Login to post a reply

Server time is: 2025-04-22 10:39:40
Your offset time is: 2025-04-22 10:39:40