Exploring the AI of Command & Conquer | AI and Games #53

  Рет қаралды 88,479

AI and Games

AI and Games

Күн бұрын

25 years after its release, Command & Conquer returns to PC gaming in a newly remastered collection comprised of both Tiberian Dawn and Red Alert. But in addition, the source code of the remaster has been released to the public. So in this episode, we dive in and find out how these seminal RTS titles handled strategic AI.
Chapters
[00:00] Introduction
[01:30] Command & Conquer & RTS Games
[04:58] Understanding the Codebase
[08:44] Pathfinding
[12:15] Missions for Micro
[15:25] Strategies in the Macro
[20:25] Red Alert AI
[23:07] Speed Round
[27:13] Closing
Check out the source code of Command and Conquer on GitHub:
github.com/electronicarts/CnC...
Ars Technica's video on pathfinding in Tiberian Sun:
• How Command & Conquer:...
NoClip's Command & Conquer Remastered documentary:
• The Remarkable Story B...
--
Support AI and Games and help the show grow by joining my Patreon:
/ ai_and_games
--
AI and Games is a KZfaq series on research and applications of Artificial Intelligence in video games. It's supported through and wouldn't be possible without the wonderful people who support it via Patreon and KZfaq memberships.
--
Join our Discord Community:
bit.ly/AIandGamesDiscord
Get yourself an AI and Games t-shirt over on Teespring!
teespring.com/stores/aiandgames
You can follow AI and Games on Twitter:
/ aiandgames

