![]() Now, with the basics out of the way, there are a couple of technologies that I want to play with in this project. The code excerpt below shows a rough sketch of how this works.Listen to the socket’s msg event to intercept messages.Listen to the socket’s connect and disconnect events detect when a connection is ready.Use socket.io-client to connect to the game.The sequence to establish a connection to the game is as follows: To connect to the game, I am using socket.io-client for Javascript as other implementations of the library is not as up-to-date. At the time of this post December 2018, the game is using Socket.IO version 2.0. How the game works #īehind the scenes, Tribal Wars 2, henceforth referred to as TW2, uses a web socket implementation Socket.IO to communicate between the game GUI and server. As of the published date of this post, this project is not open-source as it is still in development. The development for this project is not about cheating in Tribal Wars 2 but using the game as a motivator to learn new technologies. This blog post serves a documentation for the high-level design of my Tribal Wars 2 manager. This project aims to eliminate this problem by splitting the manager into multiple services. The Hamburg-based company has scored major successes with games such as Tribal Wars, Forge of Empires and Grepolis.Earlier this year, I developed a single process NodeJS application for all the services in this manager (shown down below) and it started to raise out-of-memory errors due to Node’s limitation. With more than 150 million registered players, InnoGames is one of the world’s leading developers and providers of online games. The game is released for both browser and android the iOS app will follow in the next months. The game is designed as a cross-platform game for browser and mobile to enable players to use the same account while still experiencing the same game world, with the same rivals and allies. The MMO’s focus is real-time, strategic battles with and against other players. Tasked with growing and expanding their empire within a war-torn landscape, they have to fight in order to survive. In Tribal Wars 2, players find themselves as the leader of a small village in the midst of a medieval world. ![]() ![]() We wanted to change this so players will now get the full gaming experience way quicker and easier.” “ However, it currently takes players up to two weeks until theyhave their second village and know this gaming experience. “ Tribal Wars 2 is essentially about managing a whole empire, moving troops from one village to the other and performing strategic attacks on enemies”, InnoGames’ Senior Product Manager Nino Protic explains. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |