|
Post by cryzed on Jan 16, 2016 3:08:43 GMT
Description: Later on in the game it's simply possible to use the dark mage class with a certain relic to basically farm endlessly. Working your way up to dimension 10 is tiresome and basically an idle-game that you have to monitor. As suggested by the forum administrator I'm sharing the small script I made. The only thing it does is hiring patrons from the tavern (in a somewhat inefficient manner), navigate to a certain dungeon level and start a run. When the team inevitably dies it repeats the process, allowing you to let it run unattended. Currently there's only support for adding dark mage, knight and healer patrons (although more classes can be easily added). It is recommended to have bought the VIP feature to save a character configuration, so when hiring a patron they will automatically have the equipment you prefer. I don't make any guarantees for this to work, nor do I feel like giving much support. See if you can figure it out! Download: soda_dungeon_v0.2.zip (98.28 KB) Changelog: Version 0.2: - Added GUI
- Improved code
- Image resolution changed to 1920px
Notes: The image resolution changed to 1920px because I used my device's native screenshot functionality to quickly develop the script. Once it's more fleshed out I'll consider using BlueStacks again to retrieve downscaled versions. The script might run slightly slower during the image detection phase, but that shouldn't be an issue for this game. Version 0.1: Notes: Initial release
|
|
|
Post by AnkuLua on Jan 16, 2016 3:27:14 GMT
Later on in the game it's simply possible to use the dark mage class with a certain relic to basically farm endlessly. Working your way up to dimension 10 is tiresome and basically an idle-game that you have to monitor. As suggested by the forum administrator I'm sharing the small script I made. Be warned, this is not very user-friendly and certainly doesn't have any fancy GUI interface. The only thing it does is hiring patrons from the tavern (in a somewhat inefficient manner), navigate to a certain dungeon level and start a run. When the team inevitably dies it repeats the process, allowing you to let it run unattended. The script is configured via the source code constants at the top of the "main.lua" file currently, and there's only support for adding dark mage, knight and healer patrons (although more classes can be easily added). It is recommended to have bought the VIP feature to save a character configuration, so when hiring a patron they will automatically have the equipment you prefer. Download is here. I don't make any guarantees for this to work, nor do I feel like giving much support. See if you can figure it out . Good job. Here is one suggestion. CompareWidth and ScriptWidth should not be changed by users. It's the secret for one script to work on all devices. Check this post for the image recognition mechanism. You may want to add some user interface instead of editing script by users. It would be easier to use for yourself. Or just for tring some parameters. ankulua.boards.net/thread/12/user-interface-methods
|
|
|
Post by cryzed on Jan 16, 2016 19:27:29 GMT
I added user interface methods and improved the code somewhat. I know about the "setCompareDimension" and "setScriptDimension" functionality, I just like to keep my constants at the top. But you are right, it might make more sense to have them directly in the source as string literals for now.
|
|
|
Post by AnkuLua on Jan 17, 2016 0:45:03 GMT
You don't need to retrieve the images on BlueStacks. Just downscale the current images and change the CompareDimension accordingly. Refer to this post.
|
|
|
Post by cryzed on Jan 17, 2016 1:00:15 GMT
What resizing algorithm is best used? Just choosing one seems very inaccurate, ideally I'd want to use the same the Android system would use to upscale low-resolution graphics to a big screen, and vice versa. Bicubic, Bilinear, Nearest Neighbour? But I fear this is application-dependent, and not done by the system.
EDIT: Ah it seems ImageMagick uses Lanczos when passing in -resize, alright I'll consider that since you are using that in the uploaded batch file.
|
|
|
Post by AnkuLua on Jan 17, 2016 1:10:45 GMT
What resizing algorithm is best used? Just choosing one seems very inaccurate, ideally I'd want to use the same the Android system would use to upscale low-resolution graphics to a big screen, and vice versa. Bicubic, Bilinear, Nearest Neighbour? But I fear this is application-dependent, and not done by the system. Don't know the resizing algorithm. Have not studied that part yet. From our (limited) experience, it works and save your time (and users' hardware requirements). Just make sure the original version is multiple of the downsized one. You can keep two image folders and switch between.
|
|
|
Post by bigzdog96 on Jun 6, 2016 20:11:56 GMT
I know this is a 5 months old post but, I'm having issues getting this to work properly, I setup Ankulua and thats working, but when I start the script it hires all the patrons then hangs trying to start the dungeon, it leaves the tavern and sits until it returns with the error unable to find dungeon up button. I also replaced the knight.png etc with smaller versions so if the patrons are behind tables the script will still pick them up, if anyone is interested in them I can upload them
|
|
|
Post by doza on Jun 6, 2016 20:32:04 GMT
I am not sure if this will help, but on what language do you play? =) Sometimes this is causing problems
|
|
|
Post by bigzdog96 on Jun 6, 2016 21:57:41 GMT
I play in english, I tried messing with some of the functions to have the script go through the Wizard instead of leaving the tavern and clicking the dungeon itself, now im getting this error: Runtime error: com.appautomatic.ankulua.f: Can't find dungeon_level_up.png stack traceback: [C]: in function 'continueClick' ?: in function <?:291> (tail call):? /storage/extSdCard/soda_dungeon/main.lua: 217: in function 'main' /storage/extSdCard/soda_dungeon/main.lua: 239: in main chunk Here is the new script that ive edited: pastebin.com/U9Ymej0z
|
|
|
Post by doza on Jun 7, 2016 6:01:41 GMT
For some reason the script can't find the image dungeon level up... check your folder if this image exists
|
|
diniz
New Member
Posts: 3
|
Post by diniz on Feb 28, 2017 15:18:45 GMT
How do I run this script? I'm new to the forum
|
|
|
Post by AnkuLua on Mar 1, 2017 1:03:25 GMT
|
|
diniz
New Member
Posts: 3
|
Post by diniz on Mar 2, 2017 4:25:05 GMT
I play by steam, does it work the same way? Or just for android?
|
|
|
Post by AnkuLua on Mar 2, 2017 7:08:08 GMT
Steam on android? Yes.
|
|