Author Topic: [fixed] BUG with timer_event in lua  (Read 1050 times)

titi_son

  • Draco Rider
  • *****
  • Posts: 283
  • titi_son
    • View Profile
[fixed] BUG with timer_event in lua
« on: 6 July 2011, 18:10:22 »
https://forum.megaglest.org/index.php?topic=7321.0 under simple bugs with the timer:
First one:
If you press Pause the timer goes on...
Second one:
If you change the speedloops in the glest.ini (i do this sometimes for example to balance factions) the timer just has speedloops 2
« Last Edit: 12 October 2011, 03:16:34 by softcoder »
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: BUG with timer_event in lua
« Reply #1 on: 8 July 2011, 23:15:33 »
So the timer should be based on frames then right?

titi_son

  • Draco Rider
  • *****
  • Posts: 283
  • titi_son
    • View Profile
Re: BUG with timer_event in lua
« Reply #2 on: 10 July 2011, 09:44:07 »
yes, or you use the fastspeedloops as factor for the speed of the timer
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: BUG with timer_event in lua
« Reply #3 on: 10 July 2011, 11:57:13 »
we have 40 world fps . To be backward compatibel I think its a good choice to keep the seconds but calculate them based on these world frames.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: BUG with timer_event in lua
« Reply #4 on: 10 July 2011, 18:25:20 »
we have 40 world fps . To be backward compatibel I think its a good choice to keep the seconds but calculate them based on these world frames.
Yes, the frames should be used for everything. In GAE, you can create timers based on world frames (since these speed up or down based on playing speed). More information.

As well, the world frames are the direct units used to calculate skill speed (the length of a skill cycle in world frames). More information.
« Last Edit: 18 June 2016, 17:34:23 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

titi_son

  • Draco Rider
  • *****
  • Posts: 283
  • titi_son
    • View Profile
Re: BUG with timer_event in lua
« Reply #5 on: 15 July 2011, 20:56:25 »
before this gets lost IS THIS fixed now?
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: BUG with timer_event in lua
« Reply #6 on: 16 July 2011, 03:59:22 »
Try svn rev 2477 (it uses world frames and works with pause)