Results 1 to 8 of 8
  1. #1
    dexterfreak's Avatar
    Join Date
    Mar 2017
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Tips for making a browser game bot ( travian )

    Hello guys,

    I'm a 3rd year software eng student and i'm thinking of working this summer on a bot project, i'm really passionate and excited about this.
    i have been playing travian for a while and i have used many bots and most of them have bugs and tons of features doesn't work, this is where i came with the idea of making a bot my self.

    Im pretty comfortable with Java, C. my questions is, what do i need to know before starting the project? can i do this in java? do i need other languages ? i still don't get how these bots work i need a general idea to start visualizing the program and write the spec for it and stuff.

    Thanks alot,

  2. #2
    Nimboso's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    538
    Reputation
    21
    Thanks
    1,533
    Quote Originally Posted by dexterfreak View Post
    Hello guys,

    I'm a 3rd year software eng student and i'm thinking of working this summer on a bot project, i'm really passionate and excited about this.
    i have been playing travian for a while and i have used many bots and most of them have bugs and tons of features doesn't work, this is where i came with the idea of making a bot my self.

    Im pretty comfortable with Java, C. my questions is, what do i need to know before starting the project? can i do this in java? do i need other languages ? i still don't get how these bots work i need a general idea to start visualizing the program and write the spec for it and stuff.

    Thanks alot,
    How does the gameplay work, is it an entirely web based game or Flash? I'd check myself but I'm on mobile right now and don't want to register.

  3. #3
    dexterfreak's Avatar
    Join Date
    Mar 2017
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Nimboso View Post
    How does the gameplay work, is it an entirely web based game or Flash? I'd check myself but I'm on mobile right now and don't want to register.
    Game is as follows:
    After choosing a tribe, u start the game based on what location u chose, the whole game is 200x200 grid.
    You start with 1 village, 4 kind of resources (Wheat/clay/iron/wood) with hourly production.
    Then you start building troops/buildings, and expand your village. You can attack nearby villages/oasis for extra resources which is the most important aspect of the game.

    Bot idea:
    Basic Functions//
    Auto build troops/buildings, in a priority Queue.
    Auto send troops to pre-specified villages ( farms )
    Auto search for inactive players or under attacked ( can use a website to determine them )
    Auto trade resources from market.
    Auction bidder, price low => buy , price high => sell.

    I can implement all the functions easily if i just can visualize how this thing work, how can i get the info from server and link it to my application, that i really want to do in java as i don't have time to learn a new language and suffer with the syntax, it's a summer project that i'm passionate about.

    Thanks!

  4. #4
    Nimboso's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    538
    Reputation
    21
    Thanks
    1,533
    Quote Originally Posted by dexterfreak View Post
    Game is as follows:
    After choosing a tribe, u start the game based on what location u chose, the whole game is 200x200 grid.
    You start with 1 village, 4 kind of resources (Wheat/clay/iron/wood) with hourly production.
    Then you start building troops/buildings, and expand your village. You can attack nearby villages/oasis for extra resources which is the most important aspect of the game.

    Bot idea:
    Basic Functions//
    Auto build troops/buildings, in a priority Queue.
    Auto send troops to pre-specified villages ( farms )
    Auto search for inactive players or under attacked ( can use a website to determine them )
    Auto trade resources from market.
    Auction bidder, price low => buy , price high => sell.

    I can implement all the functions easily if i just can visualize how this thing work, how can i get the info from server and link it to my application, that i really want to do in java as i don't have time to learn a new language and suffer with the syntax, it's a summer project that i'm passionate about.

    Thanks!
    Browser games are luckily the easiest to automate, no hooking, no pointers, none of the hard stuff. The basic idea is you want to sniff the HTTP requests that your browser makes, and how the server responds/what data is in the response and react accordingly.

  5. #5
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,674
    Reputation
    258
    Thanks
    4,146
    My Mood
    Cheeky
    You could use Awesomium in C++ for the visual aspect, and use javascript for most of the automation. Awesomium allows keyboard and mouse injection so you could use that to spoof stuff as well.
    Ah we-a blaze the fyah, make it bun dem!

  6. #6
    dexterfreak's Avatar
    Join Date
    Mar 2017
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Nimboso View Post
    Browser games are luckily the easiest to automate, no hooking, no pointers, none of the hard stuff. The basic idea is you want to sniff the HTTP requests that your browser makes, and how the server responds/what data is in the response and react accordingly.
    Thank you, I'm more motivated now , I'll look into http requests more

    - - - Updated - - -

    Quote Originally Posted by Hell_Demon View Post
    You could use Awesomium in C++ for the visual aspect, and use javascript for most of the automation. Awesomium allows keyboard and mouse injection so you could use that to spoof stuff as well.
    Thanks , do you think I should learn C++ ? I know it's O-O language and switching from Java to C++ shouldn't be a problem but is it more effective in the firled of bots and automation?

    Thanks

  7. #7
    Nimboso's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    538
    Reputation
    21
    Thanks
    1,533
    Quote Originally Posted by dexterfreak View Post
    Thank you, I'm more motivated now , I'll look into http requests more

    - - - Updated - - -


    Thanks , do you think I should learn C++ ? I know it's O-O language and switching from Java to C++ shouldn't be a problem but is it more effective in the firled of bots and automation?

    Thanks
    For web automation python is an awesome language, with the requests and beautifulsoup modules you can fully parse html and send requests within the same session easily.
    Last edited by Nimboso; 6 Days Ago at 05:45 AM.

  8. The Following User Says Thank You to Nimboso For This Useful Post:

    [MPGH]Hell_Demon (6 Days Ago)

  9. #8
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,674
    Reputation
    258
    Thanks
    4,146
    My Mood
    Cheeky
    I can +1 python, and yes, pick up C++. It's a useful all around language
    Ah we-a blaze the fyah, make it bun dem!

Similar Threads

  1. Tips For Making Timewarp
    By akyuky in forum osu! Discussions & Help
    Replies: 9
    Last Post: 06-16-2016, 08:04 AM
  2. [Help Request] VB .NET Browser Game Bots
    By Sirosky in forum Visual Basic Programming
    Replies: 4
    Last Post: 10-11-2013, 12:19 AM
  3. [Tutorial] Bot For Web Browser Game
    By ket_ in forum C++/C Programming
    Replies: 11
    Last Post: 03-02-2013, 07:19 AM
  4. Need Values And Tips For Making Trainer
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 06-06-2007, 11:37 AM
  5. Hack for Browser game
    By suppaman in forum General Game Hacking
    Replies: 6
    Last Post: 01-22-2006, 11:09 AM