Skip to main content

Questions tagged [rts]

Real-Time Strategy. A game played live (ie not in a turn-based structure), where the objective is to build a base and conquer other bases.

Filter by
Sorted by
Tagged with
2 votes
1 answer
179 views

Recreating StarCraft 2 pathfinding – no navmesh method seems fitting

As a hobby project I am trying to re-create pathfinding similar to StarCraft 2 based on the presentation from GDC 2011: https://www.gdcvault.com/play/1014514/AI-Navigation-It-s-Not (Image source) The ...
Tchayen's user avatar
  • 113
0 votes
0 answers
75 views

Find the best attack position

I'm doing what this thread is doing except that it's not very satisfactory. What this does is finding the "closest" attacking position. But typically you want the attacker to attack from as ...
Weikai Wu's user avatar
0 votes
1 answer
83 views

Client and server with fixed tick in pygame

I'm trying to write a 2D RTS game with maximum of 10 players. When server finish intializing each player receives start coordinates and game start time so each client will start processing ticks ...
Mirula's user avatar
  • 1
0 votes
2 answers
173 views

How to make ranged RTS units move to their firing range from an opponent using flow fields?

I am trying to make a simple real-time strategy game (only the battle system of units fighting each other; no building, no economy, only battles and victory). I am using flow fields to make the units ...
Hao Hao's user avatar
2 votes
1 answer
4k views

Triggering Enhanced Input Actions via inputs with modifier keys (Shift/Alt/Ctrl) in UE5

