Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

merge: money transfer and turbo mode into the personality work

Olcay Seygan1fd3646583ac
diff --cc CHANGELOG.md
index 32a7003f3,17e38585b..da59e63e6
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -8,28 -8,14 +8,36 @@@ found and fixed — EA's own, not
---
+## Computer players have personalities
+
+- Every computer seat in the skirmish, LAN and online lobbies has a new Personality box beside its team. It says how that player plays, and the difficulty still says how well, so a Hard Turtle and an Easy Turtle play the same way at different strengths.
+- Normal is the computer player you know, unchanged. The others:
+ - **Attacker** goes out early and often with smaller waves and spends everything it earns.
+ - **Turtle** finds the narrow stretch of each road into its base and packs its defences there so they cover each other, rather than ringing its command centre. China mines the guns on that line, GLA lays demo traps in front of it and America leans on Fire Bases. It holds its army back for a few big late waves and pulls out of fights it is losing.
+ - **Economist** puts income and upgrades first and keeps a fatter bank before it spends on the army.
+ - **Air Force** puts up several airfields early and fights mostly from the air, switching aircraft rather than giving up when it meets heavy anti-air. GLA has no airfield, so a GLA Air Force fields rockets instead: Quad Cannons, Rocket Buggies, Scud Launchers and an early Scud Storm.
+ - **Rusher** throws everything into one attack in the first four minutes, then keeps pressing.
+ - **Raider** sends its fastest vehicles after supply trucks, workers and depots the enemy has left unguarded.
+ - **Tech** goes for its tech, general powers and superweapon, and defends until they stand.
+ - **Infantry** fields a crowd of foot soldiers from two to four barracks, cheap ones mixed with whatever beats the army it has seen, and fills buildings with them.
+ - **Armor** builds tanks from several war factories and comes at you in big slow waves.
+ - **Sneaky** prefers stealth units and comes in by the back door or the flank.
+ - **Opportunist** goes for the weakest enemy, and for whoever is already busy fighting someone else.
+ - **Supporter** attacks what its ally attacks and sends its army home to its ally when the ally's base is hit.
+ - **Counter** studies what you field and builds the answer to it.
+ - **Random** picks one of the above when the match starts and does not tell you which.
+- A personality is a preference, never a bonus: no personality gets extra money, faster building or tougher units.
+- Computer players with a personality now and then say something in chat, in their own voice, at most once every two and a half minutes. Normal ones stay quiet.
+- The choice travels with the game to every player in a LAN or online match and into the replay. Replays and saves from earlier versions load with every computer player on Normal; a save made with this version does not load in an earlier one.
+
+ ## Turbo mode instead of a speed dropdown
+
+ - Every match plays at normal speed. The skirmish lobby's game speed dropdown is gone, and with it x0.5 and x0.75.
+ - Turbo mode is the one choice left: a box in the skirmish, LAN and online lobbies, off unless you tick it, that plays the match twice as fast. It is the old "skirmish at 60 fps". The original game moved the battle one 1/30 s step per frame, so a skirmish run at 60 fps played at double speed. Since the battle moved to 60 steps a second, normal play already runs at 60, and Turbo gives back that double speed: two seconds of battle in every second. The battle itself is the same one, step for step, only more of its steps run each second; the screen still draws as often as it did.
+ - In a network game the host ticks the box and every machine in the room plays at that speed, so nobody falls out of step. A recorded stats game online plays at normal speed. A replay plays back at the speed its match had, and its speed buttons still work from there.
+ - Campaign and Generals' Challenge missions have the box in Options, under Interface: Turbo Mode in Missions. Ticked in the middle of a mission, it speeds that mission up at once.
+ - A skirmish lobby or a saved game left on x0.5 or x0.75 comes back at normal speed. A map script can no longer change how fast a match runs, and the speed console command picks between normal and turbo.
+
## Every campaign mission is open
- Picking USA, GLA or China now opens a list of that campaign's missions, every one of them open. Pick a mission, then the difficulty, and it starts with its briefing and movie as it always did; win it and the campaign carries on to the next one. Every campaign mission starts at the same rank however you reach it, so starting at the fourth is the same game as playing through to it.
diff --cc GeneralsMD/Code/Data/Patch.str
index f50c53f3b,f5188caa0..187ec77b1
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@@ -1636,281 -1656,34 +1656,313 @@@ GUI:HotkeysCommandSIGNAL_ATTENTIO
"Signal: look here"
END
+// Computer player personalities, picked per seat in the lobby (AIPersonality)
+GUI:AIPersonaNormal
+"Normal"
+END
+
+GUI:AIPersonaAttacker
+"Attacker"
+END
+
+GUI:AIPersonaTurtle
+"Turtle"
+END
+
+GUI:AIPersonaEconomist
+"Economist"
+END
+
+GUI:AIPersonaAir
+"Air Force"
+END
+
+GUI:AIPersonaRusher
+"Rusher"
+END
+
+GUI:AIPersonaRaider
+"Raider"
+END
+
+GUI:AIPersonaTech
+"Tech"
+END
+
+GUI:AIPersonaInfantry
+"Infantry"
+END
+
+GUI:AIPersonaArmor
+"Armor"
+END
+
+GUI:AIPersonaSneaky
+"Sneaky"
+END
+
+GUI:AIPersonaOpportunist
+"Opportunist"
+END
+
+GUI:AIPersonaSupporter
+"Supporter"
+END
+
+GUI:AIPersonaCounter
+"Counter"
+END
+
+GUI:AIPersonaRandom
+"Random"
+END
+
+GUI:AIPersonaTooltip
+"How this computer player plays, whatever its difficulty"
+END
+
+GUI:AIPersona
+"Personality"
+END
+
+// What a computer player with a personality says in chat: when a wave leaves (two lines), when its
+// base is hit, and when an enemy is wiped out (AIPlayer::personaChat)
+GUI:AIChatAttackerWave1
+"Here we come. Again."
+END
+
+GUI:AIChatAttackerWave2
+"No rest for you today."
+END
+
+GUI:AIChatAttackerHit1
+"Hitting me back? Cute."
+END
+
+GUI:AIChatAttackerWin1
+"Next!"
+END
+
+GUI:AIChatTurtleWave1
+"The walls are done. Now we march."
+END
+
+GUI:AIChatTurtleWave2
+"Slow and steady, coming your way."
+END
+
+GUI:AIChatTurtleHit1
+"Knock all you like. Nobody is home to you."
+END
+
+GUI:AIChatTurtleWin1
+"Patience wins."
+END
+
+GUI:AIChatEconomistWave1
+"Consider this an investment."
+END
+
+GUI:AIChatEconomistWave2
+"Paid for in full. Delivering now."
+END
+
+GUI:AIChatEconomistHit1
+"Do you know what that building cost?"
+END
+
+GUI:AIChatEconomistWin1
+"Bankrupt. Closing the account."
+END
+
+GUI:AIChatAirWave1
+"Look up."
+END
+
+GUI:AIChatAirWave2
+"Wheels up, weapons hot."
+END
+
+GUI:AIChatAirHit1
+"Ground troops. How quaint."
+END
+
+GUI:AIChatAirWin1
+"Air superiority confirmed."
+END
+
+GUI:AIChatRusherWave1
+"Everything I have, right now!"
+END
+
+GUI:AIChatRusherWave2
+"Faster, faster!"
+END
+
+GUI:AIChatRusherHit1
+"You were supposed to be dead by now."
+END
+
+GUI:AIChatRusherWin1
+"Too slow."
+END
+
+GUI:AIChatRaiderWave1
+"Your trucks look lonely."
+END
+
+GUI:AIChatRaiderWave2
+"Hit and gone."
+END
+
+GUI:AIChatRaiderHit1
+"So you found the way to my base too."
+END
+
+GUI:AIChatRaiderWin1
+"No supplies, no army."
+END
+
+GUI:AIChatTechWave1
+"Field test, live targets."
+END
+
+GUI:AIChatTechWave2
+"The prototypes are ready."
+END
+
+GUI:AIChatTechHit1
+"Mind the lab, that equipment is expensive."
+END
+
+GUI:AIChatTechWin1
+"Experiment concluded."
+END
+
+GUI:AIChatInfantryWave1
+"Boots on the ground!"
+END
+
+GUI:AIChatInfantryWave2
+"Every street, every window."
+END
+
+GUI:AIChatInfantryHit1
+"Into the buildings, hold the line!"
+END
+
+GUI:AIChatInfantryWin1
+"The city is ours."
+END
+
+GUI:AIChatArmorWave1
+"Steel is rolling."
+END
+
+GUI:AIChatArmorWave2
+"Hear the tracks? That is us."
+END
+
+GUI:AIChatArmorHit1
+"You scratched the paint."
+END
+
+GUI:AIChatArmorWin1
+"Flattened."
+END
+
+GUI:AIChatSneakyWave1
+"You did not see this coming."
+END
+
+GUI:AIChatSneakyWave2
+"Check behind you."
+END
+
+GUI:AIChatSneakyHit1
+"Found me? Lucky guess."
+END
+
+GUI:AIChatSneakyWin1
+"Gone without a trace."
+END
+
+GUI:AIChatOpportunistWave1
+"You look busy. Good."
+END
+
+GUI:AIChatOpportunistWave2
+"Weak spot found."
+END
+
+GUI:AIChatOpportunistHit1
+"Picking on me? Bad pick."
+END
+
+GUI:AIChatOpportunistWin1
+"Thanks for softening that one up."
+END
+
+GUI:AIChatSupporterWave1
+"Right behind you, partner."
+END
+
+GUI:AIChatSupporterWave2
+"Your target is my target."
+END
+
+GUI:AIChatSupporterHit1
+"Cover me, I am taking fire!"
+END
+
+GUI:AIChatSupporterWin1
+"Good teamwork."
+END
+
+GUI:AIChatCounterWave1
+"I have read your army. This is the answer."
+END
+
+GUI:AIChatCounterWave2
+"Built for you, specially."
+END
+
+GUI:AIChatCounterHit1
+"Predictable."
+END
+
+GUI:AIChatCounterWin1
+"Countered."
+END
++
+ GUI:MoneyTransferTitle
+ "Send money"
+ END
+
+ GUI:MoneyTransferSend
+ "Send"
+ END
+
+ GUI:MoneyTransferAmount
+ "$%d"
+ END
+
+ GUI:MoneyTransferMinus
+ "-"
+ END
+
+ GUI:MoneyTransferPlus
+ "+"
+ END
+
+ GUI:MoneyTransferSent
+ "You sent $%d to %ls."
+ END
+
+ GUI:MoneyTransferReceived
+ "%ls sent you $%d."
+ END
+
+ TOOLTIP:MoneyTransfer
+ "Scroll or click - and + to pick the amount: 100 a step, 1,000 with Ctrl, 10,000 with Shift, 100,000 with both. Send hands it over."
+ END
diff --cc GeneralsMD/Code/Data/Turkish/Generals.str
index 474feadd7,dff65eb40..a1fb297bb
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@@ -16033,281 -16053,26 +16053,305 @@@ GUI:HotkeysCommandSIGNAL_ATTENTIO
"İşaret: buraya bak"
END
+// Bilgisayar oyuncusu kişilikleri, lobide koltuk başına seçilir (AIPersonality)
+GUI:AIPersonaNormal
+"Normal"
+END
+
+GUI:AIPersonaAttacker
+"Saldırgan"
+END
+
+GUI:AIPersonaTurtle
+"Kaplumbağa"
+END
+
+GUI:AIPersonaEconomist
+"Ekonomist"
+END
+
+GUI:AIPersonaAir
+"Hava Kuvvetleri"
+END
+
+GUI:AIPersonaRusher
+"Baskıncı"
+END
+
+GUI:AIPersonaRaider
+"Akıncı"
+END
+
+GUI:AIPersonaTech
+"Teknoloji"
+END
+
+GUI:AIPersonaInfantry
+"Piyade"
+END
+
+GUI:AIPersonaArmor
+"Zırhlı"
+END
+
+GUI:AIPersonaSneaky
+"Sinsi"
+END
+
+GUI:AIPersonaOpportunist
+"Fırsatçı"
+END
+
+GUI:AIPersonaSupporter
+"Destekçi"
+END
+
+GUI:AIPersonaCounter
+"Karşı Hamle"
+END
+
+GUI:AIPersonaRandom
+"Rastgele"
+END
+
+GUI:AIPersonaTooltip
+"Zorluğu ne olursa olsun bu bilgisayar oyuncusunun nasıl oynadığı"
+END
+
+GUI:AIPersona
+"Kişilik"
+END
+
+// Kişilikli bir bilgisayar oyuncusunun sohbete yazdıkları: bir dalga çıkarken (iki satır), üssü
+// vurulunca ve bir düşman silinince (AIPlayer::personaChat)
+GUI:AIChatAttackerWave1
+"Geliyoruz. Yine."
+END
+
+GUI:AIChatAttackerWave2
+"Bugün sana dinlenmek yok."
+END
+
+GUI:AIChatAttackerHit1
+"Karşılık mı veriyorsun? Ne tatlı."
+END
+
+GUI:AIChatAttackerWin1
+"Sıradaki!"
+END
+
+GUI:AIChatTurtleWave1
+"Surlar bitti. Şimdi yürüyoruz."
+END
+
+GUI:AIChatTurtleWave2
+"Yavaş ama emin adımlarla geliyoruz."
+END
+
+GUI:AIChatTurtleHit1
+"Kapıyı istediğin kadar çal, açan olmaz."
+END
+
+GUI:AIChatTurtleWin1
+"Sabreden kazanır."
+END
+
+GUI:AIChatEconomistWave1
+"Bunu bir yatırım say."
+END
+
+GUI:AIChatEconomistWave2
+"Parası peşin ödendi, teslimat geliyor."
+END
+
+GUI:AIChatEconomistHit1
+"O binanın kaça mal olduğunu biliyor musun?"
+END
+
+GUI:AIChatEconomistWin1
+"İflas. Hesap kapatıldı."
+END
+
+GUI:AIChatAirWave1
+"Yukarı bak."
+END
+
+GUI:AIChatAirWave2
+"Tekerlekler yerden kesildi, silahlar hazır."
+END
+
+GUI:AIChatAirHit1
+"Kara birlikleri mi? Ne kadar eski moda."
+END
+
+GUI:AIChatAirWin1
+"Hava hakimiyeti bizde."
+END
+
+GUI:AIChatRusherWave1
+"Neyim varsa, hemen şimdi!"
+END
+
+GUI:AIChatRusherWave2
+"Daha hızlı, daha hızlı!"
+END
+
+GUI:AIChatRusherHit1
+"Sen şimdiye kadar çoktan bitmiş olmalıydın."
+END
+
+GUI:AIChatRusherWin1
+"Çok yavaştın."
+END
+
+GUI:AIChatRaiderWave1
+"Kamyonların pek yalnız görünüyor."
+END
+
+GUI:AIChatRaiderWave2
+"Vur ve kaybol."
+END
+
+GUI:AIChatRaiderHit1
+"Demek sen de benim üssümün yolunu buldun."
+END
+
+GUI:AIChatRaiderWin1
+"Erzak yoksa ordu da yok."
+END
+
+GUI:AIChatTechWave1
+"Saha testi, gerçek hedeflerle."
+END
+
+GUI:AIChatTechWave2
+"Prototipler hazır."
+END
+
+GUI:AIChatTechHit1
+"Laboratuvara dikkat, o cihazlar pahalı."
+END
+
+GUI:AIChatTechWin1
+"Deney tamamlandı."
+END
+
+GUI:AIChatInfantryWave1
+"Piyade sahada!"
+END
+
+GUI:AIChatInfantryWave2
+"Her sokak, her pencere."
+END
+
+GUI:AIChatInfantryHit1
+"Binalara girin, hattı tutun!"
+END
+
+GUI:AIChatInfantryWin1
+"Şehir artık bizim."
+END
+
+GUI:AIChatArmorWave1
+"Çelik yürüyor."
+END
+
+GUI:AIChatArmorWave2
+"Paletleri duyuyor musun? Biziz."
+END
+
+GUI:AIChatArmorHit1
+"Boyamı çizdin."
+END
+
+GUI:AIChatArmorWin1
+"Ezildi."
+END
+
+GUI:AIChatSneakyWave1
+"Bunun geldiğini görmedin."
+END
+
+GUI:AIChatSneakyWave2
+"Arkana bak."
+END
+
+GUI:AIChatSneakyHit1
+"Beni buldun mu? Şans eseri."
+END
+
+GUI:AIChatSneakyWin1
+"İz bile kalmadı."
+END
+
+GUI:AIChatOpportunistWave1
+"Meşgul görünüyorsun. Güzel."
+END
+
+GUI:AIChatOpportunistWave2
+"Zayıf nokta bulundu."
+END
+
+GUI:AIChatOpportunistHit1
+"Bana mı sataşıyorsun? Yanlış seçim."
+END
+
+GUI:AIChatOpportunistWin1
+"Onu benim için yumuşattığın için sağ ol."
+END
+
+GUI:AIChatSupporterWave1
+"Hemen arkandayım, ortak."
+END
+
+GUI:AIChatSupporterWave2
+"Senin hedefin benim hedefim."
+END
+
+GUI:AIChatSupporterHit1
+"Koru beni, ateş altındayım!"
+END
+
+GUI:AIChatSupporterWin1
+"Güzel takım işi."
+END
+
+GUI:AIChatCounterWave1
+"Ordunu okudum. Cevabı bu."
+END
+
+GUI:AIChatCounterWave2
+"Özellikle senin için yapıldı."
+END
+
+GUI:AIChatCounterHit1
+"Tahmin edilebilir."
+END
+
+GUI:AIChatCounterWin1
+"Karşılık verildi."
+END
++
+ GUI:MoneyTransferTitle
+ "Para gönder"
+ END
+
+ GUI:MoneyTransferSend
+ "Gönder"
+ END
+
+ GUI:MoneyTransferAmount
+ "$%d"
+ END
+
+ GUI:MoneyTransferSent
+ "Gönderdiğin $%d, %ls oyuncusuna ulaştı."
+ END
+
+ GUI:MoneyTransferReceived
+ "%ls sana $%d gönderdi."
+ END
+
+ TOOLTIP:MoneyTransfer
+ "Miktarı tekerlekle ya da - ve + ile seç: adım 100, Ctrl ile 1.000, Shift ile 10.000, ikisiyle 100.000. Gönder parayı oyuncuya verir."
+ END