triomountain.blogg.se

Optimal layout for sim city on android
Optimal layout for sim city on android




optimal layout for sim city on android

The window contains a number of panels, each representing an item for sale. This was solved using perceptual hashing with a dictionary of categorised image hashes.Īssuming we have a shopping list of items we need, then the goal is to buy those items.Ĭlicking on the Global trade building brings up the trade window. The main new problem I had to solve was recognising images from the game screen. Next I tackle buying from "Global Trade" and Selling crafted items to generate in game currency. Red means we don't have enough.Ĭollecting a crafted item requires touching the building. Determining if we need to craft raw materials for craft-able items is found out by clicking on the item's button and looking to see the colour of the required materials.

optimal layout for sim city on android

So we can swipe from the button to the crafting location to build the item. The craft-able items are laid out on buttons in specific places. For example the Hardware store has a Mass Production factory above it and both of these are unique buildings, so when we are at either in the building cycle we can move to the other.īuild an Item in either a factory or commercial building This is done by positioning selected buildings (one commercial and one factory) in a known configuration and then clicking above or below to switch. Move between a factory and a Commercial building There are buttons on the side of the building name which will cycle around the factories or commercial buildings. A screen shot of part of the MEMU application is taken and OCR'd. The name of the building is shown at the top of the screen, this is read using OCR (Optical Character Recognition) using Tesseract Open Source OCR Engine. It helps to turn on the developer options for 'pointer location' and 'showing touches'. This can be done by touching the centre of the screen using ADB (Android Debug Bridge), a building must be located at the centre of the screen when the bot is started. To build a crafting bot I needed to be able to do the following: Select a building

  • Read the colour of text on the display.
  • The basic iterations between the bot and the game are:

    #Optimal layout for sim city on android android

    Rather than writing the code native on the platform I use an android emulator (Memu) running on my PC and I send commands to it from my C# code to automate the play. Selling items I have crafted.īecause I want to do the fun things in the game without suffering the pain, I wrote a bot in C# to do the crafting. Global Trade: Buying non craft able and time expensive craft-able items.These items have an in-game value and can be sold or used to complete tasks. Crafting: It requires you to manufacture raw materials and then use them to create other items which are more valuable.SimCity BuildIt (a mobile game which runs on the Android or IOS platform) is one such game and has 2 obvious repetitive areas: For example robots on a factory production line, automated driving or flying an aircraft.Ĭertain computer games are a time sink, requiring constant attention to make progress and maintain attention. Tasks which run within a system are the easiest and cheapest to automate, others can be cost effective if there is enough benefit. When a task is repetitive, why would we want to do it ourselves, if someone or something else could do it equally well or better? Computers are really good at doing repetitive tasks because they are accurate, don’t get bored, complain or need to be paid. Note: This repo is old and not maintained, it may give you ideas, but don't expect more than a proof of concept.






    Optimal layout for sim city on android