Пікірлер: 219
@AIandGames
@AIandGames 3 жыл бұрын
Revisiting Command & Conquer - a game I played in high school - was a lot of fun. Still working my way through both campaigns now that the video is finished. The game has already received a lot of love in the Steam workshop community with mods to change various parts of the game and hopefully, that will continue. One interesting thing - that you might have spotted in the video - is that in the skirmish matches where I removed the fog, I don't appear to be playing. Actually, I'm in those matches as a GDI faction, but I wanted to test a theory. In the video, I mention that the House AI only considers another player as a potential threat once they've built the basics of their base. So yeah, I figured out if I just leave my mobile construction yard vehicle idle and refuse to unpack it, the AI House's will ignore me. That said, I don't recommend unpacking it 20 minutes into the match, that didn't go well...
@MattSipka
@MattSipka 3 жыл бұрын
I love the RTS genre. I always wanted to see one with a more dynamic soundtrack. Some rts games do but only between quiet ambience and intense battle music. (One infantryman fires his rifle at a building and it triggers a huge epic orchestra) I want to see a RTS where each faction has a unique theme and each unit type built adds to the overall track. (Infantry are percussion instruments) units that are best for that faction have more attention and prominence to their sound. Say a slow guitar riff vs. a wailing guitar solo.
@SkyFly19853
@SkyFly19853 3 жыл бұрын
I really thank you for talking about this game and its A.I...
@mcmikecreations
@mcmikecreations 3 жыл бұрын
It would be great if you could take a look at AI of Caribbean Crisis. I remember it being unexpectedly clever in some situations
@danielpayne1597
@danielpayne1597 3 жыл бұрын
Awesome vid, but where's the section dedicated specifically to how stupid the harvesters are :P
@netcrashYT
@netcrashYT 2 жыл бұрын
@@MattSipka isn’t Total Annihilation and it’s sequel Planetary Annihilation a bit better in that direction?
@deutschbagnl
@deutschbagnl 3 жыл бұрын
The dog transforming into a projectile was something I stumbled into when playing with the Rules.ini for the original Red Alert as a teenager. I tried to give the dogs the V2 rocket launcher's weapon class (I believe it was called a scud in the code, but I don't remember for sure), only for the dog to transform into the rocket projectile while attacking, explode on impact, and become a dog again.
@DeyBawnes
@DeyBawnes 3 жыл бұрын
dog goes brrrrrrr
@TyrannisUmbra
@TyrannisUmbra 3 жыл бұрын
The dog bullet thing is something that I knew anecdotally from experience playing, but also I can't help but think in the back of my mind that I've seen a dog get killed while it's in 'bullet mode', so I'm unsure if it actually 'stops existing' for the duration, or if the projectile is still targetable.
@tarrker
@tarrker 3 жыл бұрын
YES! I vaguely remember stumbling onto the same thing during my trips through the rules.ini file. If I recall I was trying to make a more sci-fi style game and I wanted to use the dogs as some sort of mechanized infantry.
@tarrker
@tarrker 3 жыл бұрын
@@TyrannisUmbra it's a bit of both. Projectiles, by default, are invalid targets for attacks. But it's just a true/false indicator. So you could, potentially, have missile or rockets that are able to be shot down. Cool idea but, in practice, ruins the viability of those types of units.
@TyrannisUmbra
@TyrannisUmbra 3 жыл бұрын
@@tarrker okay, that explains it then. Thanks!
@hutima
@hutima 3 жыл бұрын
"house" designating GDI/NOD is a carryover from Dune in which factions are different houses
@xantishayde-walker4593
@xantishayde-walker4593 3 жыл бұрын
Nice! I never thought of that. Almost forgot about Dune.
@eternialogic
@eternialogic 3 жыл бұрын
I was pretty confused. Would've assumed that those files would be called FACTION.h or something like that.
@xantishayde-walker4593
@xantishayde-walker4593 3 жыл бұрын
@@eternialogic They would have the proper C++ naming convention such as FACTION.h or .cpp. What we were talking about was *inside* the files, they are called House.
@yuriythebest
@yuriythebest 3 жыл бұрын
yess! was about to mention this.
@ThePrimeboy1
@ThePrimeboy1 3 жыл бұрын
Bullet Dog always makes me smile, honestly the best part of RA1
@njiska
@njiska 3 жыл бұрын
I loved editing the unit to have a flamethrower weapon. Dog Fireballs! A classic of traditional RA.
@ThePrimeboy1
@ThePrimeboy1 3 жыл бұрын
@@njiska oh god, what if, flamethrower, but it shoots dog... I need to do this now
@ashkuigp
@ashkuigp 3 жыл бұрын
Invincibility frames!
@spankeyfish
@spankeyfish 3 жыл бұрын
@@njiska I tried to make a werewolf by arming a grunt with the dog weapon, thinking that it would transform into the attacking dog when attacking. What I got was a grunt who launched dogs at the enemy...
@pinkyclown
@pinkyclown 3 жыл бұрын
@@spankeyfish THIS. Me and my brother made Tanya have tesla coil and Dog bite and she wold rapid fire dogs at infantry.
@dan2124
@dan2124 3 жыл бұрын
The fact the factions are refered to as House_good/bad makes me wonder how much of the code from Dune II was dragged over originally and used as a base since in that factions are Houses (House Harkonen, House Atreides...etc)
@jordananderson2728
@jordananderson2728 3 жыл бұрын
If it works and makes sense...
@RedShocktrooperRST
@RedShocktrooperRST 3 жыл бұрын
@Brennan Lu Given the relative relation of one game to the next, I wouldn't be surprised if houses were used as late as the unspoken fourth. Supposedly burried deep in even Red Alert 3's code, there are still components of Tiberian Dawn, meaning at least theoretically as late as Red Alert 3 (and likely also C&C4, since that uses RA3's engine) they are still called "houses".
@Gokotti
@Gokotti 3 жыл бұрын
I thought they we're called houses, because Westwood Studios were in Las Vegas. And the house always wins.
@KaiserMattTygore927
@KaiserMattTygore927 3 жыл бұрын
StarCraft 1 also does this in a way, where primary structures are still referred to as "Town Halls" like in WC. Its just what the coders are used to for these games I guess.
@RedShocktrooperRST
@RedShocktrooperRST 3 жыл бұрын
@@KaiserMattTygore927 It makes sense to me. THe underlying mechanics didn't change much from Warcraft to Starcraft as far as the engine is concerned - the Engine doesn't care if it's orcs or aliens, or if its Harkonnen or Nod. And almost certainly easier than changing the nomenclature from "house" to "faction" or from "town hall" to something else.
@kipkay2000
@kipkay2000 3 жыл бұрын
God, the nostalgia hit hard just from hells march at the start of the video
@AIandGames
@AIandGames 3 жыл бұрын
I sat and listened to the entire soundtrack to find the all-important opening track. And nothing came close to Hell March.
@white-dragon4424
@white-dragon4424 3 жыл бұрын
The thing I remember most about the first C&C on the PC, was that it had a bug that stopped the enemy forces from firing on any barrier you construct, even sandbags. If you managed to block all approaches to your base before he could send an attack, the enemy would just build up behind the wall you constructed. This gave you all the time you need to build a gigantic army to fire on him from behind the barrier, then to move onto his base.
@NaumRusomarov
@NaumRusomarov 3 жыл бұрын
fun fact: pathfinding, mathematically speaking, is super simple and interesting at least for single units. it becomes a problem when you have large maps, significant number of units and terrain that can change from one time step to another. Nowadays, this is not really a problem, we've got enough individually fast cores to compute the solution on time, but in the past this was not simple at all. Hence, the somewhat barebones pathfinding in old games. It really is a fascinating problem.
@CMDRSweeper
@CMDRSweeper 3 жыл бұрын
The dog thing / bullet was easily known for those of us that modded units back in the day. You could arm infantry with the weapon (Dog) and then they would fire dogs out of their assault rifles for an example.
@ew3612
@ew3612 3 жыл бұрын
CMDR Sweeper I remember playing several mods like that. I think the map was purple nurple but it was such a long time ago...
@MrDragonball2000
@MrDragonball2000 3 жыл бұрын
You made me crack up at that England code comment
@TomNCatz
@TomNCatz 3 жыл бұрын
He sounds so mad so fast and degrades into full on accent. For a mostly calm and serious channel that was beautiful execution and comedic timing...
@RealEnerjak
@RealEnerjak 3 жыл бұрын
Command and Conquer was to RTS games what Doom was to FPS games.
@Zerggodmaster
@Zerggodmaster 3 жыл бұрын
me: pokes enemy harvester ai: strong rage moving towards me
@tomseiple3280
@tomseiple3280 3 жыл бұрын
Hobbiest coder, and big time RTS gamer: this was a great watch! This sort of demystifies the notion of how a game comes together - I work in analytics and spend most of my time in SQL and Tableau, so my code chops are minimal compared to the average developer. I really appreciate the approach to discussing the code as well - the code base used seems, shockingly, well organized and thought out. I'm impressed with how organized Westwood and Petroglyph were with their objects and structure!
@mickeymarian5386
@mickeymarian5386 3 жыл бұрын
Dude this is so awesome i honestly didn't know the source was available! Thank you so much for putting these videos together! Your channel is great videos like this are super helpful to me!
@AIandGames
@AIandGames 3 жыл бұрын
Great, I hope it proves to be useful.
@nintentyr2355
@nintentyr2355 3 жыл бұрын
This was just fantastic to watch. I would like to see how the AI improved from Tiberian Dawn to Tiberian Sun/FireStorm
@c0mmanderKeen
@c0mmanderKeen 3 жыл бұрын
This game has a very special place in my heart and I am loving the remaster to pieces. Great upload, as always. Thanks!!
@buttnuttz6119
@buttnuttz6119 3 жыл бұрын
You think the pathing in this game is bad? In the original Age of Empires, units would often stare at a cliff instead of going around, lol
@TheMurmandamus
@TheMurmandamus 3 жыл бұрын
AI Existential crisis activate
@RafaSheep
@RafaSheep 3 жыл бұрын
Even the Definitive Editions have persisting pathfinding issues.
@DeyBawnes
@DeyBawnes 3 жыл бұрын
uh and that Starcraft units when i just make an army then i order move and cant go to the point, they just messing around and dying because the AI of enemie is more organized than a human player
@GepardenK
@GepardenK 3 жыл бұрын
I'm pretty sure AoE1 uses the same general pathfinding solution as C&C did; it's just you run into issues much more often due to geometry being more complex compared to the size of the units - particularly with villagers around resources. AoE1 also, for some reason, have much larger hitboxes for infantry compared to C&C, which again makes them struggle among themselves more even if the pathfinding algorithm itself is relatively similar. There's a reason why modern rts's tend to prefer squads when representing infantry, it means less AI overhead since there's technically less units to control (a squad being 1 unit, instead of 8, etc), which then allows for much more precise pathfinding algorithms at any given level of performance.
@Poodlestroop
@Poodlestroop 3 жыл бұрын
The last time I was this early, Nikoomba was still causing the Brotherhood much grief. Great to see this channel talking about one of my favourite game series!
@theral056
@theral056 3 жыл бұрын
I just clicked to hear Hell March. Ended up watching the whole thing anyway.
@CommanderBohn
@CommanderBohn 3 жыл бұрын
>Spams sandbags Nothing personnell mr. Hardest AI.
@MoogieSRO
@MoogieSRO 3 жыл бұрын
Bone apple tea, Commander.
@sinkler123
@sinkler123 3 жыл бұрын
what a great video, both educational and entertaining. Kudos!
@jayhlovelady
@jayhlovelady 3 жыл бұрын
It's such a joy to see the first game that truly grabbed my attention still has such an avid fan base. Thanks for the great video!
@mikaslashCOD
@mikaslashCOD 3 жыл бұрын
16:40 "House AI do not have access to additional ressources, they mine the tiberium field the same way as the player" True for Skirmish, but NOT for campain. in Campain, the AI gets additional (unlimited???) funds. -tiberium silos respawn simultaneously (up to 6 at a very same time, which is not possible for the player) full of tiberium once they are destroyed or captured (money stolen) -Ai still building expensive units even when all refineries and silos have been gone for a while.
@musAKulture
@musAKulture 3 жыл бұрын
thats a map trigger likely
@Geckotr
@Geckotr 2 жыл бұрын
Enemy AI doesn't have unlimited resources in C&C Remastered, i don't know about the original though. When they're out of tiberium/ore, they halt unit production and their attacks on your base suddenly stops after a frequent wave of attacks. Emeny AI even starts selling it's buildings when it's out of resources to produce units
@BoffinBrain
@BoffinBrain Жыл бұрын
It's a bit late to reply to this, but I believe that while the campaign AI do need to harvest, the amount they receive for each truckload is extremely high, more than 2x the regular amount, so they are effectively cheating but you can still make them run out of money by denying them access to tiberium/ore, or stealing resources with thieves.
@mikaslashCOD
@mikaslashCOD Жыл бұрын
@@BoffinBrain That makes sens ! So basically 1 truck load can fill up to 6 tiberium silos(maybe more), that's crazy ! Thanks for clarifying this out. Better late than never :p
@TheHastySlowpoke
@TheHastySlowpoke 3 жыл бұрын
Uk flag - ENGLAND Every scottish player - “ GERMANY IT IS THEN”
@WizardsCode
@WizardsCode 3 жыл бұрын
Ohhhhh.... the sourcecode is available.... there goes the rest of my vacation. Perfect timing. Thank you :-D
@mcmikecreations
@mcmikecreations 3 жыл бұрын
This was incredible info! Thank you for taking the time and releasing us from the pain of digging through the source code just for a basic idea of how things work. Although I was sad to hear that pathfinding (especially for large groups of ground units) was very limited due to the constraints imposed by the hardware capabilities, it was very interesting nonetheless. It lead me to do more research in the field of pathfinding optimization for RTS and I'm very thankful for that.
@thatchanguy
@thatchanguy 3 жыл бұрын
Loved this. Subscribed!
@jurajhezel942
@jurajhezel942 3 жыл бұрын
Now this was really interesting insight how it all works. Thank you for the video 👍👌
@MrNegativecreep07
@MrNegativecreep07 3 жыл бұрын
I remember in the original the AI would always attack the northernmost target and wouldn't blast through walls, so you ciuld easily just block it in its own base. Have they fixed that for the remaster?
@Neptas
@Neptas 3 жыл бұрын
They fixed the northenmost target, now they try to deal as much damage as possible (for instance, the air bomb drop will generally try to aim at the center of your army or base). For the walls, no they haven't fixed it, it's still 100% possible to completely wall them into their own base lol.
@warpdarkmatter4448
@warpdarkmatter4448 3 жыл бұрын
Got more, than just a quote. From The CAINE Munity?
@Aphexion
@Aphexion 3 жыл бұрын
I love the way you speak. It really helps me to practice my english because it's so clear and understandable
@nicolaiby1846
@nicolaiby1846 3 жыл бұрын
Lots of clever scripting for such an old game. Loved the video!
@r.c.christian4633
@r.c.christian4633 3 жыл бұрын
Nice, finally it makes sense that you could exploit the AI in Tiberian Dawn N64 by never building barracks, as it would never attack unless it scans a barrack at an enemies base.
@SilverKnightPCs
@SilverKnightPCs 3 жыл бұрын
Programming with good documentation is like a love letter in a bottle when you read it 25 years later
@erwinhun
@erwinhun 3 жыл бұрын
A very interesting video that must have taken some time to put together, it's definitely a thumbs up and a comment from me!
@ChesterRico
@ChesterRico 3 жыл бұрын
Good stuff. I hope you'll do one on STALKER's AI & world simulation at some point!
@ADEzor
@ADEzor 3 жыл бұрын
Awesome video. I subscribed for more content. Although i was hoping for the final explanation for the AI behavior of sending units to top left corner of the map and then just chilling there.
@Jonathan-rm6kt
@Jonathan-rm6kt 2 жыл бұрын
Wow, such a pleasure to learn about how this game was made, decades after playing it as a 12 year old. This game was one of the few that led to my lifelong love of games
@Annatar0
@Annatar0 3 жыл бұрын
I wish Microsoft could release the source code for titles like Age Of Empires 1/2. It's awesome to see titles like this beeing released to the public.
@vivaladev
@vivaladev 3 жыл бұрын
I am working on a RTS game and this video made me realize that the only way I have to implement a decent AI is giving it full visibility of the map. I was already doing it, but I was having a bit of a moral dilemma because of that... Thanks for giving me some peace of mind.
@user-lu1nx4vz5x
@user-lu1nx4vz5x 3 жыл бұрын
Nice investigation on game's AI. Thanx!
@hadorstapa
@hadorstapa 3 жыл бұрын
Fascinating that the terminology of Houses is key in C&C, as this is the in-universe terminology for factions in Dune.
@sunshadow7XK
@sunshadow7XK 3 жыл бұрын
Likely a direct build on from it. It would be interesting to compare the codes of tib dawn and dune II.
@Tucher97
@Tucher97 3 жыл бұрын
The command and conquer games are a tad challenging (the older games more so) as well even on normal which is enough to keep me on my toes and in a slight state of panic but still havign fun, where the AI will slowly rebuild itself but its a concept that I do miss from some RTS nowadays but I always enjoyed factions having something unique about them forcing you to take advantage to their speciality plus something I do like starting From CnC generals are "standard" units such as standard infantry, standard AT/AA unit, a standard mainline battle tank, and a main line AP vehicle also each faction having the ability to clear garrison or detect stealth (which is usally a scout or a transport unit but still amazing) while generals (lets ignore the setting) has some amazing aspects such as your barracks able to heal infantry
@AmazingArends
@AmazingArends 3 жыл бұрын
Good to see an analysis of A.I. In games. I've done an analysis of A.I. In a different game on my channel, and found A.I. in surprising places.
@ToJoAudio
@ToJoAudio 3 жыл бұрын
I always thought C&C pioneered influence maps , a colour representation of the game map where each cells colour has a value and a function attached for the main house ai to know certain tactics, where they can build etc. Super interesting video!!
@Ghost_Of_SAS
@Ghost_Of_SAS 3 жыл бұрын
Here's hoping someone can use that same upscaling technology to remaster Wing Commander 3 and 4.
@MrInvinciblewarrior
@MrInvinciblewarrior 3 жыл бұрын
Actually wc4 and wc5 have decent dvd releases, check wcnews.com I think wc3 has a 3do release with better quality. Maybe the master still exists, as chris roberts is such a film fan.
@akjir
@akjir 3 жыл бұрын
Hmm. Hoped to see more / mostly code and explanation on that. I mean, it's available.
@SkyFly19853
@SkyFly19853 3 жыл бұрын
Finally... A great video on RTS A.I. ... ✅✅✅✅✅✅✅✅
@gavindownes2213
@gavindownes2213 3 жыл бұрын
excellent insight to how the game worked. RA2 is still supreme ! :) What we all really wanted was GENERALS 2. The screenshots and videos were just awesome.. and then they scrapped it to make a mobile game which i dont think was ever released.
@ruolbu
@ruolbu 3 жыл бұрын
25:10 >Tommy will remember this
@Skullnezz
@Skullnezz 3 жыл бұрын
Oh yes another video
@mrdoge9508
@mrdoge9508 3 жыл бұрын
Yes, you are correct about the dogs becoming bullets. Found this when I was modding the original a while back (also proceeded to make the mammoth tank fire dogs). Also, I'm not sure if you fully addressed this, but iirc there are tags inside rules.ini which define what buildings are (e.g. PowerPlant=POWR [forgot the exact unit ref tag]), which I believe it then feeds into the AI. These tags are also present in Tiberian Sun, though they no longer do anything.
@logickedmazimoon6001
@logickedmazimoon6001 3 жыл бұрын
Just downloaded and played Red alert on linux. I've never picked up an rts game this quickly! I love it already. I've always wanted to be into rts but games like age of empire but I just felt lost in all the menus
@joshs7408
@joshs7408 3 жыл бұрын
You find anything about ships in the Ai source code? I can never end up with the ai building ships, so I'd assume it's in there somewhere
@exoticbutters4212
@exoticbutters4212 3 жыл бұрын
I like how the endgame strategy for the ai is called fire sale
@ethany7110
@ethany7110 3 жыл бұрын
Love this game
@Ellolo17
@Ellolo17 3 жыл бұрын
10:00 the solution for that was clicking a lot of times, and repeating orders to guide the units the way you wanted, instead of leaving the units alone while you do other thing
@fremenondesand3896
@fremenondesand3896 3 жыл бұрын
now we have the source code I'm hoping those who understand how to copy and paste code will have a modded version of C&C that has modern pathfinding. I remember reading in factorio how they've updated their pathfinding to be much more efficent due to the large distances the AI enemy needs to travel to get to your base. Not an issue in C&C, however there's many obstacles that I'd like to see how an AI handles. Maybe you could have the entire map in the pathfinders memory as we have gigabytes of ram at our disposal these days.
@reoire843
@reoire843 2 жыл бұрын
0:11 Oh man, that intro music... IIRC you could put the game CD into a CD player to hear the soundtrack. Back in high school I used the alarm feature of my CD player to play that CD to wake me up for school. This song is the first one that played. It was an interesting way to wake up in the morning! I always thought the voices here sounded like, "PIECE OF SHIT! WAKE UP!"
@AIandGames
@AIandGames 2 жыл бұрын
😂 oh man that's a rough start to the day
@reoire843
@reoire843 2 жыл бұрын
@@AIandGames High school days were some heady times, lol
@shingshongshamalama
@shingshongshamalama 3 жыл бұрын
How kind of EA, to release the source code to the biggest hit of a studio they destroyed for absolutely no reason.
@DoomRulz
@DoomRulz 3 жыл бұрын
17:04 maybe that's the case with Tiberian Dawn, but it certainly isn't with CnC 3 and RA 3. The skirmish modes in both games aggravated me to no end. They always built their units and bases more quickly and could do even if all of their resource gathering had been destroyed.
@Rairosu
@Rairosu 8 ай бұрын
Bullet Dog, Good Dog!
@purpleganja2
@purpleganja2 3 жыл бұрын
That explained a lot of things thank you! It didn't explain why the bots don't roll over sandbags with vehicles that can tho ;)
@Gelwain
@Gelwain 3 жыл бұрын
I -HATED- that paranoid setting in Red Alert as a kid. Doing 8 man FFAs with bots was so infuriating when one AI went down and the other 6 team up and roll into my base. I stopped playing skirmish for a LONG time for that. Its good to see that it was a legitmate feature baked into the game.
@sgtcaco
@sgtcaco 3 жыл бұрын
Hi it’s Collin here, welcome to CS guitars.
@SkyFly19853
@SkyFly19853 3 жыл бұрын
Btw, I hope there will be more videos on RTS classics as well as on RPG classics...
@theMagos
@theMagos 3 жыл бұрын
Using crash-n-turn is understandable, but why didn't they design some of the maps better to not make it so bad? Ezekiels Wheel as an example, making the harvester U-turn to get out of the base every time...
@TheScoutnation
@TheScoutnation 3 жыл бұрын
Don't remind me of the pain this caused
@tarrker
@tarrker 3 жыл бұрын
Oh yeah totally. Nothing like wondering where your enemy is for 20 minutes only to finally scout their base and see a thousand infantry and tanks completely walled in by power plants.
@rtyuik7
@rtyuik7 3 жыл бұрын
damn, whered you get such a high-quality version of HellMarch for that intro? it makes the version thats on Spotify sound like Lo-Fi C&C Music to Study/Relax to...
@dreddbolt
@dreddbolt 3 жыл бұрын
I'm wondering this myself, as it somewhat reminds me of ToxicXEternity's metal cover of the theme.
@AIandGames
@AIandGames 3 жыл бұрын
This is the version of Hell March from the remaster. They re-recorded all of the original soundtracks.
@rtyuik7
@rtyuik7 3 жыл бұрын
@@AIandGames they need to update Spotify then xD
@Ed-yj1ep
@Ed-yj1ep 3 жыл бұрын
When I wasn't playing this on the 64 I was drawing it. Most memorable was the tuberium, I would stab the paper to death for enough dots 😅
@KotCR
@KotCR 3 жыл бұрын
Only 6 minutes in, and so I've not read the other comments (maybe somebody already mentioned this), but actually, I think alot of the code that looks like it was transferred over from Red Alert to Tib Dawn wasn't done for the Remaster - at least not the modern one. No, chances are alot of it is just as old as the game themselves - transferred over from Red Alert for the original Windows re-release of Command & Conquer (aka as Gold IIRC). The very first release of C&C was DOS only. The Windows 95 version was a later release, I can't remember if it was released just before or after Red Alert though (Red Alert itself shipped with both Win95 and DOS versions), but either way it was probably released roughly the same time and developed simultaneously (which makes sense since Red Alert was originally going to be just an expansion pack to the original). EDIT: Finished the video, just want to add that the AI DOES cheat with more than just omniscience - at least in singleplayer. It's never really been an accusation that it does it in multiplayer/skirmish, since Tib Dawn never had any proper MP AI (lacking a skirmish feature) until the recent remaster, and for the most part other than omniscience (which it does sadly with so many other RTS games too) the Red Alert AI has never been accused of cheating. For the most part Red Alert always played fair. It's just Tib Dawn single player missions usually, but this code is part of the mission file itself rather than the AI's core algorithm (individual mission files were free to overwrite anything from the core ruleset in self-contained files), that contained unseen cheats for the AI that would hand him a big wad of cash in some missions if his money ever fell below a certain point (distinguishing between cash and tiberium is important here - they are not the same thing in the code AFAIK), or the most visible one that is easy to witness yourself - enabling him to rebuild any destroyed structures on the same spot regardless of if he has building adjacency (even enabling him to rebuild buildings you usually can't build, such as a lost secondary Construction Yard so long as he retains a Construction Yard somewhere on the map). He can also ignore prerequisites as you can witness on the BuildLevel 5 or 6 missions against GDI where he will build MLRS' despite not owning an Advanced Comm Centre (which isn't available till BuildLevel 7 and is ordinarily a requirement to produce the MLRS)..
@ifm2181
@ifm2181 3 жыл бұрын
I remember using Red Alchemist back then to give other units the Dog Bullet attack. It was... unusual.
@kestask.7432
@kestask.7432 3 жыл бұрын
Like to see a video about C&C: Generals.
@Arganoid
@Arganoid 2 жыл бұрын
The AI in Tiberian Dawn could not deal with walls or sandbags. If you surrounded your base with sandbags, the AI could not path to you so would not attack you. This was fixed in Red Alert. Also the AI for choosing where to nuke/airstrike was very simple. It would target certain high level buildings such as advanced guard towers. If you built a sandbag wall into the enemy base and then built an advanced guard tower just before they launched a nuke, they would nuke their own base. I had to do this to win one particularly difficult mission in the expansion pack.
@randomnstoned966
@randomnstoned966 3 жыл бұрын
Great video dude very interesting, have you played Dungeon Keeper? Could be a good one.
@ElodieHiras
@ElodieHiras 3 жыл бұрын
Send a minigunner scratch the paint job on the Harvester. The entire enemy forces charge you at once. The cheese potential is endless here.
@vanivanov9571
@vanivanov9571 3 жыл бұрын
24:01 ...Wait, what does that mean? Your houses sometimes become enemy owned?
@TsukioujiRyuu
@TsukioujiRyuu 3 жыл бұрын
Yes. Trust me, I'm an engineer.
@jandamz1119
@jandamz1119 3 жыл бұрын
speaking of RTS and AI, I wonder how the AI from the Company of Heroes franchise fare, as compared to most RTS games, it was one of the franchises that introduced a lot of "quirks", like the cover system. Men of War as well following suit albeit in a much more "realistic" sense and Dawn of War too bringing it to the Warhammer universe
@Henskelion
@Henskelion 3 жыл бұрын
16:04 This isn't actually true as far as the singleplayer TD AI goes. TD's singleplayer AI cheats, and it cheats hard. It's effectively given infinite resources, since a single harvester depositing Tiberium (no matter how little) will always max out the AI's cash reserves. The AI can also rebuild its lost structures regardless of whether or not they're adjacent to an existing structure, which in later missions often results in enemy gun turrets that dot the map simply being replaced every time they are destroyed, despite being isolated. The final mission goes so far with its AI cheating, that the AI can actually rebuild its lost Construction Yards, without having to build and deploy an MCV first, and the final GDI mission (in each variant) will also have the AI building a small base with an Obelisk near your base, without having any existing structures there to be adjacent to first. Then there's the way the singleplayer AI handles superweapons. Nod AI can use the nuclear strike an infinite number of times, whereas the player is limited to a single nuke. The airstrike can actually change targets mid-flight, something that the player can't actually do. Fortunately, as much as the singleplayer AI cheats, it's also pretty dumb. Due to the primitive pathfinding it has that you mentioned, you can actually completely break its ability to do anything by just building sandbag walls and blocking off access to your base, causing attacking enemy units to just gather at the sandbags' edge and wait there until a new path either opens up or they are killed. The AI also uses a simple priority list for its superweapon attacks, so an ion cannon strike will always target an Obelisk first, with a SAM Site being its second priority, followed by a gun turret, followed by a Refinery, etc. This is very exploitable for GDI players, since the Nod AI will always make the northeastern-most Advanced Guard Tower you have its target for the nuke. This priority list also leads to some annoyances, like GDI airstrikes always making your Commando their number one target (hence why your Commando is always inevitably killed on Nod missions 9, 11 and 13c) Also, while not AI-related strictly speaking, there's an odd rule in Tiberian Dawn where capturing enemy silos full of resources will stop giving the capturing player resources after enough attempts (I think 5 is the number), regardless of how much Tiberium the enemy has in reserves. I think this was done to make it overly-exploitable by the player, since some SP missions in TD feature enemy easily-capturable silos isolated from their main base.
@AIandGames
@AIandGames 3 жыл бұрын
Indeed. As mentioned at 15:45, the campaign AI does not behave the same way. Parameters for campaign missions are read from config file that disable parts of the codebase used in skirmish.
@MrInvinciblewarrior
@MrInvinciblewarrior 3 жыл бұрын
Westwood just didnt got the ai working for cnc1, so they just decided to use certain scripts and tell the ai where the building is. With red alert they finally got it working. Petroglyph could have activated the ai in the remaster, but then it would havent been anymore cnc 1. So they kept it. But they currently discuss about allowing mods to activate it.
@DanIel-fl1vc
@DanIel-fl1vc 3 жыл бұрын
You explained so well path finding, I always thought it was really complex. Turns out it's just some if statements, what would be interesting to know is how the units detect the edge of an object that is in the way. Is the map divided into a bunch of squares and the squares are either a block or available space? And then there's a function that looks how many squares away the unit is from its target or is the game in 3d and each sprite has some 3d collider around it?
@mathewkloepfer664
@mathewkloepfer664 3 жыл бұрын
Path-finding _can_ be very complex. I'd recommend starting with the A* algorithm as he mentioned in the video. Conceptually it's pretty easy, but you can still make it nonperformant on accident. Typically all maps are divided into squares or hexes or whatever the terrain is divided into (Civ vs Advance Wars). When I created a hex-based game I allowed the terrain to know if it was occupied or not. This helped the pathfinding algorithm sort itself out quicker. As far as I'm aware, most RTS games were 2D until the mid 2000's. RA2 was also still 2D I believe, surprisingly.
@DanIel-fl1vc
@DanIel-fl1vc 3 жыл бұрын
@@mathewkloepfer664 So if the map is divided into squares or hexes, or coordinates. I guess the "algorithm" detects what coordinate you clicked on then compares it to the square the unit is in and compares the two coordinates and determines the fastest route from the first point to the other. Then when the unit moves following this route and runs into a tile that is "occupied" the function runs again and redirects the target around the obstacle. Or maybe all of this is done before the unit even starts moving and the path is stored somewhere and the unit just follows it.
@krisfrederick5001
@krisfrederick5001 3 жыл бұрын
There's a title you can't pass up. Too bad the brutal AI in Red Alert 2 only had 3 attacks. But seriously, this was great and really interesting. Brought me back to basic programming in High School. Except I was making Christmas trees not battlegrounds. I maintain the belief the ore miners' path finding in Red Alert are designed to be painful.
@vicpariah3444
@vicpariah3444 3 жыл бұрын
Correct me if I'm wrong... but if it is C++ it will not take long before hacks and exploits are running rampant. Even with Steam integration. Counterstrike (also in C++) is a prime example of this. However, modding kinda saves it I guess?
@6006133
@6006133 3 жыл бұрын
Hah, the bullet dog is like an Aeon mercy from Supreme Commander
@DaussPlays
@DaussPlays 3 жыл бұрын
Something I was hoping you'd touch on but did not would have been the advanced tactics of individual units being commanded by the AI. I've noticed that seemingly certain thresholds must be met before the AI will do things like direct tanks to crush infantry, but I'm not sure what those would be. Is it tied to game difficulty? Is there some kind of AI 'IQ' requirement that must be passed first?
@cameronmiller6240
@cameronmiller6240 3 жыл бұрын
Dauss Plays I believe it is tied to game difficulty.
@jesternario
@jesternario 2 жыл бұрын
So, can you show us how Dune II works so we can compare between these two? Maybe even show us Dune 2000 for comparison.
@longegg7130
@longegg7130 3 жыл бұрын
Do one for generals and 0 hour. both of these games still have an active online community with fan run servers.
@popeofpain6904
@popeofpain6904 3 жыл бұрын
Generals Source code has left the chat
@karlstenator
@karlstenator 3 жыл бұрын
Not sure if I missed it, but what code is behind tiberium, such as soldier injury and spread rate? And I've also seen trees form into puffers too...
@ExtremeTeddy
@ExtremeTeddy 3 жыл бұрын
great article, loved the series. too bad they burned everything with C&C 4 😭
@hdezn26
@hdezn26 3 жыл бұрын
There is NO such thing as C&C 4! That thing they call a "game" is a load of $h!t...
@ew3612
@ew3612 3 жыл бұрын
Im still waiting for the release of C&C4. I remember EA was working on it and then the whole project was scrapped along with any future developments minus the remasters.
@CoffeePotato
@CoffeePotato 3 жыл бұрын
So Technically half the Ogre Battle series was an RTS, any chance of a dive into that series' different AIs?
@lcmiracle
@lcmiracle 3 жыл бұрын
while yeah... when you make the turns go really fast it will look and feel like real time.
@CoffeePotato
@CoffeePotato 3 жыл бұрын
@@lcmiracle I've been running MOTBQ like that lately, it's fun.
@cyberdemon9306
@cyberdemon9306 3 жыл бұрын
25:08 same thing applies to Ukraine and USSR, Ukraine was part of USSR but for some reason they're separate factions in this game..
@Ky0l
@Ky0l 3 жыл бұрын
The AI has limitless resources in the last few missions. It's undeniable.
@Baron_Harkonnen
@Baron_Harkonnen 3 жыл бұрын
I wish the AI acted as smart as he made it sound
@SilverKnightPCs
@SilverKnightPCs 3 жыл бұрын
All that chat of AI and no mention of the sandbag trick and why it works in Tib Dawn?
@jesternario
@jesternario 3 жыл бұрын
The AI of Dune two was dumber than a sack of potatoes. You could take a mobile construction yard and plant it behind enemy lines, and the AI would never clue in as to why you keep smacking them from behind while they assault you’re unused crater of a main base.
@CidSilverWing
@CidSilverWing 3 жыл бұрын
In the original C&C, the AI ignores walls. Sandbag their base and they're trapped forever. They also get PISSED when you so much as sneeze at their harvester. Poke it with a rocket, see all their units come flying out, trash'em, their base is exposed.
@jesternario
@jesternario 3 жыл бұрын
@@CidSilverWing still more advanced than DUNE II, but then again, the company made both games, with DUNE III coming out first.
@AnthroTsuneon
@AnthroTsuneon 3 жыл бұрын
So, riddle me this, Factman. Why does the AI in Tiberian Dawn not recognize the existence of sandbag, not bothering to attack them to break through?
@youmukonpaku3168
@youmukonpaku3168 3 жыл бұрын
The pathfinder in Tiberian Dawn doesn't have the interrupt movement to attack or crush wall bit.
@AnthroTsuneon
@AnthroTsuneon 3 жыл бұрын
@@youmukonpaku3168 For some reason I had thought they did for regular walls
@cherrydragon3120
@cherrydragon3120 3 жыл бұрын
I mean... long story short. most of the A.I is based on the same ai age of empires uses. Wich pretty much looks for open space to dump buildings and makes sure certain buildings are only allowed so many times within several cells from one another. For example: no 2 barrackses are allowed to exist within 5 cells of each other. Things like that. Also, attacking is a set pathing from their base to yours. With a soft A.I that allows to track enemy buildinga and units, thats how they find your troops.
@t26e44
@t26e44 3 жыл бұрын
I would love to be able to play red alert 2 remaster and actually Lorena how to play properly because all I did was spam tanks and rush the enemy AI
@Der_Arathok
@Der_Arathok 3 жыл бұрын
What about House Ordos? :O
@krisfrederick5001
@krisfrederick5001 3 жыл бұрын
24:15 SkyNet
@jesternario
@jesternario 3 жыл бұрын
I have Red Alert. I managed to get it working on a modern PC once. Once :/
How AlphaStar Became a StarCraft Grandmaster | AI and Games #48
19:26
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 151 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН
The AI of Shogun: Total War | AI and Games #21
15:59
AI and Games
Рет қаралды 31 М.
How to Create AI for Strategy Games
57:53
Game Dev Chats
Рет қаралды 30 М.
Who Killed Command and Conquer?!?
43:03
Charlatan Wonder
Рет қаралды 938 М.
Sandbox Assassin: The AI of Hitman (2016) | AI and Games #45
32:30
AI and Games
Рет қаралды 137 М.
AI Learns Insane Monopoly Strategies
11:30
b2studios
Рет қаралды 10 МЛН
Why No Black People in Video Games??
21:28
Captain Astronaut
Рет қаралды 1,2 МЛН
How A Navigation Mesh Works in 3D Games | AI 101
16:14
AI and Games
Рет қаралды 62 М.
Behind The Systemic AI of Far Cry | AI and Games #16
11:21
AI and Games
Рет қаралды 81 М.
МАЙНКРАФТ НО МЫ ИГРАЕМ В БУТЫЛОЧКУ!
23:34