Reminds me of Larry Niven's Ringworld , or more specifically the Puppeteers and their planet-ships fleeing the galaxy.
Spaceplan
61–70 of 70 posts
Re: Spaceplan
#62I love it! Found myself doing mental calculations for the most effective thing to buy next, and the next thing I knew I'd written a script to automatically buy it: var clickBestThing = function(){ var things = [...document.querySelectorAll("#manufacture__container > div")].map(function(e){ var res = {e}; [...e.getElementsByTagName("span")].map(function(s){ res[s.id] = +s.innerText.replace(/[^0-9]/g, '') }) if(e.id ==…
Typical Noob idiot coming through, first of all i've got to praise you for doing that the amount of effort that took must be high, but being the typical noob idiot I am I have to also wonder how I actually use this? reply
Copy and paste the code in your browser's javascript console. In Chrome it's under View/Developer/JavaScript Console.
For a good intro on how this works: https://www.khanacademy.org/computing/computer-programming/h...
Re: Spaceplan
#63I love it! Found myself doing mental calculations for the most effective thing to buy next, and the next thing I knew I'd written a script to automatically buy it: var clickBestThing = function(){ var things = [...document.querySelectorAll("#manufacture__container > div")].map(function(e){ var res = {e}; [...e.getElementsByTagName("span")].map(function(s){ res[s.id] = +s.innerText.replace(/[^0-9]/g, '') }) if(e.id ==…
You can actually improve this a little with a better scoring function. Suppose we currently produce p, and A costs cA, for a power gain of pA. Likewise for B. Under the assumption that we will buy at least one more of A and B, we can look at whether A then B or B then A is faster, which is: cA/p + cB/(p+pA) Solving this, we get cA * (p+pA)/pA < cB * (p+pB)/pB Since the left side is all in A, if we pick the item minim…
cA/p is just the time it would take to earn the money to buy A at the current production level - seems much simpler now.
I think the last term should be `cA/(p+pB)`. When I solve from there[1] I get `cB * pB This would translate to:
res.score = res.cost*res.powerGain
...
}).sort(function(a,b){return b.score - a.score})
Does that check out? It seems too simple, and now that I'm thinking more about it I think this would be functionally equal to what I already have. Did I do my inequality[1] wrong?Re: Spaceplan
#64Re: Spaceplan
#65Why do we accumulate watts? That's stupid.
Check Tipler. We won't need them now, we would be even much better off to save more, but we would need them to save the world on the galactic scale.
Re: Spaceplan
#66A really well executed Incremental game[1] and the best part about it is that it has an ending. Even a retro end-game sequence. Well done. I really enjoyed it. [1] https://en.wikipedia.org/wiki/Incremental_game
Re: Spaceplan
#67Okay, now that more people have played, what is everyone's fastest time getting to the end (without cheats)? Fun game concept!
Also [[SPOILERS]] the ending sequence wedged after 'go be a hero', luckily when I refreshed the page it put me back to just before the black hole bit. Maybe it broke because I was on the solar system view and not the planet view or something? It worked the second time anyway.
Re: Spaceplan
#68Earlier quoted context omitted.
I always feel cheat codes don't let me experience the game as its designer intended. But... always tempting. :)
Given how little obfuscation surrounds the click button, what if scripting it was what the developer intended?
Re: Spaceplan
#69There goes my Saturday morning! Time to go stick my wrists in a bucket of ice. Kudos to the developers. Really lovely game, intuitive and entertaining, well-built.
Once I figured there would be lots of clicking, I went into the console and typed the following to automate the Kinetigen: var ki = setInterval(function() { kinetigenClick(); kinetigenRelease(); }, 10); Then later on at a certain point in the game, I had to stop it: clearInterval(ki);
(program):1 Uncaught ReferenceError: kinetigenClick is not defined
What am I doing wrong?