Blog Archives

Cities Skyline inspired game (Test #3)


Added citizens to our game! They are tracked individually, belongs to a family and they tweet (in-game tweet I mean)!. Basic menu and the ability to spawn residential zones and industrial zones has also been done. Once the residential buildings are constructed new families will start moving as long as a slot for new family is available. A basic economy system has also been added so each building has its own upkeep per cost and they also pay taxes which is the main source of income. Buildings also require electricity to work properly.

Advertisements

Cities Skyline inspired game (Test #2)


Just added dynamic day night cycle and a custom calender system in our Cities Skyline inspired game. 🙂

[TIP] Sending UDP requests to AWS Server


Hi there 🙂

In this quick tip I’ll show how to send a udp request to your Amazon EC2 server instance and then receive a reply from there. Simply put, you can use this to check if your AWS servers are online or not when player is logging in.

So what are we covering today? Well, we will write a simple UDP server in Node.js and run it on AWS EC2 server. This server will be listening on EC2’s IP on a specific port. Then in Unreal Engine 4, we will use the FUDPPing::UDPEcho method to ping the above server ip and port and see if we get a reply. Let’s get started.

Read the rest of this entry

[TIP] Creating your custom definitions for your UE4 games


Some developers might require their game to be different based on specific builds. For example you make a game and you want to release a demo but don’t want to include certain features. This is actually very easy to achieve. Like literally…very easy. 🙂

Open your MyProject.Build.cs file and modify it like this:

/* True if this should compile as a demo build */
const bool bIsDemoBuild = true;

/* Add a new definition called IS_DEMO_BUILD. This will be 1 (true) if bIsDemoBuild is true. Else it will be false (0) */
Definitions.Add(string.Format(“IS_DEMO_BUILD={0}”, (bIsDemoBuild ? “1” : “0”)));

Close your project solution file, right click on your *.uproject file and select Generate Visual Studio project files.

Generate Visual Studio project files.

That’s it! In your header/source files you can now use like this:

#if IS_DEMO_BUILD
UE_LOG(LogTemp, Log, TEXT(“This is a demo build”))
#else
UE_LOG(LogTemp, Log, TEXT(“This is release build”))
#endif

The good thing about this approach is its not just a simple if else condition. The compiler is actually removing the entire code inside that macro based on the condition. 🙂

New Marketplace page


I’ve added a new Marketplace page on the menu. It will show you all the items I have made for Unreal Engine 4 Marketplace. Feel free to buy them! 😉

[WIP] [Update #3] RTS Game in UE4 using C++


Update #3 of my RTS Game in Unreal Engine 4 using C++.

  • Added Town Center. This is required before building any other buildings.
  • Added initial AI system. Villagers will find and go to the nearest resource and start gathering it.
  • Added few other buildings.
  • Added farm.

 

[WIP] [Update #2] RTS Game in UE4 using C++


Update #2 video of my RTS Game in Unreal Engine 4 using C++. In this video you can see villager building house, house creating new villager and villagers gathering wood and stone resource.

%d bloggers like this: