You may find the code here.
Guess it's about time I update the start post eh.. So here we go:
I recently developed an emulator for LTD to imitate lumber harvesting and give the user detailed information about it; which he'd otherwise have to calculate manually.
The question is: Why? I mean, we all can do this with a simple calculator (and a stop watch), right? So why bother writing an emulator for it? The biggest argument would obviously be that you'll have more time to focus on the actual game itself, instead of having to worry about numbers the whole time. It simply saves soooo much time and is very easy to use. So why not? I for one don't wanna grab my calculator everytime I want to know how much lumber I'll have in X minutes. I also don't want to take a stop watch if I want to keep track of an opponents lumber and then constantly calculate it manually whenever I want to know how much he has gathered... Might aswell just start the emulator and watch the numbers magically appear

(That's what it currently looks like. I know, it's not looking any good. Improving UX is part of the TO DO list..^^ Right now I just want it to work)

Most of the things you can do should be self explantory, like adding wisps for example (btw: the emulator actually remembers the time you added the wisp and will consider it when calculating your current lumber!). Either way, I might aswell say a few words about the different options you, as a user, have.
Start- well... it kinda starts the emulator I guess

Pause - game has been paused or someone is lagging? No problem, hit this button! (the emulator will still remember wisp timers! Let's say you added your first wisp (2/0) at 5 seconds you'll get the lumber from wisp 1 at 10, 20, 30 and so on, and the lumber from wisp 2 at 15, 25, 35, ... pausing is not changing this anymore!); hit start again to resume.
Restart - duh..
Add Wisp - create another slave
Remove Wisp - kill a slave
Add lumberjack upgrade- adds a lumberjack upgrade AND subtracts the lumber cost IF you have enough lumber
Remove lumberjack upgrade - removes a lumberjack upgrade AND refunds the lumber cost IF you have actually paid it before
Show more - hitting this button will show you more future lumber values ("Your lumber in X Minutes is X"). So hitting that for the first time will also show you the lumber in 11 minutes and so on. You may show up to 20 Minutes.
Show less - same as show more, but the other way around

add X lumber - if you want to add some lumber just type it in here and press enter. very simple.
subtract X lumber - same here, just type it and it'll happen. Tho it cannot go into negative values. If you have 99 lumber and want to subtract 100 nothing will happen. You can use this to pay for farms or w/e might cost you lumber while the emulator is running.
TO DO:
- add the possibility to monitor multiple players at once
- improve user experience (aka. visuals and user interaction)
In case you don't know how to use it: put all files in one directory of your choice and simply open the index.html with w/e browser you're using; unless it's Internet Explorer, in that case kill yourself.
Found any bugs, got a suggestion or some feedback: lemme know!
