Research plan

Did you create a mod, map, music, or a tool? Present them here and earn feedback!
Note: addon requests do not belong here.
Note, everything uploaded to this forum, MUST have a license!
srothe
New user
Posts: 2
Joined: 13 Apr 2012, 23:46

Research plan

Post by srothe »

First of all: warzone is amazing :)

My problem: I want to have a research and even have a list with the prerequisites but...

How long does it take to get my research with a number of X labs?
What research should I choose to start if I have multiple possibilities and not enough labs? (I want the fastest possibility)
...

So I wrote a script, that should solve all my problems.

What my script provides:
Enter the number of labs and the research. As a result you will get a table, where you see what you need to research with each lab and what time each research takes.

What my script cant do for you:
take care that you have enough resources
expects you to start researches immediately
expects you to build the research module if available

Link to my solution: http://wz.h-kp.de

And please: no comments about the design...
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Research plan

Post by NoQ »

Note that the guide also has a similar script inside it, providing the fastest research time for every technology, and it does seem to consider research modules.

But it doesn't provide the plan.
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: Research plan

Post by Iluvalar »

Very nice ! thank you.
could i suggest :

Code: Select all

echo '<div style="float:right">';
$x=0;
while($x++<count($research)){
echo '<div onClick="getElementById(inputID).value=this.innerHTML">'. $research[$x]['name'] .'</div>';
}
echo '</div>';
or something similar ? could be very helpful to find your research.
Heretic 2.3 improver and proud of it.
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: Research plan

Post by Iluvalar »

I really like that but two more suggestions

1) Would be nice to be able to chose if we want to continue the research upgrades with a free lab if possible.
1-A) because i see that the assault gun take 40 minutes and the twin assault gun take 23 minutes, because the AG dont need any research upgrade. I doesn't give a good time...

2)Accept GET form, so we could send url of the result to friends

3) Assume 30 seconds between each lab, so you take into account the time to build it

4)Tell, how much power it cost (32 is the magic number) and how much derrick was needed to have that
4-A)have an option for power upgrade with extra labs since it would change the amount of derrick used.
Heretic 2.3 improver and proud of it.
srothe
New user
Posts: 2
Joined: 13 Apr 2012, 23:46

Re: Research plan

Post by srothe »

Thanks for the feedback, but I'm really busy right now (my job...). I already did some improvements 2 weeks ago and planned some more but I don't have enough time for implementation.
Anyway I uploaded the changes so you can use them.

Whats new:
1. if any research upgrade will reduce overall time, it will be used
2. possibility to use GET parameters

GET parameters:
http://wz.h-kp.de/?research=NAME&facilities=NUMBER
NAME = name of research or id (get id by doing a normal research)
NUMBER = optional parameter to specify maximum number of facilities to use
Example: http://wz.h-kp.de/?research=Pepperpot+Pit&facilities=3 to research "Pepperpot Pit" with a maximum of 3 facilities