Closed Robadob closed 9 years ago
Boss level is causing some issues; after the boss is dead and the lane is empty, the script keeps trying to switch into the empty boss lane.
Yeah that's a known issue, it's commented about in the code, my own boss levels keep passing too fast for me to debug it thoroughly though
I saw the "TODO" comment, but nothing specific, didn't mean to be redundant. Cheers.
Nah, don't worry. It might be better addressed with it's own issue such that it stands out.
I'm going to try and look into this as well, the script as is made me miss a 27k/click Raining Gold.
I'll try to grab the network traffic from level 320 for you.
This is an impressive undertaking, and I'm happy to scrape that as well if it would be helpful. Suggestions for programs to do that?
I'm using Fiddler2 to do the inspection. Unfortunately it looks like the data is encoded, so you'll have to inspect the game source for any decoding algorithm that's being used.
I'm currently writing a new OP, so we can get everyone on Reddit playing in the same game after reset.
re: scraping the network traffic, wireshark or charlesproxy will probably work, however if we end up writing a standalone app that plays the game, it might be harder to inspire trust in users who wish to use it, it would be better to scrape the game states at known points of the game so we can keep working in JS.
Here's a link to the capture data
https://www.dropbox.com/s/hpeyexw0cv9t52g/1161_Full.txt?dl=0
Again, it's encoded; I haven't found the decoding method but it should be somewhere in the game source.
This does not include any POST requests because (a) I forgot to capture them and (b) they shouldn't have any major influence on the game state.
The data looks like it is in protobuf format.
http://steamcommunity-a.akamaihd.net/public/javascript/minigame/towerattack/network.js
A simple way to dump information would be modifying the network layer of the game to log data before passing it to the original networking stuff.
I got boss levels working correctly now. It was as simple as checking each enemy's type; 2 is boss, 3 is miniboss (0 is spawner, 1 is creep)
Boss Levels tend to die fast, so would be useful to collect some data anyone can crawl from them, also worth commenting with any other useful boss level values found.
I've managed to catch a boss's game object, and it appears their names are specific rather than simply boss, e.g. this one is "Gold Helm, The Spice Lord", it's m_strSkinName is "space_boss", so it may be possible to use;
Presumably, an alternate method would be to check whether slots 1-3 are empty.