Giter Club home page Giter Club logo

simcitybuilditbot's People

Contributors

julianperrott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simcitybuilditbot's Issues

Program.exe?

It would be cool if you could turn this into an actual running program, when bluestacks is running you open up the program and let it run.

Manual to start the Bot

Hello Julian,
is there also a manual, so that the bot runs at all?

I get the bot started in principle and then?

Using percentage instead of fixed numbers in touch locations

When running the code you give a warning height of window must be 1080 and width of window must be 1920 and all touches and screen captures depend on these dimensions, however they are very difficult to get on laptop screens (I can see you have a very big screen).
So getting the dimensions of the emulator when first run and using percentages would be much better!

Taking screenshots of emulator instead of copying from screen

In /Bot/CaptureScreen.cs you use

Bitmap bmp = new Bitmap(size.Width, size.Height, PixelFormat.Format32bppArgb);
Graphics.FromImage(bmp).CopyFromScreen(rect.left + x, rect.top + y, 0, 0, size, CopyPixelOperation.SourceCopy);

To capture the screen, but as I noticed this requires MEmu to be on the screen to be captured, and not in background so I used the capture screen in adb and graphics to crop the image, and now it can be run in the bacground, I'm planning to make this a pull request but thought to add the code here as a start.
in the same class I commented your code and added the following beneath it:

RawImage rawImage = device.Screenshot;
Bitmap bmp = (Bitmap) rawImage.ToImage(PixelFormat.Format32bppArgb);
var imageHight = bmp.Height;
var imageWidth = bmp.Width;
// crop the image
Rectangle cropRect = new Rectangle(x, y, size.Width, size.Height);
Bitmap src = bmp;
Bitmap target = new Bitmap(size.Width, size.Height);

using (Graphics g = Graphics.FromImage(target))
{
    g.DrawImage(src, 0, 0,
               cropRect,
               GraphicsUnit.Pixel);
}
// end crop
return target;

maybe the crop won't work on your screen because I'm still working on figuring out the dimensions.
best regards!

Encrypted rar file

Any possibility to decrypt (remove password) from the rar file with item images. Would love to build on your work to evolve a SC bit!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.