Author Topic: Production Time and Seconds  (Read 745 times)

Djemynai

  • Guest
Production Time and Seconds
« on: 7 December 2013, 23:21:56 »
Hello,

I just started getting into MegaGlest and I've been having lots of questions about certain aspects of the mechanics, but for now I'm trying to figure out how long it takes for different things to be built/produced. The game seems to be using a unit of time that is different from seconds; maybe it's related to frames?

In any case, I'd like to know how many seconds one unit of production time is, and if there even *is* such a conversion factor or if it's actually non-linear.

I measured that building a worker takes 15 seconds and building a barracks takes 90 seconds. But a worker has production time 40 and barracks has 100, which doesn't result in a linear equation! There is no solution for 40x=15 & 100x=90. Could someone explain this to me?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Production Time and Seconds
« Reply #1 on: 7 December 2013, 23:57:45 »
Hi and welcome :)

The production time is somehting that's calculated.
There is a "time" a building needs to be build and a build speed the worker ( build skill ) has. These two parameters must be taken into account. If other workers help with theri "repair" skill it gets even more complicated to calculate teh real time.
For producing workers its similar. The worker has a "tim2" and the building a production speed....
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

ctz

  • Summoner
  • **
  • Posts: 46
  • aka cathaur, formerly lyra
    • View Profile
Re: Production Time and Seconds
« Reply #2 on: 7 December 2013, 23:58:12 »
Actual production time depends on production speed of the thing producing it.

A worker (time=40) is produced by the castle, which has production speed 300.
A barracks (time=100) is produced by the worker, which has build speed 105 and repair speed 40.

The number of "productions" per second is ideally (production speed)/100, although it may deviate from this slightly if the number is not a factor of the frame rate (40/second).

So the expected actual worker production time is about 40/3=~13.3 seconds, and the barracks production time is 100/1.05=~95.2 seconds.  Again, expect slight deviations from these numbers since the divisors do not exactly divide the frame rate.  Also, buildings start with 5% of their total HP, but the build rate is still approximately (total HP)*(production speed)/(time) HP per second.
« Last Edit: 8 December 2013, 00:06:15 by ctz »

Djemynai

  • Guest
Re: Production Time and Seconds
« Reply #3 on: 8 December 2013, 00:17:04 »
Ohhhh, okay. I completely overlooked that possibility!

Thanks to both of you for the explanations. This makes sense, but it's also more complicated than I thought. :)

However, now it should be possible to calculate all the times without using a stop watch. :O
Although, I might still need a stop watch to measure how long it takes to mine a certain amount of gold for example.

Thanks again!

Djemynai

  • Guest
Re: Production Time and Seconds
« Reply #4 on: 8 December 2013, 00:27:51 »
Sorry for the double post, but I just noticed that maybe part of the reason I overlooked the existence of these two different values is that the production speed is not shown on the unit pages, like http://megaglest.org/techtree/tech_worker_full.html

It's shown in-game at least, though. This might be known already, so excuse me if this is a pointless post.

ctz

  • Summoner
  • **
  • Posts: 46
  • aka cathaur, formerly lyra
    • View Profile
Re: Production Time and Seconds
« Reply #5 on: 8 December 2013, 00:52:03 »
Well, you can get the gold harvesting speed using a similar formula.
Worker has 225 mine speed, and just divide this by 100 to get 2.25 gold per second.
Of course, the worker then has to walk back to the main building, and the distance varies.

I think you can do (walk speed)/100 to get the number of squares per second a unit moves too.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Production Time and Seconds
« Reply #6 on: 8 December 2013, 01:36:54 »
People who are interested in this kind of detail should really look at the xml files of the units! They are very speaking and easy to understand ( in most cases ;-) )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Production Time and Seconds
« Reply #7 on: 8 December 2013, 02:16:04 »
Also check out the detailed techtree information (with heirarchy graphs) here: http://megaglest.org/techtree/

 

anything