This question refers to the use of enhanced input in Unreal Engine 5. Whenever I say "modifier", I refer to modifier keys such as Shift, Alt, and Ctrl (rather than the Input Modifers such as ...
Simon Fischer's user avatar
1 vote
0 answers
55 views

How to implement 3D visibility checks with terrain occlusion in an RTS?

Some RTS games, for example games built on the Spring RTS engine, implement a visibility/detection system that checks both whether a hostile unit is within the detection range of a friendly unit, and ...
bluegreen1024's user avatar
0 votes
0 answers
30 views

How do some RTS games efficiently compute the launch angle of projectiles to hit moving targets, accounting for gravity? [duplicate]

Some real-time strategy games, notably Total Annihilation and Supreme Commander among others, have simulated projectiles that travel along realistic-looking parabolic arcs to reliably hit moving ...
bluegreen1024's user avatar
0 votes
1 answer
152 views

How to shift focus of RTS gameplay from manual dexterity to strategy? [closed]

I am doing an exercise where I have to make a board game where the win condition relates to area control. I decided to make a real-time game where players have to control certain key points at the end ...
Professional social outcast's user avatar
1 vote
1 answer
212 views

How do I modify parts of a texture on a quad?

I am programming a Real Time Strategy game, and I was wondering how I could retexture one part of a terrain quad to change a texture in the position where I click at. For example, if I clicked in the ...
rjhwinner03's user avatar
-1 votes
1 answer
277 views

How to generate terrains in real time?

I am trying to make a terrain editor for my Empire Earth OpenGL clone engine. Are there any articles of how to generate terrains in real time? It would be cool if it had pseudocode, even cooler if it ...
rjhwinner03's user avatar
9 votes
3 answers
2k views

Maintaining unit formation while following path

I'm currently working on a 2D Age of Empires style RTS game. Here's my problem: I'm currently using the A* algorithm (via Path finding package) to move my units. When you select a "group" of ...
GauthierBee's user avatar
1 vote
1 answer
273 views

GGPO / peer to peer winstate

How do games using GGPO (or maybe peer to peer in general) like Guilty Gear determine a winner? Just reporting a winner consensus might work with many independent players per lobby, but in e.g. a 1v1 ...
Jan Hohenheim's user avatar
1 vote
1 answer
69 views

Do we need an ackowledgment packet in deterministic TCP multiplayer game?

I am trying to implement a deterministic game after having read 1500 archers on a 28.8. The simulation uses fixed-point math and the client only sends commands to the server which sends back the ...
rafoo's user avatar
  • 143
1 vote
1 answer
666 views

Network mechanism for an RTS multiplayer game

I'm writing a real time strategy game in Rust. In this game each player controls one of two armies facing off on a battle zone. To better understand the gameplay, my project is an open source version ...
bux's user avatar
  • 147
0 votes
1 answer
200 views

How to calculate distance for A* when searching a path on navmesh?

I've read a couple of articles on Navmesh+A* navigation. So, I'm trying to implement a pathfinding for an RTS type of game. However, it seems I don't understand how to calculate a distance for A* when ...
Dmitrii Naumov's user avatar
3 votes
1 answer
183 views

Approximating off-screen action efficiently in a simulation game?

I have a character building constructs all over a pretty large map. My game blends elements of RTS and fast paced action in a room-based environment where players can only see one room at a time. I ...
pixelpax's user avatar
  • 143
2 votes
2 answers
767 views

How to handle "identity" of unit/building types within an RTS context?

TL; DR: How do I give unit and building types a unique "identity" without turning my codebase into a mess? I've been reading the genius Game Programing Patterns and it's made me very (...
Sam Bishop's user avatar
2 votes
1 answer
130 views

Space out units to a grid pattern

So imagine an RTS game, with ~150 units all cramped together, just staying chill. What I would like is to "space them out" so that they d form a grid. This is useful for example when a large ...
dgan's user avatar
  • 131
1 vote
1 answer
181 views

How could I simulate projectile collision agaisnt RTS units with primitive colliders?

For example, humans are easy they are just capsules. But for cavalry, an arrow could hit the horse or the rider. Right now cavalry are also capsule colliders for unit-unit collision, but for ...
Tree3708's user avatar
5 votes
2 answers
2k views

How can I create the arriving/ engaging in combat movement like in StarCraft 2?

I currently have two armies (smaller scale) crashing into each other. They will usually form a line of units fighting. I have no idea how to handle a unit coming from behind the line to properly go ...
Nikola-Milovic's user avatar
0 votes
0 answers
175 views

How can I improve the current enemy spawning system for my strategy game

I'm currently making an RTS game for mobile where mini battles would take place on tiny battlegrounds. The problem is that currently the player is spawning its units based on a currency system, ...
StuckInPhDNoMore's user avatar
0 votes
0 answers
128 views

How to have RTS units move along un-even terrain?

My current world is a flat 2D plane. I want to make the terrain 3D, like hills, bumps, etc. If I tell a unit to go to a position (x, y) in 2D, how do I make sure ...
Tree3708's user avatar
0 votes
1 answer
67 views

How to assign an index to different node clusters? (for pathfinding)

Hellow~ So for a bit of context: i'm currently working on a RTS (way above may league) which already has a level editor and a node grid which maps the terrain, i previously make a navigation system ...
Frame Matt's user avatar
0 votes
0 answers
302 views

Client/Server state synchronization for RTS

How can I perform state synchronization using client/server networking in an RTS similar to Starcraft 2 and Planetary Annihilation? I'm assuming the server has to do some sort of rewinding time to ...
Nairou's user avatar
  • 604
3 votes
1 answer
480 views

Handling complex selection mechanics in RTS-style game

When we look at complex RTSs where a simple left button mouse click can mean twenty or more different things, depending on the game and UI state, the code handling this interaction and assigning the ...
Ahmed Tawfik's user avatar
0 votes
2 answers
2k views

How do I control multiple Pawns without possesing them (RTS style)?

I am making a multiplayer RTS but I have a problem controlling spawned units (let's call them Vessels), specifically moving them around with AI MoveTo bp. Vessels ...
SomeDude's user avatar
0 votes
0 answers
169 views

Proper way to handle timers at scale

At scale for multi-users, what is the proper way to implement timer updates? I'm making a game where Users have buildings to upgrade which involve timers (Yes I know there are plenty of questions ...
ChrisW's user avatar
  • 1
1 vote
1 answer
134 views

AoE 2 DE - Modding a building to have two page interface

I am using Advanced Genie Editor and currently trying to create a copy of a Krepost and give it a second page of units (like the docks). I have so far been unable to do it as the second page just ...
Sumit Mishra's user avatar
7 votes
5 answers
537 views

How can I make sure all army compositions are counterable in an RTS game?

Most RTS games I played have some kind of rock-paper-scissors system that ensure that there is no single best unit you can mass and win with all the time. However this breaks down when players start ...
Calmarius's user avatar
  • 661
6 votes
5 answers
616 views

Force new players to play tutorial?

We have released our new game to a closed alpha group. It's a browser-based MMO RTS, however some aspects of the game are slightly different from the "standards" you'd expect to see in traditional RTS'...
Arj's user avatar
  • 309
2 votes
0 answers
301 views

Structure for a strategy game

I am making a strategy game like Age of Empires. It's a pretty big project and I need a clear game structure. I have defined a Game_Object class with variables ...
Traistorm's user avatar
1 vote
0 answers
67 views

RTS camera acceleration

I have an RTS game with a camera that can be controlled by either edge-pan, gamepad analog stick or keyboard buttons (WASD). The speed and snappiness are good for the general case, but sometimes feels ...
ltjax's user avatar
  • 851
0 votes
0 answers
409 views

Rendering detailed martian terrain for an RTS

I am trying to develop a RTS game that has: Various planets Each planet topology could vary between chock full of craters, to smooth hills and mountains planets In sum each "biome" should be unique-...
Sir Cort's user avatar
7 votes
9 answers
5k views

Help resolve territory acquisition design difference of opinion in MMO RTS

TL;DR: My business partner and I disagree about how to implement "territory acquisition" in an MMO RTS we are close to (alpha) launching: My view: Small squares (5m edge) that get larger as you "...
Arj's user avatar
  • 309
0 votes
1 answer
643 views

Unity Items not being removed from list

So I finally perfected my RTS multiple movement. The situation is that the game objects are added into a list in a script bound to the camera called UnitController ...
Kiyo's user avatar
  • 27
0 votes
1 answer
412 views

Unity RTS Multiple Selection Approacah

I've recently solved the single selection problem but now I want to do multiple selections. I know I need to find two points with the mouse position to draw a box but it just won't work for me. ...
Kiyo's user avatar
  • 27
0 votes
1 answer
220 views

Unity RTS Single Selection Problem

I am trying to build an RTS game and I have managed to form a way to select a unit using Raycast and the tag system. I made it so that if the object the ray falls onto is of tag "TankUnit" Make so and ...
Kiyo's user avatar
  • 27
1 vote
1 answer
151 views

How should I update object movement on Client in a lockstep game?

I have a game that I am implementing a lockstep system for multiplayer on an RTS game. Now the server sends update packets at a higher frequency than the clients with new data. What I'm stuck on ...
Sammi3's user avatar
  • 219
4 votes
5 answers
3k views

Should damage calculation in a competitive multiplayer game be done client-sided or server-sided?

I'm interested in creating a moba style game like League of Legends and need help with a situation. More exactly: I have an item that gives the player 50 Attack Damage or an ability that does 50 ...
NameHere's user avatar
2 votes
1 answer
287 views

RTS game: How to handle disconnects in a fully connected peer to peer architecture?

I'm currently working on a game in which I am considering implementing a networking architecture as described in this article: http://www.gamasutra.com/view/feature/131503/...
Jasper's user avatar
  • 133
27 votes
8 answers
8k views

Minimum Viable Product for RTS game?

I'm in pre-production on a strategy game and am trying to determine if the core gameplay will be fun. A good technique to determine this is to strip the game down to its minimum viable product (MVP) ...
RAM804's user avatar
  • 426
2 votes
3 answers
941 views

RTS Attack Formation

If i select a group of units and send them somewhere i form them like the following; If i select them and order an attack, i want three things to happen: High range units should keep the distance ...
Dodo's user avatar
  • 21
4 votes
3 answers
852 views

RTS Unit AI: When to let the unit stop (due to local avoidence)

I am developing an RTS-like game, that have units that move and attack. I implemented path-finding and local-avoidance. One problem is when multiple units being ordered to the exact same position, ...
Guo Bo's user avatar
  • 41
9 votes
2 answers
4k views

RTS pathfinding

I'm doing my first RTS game (something like WarCraft 2) in own game engine using Monogame for graphics. I am wondering how can I implement pathfinding for a selected group of units. Movement is tile-...
Maras's user avatar
  • 217
17 votes
11 answers
6k views

Fair combat system for new players on RTS game

I'm working on an idea/concept for a multiplayer game that I want to develop after my functional analysis but I'm still thinking of a way to implement a proper, fair combat system between new and ...
XverhelstX's user avatar
0 votes
1 answer
261 views

how to sync clients and local avoidance in mobile RTS game?

I have been making mobile RTS game in Unity look like Clash Royale similarly. Unfortunately, I faced to two big problems. First is two phones(clients) to be synchronized each other in game state. ...
Dennis's user avatar
  • 3
5 votes
2 answers
2k views

Fix my Flow Field pathfinding

I'm developing prototype of Tower Defense/RTS game and I've implemented simple Flow Field grid. Here is the example (link). How to use example: First click on S50, this will spawn additional units, ...
Fen1kz's user avatar
  • 185
1 vote
0 answers
48 views

How can I reproduce the physics that we can see in Dawn of Titans?

I'm working on a hobby RTS project and I want to implement collision physics between soldiers like in the mobile game Dawn of Titans. Here is a video reference https://youtu.be/Fnpot2NeJl8?t=341 How ...
aganm's user avatar
  • 140
6 votes
1 answer
234 views

Group path following

A path is defined as a list of positions for units to follow sequentially to navigate terrain. For example, ...
JPtheK9's user avatar
  • 2,031
1 vote
2 answers
579 views

Balance an RTS to make a unit twice as good

I am modifying an RTS game (Rise of Nations) and want to make a unit twice as good and expensive as it's previous version so the balance is unaffected. When I try to do it, I assumed that if I ...
PStag's user avatar
  • 1,240