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: turkiye faction on the american tree

Olcay Seygan2d9187f3f948
diff --cc CHANGELOG.md
index cadb83354,b4023533e..4faeee865
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -8,129 -8,21 +8,144 @@@ found and fixed — EA's own, not
---
+## A rank ladder for every army
+
+- Three chevrons are now a whole army's ladder. An American unit climbs 28 promotions from E-1 Private to General of the Army, a Chinese one 19 from Private to General, a GLA one 20 from Recruit to Supreme Liberator. Every unit starts unranked with a bare health bar and no bonus; from the first promotion on, each grade wears its own insignia beside the health bar and floats it up over the unit's head the moment it is earned. Hover the portrait for the rank's name and how far the next one is: "Next rank 340/420 XP".
+- The climb is long. The first promotion is one kill of a unit like your own, every step after costs a fixed share more, and the top is 120 such kills on every side: 12,000 experience for a Crusader. One kill lifts a unit one grade at most, so a Ranger who kills a tank early gets two grades out of it, not five. Six kills used to make a tank Heroic; now they make it an American Corporal, a Chinese Staff Sergeant or a GLA Hardened Raider.
+- Every grade makes a unit a little better, on one curve for all three armies: rate of fire times damage times health is 1.13 times a regular's after the first kill, about 1.25 at Veteran, 1.6 at Elite, 2 at Heroic and 2.4 at the very top, where EA's Heroic gave 3.1 after six kills. Each army takes it its own way: America in rate of fire, health and up to 7% more range, China in health and a 10% faster horde, GLA in rate of fire, up to 14% more speed and up to 2% of its health mended a second once it has gone five seconds unhurt.
+- Veteran, Elite and Heroic still exist and still bring their weapons, voices and upgrades: America turns Veteran at Corporal, Elite at Warrant Officer and Heroic at Lieutenant Colonel; China at Sergeant, Second Lieutenant and Colonel; GLA at Raider, Raid Captain and Warlord. Red Guard Training and the other trainings, a pilot climbing into a vehicle, map-placed veterans and the Heroic cheat land on those ranks. A veterancy crate is worth three grades, never past Heroic, since one EA level is up to 42 kills on this ladder.
+- Burton, Black Lotus and Jarmen Kell climb like everyone else but wear high rank from the start: Burton is a Colonel on his first day and a General of the Army at the top, Lotus goes from Colonel to General, Kell from Warlord to Supreme Liberator.
+- Every general's army takes its side's ladder; civilians and other armies keep EA's three ranks. Replays recorded before this change play out differently.
+
+## A new loading screen
+
+- Skirmish, LAN, online and replay loads show every player on a card: the general's portrait, or the side's crest for a plain side, the name in the player's colour, the army, and for a computer seat its difficulty and personality. Teams face each other in two columns with the map between them, its start spots drawn as the room draws them: the blue ring, filled with the player's colour and his seat number where the others may see who starts there. Three teams or more share the columns, and a game where everyone plays alone says Free for all.
+- In a LAN or online game each player's card carries his own load bar, so you see who the match is waiting for. Seven or six to a side, as in a 7v1 or a 6v2, the cards close up and the bar slides in under the army with its percentage beside the name, so name, army and bar never run into each other, at 720p either. A name too long for its card ends in an ellipsis.
+- The map's name, the kind of game, the team sizes and the starting cash head the screen. Along the bottom a tip changes every eight seconds over the load's bar and percentage.
+- Enemies who picked a random side, colour or start stay hidden as they were in the lobby. Observers and replays see every side as it is.
+- A campaign mission keeps its own picture and briefing movie. Once the movie ends, the mission number, campaign and difficulty sit above it and the same tip and bar sit below it. Generals' Challenge is unchanged.
+- It is the lobby it came from: the same see-through panel in the same blue ruler frame over the menu's battle picture, the map's name in capitals where the lobby says SKIRMISH, cards framed like the lobby's seat rows, the map preview in a button's blue edge, and the load bar a wide button along the bottom that fills as the game loads. A mission's header and foot are strips of the same panel over its own picture.
+
+## A summary and graphs on the score screen
+
+- The old score table with its rows of icons and the Tactical Analysis box is gone. Every score screen, skirmish, LAN, online, replay and campaign mission alike, opens on its Summary page: a large row per player with its side, units built, lost and destroyed, buildings built, lost and destroyed, and money earned. The winners carry a gold Winner tag, and the best number in each column is gold too, the fewest where fewer is better. In a campaign mission your enemies share one row per side, as they did in the old table. Generals' Challenge keeps the general's portrait and verdict it always had.
+- The tabs beside Summary give a chart the whole screen, one line per player over the whole match: money earned, army size or buildings standing, with each player's colour named along the top. Army size counts infantry, vehicles and aircraft; workers and supply trucks are left out.
+- A single row of small pictures above the chart marks superweapons built and fired, general's powers and promotions, framed in the player's colour. Moments that fall close together share one picture with a count on it. Hover over it for the list, each line with its time, and a faint line down to where each one falls on the chart.
+- The Build order tab puts the first of each structure and unit each player made on a timeline whose first five minutes take over half the width, so an opening reads at a glance. Show every build adds the rest; hover over a picture for its name and time. With the whole page to itself a 4v4 keeps two strips of pictures per player, even at 1280x720.
+- The map's name heads the page in capitals, where the lobby puts its title, and a campaign mission's page is headed with the mission's name or number rather than the map file's. The pages sit in boxed tabs like the options screen's, and the open one is lettered green. Save Replay, Exit, Continue and Play Again stand in the lobby's button row inside the panel, and after a network game the chat sits just above them. Dark blue and purple player names are lifted so they stay readable on the panel.
+- The game records all of this as the match plays, a sample every five seconds, and it changes nothing in the match itself. A game loaded from a save only graphs what happened after the load.
+
+## 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.
+- Computer allies with a personality answer their team. When an ally's base is hit, an Air Force strikes the attacker, a Supporter comes home to defend, an Attacker or Rusher hits back at the attacker's base and a Tech turns its powers on him. An Economist sends money to an ally who runs dry.
+- Allied computer players join the attack a teammate has started, so a team hits one enemy together.
+- You can call them too. A beacon you place asks your computer allies to attack there, and typing `help`, `attack` or `money` in chat (`yardim`, `saldir`, `para` in Turkish) asks for help where you are looking, an attack there, or cash.
+- 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.
+- In a turbo match the corner readout says TURBO 60hz with the frame rate beside it, where it said 120hz. The battle still steps 60 times for every second of battle; turbo fits two of those seconds into each real one, and 120hz read as if the step itself had changed.
+
+## A lobby built for your screen
+
+- The skirmish, LAN and online rooms are laid out again from scratch, the same way in all three. Each seat is one row: a bar in that player's colour, the player or the computer's level with its personality beside it, the army, the colour and the team, with the colour swatches framed and sized like the check boxes under the map. In LAN and online games a player who is ready turns his whole row green and the host's row wears a gold edge, so you see who you are waiting for without hunting for a little light.
+- Teams have colours of their own: white, black, brown and teal for teams 1 to 4, none of them a colour a player can pick, and four different greys even to an eye that sees no colour at all. A swatch beside the team box shows it, and on the map preview a taken start spot keeps its blue ring and its dark middle turns its team's colour, or the player's when he has no team, so you see who starts beside whom before the match. The colour runs right up to the ring and takes the soft inner edge EA painted for the black, instead of a smaller disc with a black gap round it. The seat's number stays on it, in black or white, whichever reads better on that colour.
+- The map preview is square at last, 410 pixels a side in the skirmish room at 1080p where it was a 422 by 266 oblong of a square map, and the match rules sit under it the whole time. The Info, Chat and Lobby Settings tabs are gone: the match rules never hide behind a click. In the skirmish room the seats get the whole height and your medals and career record open from the Record button beside Back, over the room dimmed behind them; Escape, Close or a click beside them puts them away. The network rooms keep their chat under the seats.
+- The rooms used to be a 4:3 screen pulled out to fit a wide monitor, so every emblem, start spot and the map itself came out a third wider than tall. They are drawn for 16:9 now and keep their shape on any screen: exact at 1080p, twice that at 4K, and centred between bands on a 4:3 or 16:10 monitor instead of squashed.
+- The personality list opens eight lines tall with a scroll bar. Opened from a lower seat, its sixteen lines used to run off the bottom of the screen.
+- The personality column lost its heading. A computer's row shows its level and its personality side by side; a player's row, and an open or closed seat, gives the name box the personality's room as well, so long names fit and no empty gap sits in the middle of the row.
+- The record and the map list stay on top of the seats. Once you had picked an army, colour or team, those boxes drew over the open record; and the seat rows, their colour boxes and the personality list showed through the map list. The whole seat table now steps aside while the map list is open, in the skirmish, LAN and online rooms alike, and comes back as it was. The record's Close button closes it; it did nothing before.
+- Select Map swaps the seat table for the map list instead of laying a small 4:3 window across the room. The list fills the seat table's whole panel under Official and Unofficial tabs in the room's own blue-framed style; its preview stands exactly where the room's map stands, and Accept and Cancel take the row of the map's name and Select Map. The map column and the match rules beside it keep their size and place.
+- The map list shows every map in your Maps folder. EA's list stopped at 100 maps in a LAN or online room and 300 in skirmish, and since it fills two-player maps first, a folder of a couple of thousand downloaded maps never got as far as the six- and eight-player ones in a network game. It holds 4096 now.
+- The colour and team swatches sit in the middle of their boxes, with the same dark border on all four sides. The colour used to sit two pixels low, over the box's bottom edge, with a dark band along the top only.
+- The three rooms wear the same frame as the loading and score screens that follow them: the score screen's blue ruler and grid around the edge of the screen, with the panel sitting on its bright line. The LAN and online panels get the blue edge the skirmish one had, under the same blue rule; the seat rows sit on the panel's black in that blue; the colour bar is a little wider. Record and Close are in capitals like every other button, the record's heading is lettered green, and the darker names in the colour list are lifted toward white so they read on black, the way the score screen lifts them.
+- The menus no longer make you sit through their animations. A click or a key while buttons are still sliding or flashing in puts them where they were going, and the click counts: Solo Play pressed while the main menu is still coming up opens its list straight away, where it used to be ignored. A screen on its way out goes the moment you press anything, so Skirmish then a click reaches the skirmish room in about 100ms instead of half a second, and Back to the main menu in 10ms instead of 380.
+
+## 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.
+- The "Mission Start" saves the campaign makes after each victory load again, from the original game and from every earlier version of Reforged. They hold only the campaign, the mission and the difficulty, none of which the 60-step battle changed. A game saved in the middle of a mission on an earlier version still does not load, and the message that refuses it now says which saves do.
+- A mission with moving water (China's third, GLA's first, America's sixth) loads from a save with its water still running and at the height the mission had raised it to. A load used to freeze the water until the next wave came through and drop it back to the level the map started at, and saving while a script was raising it tore the game down.
+- Load the same save twice and the same battle plays out both times. The dice, the paths units were waiting for and the computer players' calls to each other are saved now, so two loads no longer drift apart within a minute. A load also stopped switching a powered player's radar off, stopped forgetting which targets a mission's computer player was told to go after, and no longer counts every unit's sight twice for the first seconds. Saves from earlier versions still load; a save from this version does not load in an earlier one.
+
+## Health bars you can read at a glance
+
+- The bars over units are a third thinner, so a big fight no longer looks like a sheet of red and green stripes over the units underneath.
+- Health a unit has lost now shows as a dark stretch at the end of its bar. It used to be bare ground, so a red bar over red ground, or any team colour over the wrong terrain, looked full when it was half gone.
+
+## Jets fly like jets
+
+- The Raptor, King Raptor, MiG, Aurora and Stealth Fighter turn the way a plane turns. The faster a jet flies, the slower it comes round, so at cruise it sweeps a wide arc and only a slow jet turns tight. It no longer slides sideways through a turn. A Raptor's half circle at cruise takes about 3.2 seconds, where it took about 1.7.
+- A jet banks into every turn and rolls through level when it swings from one turn into the opposite one, so you can read where it is going from its wings.
+- Attack runs take longer, and against a target that moves that is a real nerf. A jet cannot snap round onto a tank that drives out from under it, so it flies a wider loop to come back for another pass. In a test a Raptor's pass on a moving Overlord took about 14 seconds where it took about 4. That is the price of a plane that turns like one.
+- Takeoff has a runway in it. The jet rolls at full throttle, rotates its nose up, lifts its wheels off the tarmac and climbs out at a steady angle, where it used to hop off the end of the runway.
+- Landing has a circuit in it. The jet turns down in a descending curve onto a straight final, glides in, flares and touches down on the centreline, then rolls out and slows. It used to corkscrew down and stop dead.
+- On the ground a jet taxis on its wheels. It rounds the taxiway corners, rolls straight out of the landing into the taxi and turns into its parking spot in one smooth sweep.
+- Helicopters are untouched and fly as they did.
+
+## A plane that is shot down hits the ground hard
+
+- A shot-down jet now hits the ground with a blast: 80 damage in a small radius. A B-52, a B-3, a cargo plane, the carpet bomber or a Spectre does 160 in a wider one.
+- The wreck leaves fire burning for about 6 seconds, and the fire sets infantry alight. A big plane leaves a line of fires along the length of the wreck.
+- The blast and the fire do not pick sides. A bomber brought down over your own army hurts your own army.
+- Bombers and cargo planes no longer vanish silently when they hit the ground. A jet destroyed while it sits parked is unchanged.
+
+## A tank shell kills the man it hits
+
+- A cannon shell did 6 damage to a soldier. A Ranger has 180 health, so thirty shells that actually hit him left him standing, a full minute of fire from a Crusader, while the same shell does 60 to another tank. It now does that 60 to him as well. Three hits kill a Ranger. Two kill a Red Guard or a Rebel.
+- The gun still throws the shot wide of infantry, and the blast is small, so a shell that bursts beside a man still misses. A Gattling Tank does not throw wide, and it is still the gun that cuts a whole squad down.
+- A chemical suit still stops toxin, radiation and microwaves, and a cannon shell goes through it the same as through a bare uniform. The Infantry General's men, the Toxin Rebel, the biohazard suit and the Demolitions terrorist each had their own copy of that shrug, and a shell goes through those too. The men on a Stinger Site keep theirs: that armor belongs to the site. The Missile Defender's laser-guided missile is the same kind of round, so it does its 40 to a soldier, and he fires that one at them. An ordinary rocket still barely scratches a man.
+- A replay recorded before this change plays out differently.
+
+## The battle runs at 60 steps a second
+
+- The game now works out the battle 60 times a second, double the 30 Zero Hour has run at since 2003. Each step is 17 milliseconds where it was 33, so an order you give waits half as long for the step that carries it out, and a unit turning, braking or firing moves in steps half the size.
+- The match plays at the speed it always did. Every speed, delay, reload and build time in the game's data was converted to the shorter step, so a Crusader still fires every two seconds. The balance is the one you know.
+- Mission timers keep EA's clock. A map's countdown still ticks 30 times a second, because the missions read a running timer's number and act on it: the second American mission declares victory when its "Win" timer drops below 1700, and on the first 60-step builds that came after 38 seconds instead of 10. The cutscene cues, the random music pick in the campaigns and the generals' challenges, the shell map's camera loop and the lightning on Eastern Everglades and Rocky Rampage were off the same way, 30 maps in all, and run on their original timing again. Custom maps get the same.
+- Normal speed is 60 steps a second. Turbo mode, the one other speed a match can have, runs 120 of the same steps a second (see Turbo mode above). Replays still play as fast as you ask.
+- The battle's arithmetic now runs on a thread of its own, beside the drawing. The game used to work out a step and then draw, one after the other, so a heavy step stalled the picture. Now the screen keeps drawing while the next step is worked out, and it pays most in the late game, where the steps are heaviest. In a late 4-player match, uncapped, frames slower than 16.7 ms (one 60 Hz refresh) fell from 23% to 0.8%, the slowest one frame in a hundred fell from 24.0 to 16.5 ms live and from 16.0-16.5 to 10.6-12.5 ms in a replay, and the average frame went from 15.2 to 11.8 ms. The battle still takes 60 steps a second, no more and no fewer. Network games keep each step in step with the other machines as before and do not overlap yet. If you want the old one-after-the-other loop back, start the game with `-logicthread 0`.
+- Replays and games saved in the middle of a match from earlier versions will not load in this one. The "Mission Start" saves a campaign makes between missions do, and every campaign mission can be picked from the campaign menu. A player on an earlier version cannot join a match with a player on this version, whichever of them hosts, so a LAN party needs everyone on the same build.
+- Guns fire at their 2003 rate again. After a shot the game goes back to aiming for a step before it can fire again, which at 30 steps put a 100 millisecond Quad Cannon on a shot every 0.133 seconds; at 60 the same loop fired it every 0.100, a third faster. Shot delays and reloads are rounded to the old step and a gun's next shot is held to the old rhythm, so every weapon fires on the frames it did in 2003. A turret with no turning speed in its data rose twice as fast as it should, aircraft weighed their thrust against gravity at half strength, and a unit hit on the step before still counted as untouched for stealth. All three keep EA's timing now.
+- Mod guns shoot straight again. Shockwave Chaos and other mods give their machine guns and autocannons a shell that arcs 300 high but flies so fast that the 30-step game only ever put it at the muzzle and on the target. At 60 steps the shell stopped partway up that arc, so in Chaos a Humvee's autocannon round went 200 into the air before coming down on a tank 100 away. A shell now passes through the points it passed through in 2003 and flies straight between them, so mod rounds hit straight and the original game's shells fly the same arcs. A shell fired point blank, close enough to arrive in one step, used to fly to the corner of the map and explode there, a bug since 2003; it hits its target now.
+
+ ## Turkiye joins the fight
+
+ - Turkiye is a fourth side in the skirmish and multiplayer lobbies, with an army of its own: Mehmetcik riflemen, Sungur missile teams and Maroon Berets from the Barracks; the Altay tank, the Kirpi carrier, Korkut air defense, Firtina howitzers and Sakarya rocket launchers from the Factory; Bayraktar and Akinci drones, the Gokbey helicopter and the Kizilelma fighter from the Airfield. Every name and tooltip reads in English and in Turkish.
+ - Turkiye kills from range and cannot see for itself. The Firtina throws a shell 600 and sees 100, so it waits until a spotter team, a Cobra scout, a drone or a cheap Radar Tower finds the target, then fires on its own. Force it to shell ground nobody can see and the shots go wide, about half of them off a barracks-sized target. Extended Range and Precision Guidance at the Factory push the guns further and tighten the blind spread.
+ - Combat Engineers build the base in place of a dozer. They are infantry, so they can be shot and run over. The Barracks' Mine Kit lets them bury mines, and the Factory's Armor Pack toughens the Kirpi and the Altay.
+ - Turkiye's first rank buys its own power, a Minefield a cargo plane sows wherever you point, beside the Spy Drone and Fuel Resupply, which keeps the drones over the target longer. Rank 3 offers a loitering munition that dives on whatever it is pointed at, Electronic Blinding, which shuts every enemy radar in the area off for 30 seconds, and paratroopers. The top rank buys the Swarm Strike: ten munitions over a wide circle, each on a different target and the most expensive first, so a column of tanks loses its tanks and the riflemen walking beside them are left standing. Leaflet Drop and the Spectre gunship are still American borrowings.
+ - Two engineers on one building put it up in half the time, three in a third.
+ - The Koral electronic warfare vehicle jams everything within 400 of it. Enemy drones and spotters inside the field go nearly blind, and guided missiles fired into it lose their lock and fly wide.
+ - A Maroon Beret can take an enemy supply truck. The truck becomes yours without any money changing hands, and the Beret stays inside it for good. American harvesters are helicopters, so there is nothing to take from America.
+ - Thermal Vision at the Barracks lets the spotter team and the Cobra see out to 550 and through stealth. The Airfield sells Fuel Cells, which double how long a Bayraktar or an Akinci stays over the target, and Swarm Software, which sends each Bayraktar munition at the most expensive target in reach rather than the nearest one.
+ - Turkish units move at their own speeds. The engineer, the spotter team and the Kirpi are slow, and the Korkut keeps up with the tanks.
+ - A Turkish computer player fires its powers, the Minefield included, as soon as they are ready, and pulls its spotter teams back out of the enemy's reach while keeping the enemy in sight.
+ - The units still borrow American and other sides' models, voices and cameos.
+ - The computer plays Turkiye too. A Turkish AI puts up a full base with radar towers and air defense sites, sends supply trucks, fields the new army, artillery included, and attacks.
+
## Zero Hour on a Mac, on Linux and on the Steam Deck
- The game runs on Apple silicon Macs and on Linux, the Steam Deck included, as a program built for that machine. There is no Wine or Proton underneath. It draws through Metal on a Mac and through Vulkan on Linux, from the same Zero Hour files you already own.
diff --cc GeneralsMD/Code/BuildFingerprint.manifest
index 751bb63ab,271588a34..e0127964f
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@@ -81,20 -36,9 +81,21 @@@ Data/Cinema/lsv_burst.tx
Data/Cinema/lsv_laser.txt
Data/Cinema/lsv_spam.txt
Data/Cinema/lsv_spam2.txt
+Data/Cinema/minefx.txt
+Data/Cinema/minefx_blast.txt
+Data/Cinema/minefx_desert.txt
+Data/Cinema/minefx_player.txt
+Data/Cinema/minefx_scene.txt
+Data/Cinema/minefx_scene_enemy.txt
Data/Cinema/missileapex_film.txt
Data/Cinema/mobwatch.txt
++Data/Cinema/ngguard.txt
Data/Cinema/nohud.txt
+Data/Cinema/nukedome.txt
+Data/Cinema/nukefade.txt
+Data/Cinema/nukewarp.txt
+Data/Cinema/rankladder.txt
+Data/Cinema/rankzero.txt
Data/Cinema/rf_ai.txt
Data/Cinema/rf_ai_wave.txt
Data/Cinema/rf_beach.txt
@@@ -157,41 -84,25 +158,45 @@@ Data/Cinema/v240_hook.tx
Data/Cinema/v240_hook2.txt
Data/Cinema/v240_md.txt
Data/Cinema/v240_tank.txt
+Data/Cinema/vetranks.txt
Data/Cinema/wreckcheck.txt
Data/German/Generals.str
+ Data/INI/AIDataReforged.ini
Data/INI/BalanceReforged.ini
-Data/INI/CommandMapReforged.ini
Data/INI/CommandSetReforged.ini
+Data/INI/ControlBarProReforged.ini
Data/INI/ControlBarSchemeReforged.ini
Data/INI/FXListReforged.ini
Data/INI/FixesReforged.ini
Data/INI/MappedImages/HandCreated/ReforgedBarChinaBeacon.ini
-Data/INI/MappedImages/HandCreated/ReforgedOrders.ini
+Data/INI/MappedImages/HandCreated/ReforgedForceAttack.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudAmericaPowers.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudBlankTexture.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudChinaCommandBar.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudChinaPowers.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudControlButtons.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudDisconnectWindow.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudGlaCommandBar.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudGlaPowers.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudHelpbox.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudObsCommandBar.ini
+Data/INI/MappedImages/HandCreated/ReforgedHudObsPlayerWindow.ini
+Data/INI/MappedImages/HandCreated/ReforgedLobbySpot.ini
+Data/INI/MappedImages/HandCreated/ReforgedRankInsignia.ini
+Data/INI/MappedImages/HandCreated/ReforgedRanksChina.ini
+Data/INI/MappedImages/HandCreated/ReforgedRanksGLA.ini
+Data/INI/MappedImages/HandCreated/ReforgedRanksUSA.ini
Data/INI/ObjectCreationListReforged.ini
Data/INI/ParticleSystemReforged.ini
+ Data/INI/PlayerTemplateReforged.ini
Data/INI/ScienceReforged.ini
Data/INI/SpecialPowerReforged.ini
+ Data/INI/TurkiyeReforged.ini
+ Data/INI/TurkiyeWeaponReforged.ini
Data/INI/UpgradeReforged.ini
+Data/INI/WeaponReforged.ini
+Data/INI/WindowTransitionsReforged.ini
Data/Install_Final.bmp
Data/Patch.str
Data/Scenarios/airbelow.txt
@@@ -214,28 -116,13 +219,29 @@@ Data/Scenarios/comanchehill.tx
Data/Scenarios/comanchepods.txt
Data/Scenarios/comturret.txt
Data/Scenarios/crowdbattle.txt
+Data/Scenarios/debristrails.txt
+Data/Scenarios/debristrails3.txt
Data/Scenarios/defencereach.txt
++Data/Scenarios/deployguard.txt
+Data/Scenarios/dozerloss.txt
Data/Scenarios/dragonfirewall.txt
Data/Scenarios/dragonflame.txt
+Data/Scenarios/drawlooks.txt
Data/Scenarios/driveby.txt
Data/Scenarios/empfriendly.txt
+Data/Scenarios/exitmovebuild.txt
+Data/Scenarios/exitorders.txt
+Data/Scenarios/expansionbunker.txt
+Data/Scenarios/explfx.txt
Data/Scenarios/explreel.txt
+Data/Scenarios/firelook.txt
+Data/Scenarios/fogleak.txt
+Data/Scenarios/givemoney.txt
+Data/Scenarios/glowbase.txt
+Data/Scenarios/glowfight.txt
+Data/Scenarios/glowmicrowave.txt
Data/Scenarios/guardradius.txt
+Data/Scenarios/gunfx.txt
Data/Scenarios/headlights.txt
Data/Scenarios/helislide.txt
Data/Scenarios/helitypes.txt
diff --cc GeneralsMD/Code/Data/Patch.str
index 5b10d0c65,c213a25b5..bf88993a2
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@@ -1127,1349 -1591,644 +1127,1831 @@@ GUI:CheatAppl
"GO"
END
-// after a superweapon's name in the event feed over the radar, the moment it can fire
-GUI:HudSuperweaponReady
-"ready to fire"
+// a line of the event feed when a player's last dozer or worker is gone; %s is his name
+GUI:HudNoDozerLeft
+"%s has no dozer left"
+END
+
+GUI:HudNoWorkerLeft
+"%s has no worker left"
+END
+
+// the command bar's own buttons, written on them now that the bar is drawn from a page
+GUI:BarIdleWorker
+"Worker"
+END
+
+CONTROLBAR:MoneyDescription
+"The money you have, and what you earned a second over the last half minute"
+END
+
+CONTROLBAR:ObsLookingThrough
+"Watching through %ls's eyes. Esc brings back the whole map."
+END
+
+GUI:ScoreboardFavourite
+"FAVOURITE"
+END
+
+// Power tooltips that named the wrong countdown or count: the Air Force Spectre
+// Gunship (3:00) and Carpet Bomb (4:00), the Leaflet Drop (5:00), the Stealth GPS
+// Scrambler (3:00), the Spectre's third rank (20 seconds) and the Demolitions
+// ambush (4, 6 and 10 rebels).
+
+CONTROLBAR:AirF_TooltipSpectreGunship
+"Strong vs. Vehicles \n \n Countdown Timer: 3:00"
+END
+
+CONTROLBAR:AirF_TooltipCarpetBomb
+"Carpet Bomb target area \n \n Countdown Timer: 4:00"
+END
+
+CONTROLBAR:TooltipLeafletDrop
+"Strong vs. Infantry \n \n Countdown Timer: 5:00"
+END
+
+CONTROLBAR:Slth_TooltipFireGPSScrambler
+"GPS Scrambler \n Countdown Timer: 3:00"
+END
+
+CONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship
+"Spectre Gunships circle the battlefield and pummel enemy forces with Howitzers and Gatling Cannons \n \nLevel 1: 10 seconds \n Level 2: 15 seconds \n Level 3: 20 seconds \n \n Deploy from: Command Center"
+END
+
+CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush
+"Allows you to create a surprise ambush of Rebels anywhere \n \n Rank 1: 4 Rebels \n Rank 2: 6 Rebels \n Rank 3: 10 Rebels \n \n Deploy from: Command Center"
+END
+
+LAN:ErrorModMismatch
+"This game runs different mods. The host's mods: %s. Start the game with the same mods, in the same order, to join."
+END
+
+LAN:NoMod
+"none"
+END
+
+GUI:SaveFromOlderGame
+"This save was made by the original game or by an older version of Reforged, and cannot be loaded. Its \"Mission Start\" saves still load and carry the campaign on from that mission's beginning, and every campaign mission can be picked from the campaign menu."
+END
+
+GUI:CampaignMission
+"MISSION %d"
+END
+
+GUI:MapCorrupt
+"The map %ls is damaged and cannot be played."
+END
+
+GUI:KickVoteStarted
+"%ls wants %ls out of the match. Type /yes or /no in chat: every other player has 30 seconds to agree."
+END
+
+GUI:KickVoteBanner
+"Kick %ls? Yes %d of %d /yes or /no %d s"
+END
+
+GUI:KickVoteFailed
+"The vote to kick %ls failed."
+END
+
+GUI:KickVoteKicked
+"%ls was voted out of the match."
+END
+
+GUI:KickVoteTooFew
+"A vote kick needs at least two other players besides the one you want out."
+END
+
+GUI:KickVoteNoPlayer
+"No player called %ls is in the match."
+END
+
+GUI:KickVoteNone
+"No vote is open. Type /kick and a player's name to start one."
+END
+
+GUI:ShadowQuality
+"Shadow Quality"
+END
+
+GUI:ShadowQuality0
+"Low"
+END
+
+GUI:ShadowQuality1
+"Medium"
+END
+
+GUI:ShadowQuality2
+"High"
+END
+
+TOOLTIP:ShadowQuality
+"How sharp unit and building shadows are. High takes about 64 MB of video memory, Low frees memory on a weak card. Direct3D 11 only, and not with Classic Graphics. Applies when you press Accept."
+END
+
+GUI:VolumetricSmoke
+"Volumetric Smoke"
+END
+
+TOOLTIP:VolumetricSmoke
+"Smoke and dust shade the ground, the units and the smoke behind them by how thick they are. Direct3D 11 only, with a small cost in big fights. Applies when you press Accept."
+END
+
+GUI:LightingStyle
+"Lighting"
+END
+
+GUI:LightingStyle0
+"Classic"
+END
+
+GUI:LightingStyle1
+"Reforged"
+END
+
+TOOLTIP:LightingStyle
+"Reforged gives each map a stronger, warmer sun, darker shade and deeper shadows, keeping its time of day. Classic is the flat light of 2003, and Classic Graphics always uses it. Applies from the next map."
+END
+
+GUI:SmokeFireLighting
+"Smoke Lit By Fire"
+END
+
+TOOLTIP:SmokeFireLighting
+"Smoke beside a fire takes on its orange light. Applies when you press Accept."
+END
+
+GUI:DebrisTrails
+"Explosion Debris Trails"
+END
+
+TOOLTIP:DebrisTrails
+"Blasts throw fragments that trail smoke, and wrecks shed burning shrapnel. Off keeps the original explosions. Applies when you press Accept."
+END
+
+GUI:FormationDrag
+"Drag Out A Formation"
+END
+
+TOOLTIP:FormationDrag
+"Dragging with a move, attack move or guard order armed spreads the units along the line you draw."
+END
+
+GUI:BuildWithoutWorker
+"Build Without A Worker"
+END
+
+TOOLTIP:BuildWithoutWorker
+"With nothing selected the command bar shows your workers' buildings, and the idle worker nearest the spot goes to build. Off, the bar stays empty until you select a worker, as in 2003."
+END
+
+GUI:HealthBarColors
+"Health Bar Color"
+END
+
+GUI:HealthBarColors0
+"Green To Red"
+END
+
+GUI:HealthBarColors1
+"Player Color"
+END
+
+TOOLTIP:HealthBarColors
+"Green at full health through yellow to red, or every bar in its owner's color so you see whose it is. Disabled units stay blue."
+END
+
+GUI:MenuTransitionSpeed
+"Menu Transition Speed"
+END
+
+TOOLTIP:MenuTransitionSpeed
+"How fast menus slide and fade. 100 is the original speed."
+END
+
+GUI:OptionsGroupMenus
+"Menus"
+END
+
+GUI:OptionsGroupSpeed
+"Game Speed"
+END
+
+GUI:OptionsGroupReplays
+"Replays"
+END
+
+GUI:SaveCamera
+"Record My Camera"
+END
+
+TOOLTIP:SaveCamera
+"Your camera movements are recorded into your replays of single player and skirmish games."
+END
+
+GUI:UseCamera
+"Follow Recorded Camera"
+END
+
+TOOLTIP:UseCamera
+"A replay follows the camera its player recorded instead of leaving you a free camera."
+END
+
+GUI:DrawScrollAnchor
+"Draw Scroll Anchor"
+END
+
+TOOLTIP:DrawScrollAnchor
+"Puts a marker where a right-drag scroll started."
+END
+
+GUI:MoveScrollAnchor
+"Move Scroll Anchor"
+END
+
+TOOLTIP:MoveScrollAnchor
+"The scroll marker trails the cursor, never more than half a screen behind, so a long drag does not keep speeding up."
+END
+
+// The options menu's Hotkeys page (OptionsMenuHotkeys.cpp), the launcher's Hotkeys page in the game.
+// GUI:HotkeysClash takes the key and the buttons' names; the family lines take a number.
+GUI:OptionsTabHotkeys
+"Hotkeys"
+END
+
+GUI:HotkeysCommands
+"Commands"
+END
+
+GUI:HotkeysCommandBar
+"Command bar"
+END
+
+GUI:HotkeysChange
+"CHANGE"
+END
+
+GUI:HotkeysClear
+"NO KEY"
+END
+
+GUI:HotkeysDefault
+"GAME'S KEY"
+END
+
+GUI:FirewallRefresh
+"REFRESH NAT"
+END
+
+TOOLTIP:HotkeyChange
+"Wait for a new key for the selected command or button. A double click or Enter on it does the same."
+END
+
+TOOLTIP:HotkeyClear
+"Take the key off the selected command or button."
+END
+
+TOOLTIP:HotkeyDefault
+"Put back the game's own key. Keys are written when you press Accept."
+END
+
+GUI:HotkeysNone
+"none"
+END
+
+GUI:HotkeysPressKey
+"Press a key, or Esc to cancel"
+END
+
+GUI:HotkeysPressLetter
+"Press a letter, or Esc to cancel"
+END
+
+GUI:HotkeysPressForceAttack
+"Press a key, or Ctrl or Alt alone. Shift cannot be the hold. Esc cancels."
+END
+
+GUI:HotkeysPressHold
+"Press a key, or Ctrl, Alt or Shift alone. Esc cancels."
+END
+
+GUI:HotkeysClash
+"%s: %s share this key. Only one of them gets it in the game: a fixed order keeps its own, and a letter you set beats the game's."
+END
+
+GUI:HotkeysAlsoOn
+"Same key as %s."
+END
+
+GUI:HotkeysFixed
+"The same default on every bar: A attack move, S stop, G guard, Y rally point, V evacuate, C combat drop, N sell, H mines, camo netting and the fake switch. Change moves it."
+END
+
+GUI:HotkeysGameKey
+"The game's own key is %s."
+END
+
+GUI:HotkeysMoved
+"Moved off the command bar's keys; the game's key is %s."
+END
+
+GUI:HotkeysButtonMoved
+"The game gave it the letter of a fixed key, so the launcher moved it."
+END
+
+GUI:HotkeysForceAttack
+"Hold to fire on whatever is under the pointer. Shift plus this key still draws a selection box. Default is Ctrl."
+END
+
+GUI:HotkeysPick
+"Pick a command or a button, then double-click it or press Change."
+END
+
+GUI:HotkeysOnFixedKey
+"A command bar key too: it fires with the button that has it."
+END
+
+GUI:HotkeysCategorySELECTION
+"Selection"
+END
+
+GUI:HotkeysCategoryTEAM
+"Teams"
+END
+
+GUI:HotkeysCategoryINFORMATION
+"Signals and beacons"
+END
+
+GUI:HotkeysCategoryCONTROL
+"Orders"
+END
+
+GUI:HotkeysCategoryINTERFACE
+"Interface"
+END
+
+GUI:HotkeysCategorySHORTCUTS
+"General's powers"
+END
+
+GUI:HotkeysCategoryGRID
+"Command bar by place"
+END
+
+GUI:HotkeysCategoryMISC
+"Camera and chat"
+END
+
+GUI:HotkeysFamilySaveView
+"Set bookmark %d"
+END
+
+GUI:HotkeysFamilyViewView
+"Go to bookmark %d"
+END
+
+GUI:HotkeysFamilyAddTeam
+"Add selection to team %d"
+END
+
+GUI:HotkeysFamilyShortcut
+"General's power %d"
+END
+
+GUI:HotkeysFamilySlot
+"Command bar place %d"
+END
+
+GUI:HotkeysCommandSELECT_HERO
+"Select hero"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_WORKER
+"Next worker"
+END
+
+GUI:HotkeysCommandSELECT_PREV_WORKER
+"Previous worker"
+END
+
+GUI:HotkeysCommandCHAT_ALLIES
+"Chat to allies"
+END
+
+GUI:HotkeysCommandCHAT_EVERYONE
+"Chat to everyone"
+END
+
+GUI:HotkeysCommandDIPLOMACY
+"Diplomacy"
+END
+
+GUI:HotkeysCommandPLACE_BEACON
+"Place beacon"
+END
+
+GUI:HotkeysCommandDELETE_BEACON
+"Delete beacon"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ROTATE_LEFT
+"Turn camera left"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ROTATE_RIGHT
+"Turn camera right"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ZOOM_IN
+"Zoom in"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ZOOM_OUT
+"Zoom out"
+END
+
+GUI:HotkeysCommandCAMERA_RESET
+"Reset camera"
+END
+
+GUI:HotkeysCommandTOGGLE_CAMERA_TRACKING_DRAWABLE
+"Camera follows selection"
+END
+
+GUI:HotkeysCommandTOGGLE_FAST_FORWARD_REPLAY
+"Fast forward replay"
+END
+
+GUI:HotkeysCommandSELECT_ALL
+"Select all units"
+END
+
+GUI:HotkeysCommandSELECT_ALL_MILITARY
+"Select all infantry"
+END
+
+GUI:HotkeysCommandSELECT_ALL_VEHICLES
+"Select all vehicles"
+END
+
+GUI:HotkeysCommandSELECT_ALL_AIRCRAFT
+"Select all aircraft"
+END
+
+GUI:HotkeysCommandSELECT_ALL_BARRACKS
+"Select all barracks"
+END
+
+GUI:HotkeysCommandSELECT_ALL_WARFACTORIES
+"Select all war factories"
+END
+
+GUI:HotkeysCommandSELECT_ALL_AIRFIELDS
+"Select all airfields"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_WORKER
+"Next idle worker"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_UNIT
+"Next idle unit"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_AIRCRAFT
+"Next idle aircraft"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_VEHICLE
+"Next idle vehicle"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_INFANTRY
+"Next idle infantry"
+END
+
+GUI:HotkeysCommandSELECT_ALL_IDLE_UNITS
+"Select all idle units"
+END
+
+GUI:HotkeysCommandSELECT_ALL_IDLE_AIRCRAFT
+"Select all idle aircraft"
+END
+
+GUI:HotkeysCommandSELECT_ALL_IDLE_VEHICLES
+"Select all idle vehicles"
+END
+
+GUI:HotkeysCommandTOGGLE_PAUSE
+"Pause (single player and replays)"
+END
+
+GUI:HotkeysCommandTOGGLE_PURCHASE_SCIENCE
+"General's promotions"
+END
+
+GUI:HotkeysCommandSIGNAL_ATTACK
+"Signal: attack here"
+END
+
+GUI:HotkeysCommandSIGNAL_DEFEND
+"Signal: defend here"
+END
+
+GUI:HotkeysCommandSIGNAL_ATTENTION
+"Signal: look here"
+END
+
+GUI:HotkeysCommandBEGIN_WAYPOINTS
+"Queue orders (hold)"
+END
+
+GUI:HotkeysCommandBEGIN_PREFER_SELECTION
+"Add to selection (hold)"
+END
+
+// The match load screen (LoadScreenBoard in LoadScreen.cpp)
+GUI:LoadModeSkirmish
+"Skirmish"
+END
+
+GUI:LoadModeLAN
+"LAN game"
+END
+
+GUI:LoadModeOnline
+"Online game"
+END
+
+GUI:LoadModeReplay
+"Replay"
+END
+
+GUI:LoadMission
+"Mission %d"
+END
+
+GUI:LoadBriefing
+"BRIEFING"
+END
+
+GUI:LoadFreeForAll
+"Free for all"
+END
+
+GUI:LoadObservers
+"Observers:"
+END
+
+GUI:LoadTeam
+"Team %d"
+END
+
+GUI:LoadWaiting
+"Waiting for the other players"
+END
+
+GUI:LoadTip
+"TIP"
+END
+
+GUI:LoadTip1
+"Hold Shift while you give orders and the group works down the list by itself: move, attack, capture, guard."
+END
+
+GUI:LoadTip2
+"Shift and a number adds your selection to that control group and keeps everyone already in it."
+END
+
+GUI:LoadTip3
+"Ctrl+D selects every unit of the kinds you have selected on the screen. Press it twice for the whole map."
+END
+
+GUI:LoadTip4
+"Hold Shift and drag to draw a line. The selection spreads along it as a firing line."
+END
+
+GUI:LoadTip5
+"On a build button, Shift queues five and Ctrl twenty."
+END
+
+GUI:LoadTip6
+"Hold Ctrl and Alt on a unit's button and the factory builds it on repeat."
+END
+
+GUI:LoadTip7
+"A beacon you place asks your computer allies to attack there."
+END
+
+GUI:LoadTip8
+"Type help, attack or money in chat and your computer allies come to help, attack there or send cash."
+END
+
+GUI:LoadTip9
+"Hold Ctrl while placing a building to flip grid placement for as long as the key is down."
+END
+
+GUI:LoadTip10
+"Double-click a building to select every building of its kind on the screen."
+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
-// after a superweapon's name in the event feed, the moment it is fired
-GUI:HudSuperweaponLaunched
-"launched"
+GUI:AIChatAirWave1
+"Look up."
END
-// the superweapon banner under the clock: %s is the superweapon's own name, "Nuclear Missile"
-GUI:HudAlertBuilt
-"%s built"
+GUI:AIChatAirWave2
+"Wheels up, weapons hot."
END
-GUI:HudAlertReady
-"%s ready"
+GUI:AIChatAirHit1
+"Ground troops. How quaint."
END
-GUI:HudAlertLaunched
-"%s launched"
+GUI:AIChatAirWin1
+"Air superiority confirmed."
END
-// after a general's power's name in the event feed, the moment it is used
-GUI:HudPowerUsed
-"used"
+GUI:AIChatRusherWave1
+"Everything I have, right now!"
END
-// after a promotion's name in the event feed, the moment it is bought
-GUI:HudPromotionBought
-"unlocked"
+GUI:AIChatRusherWave2
+"Faster, faster!"
END
-// after a superweapon's or an advanced tech building's name in the event feed
-GUI:HudStructureStarted
-"construction started"
+GUI:AIChatRusherHit1
+"You were supposed to be dead by now."
END
-GUI:HudStructureBuilt
-"built"
+GUI:AIChatRusherWin1
+"Too slow."
END
-// a line of the event feed when a player's last dozer or worker is gone; %s is his name
-GUI:HudNoDozerLeft
-"%s has no dozer left"
+GUI:AIChatRaiderWave1
+"Your trucks look lonely."
END
-GUI:HudNoWorkerLeft
-"%s has no worker left"
+GUI:AIChatRaiderWave2
+"Hit and gone."
END
-// the command bar's own buttons, written on them now that the bar is drawn from a page
-GUI:BarIdleWorker
-"Worker"
+GUI:AIChatRaiderHit1
+"So you found the way to my base too."
END
-// the network box in the top right corner: frames ready out of the input delay, the room's frame
-// rate, and the traffic in and out in kilobytes a second
-GUI:BarNetReady
-"ready"
+GUI:AIChatRaiderWin1
+"No supplies, no army."
END
-GUI:BarNetRoom
-"room"
+GUI:AIChatTechWave1
+"Field test, live targets."
END
-GUI:BarNetUnits
-"units"
+GUI:AIChatTechWave2
+"The prototypes are ready."
END
-// the scoreboard on Tab
-GUI:ScoreboardAllies
-"YOUR SIDE"
+GUI:AIChatTechHit1
+"Mind the lab, that equipment is expensive."
END
-GUI:ScoreboardEnemies
-"ENEMIES"
+GUI:AIChatTechWin1
+"Experiment concluded."
END
-GUI:ScoreboardPlayer
-"PLAYER"
+GUI:AIChatInfantryWave1
+"Boots on the ground!"
END
-GUI:ScoreboardTeam
-"TEAM"
+GUI:AIChatInfantryWave2
+"Every street, every window."
END
-GUI:ScoreboardLevel
-"RANK"
+GUI:AIChatInfantryHit1
+"Into the buildings, hold the line!"
END
-GUI:ScoreboardMoney
-"MONEY"
+GUI:AIChatInfantryWin1
+"The city is ours."
END
-GUI:ScoreboardPerMinute
-"PER MIN"
+GUI:AIChatArmorWave1
+"Steel is rolling."
END
-GUI:ScoreboardPerSecond
-"PER SEC"
+GUI:AIChatArmorWave2
+"Hear the tracks? That is us."
END
-GUI:ControlBarMoneyEarning
-"$ %d +%d/s"
+GUI:AIChatArmorHit1
+"You scratched the paint."
END
-GUI:ControlBarMoneyEarningMinute
-"$ %d +%d/min"
+GUI:AIChatArmorWin1
+"Flattened."
END
-CONTROLBAR:MoneyDescription
-"The money you have, and what you earned a second over the last half minute"
+GUI:AIChatSneakyWave1
+"You did not see this coming."
END
-GUI:ScoreboardKills
-"K"
+GUI:AIChatSneakyWave2
+"Check behind you."
END
-GUI:ScoreboardDeaths
-"D"
+GUI:AIChatSneakyHit1
+"Found me? Lucky guess."
END
-GUI:ScoreboardPowers
-"POWERS"
+GUI:AIChatSneakyWin1
+"Gone without a trace."
END
-GUI:ScoreboardFavourite
-"FAVOURITE"
+GUI:AIChatOpportunistWave1
+"You look busy. Good."
END
-// Power tooltips that named the wrong countdown or count: the Air Force Spectre
-// Gunship (3:00) and Carpet Bomb (4:00), the Leaflet Drop (5:00), the Stealth GPS
-// Scrambler (3:00), the Spectre's third rank (20 seconds) and the Demolitions
-// ambush (4, 6 and 10 rebels).
+GUI:AIChatOpportunistWave2
+"Weak spot found."
+END
-CONTROLBAR:AirF_TooltipSpectreGunship
-"Strong vs. Vehicles \n \n Countdown Timer: 3:00"
+GUI:AIChatOpportunistHit1
+"Picking on me? Bad pick."
END
-CONTROLBAR:AirF_TooltipCarpetBomb
-"Carpet Bomb target area \n \n Countdown Timer: 4:00"
+GUI:AIChatOpportunistWin1
+"Thanks for softening that one up."
END
-CONTROLBAR:TooltipLeafletDrop
-"Strong vs. Infantry \n \n Countdown Timer: 5:00"
+GUI:AIChatSupporterWave1
+"Right behind you, partner."
END
-CONTROLBAR:Slth_TooltipFireGPSScrambler
-"GPS Scrambler \n Countdown Timer: 3:00"
+GUI:AIChatSupporterWave2
+"Your target is my target."
END
-CONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship
-"Spectre Gunships circle the battlefield and pummel enemy forces with Howitzers and Gatling Cannons \n \nLevel 1: 10 seconds \n Level 2: 15 seconds \n Level 3: 20 seconds \n \n Deploy from: Command Center"
+GUI:AIChatSupporterHit1
+"Cover me, I am taking fire!"
END
-CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush
-"Allows you to create a surprise ambush of Rebels anywhere \n \n Rank 1: 4 Rebels \n Rank 2: 6 Rebels \n Rank 3: 10 Rebels \n \n Deploy from: Command Center"
+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
+
+// A computer ally answering the team board (AIPlayer::coopChat)
+GUI:AICoopHelp
+"Hold on, I am coming."
+END
+
+GUI:AICoopMoney
+"Here, take some money."
+END
+
+GUI:AICoopJoin
+"I am with you on that attack."
+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
+
+GUI:DiplomacyPing
+"Ping"
+END
+
+GUI:DiplomacyFps
+"FPS"
+END
+
+TOOLTIP:DiplomacyNet
+"Ping is the player's round trip to the host in milliseconds (the host has none), FPS how many game frames a second his machine keeps up with. Yellow numbers mark the slowest player, and the whole match runs at his speed."
+END
+
+GUI:LobbyRecord
+"Record"
+END
+
+GUI:LobbyRecordButton
+"RECORD"
+END
+
+GUI:LobbyRecordClose
+"CLOSE"
+END
+
+// The score screen's summary panel (ScoreScreenGraphs.cpp)
+GUI:SummaryUnits
+"Units"
+END
+
+GUI:SummaryMoney
+"Money"
+END
+
+GUI:SummaryUnitsBuilt
+"Built"
+END
+
+GUI:SummaryBuildingsBuilt
+"Built"
+END
+
+GUI:SummaryLost
+"Lost"
+END
+
+GUI:SummaryDestroyed
+"Destroyed"
+END
+
+GUI:SummaryEarned
+"Earned"
+END
+
+GUI:SummaryWinner
+"Winner"
+END
+
+GUI:BuildOrderEvery
+"Show every build"
+END
+
+GUI:BuildOrderFirsts
+"Show the first of each"
+END
+
+GUI:GraphSummary
+"Summary"
+END
+
+GUI:GraphEarned
+"Money earned"
+END
+
+GUI:GraphArmy
+"Army"
+END
+
+GUI:GraphBuildings
+"Buildings"
+END
+
+GUI:GraphBuildOrder
+"Build order"
+END
+
+GUI:GraphSuperweaponBuilt
+"Superweapon built"
+END
+
+GUI:GraphSuperweaponFired
+"Superweapon fired"
+END
+
+GUI:GraphGeneralPower
+"General's power"
+END
+
+GUI:GraphPromotion
+"Promotion"
+END
+
+GUI:GraphRank
+"Rank %d"
+END
+
+GUI:GraphNoData
+"Nothing was recorded in this match."
+END
+
+RANK:NextRank
+"Next rank %d/%d XP"
+END
+
+RANK:America0
+"E-1 Private"
+END
+
+RANK:America1
+"E-2 Private"
+END
+
+RANK:America2
+"E-3 Private First Class"
+END
+
+RANK:America3
+"E-4 Specialist"
+END
+
+RANK:America4
+"E-4 Corporal"
+END
+
+RANK:America5
+"E-5 Sergeant"
+END
+
+RANK:America6
+"E-6 Staff Sergeant"
+END
+
+RANK:America7
+"E-7 Sergeant First Class"
+END
+
+RANK:America8
+"E-8 Master Sergeant"
+END
+
+RANK:America9
+"E-8 First Sergeant"
+END
+
+RANK:America10
+"E-9 Sergeant Major"
+END
+
+RANK:America11
+"E-9 Command Sergeant Major"
+END
+
+RANK:America12
+"E-9 Sergeant Major of the Army"
+END
+
+RANK:America13
+"W-1 Warrant Officer"
+END
+
+RANK:America14
+"W-2 Chief Warrant Officer"
+END
+
+RANK:America15
+"W-3 Chief Warrant Officer"
+END
+
+RANK:America16
+"W-4 Chief Warrant Officer"
+END
+
+RANK:America17
+"W-5 Chief Warrant Officer"
+END
+
+RANK:America18
+"O-1 Second Lieutenant"
+END
+
+RANK:America19
+"O-2 First Lieutenant"
+END
+
+RANK:America20
+"O-3 Captain"
+END
+
+RANK:America21
+"O-4 Major"
+END
+
+RANK:America22
+"O-5 Lieutenant Colonel"
+END
+
+RANK:America23
+"O-6 Colonel"
+END
+
+RANK:America24
+"O-7 Brigadier General"
+END
+
+RANK:America25
+"O-8 Major General"
+END
+
+RANK:America26
+"O-9 Lieutenant General"
+END
+
+RANK:America27
+"O-10 General"
+END
+
+RANK:America28
+"General of the Army"
+END
+
+RANK:China0
+"Unranked"
+END
+
+RANK:China1
+"Private"
+END
+
+RANK:China2
+"Private First Class"
+END
+
+RANK:China3
+"Corporal"
+END
+
+RANK:China4
+"Sergeant"
+END
+
+RANK:China5
+"Staff Sergeant Second Class"
+END
+
+RANK:China6
+"Staff Sergeant First Class"
+END
+
+RANK:China7
+"Master Sergeant Third Class"
+END
+
+RANK:China8
+"Master Sergeant Second Class"
+END
+
+RANK:China9
+"Master Sergeant First Class"
+END
+
+RANK:China10
+"Second Lieutenant"
+END
+
+RANK:China11
+"First Lieutenant"
+END
+
+RANK:China12
+"Captain"
+END
+
+RANK:China13
+"Major"
+END
+
+RANK:China14
+"Lieutenant Colonel"
+END
+
+RANK:China15
+"Colonel"
+END
+
+RANK:China16
+"Senior Colonel"
+END
+
+RANK:China17
+"Major General"
+END
+
+RANK:China18
+"Lieutenant General"
+END
+
+RANK:China19
+"General"
+END
+
+RANK:GLA0
+"Unranked"
+END
+
+RANK:GLA1
+"Recruit"
+END
+
+RANK:GLA2
+"Irregular"
+END
+
+RANK:GLA3
+"Fighter"
+END
+
+RANK:GLA4
+"Raider"
+END
+
+RANK:GLA5
+"Hardened Raider"
+END
+
+RANK:GLA6
+"Squadhand"
+END
+
+RANK:GLA7
+"Squad Leader"
+END
+
+RANK:GLA8
+"Cell Leader"
+END
+
+RANK:GLA9
+"Senior Cell Leader"
+END
+
+RANK:GLA10
+"Raid Captain"
+END
+
+RANK:GLA11
+"Column Captain"
+END
+
+RANK:GLA12
+"Strike Commander"
+END
+
+RANK:GLA13
+"Field Commander"
+END
+
+RANK:GLA14
+"Sector Commander"
+END
+
+RANK:GLA15
+"Warlord"
+END
+
+RANK:GLA16
+"Regional Warlord"
+END
+
+RANK:GLA17
+"High Warlord"
+END
+
+RANK:GLA18
+"General"
+END
+
+RANK:GLA19
+"Grand General"
+END
+
+RANK:GLA20
+"Supreme Liberator"
END
+
+ // The Turkiye faction (PlayerTemplateReforged.ini, TurkiyeReforged.ini). Units, buildings, buttons, upgrades.
+
+ INI:FactionTurkiye
+ "Turkiye"
+ END
+
+ SIDE:Turkiye
+ "Turkiye"
+ END
+
+ TOOLTIP:BioStrategyLong_Turkiye
+ "Turkiye kills from range but cannot see for itself: its artillery fires 600 and sees 100, so a spotter, a UAV or a radar tower has to find the target"
+ END
+
+ GUI:BioFeatures_Turkiye
+ "Long-range artillery, short sight \n Combat Engineers build in place of a dozer \n Spotters, UAVs and radar towers aim the guns"
+ END
+
+ OBJECT:TurkiyeInfantryMehmetcik
+ "Mehmetcik Rifleman"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantryMehmetcik
+ "&Mehmetcik Rifleman"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantryMehmetcik
+ "Line infantry. Clears and holds buildings."
+ END
+
+ OBJECT:TurkiyeInfantryEngineer
+ "Combat Engineers"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantryEngineer
+ "Combat &Engineers"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantryEngineer
+ "Builds and repairs structures. Infantry: it can be crushed and shot."
+ END
+
+ OBJECT:TurkiyeInfantrySungur
+ "Sungur Gunner"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantrySungur
+ "&Sungur Gunner"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantrySungur
+ "Missile infantry against tanks and aircraft."
+ END
+
+ OBJECT:TurkiyeInfantrySpotter
+ "Spotter Team"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantrySpotter
+ "S&potter Team"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantrySpotter
+ "Sees 450 and barely fights. Put it on a hill and the artillery behind it can shoot."
+ END
+
+ OBJECT:TurkiyeInfantryMaroonBeret
+ "Maroon Beret"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantryMaroonBeret
+ "Maroon &Beret"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantryMaroonBeret
+ "Special forces. Clears buildings; carries no explosives."
+ END
+
+ OBJECT:TurkiyeVehicleSupplyTruck
+ "Supply Truck"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleSupplyTruck
+ "Supply &Truck"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleSupplyTruck
+ "Carries supplies to the Supply Center."
+ END
+
+ OBJECT:TurkiyeVehicleCobra
+ "Cobra Scout"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleCobra
+ "&Cobra Scout"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleCobra
+ "Fast, fragile scout car that sees 400: the cheapest spotter."
+ END
+
+ OBJECT:TurkiyeVehicleKirpi
+ "Kirpi APC"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleKirpi
+ "&Kirpi APC"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleKirpi
+ "Armored personnel carrier for five infantry."
+ END
+
+ OBJECT:TurkiyeTankAltay
+ "Altay Tank"
+ END
+
+ CONTROLBAR:ConstructTurkiyeTankAltay
+ "&Altay Tank"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeTankAltay
+ "Main battle tank, the only direct-fire vehicle in Turkiye's factory."
+ END
+
+ OBJECT:TurkiyeVehicleKorkut
+ "Korkut Air Defense"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleKorkut
+ "K&orkut Air Defense"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleKorkut
+ "Twin cannons out to 300 against aircraft and infantry."
+ END
+
+ OBJECT:TurkiyeVehicleFirtina
+ "Firtina Howitzer"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleFirtina
+ "&Firtina Howitzer"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleFirtina
+ "Fires 600 and sees 100: it needs a spotter, a UAV or a radar tower to aim."
+ END
+
+ OBJECT:TurkiyeVehicleSakarya
+ "Sakarya Rocket Launcher"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleSakarya
+ "&Sakarya Rocket Launcher"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleSakarya
+ "Fires a six-rocket salvo out to 500, then reloads for 15 seconds. Needs a spotter."
+ END
+
+ OBJECT:TurkiyeTankKoral
+ "Koral Electronic Warfare"
+ END
+
+ CONTROLBAR:ConstructTurkiyeTankKoral
+ "Ko&ral Electronic Warfare"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeTankKoral
+ "Electronic warfare vehicle; its beam shuts enemy buildings down from 400."
+ END
+
+ OBJECT:TurkiyeVehicleBayraktar
+ "Bayraktar UAV"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleBayraktar
+ "&Bayraktar UAV"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleBayraktar
+ "Hovers where it is sent and sees 400. Light munitions. The eye of the artillery."
+ END
+
+ OBJECT:TurkiyeVehicleGokbey
+ "Gokbey Helicopter"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleGokbey
+ "&Gokbey Helicopter"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleGokbey
+ "Transport helicopter for five infantry."
+ END
+
+ OBJECT:TurkiyeJetAkinci
+ "Akinci UAV"
+ END
+
+ CONTROLBAR:ConstructTurkiyeJetAkinci
+ "&Akinci UAV"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeJetAkinci
+ "Heavy armed UAV. Dies under air defense."
+ END
+
+ OBJECT:TurkiyeJetKizilelma
+ "Kizilelma Fighter"
+ END
+
+ CONTROLBAR:ConstructTurkiyeJetKizilelma
+ "&Kizilelma Fighter"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeJetKizilelma
+ "Air superiority only: it cannot hit the ground."
+ END
+
+ OBJECT:TurkiyeRadarTower
+ "Radar Tower"
+ END
+
+ CONTROLBAR:ConstructTurkiyeRadarTower
+ "&Radar Tower"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeRadarTower
+ "Cheap fixed eye: sees 500 for the artillery. A target."
+ END
+
+ OBJECT:TurkiyeAntiAirSite
+ "Air Defense Site"
+ END
+
+ CONTROLBAR:ConstructTurkiyeAntiAirSite
+ "Air &Defense Site"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeAntiAirSite
+ "Fixed cannon against aircraft and ground."
+ END
+
+ OBJECT:TurkiyeLandMine
+ "Minefield"
+ END
+
+ CONTROLBAR:ConstructTurkiyeLandMine
+ "&Minefield"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeLandMine
+ "A charge buried in the ground. Needs the Mine Kit."
+ END
+
+ UPGRADE:TurkiyeExtendedRange
+ "Extended Range"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeExtendedRange
+ "&Extended Range"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeExtendedRange
+ "Firtina and Sakarya reach 15 percent further."
+ END
+
+ UPGRADE:TurkiyePrecisionGuidance
+ "Precision Guidance"
+ END
+
+ CONTROLBAR:UpgradeTurkiyePrecisionGuidance
+ "&Precision Guidance"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyePrecisionGuidance
+ "Shots at ground nobody sees spread four times less."
+ END
+
+ UPGRADE:TurkiyeArmorPack
+ "Armor Pack"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeArmorPack
+ "Ar&mor Pack"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeArmorPack
+ "Kirpi and Altay get 20 percent more health."
+ END
+
+ UPGRADE:TurkiyeMineKit
+ "Mine Kit"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeMineKit
+ "Mine &Kit"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeMineKit
+ "Combat Engineers can lay mines."
+ END
+
+ OBJECT:TurkiyeCommandCenter
+ "Headquarters"
+ END
+
+ CONTROLBAR:ConstructTurkiyeCommandCenter
+ "&Headquarters"
+ END
+
+ OBJECT:TurkiyePowerPlant
+ "Power Plant"
+ END
+
+ CONTROLBAR:ConstructTurkiyePowerPlant
+ "&Power Plant"
+ END
+
+ OBJECT:TurkiyeBarracks
+ "Barracks"
+ END
+
+ CONTROLBAR:ConstructTurkiyeBarracks
+ "&Barracks"
+ END
+
+ OBJECT:TurkiyeWarFactory
+ "Factory"
+ END
+
+ CONTROLBAR:ConstructTurkiyeWarFactory
+ "&Factory"
+ END
+
+ OBJECT:TurkiyeAirfield
+ "Airfield"
+ END
+
+ CONTROLBAR:ConstructTurkiyeAirfield
+ "&Airfield"
+ END
+
+ OBJECT:TurkiyeSupplyCenter
+ "Supply Center"
+ END
+
+ CONTROLBAR:ConstructTurkiyeSupplyCenter
+ "&Supply Center"
+ END
+
+ OBJECT:TurkiyePatriotBattery
+ "Siper Battery"
+ END
+
+ CONTROLBAR:ConstructTurkiyePatriotBattery
+ "S&iper Battery"
+ END
+
+ SCIENCE:TurkiyeMinefield
+ "Minefield"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceMinefield
+ "A cargo plane sows a minefield wherever you point. \n \n Deploy from: Headquarters"
+ END
+
+ CONTROLBAR:TurkiyeMinefield
+ "Mine&field"
+ END
+
+ CONTROLBAR:TooltipTurkiyeMinefield
+ "Minefield \n Recharge: 4:00"
+ END
+
+ SCIENCE:TurkiyeFuelResupply
+ "Fuel Resupply"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
+ "Bayraktar drones carry one more munition and Akinci one more bomb on every sortie."
+ END
+
+ SCIENCE:TurkiyeSwarmMunition
+ "Loitering Munition"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
+ "One loitering munition circles where you point and dives on the most expensive target it finds. \n \n Deploy from: Headquarters"
+ END
+
+ CONTROLBAR:TurkiyeSwarmMunition
+ "Loitering &Munition"
+ END
+
+ CONTROLBAR:TooltipTurkiyeSwarmMunition
+ "Loitering Munition \n Recharge: 3:00"
+ END
+
+ SCIENCE:TurkiyeElectronicBlinding
+ "Electronic Blinding"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
+ "Every enemy with a building in the target area loses its radar for 30 seconds. \n \n Deploy from: Headquarters"
+ END
+
+ CONTROLBAR:TurkiyeElectronicBlinding
+ "Electronic &Blinding"
+ END
+
+ CONTROLBAR:TooltipTurkiyeElectronicBlinding
+ "Electronic Blinding \n Recharge: 4:00"
+ END
+
+ SCIENCE:TurkiyeSwarmStrike
+ "Swarm Strike"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
+ "A swarm of munitions hunts down the ten most valuable targets in a wide area, one munition each. A packed base shrugs it off; a spread-out army does not. \n \n Deploy from: Headquarters"
+ END
+
+ CONTROLBAR:TurkiyeSwarmStrike
+ "S&warm Strike"
+ END
+
+ CONTROLBAR:TooltipTurkiyeSwarmStrike
+ "Swarm Strike \n Recharge: 6:00"
+ END
+
+ UPGRADE:TurkiyeThermal
+ "Thermal Sights"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeThermal
+ "T&hermal Sights"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeThermal
+ "Spotter Teams and Cobras see out to 550 and spot camouflaged units."
+ END
+
+ UPGRADE:TurkiyeFuelCell
+ "Fuel Cell"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeFuelCell
+ "&Fuel Cell"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeFuelCell
+ "Bayraktar and Akinci stay over the target twice as long, with twice the munitions."
+ END
+
+ UPGRADE:TurkiyeSwarmSoftware
+ "Swarm Software"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeSwarmSoftware
+ "Swarm Soft&ware"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
+ "Bayraktar munitions pick their own target: the most expensive enemy in reach."
+ END
+
+ UPGRADE:TurkiyeFuelResupply
+ "Fuel Resupply"
+ END
+
+ CONTROLBAR:TurkiyeHijack
+ "Hi&jack Truck"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeHijack
+ "Takes an enemy supply truck, cargo and all. The Beret stays at the wheel."
+ END
diff --cc GeneralsMD/Code/Data/Turkish/Generals.str
index be60bb2a6,6856ff4ce..a973980bf
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@@ -16498,362 -15945,662 +16498,842 @@@ GUI:SummaryMone
"Para"
END
-GUI:CheatPoints
-"General Puanı"
+GUI:SummaryUnitsBuilt
+"Üretilen"
END
-GUI:CheatRankUp
-"Rütbe atla"
+GUI:SummaryBuildingsBuilt
+"İnşa edilen"
END
-GUI:CheatHeroic
-"Kahraman birlikler"
+GUI:SummaryLost
+"Kaybedilen"
END
-GUI:CheatReveal
-"Haritayı aç"
+GUI:SummaryDestroyed
+"Yok edilen"
END
-GUI:CheatPower
-"Sınırsız elektrik"
+GUI:SummaryEarned
+"Kazanılan"
END
-GUI:CheatNoCooldown
-"Bekleme yok"
+GUI:SummaryWinner
+"Kazanan"
END
-GUI:CheatGod
-"Ölümsüzlük"
+GUI:BuildOrderEvery
+"Her inşayı göster"
END
-GUI:CheatInstantBuild
-"Anında inşa"
+GUI:BuildOrderFirsts
+"Her şeyin ilkini göster"
END
-GUI:CheatOneHitKill
-"Tek vuruşta öldür"
+GUI:GraphSummary
+"Özet"
END
-GUI:CheatOn
-"AÇIK"
+GUI:GraphEarned
+"Kazanılan para"
END
-GUI:CheatOff
-"KAPALI"
+GUI:GraphArmy
+"Ordu"
END
-GUI:CheatApply
-"YAP"
+GUI:GraphBuildings
+"Binalar"
END
-GUI:HudSuperweaponReady
-"ateşe hazır"
+GUI:GraphBuildOrder
+"İnşa sırası"
END
-GUI:HudSuperweaponLaunched
-"ateşlendi"
+GUI:GraphSuperweaponBuilt
+"Süper silah kuruldu"
END
-GUI:HudAlertBuilt
-"%s tamamlandı"
+GUI:GraphSuperweaponFired
+"Süper silah ateşlendi"
END
-GUI:HudAlertReady
-"%s hazır"
+GUI:GraphGeneralPower
+"General Gücü"
END
-GUI:HudAlertLaunched
-"%s ateşlendi"
+GUI:GraphPromotion
+"Terfi"
END
-GUI:HudPowerUsed
-"kullanıldı"
+GUI:GraphRank
+"Rütbe %d"
END
-GUI:HudPromotionBought
-"açıldı"
+GUI:GraphNoData
+"Bu maçta hiçbir şey kaydedilmedi."
END
-GUI:HudStructureStarted
-"inşaatı başladı"
+RANK:NextRank
+"Sonraki rütbe %d/%d XP"
END
-GUI:HudStructureBuilt
-"tamamlandı"
+RANK:America0
+"E-1 Er"
END
-GUI:HudNoDozerLeft
-"%s için hiç dozer kalmadı"
+RANK:America1
+"E-2 Er"
END
-GUI:HudNoWorkerLeft
-"%s için hiç işçi kalmadı"
+RANK:America2
+"E-3 Birinci Sınıf Er"
END
-GUI:BarIdleWorker
-"İşçi"
+RANK:America3
+"E-4 Uzman Er"
END
-GUI:BarNetReady
-"hazır"
+RANK:America4
+"E-4 Onbaşı"
END
-GUI:BarNetRoom
-"oda"
+RANK:America5
+"E-5 Çavuş"
END
-GUI:BarNetUnits
-"birim"
+RANK:America6
+"E-6 Kıdemli Çavuş"
END
-GUI:ScoreboardAllies
-"TAKIMIN"
+RANK:America7
+"E-7 Birinci Sınıf Çavuş"
END
-GUI:ScoreboardEnemies
-"DÜŞMANLAR"
+RANK:America8
+"E-8 Usta Çavuş"
END
-GUI:ScoreboardPlayer
-"OYUNCU"
+RANK:America9
+"E-8 Bölük Başçavuşu"
END
-GUI:ScoreboardTeam
-"TAKIM"
+RANK:America10
+"E-9 Başçavuş"
END
-GUI:ScoreboardLevel
-"RÜTBE"
+RANK:America11
+"E-9 Komuta Başçavuşu"
END
-GUI:ScoreboardMoney
-"PARA"
+RANK:America12
+"E-9 Kara Kuvvetleri Başçavuşu"
END
-GUI:ScoreboardPerMinute
-"DAKİKADA"
+RANK:America13
+"W-1 Teknik Subay"
END
-GUI:ScoreboardPerSecond
-"SANİYEDE"
+RANK:America14
+"W-2 Kıdemli Teknik Subay"
END
-GUI:ControlBarMoneyEarning
-"$ %d +%d/sn"
+RANK:America15
+"W-3 Kıdemli Teknik Subay"
END
-GUI:ControlBarMoneyEarningMinute
-"$ %d +%d/dk"
+RANK:America16
+"W-4 Kıdemli Teknik Subay"
END
-GUI:ScoreboardKills
-"K"
+RANK:America17
+"W-5 Kıdemli Teknik Subay"
END
-GUI:ScoreboardDeaths
-"D"
+RANK:America18
+"O-1 Teğmen"
END
-GUI:ScoreboardPowers
-"YETENEKLER"
+RANK:America19
+"O-2 Üsteğmen"
END
-GUI:ScoreboardFavourite
-"FAVORİ"
+RANK:America20
+"O-3 Yüzbaşı"
END
-CONTROLBAR:AirF_TooltipSpectreGunship
-"Güçlü: Araçlar \n \n Geri Sayım: 3:00"
+RANK:America21
+"O-4 Binbaşı"
END
-CONTROLBAR:AirF_TooltipCarpetBomb
-"Hedef bölgeye halı bombardımanı yapın \n \n Geri Sayım: 4:00"
+RANK:America22
+"O-5 Yarbay"
END
-CONTROLBAR:Slth_TooltipFireGPSScrambler
-"GPS Karıştırıcı \n Geri Sayım: 3:00"
+RANK:America23
+"O-6 Albay"
END
-CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush
-"Her yerde Asilerle ani bir pusu kurmanızı sağlar \n \n Seviye 1: 4 Asi \n Seviye 2: 6 Asi \n Seviye 3: 10 Asi \n \n Çağrıldığı yer: Komuta Merkezi"
+RANK:America24
+"O-7 Tuğgeneral"
+END
+
+RANK:America25
+"O-8 Tümgeneral"
+END
+
+RANK:America26
+"O-9 Korgeneral"
+END
+
+RANK:America27
+"O-10 Orgeneral"
+END
+
+RANK:America28
+"Mareşal"
+END
+
+RANK:China0
+"Rütbesiz"
+END
+
+RANK:China1
+"Er"
+END
+
+RANK:China2
+"Birinci Sınıf Er"
+END
+
+RANK:China3
+"Onbaşı"
+END
+
+RANK:China4
+"Çavuş"
+END
+
+RANK:China5
+"İkinci Sınıf Kıdemli Çavuş"
+END
+
+RANK:China6
+"Birinci Sınıf Kıdemli Çavuş"
+END
+
+RANK:China7
+"Üçüncü Sınıf Usta Çavuş"
+END
+
+RANK:China8
+"İkinci Sınıf Usta Çavuş"
+END
+
+RANK:China9
+"Birinci Sınıf Usta Çavuş"
+END
+
+RANK:China10
+"Teğmen"
+END
+
+RANK:China11
+"Üsteğmen"
+END
+
+RANK:China12
+"Yüzbaşı"
+END
+
+RANK:China13
+"Binbaşı"
+END
+
+RANK:China14
+"Yarbay"
+END
+
+RANK:China15
+"Albay"
+END
+
+RANK:China16
+"Kıdemli Albay"
+END
+
+RANK:China17
+"Tümgeneral"
+END
+
+RANK:China18
+"Korgeneral"
+END
+
+RANK:China19
+"Orgeneral"
+END
+
+RANK:GLA0
+"Rütbesiz"
+END
+
+RANK:GLA1
+"Acemi"
+END
+
+RANK:GLA2
+"Düzensiz"
+END
+
+RANK:GLA3
+"Savaşçı"
+END
+
+RANK:GLA4
+"Akıncı"
+END
+
+RANK:GLA5
+"Pişkin Akıncı"
+END
+
+RANK:GLA6
+"Tim Eri"
+END
+
+RANK:GLA7
+"Tim Lideri"
+END
+
+RANK:GLA8
+"Hücre Lideri"
+END
+
+RANK:GLA9
+"Kıdemli Hücre Lideri"
+END
+
+RANK:GLA10
+"Baskın Yüzbaşısı"
+END
+
+RANK:GLA11
+"Kol Yüzbaşısı"
+END
+
+RANK:GLA12
+"Vuruş Komutanı"
+END
+
+RANK:GLA13
+"Saha Komutanı"
+END
+
+RANK:GLA14
+"Sektör Komutanı"
+END
+
+RANK:GLA15
+"Savaş Ağası"
+END
+
+RANK:GLA16
+"Bölgesel Savaş Ağası"
+END
+
+RANK:GLA17
+"Baş Savaş Ağası"
+END
+
+RANK:GLA18
+"General"
+END
+
+RANK:GLA19
+"Büyük General"
+END
+
+RANK:GLA20
+"Yüce Kurtarıcı"
END
+
+ INI:FactionTurkiye
+ "Türkiye"
+ END
+
+ SIDE:Turkiye
+ "Türkiye"
+ END
+
+ TOOLTIP:BioStrategyLong_Turkiye
+ "Türkiye uzaktan öldürür ama kendi gözüyle göremez: topçusu 600 atar, 100 görür, hedefi bir gözcü, İHA ya da radar kulesi bulmalıdır"
+ END
+
+ GUI:BioFeatures_Turkiye
+ "Uzun menzilli topçu, kısa görüş \n Dozer yerine istihkam takımı kurar \n Topçuya gözcü, İHA ve radar kulesi nişan aldırır"
+ END
+
+ OBJECT:TurkiyeInfantryMehmetcik
+ "Mehmetçik"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantryMehmetcik
+ "&Mehmetçik"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantryMehmetcik
+ "Hat piyadesi. Binaya girer, bina temizler."
+ END
+
+ OBJECT:TurkiyeInfantryEngineer
+ "İstihkam Takımı"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantryEngineer
+ "İstihkam &Takımı"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantryEngineer
+ "Yapı kurar ve onarır. Piyadedir: ezilir, taranır."
+ END
+
+ OBJECT:TurkiyeInfantrySungur
+ "Sungur Nişancısı"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantrySungur
+ "&Sungur Nişancısı"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantrySungur
+ "Tanka ve uçağa karşı füzeli piyade."
+ END
+
+ OBJECT:TurkiyeInfantrySpotter
+ "Gözcü Timi"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantrySpotter
+ "&Gözcü Timi"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantrySpotter
+ "450 görür, neredeyse hiç savaşmaz. Tepeye çıkınca arkadaki topçunun gözü olur."
+ END
+
+ OBJECT:TurkiyeInfantryMaroonBeret
+ "Bordo Bereli"
+ END
+
+ CONTROLBAR:ConstructTurkiyeInfantryMaroonBeret
+ "&Bordo Bereli"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeInfantryMaroonBeret
+ "Özel kuvvet. Bina temizler, patlayıcı taşımaz."
+ END
+
+ OBJECT:TurkiyeVehicleSupplyTruck
+ "İkmal Kamyonu"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleSupplyTruck
+ "İk&mal Kamyonu"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleSupplyTruck
+ "İkmal merkezine para taşır."
+ END
+
+ OBJECT:TurkiyeVehicleCobra
+ "Cobra"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleCobra
+ "&Cobra"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleCobra
+ "Hızlı, kırılgan keşif aracı, 400 görür: zincirin en ucuz halkası."
+ END
+
+ OBJECT:TurkiyeVehicleKirpi
+ "Kirpi"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleKirpi
+ "&Kirpi"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleKirpi
+ "Beş piyade taşıyan zırhlı araç."
+ END
+
+ OBJECT:TurkiyeTankAltay
+ "Altay"
+ END
+
+ CONTROLBAR:ConstructTurkiyeTankAltay
+ "&Altay"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeTankAltay
+ "Ana muharebe tankı, fabrikada doğrudan ateş eden tek araç."
+ END
+
+ OBJECT:TurkiyeVehicleKorkut
+ "Korkut"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleKorkut
+ "K&orkut"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleKorkut
+ "300 menzilli ikiz top: uçağa ve piyadeye."
+ END
+
+ OBJECT:TurkiyeVehicleFirtina
+ "Fırtına Obüsü"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleFirtina
+ "&Fırtına Obüsü"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleFirtina
+ "600 atar, 100 görür: nişan için gözcü, İHA ya da radar kulesi ister."
+ END
+
+ OBJECT:TurkiyeVehicleSakarya
+ "Sakarya Çok Namlulu"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleSakarya
+ "&Sakarya Çok Namlulu"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleSakarya
+ "500 menzile altılı salvo atar, sonra 15 saniye dolar. Gözcü ister."
+ END
+
+ OBJECT:TurkiyeTankKoral
+ "Koral"
+ END
+
+ CONTROLBAR:ConstructTurkiyeTankKoral
+ "Ko&ral"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeTankKoral
+ "Elektronik harp aracı; ışını düşman binasını 400 menzilden susturur."
+ END
+
+ OBJECT:TurkiyeVehicleBayraktar
+ "Bayraktar İHA"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleBayraktar
+ "&Bayraktar İHA"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleBayraktar
+ "Gönderildiği yerde durur ve 400 görür. Hafif mühimmat. Topçunun gözü."
+ END
+
+ OBJECT:TurkiyeVehicleGokbey
+ "Gökbey"
+ END
+
+ CONTROLBAR:ConstructTurkiyeVehicleGokbey
+ "&Gökbey"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeVehicleGokbey
+ "Beş piyade taşıyan nakliye helikopteri."
+ END
+
+ OBJECT:TurkiyeJetAkinci
+ "Akıncı"
+ END
+
+ CONTROLBAR:ConstructTurkiyeJetAkinci
+ "&Akıncı"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeJetAkinci
+ "Ağır silahlı İHA. Uçaksavarın altında ölür."
+ END
+
+ OBJECT:TurkiyeJetKizilelma
+ "Kızılelma"
+ END
+
+ CONTROLBAR:ConstructTurkiyeJetKizilelma
+ "&Kızılelma"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeJetKizilelma
+ "Yalnız hava hakimiyeti: yere ateş edemez."
+ END
+
+ OBJECT:TurkiyeRadarTower
+ "Radar Kulesi"
+ END
+
+ CONTROLBAR:ConstructTurkiyeRadarTower
+ "Ra&dar Kulesi"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeRadarTower
+ "Ucuz sabit göz: topçu için 500 görür. Bir hedeftir."
+ END
+
+ OBJECT:TurkiyeAntiAirSite
+ "Uçaksavar Mevzisi"
+ END
+
+ CONTROLBAR:ConstructTurkiyeAntiAirSite
+ "&Uçaksavar Mevzisi"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeAntiAirSite
+ "Uçağa ve yere karşı sabit top."
+ END
+
+ OBJECT:TurkiyeLandMine
+ "Mayın"
+ END
+
+ CONTROLBAR:ConstructTurkiyeLandMine
+ "Ma&yın"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeLandMine
+ "Toprağa gömülü patlayıcı. Mayın seti ister."
+ END
+
+ UPGRADE:TurkiyeExtendedRange
+ "Uzatılmış Menzil"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeExtendedRange
+ "&Uzatılmış Menzil"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeExtendedRange
+ "Fırtına ve Sakarya yüzde 15 uzağa atar."
+ END
+
+ UPGRADE:TurkiyePrecisionGuidance
+ "Hassas Güdüm"
+ END
+
+ CONTROLBAR:UpgradeTurkiyePrecisionGuidance
+ "&Hassas Güdüm"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyePrecisionGuidance
+ "Kimsenin görmediği yere atışın dağılımı dörtte birine iner."
+ END
+
+ UPGRADE:TurkiyeArmorPack
+ "Zırh Paketi"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeArmorPack
+ "&Zırh Paketi"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeArmorPack
+ "Kirpi ile Altay'ın can puanı yüzde 20 artar."
+ END
+
+ UPGRADE:TurkiyeMineKit
+ "Mayın Seti"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeMineKit
+ "Ma&yın Seti"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeMineKit
+ "İstihkam takımı mayın döşeyebilir."
+ END
+
+ OBJECT:TurkiyeCommandCenter
+ "Karargah"
+ END
+
+ CONTROLBAR:ConstructTurkiyeCommandCenter
+ "Ka&rargah"
+ END
+
+ OBJECT:TurkiyePowerPlant
+ "Santral"
+ END
+
+ CONTROLBAR:ConstructTurkiyePowerPlant
+ "&Santral"
+ END
+
+ OBJECT:TurkiyeBarracks
+ "Kışla"
+ END
+
+ CONTROLBAR:ConstructTurkiyeBarracks
+ "&Kışla"
+ END
+
+ OBJECT:TurkiyeWarFactory
+ "Fabrika"
+ END
+
+ CONTROLBAR:ConstructTurkiyeWarFactory
+ "&Fabrika"
+ END
+
+ OBJECT:TurkiyeAirfield
+ "Hava Alanı"
+ END
+
+ CONTROLBAR:ConstructTurkiyeAirfield
+ "&Hava Alanı"
+ END
+
+ OBJECT:TurkiyeSupplyCenter
+ "İkmal Merkezi"
+ END
+
+ CONTROLBAR:ConstructTurkiyeSupplyCenter
+ "İk&mal Merkezi"
+ END
+
+ OBJECT:TurkiyePatriotBattery
+ "Siper Bataryası"
+ END
+
+ CONTROLBAR:ConstructTurkiyePatriotBattery
+ "Si&per Bataryası"
+ END
+
+ SCIENCE:TurkiyeMinefield
+ "Mayın Tarlası"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceMinefield
+ "Bir kargo uçağı gösterdiğiniz yere mayın döşer. \n \n Çağrıldığı yer: Karargah"
+ END
+
+ CONTROLBAR:TurkiyeMinefield
+ "Mayın Ta&rlası"
+ END
+
+ CONTROLBAR:TooltipTurkiyeMinefield
+ "Mayın Tarlası \n Geri Sayım: 4:00"
+ END
+
+ SCIENCE:TurkiyeFuelResupply
+ "Yakıt İkmali"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
+ "Bayraktar her uçuşta bir mühimmat, Akıncı bir bomba fazla taşır."
+ END
+
+ SCIENCE:TurkiyeSwarmMunition
+ "Gezgin Mühimmat"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
+ "Bir gezgin mühimmat gösterdiğin yerde döner ve bulduğu en pahalı hedefe dalar. \n \n Kullanıldığı yer: Karargah"
+ END
+
+ CONTROLBAR:TurkiyeSwarmMunition
+ "Gezgin &Mühimmat"
+ END
+
+ CONTROLBAR:TooltipTurkiyeSwarmMunition
+ "Gezgin Mühimmat \n Geri Sayım: 3:00"
+ END
+
+ SCIENCE:TurkiyeElectronicBlinding
+ "Elektronik Körleme"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
+ "Hedef alanda binası olan her düşmanın radarı 30 saniye kapanır. \n \n Kullanıldığı yer: Karargah"
+ END
+
+ CONTROLBAR:TurkiyeElectronicBlinding
+ "Elektronik &Körleme"
+ END
+
+ CONTROLBAR:TooltipTurkiyeElectronicBlinding
+ "Elektronik Körleme \n Geri Sayım: 4:00"
+ END
+
+ SCIENCE:TurkiyeSwarmStrike
+ "Sürü Akını"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
+ "Bir mühimmat sürüsü geniş bir alandaki en değerli on hedefi tek tek bulur, her birine bir mühimmat. Sıkışık bir üs bunu az hisseder, dağınık bir ordu çok. \n \n Kullanıldığı yer: Karargah"
+ END
+
+ CONTROLBAR:TurkiyeSwarmStrike
+ "Sürü Akı&nı"
+ END
+
+ CONTROLBAR:TooltipTurkiyeSwarmStrike
+ "Sürü Akını \n Geri Sayım: 6:00"
+ END
+
+ UPGRADE:TurkiyeThermal
+ "Termal Görüş"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeThermal
+ "T&ermal Görüş"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeThermal
+ "Gözcü timi ve Cobra 550'ye kadar görür, kamufle birimleri fark eder."
+ END
+
+ UPGRADE:TurkiyeFuelCell
+ "Yakıt Hücresi"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeFuelCell
+ "&Yakıt Hücresi"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeFuelCell
+ "Bayraktar ve Akıncı hedefin üstünde iki kat kalır, iki kat mühimmatla."
+ END
+
+ UPGRADE:TurkiyeSwarmSoftware
+ "Sürü Yazılımı"
+ END
+
+ CONTROLBAR:UpgradeTurkiyeSwarmSoftware
+ "Sürü Ya&zılımı"
+ END
+
+ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
+ "Bayraktar'ın mühimmatı hedefini kendi seçer: menzildeki en pahalı düşman."
+ END
+
+ UPGRADE:TurkiyeFuelResupply
+ "Yakıt İkmali"
+ END
+
+ CONTROLBAR:TurkiyeHijack
+ "Kamyonu Ka&p"
+ END
+
+ CONTROLBAR:ToolTipTurkiyeHijack
+ "Düşmanın tedarik kamyonunu yüküyle birlikte alır. Bordo bereli direksiyonda kalır."
+ END
diff --cc GeneralsMD/Code/GameEngine/Include/GameLogic/AIPlayer.h
index 037ed355f,d88984df1..5e11885ca
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/AIPlayer.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/AIPlayer.h
@@@ -354,49 -332,10 +354,52 @@@ protected
* that, with no clock; as many superweapons as the game's rules allow, and a few copies of the
* tech building so one of them blowing up leaves the tree standing. */
virtual void doSuperweapons(void);
+ void doParticleBeams(void); ///< drive a firing Particle Cannon's beam onto the richest ground within reach of it
+ Bool richestGroundNear(const Coord3D *spot, Real radius, Coord3D *aim); ///< that ground, FALSE when there is nothing worth moving to
+
+ /** The purchase queue (AIPurchaseQueue): every skirmish spender asks before it pays, on every rung
+ * with a bank target, and the thing at the top that cannot be afforded yet has the money saved for
+ * it. Off, every ask is yes and the engine's own money check decides, as before. */
+ Bool purchaseQueueOn(void);
+
+ /** The spend rule, on every rung with a bank target. Measures the income, and with the bank past
+ * aiBankTarget spends what is over it: upgrades at half the payoff, extra units from idle factories
+ * within aiSurplusBudget. Another factory of any kind whose every factory stays busy, whatever the
+ * bank. Upgrades that pay for the army are bought below the target as well, through the purchase
+ * queue. */
+ void doSpending(void);
+ Int bankTarget(void); ///< what the bank keeps, from the income measured last
+ void buyUpgradesForArmy(Bool overTarget); ///< the player upgrade the standing army gets the most out of
+ void addProductionForQueues(void); ///< another factory of each kind whose every factory has stayed busy
+ void trainSurplus(Int budget); ///< a unit from each idle factory, within budget
+ void trainFavoured(void); ///< a personality's favoured units, below the bank target as well
+ void buyPersonaTransports(void); ///< an Infantry AI's ground transports, a few by rung
+ void sendPersonaTransports(AIGroup *wave); ///< ... driven loaded to a wave's front, riders put down there
+ Int m_incomeMark; ///< money earned in all, when the income was last measured ...
+ UnsignedInt m_incomeMarkFrame; ///< ... and the frame, 0 for never
+ Int m_bankMark; ///< ... and the bank then
+ Real m_incomePerSecond; ///< smoothed over the windows measured so far
+ Int m_startFortune; ///< what the match started with over the default starting cash, 0 at the default
+ UnsignedInt m_factoryFullHistory[ 3 ]; ///< per war factory, barracks, airfield: a bit a spend pass, newest lowest, set when every finished one was full (busy, or an airfield's parking) (aiSampleFactories)
+ Int m_factoryFullCount[ 3 ]; ///< ... and how many passes that holds since one of the kind last went up
+ std::vector<ObjectID> m_producedSincePass; ///< the barracks and war factories that let a unit out since the last spend pass (onUnitProduced)
+ UnsignedInt m_parkingBlockedFrame; ///< the last frame a buy of an aircraft was refused because the airfield's parking was full, 0 for never
+ std::vector<AISiteWatch> m_siteWatches; ///< the unfinished buildings this AI placed, in the order first seen
+ std::vector<AICooledSpot> m_cooledSpots; ///< spots of sites it gave up on, left alone for a while
+ Bool watchSite(BuildListInfo *info, Object *bldg); ///< cancel and refund a site it cannot finish; TRUE when it did
+ Bool spotCooling(const Coord3D *pos); ///< a site was given up near here lately
+ void stageDozer(Object *dozer, const Coord3D *site); ///< an idle dozer walks ahead to a site waiting on money
+ Bool purchaseAllowed(Int key, Int cost, AIPurchaseKind kind, Bool startable, const AsciiString &what, Int scoreOffset = 0);
+ void purchased(Int key, Int cost, AIPurchaseKind kind, const AsciiString &what);
+ Bool buyUnit(ProductionUpdateInterface *pu, const ThingTemplate *unit, AIPurchaseKind kind); ///< queueCreateUnit through the queue
+ Bool buyUpgrade(ProductionUpdateInterface *pu, const UpgradeTemplate *upgrade, Int scoreOffset = 0); ///< queueUpgrade through the queue
+ AIPurchaseKind purchaseKindOf(const ThingTemplate *tmpl) const;
+ AIPurchaseQueue m_purchases;
+ AsciiString m_purchaseSavingFor; ///< the reserved item's name, for the log only
+ /** Fire every ready special power whose template says AIFiresWhenReady, once its science is bought. */
+ void doReadySpecialPowers(void);
+
Bool enemyDirection(Coord3D *dir); ///< unit vector from this base towards the nearest enemy's best known address
Bool isHeldExpansion(const Object *warehouse); ///< our supply center stands at it, and it is nearer our base than any enemy's
Bool isOurSideOfMap(const Coord3D *pos); ///< no nearer any living enemy's base than ours
diff --cc GeneralsMD/Code/GameEngine/Include/GameLogic/Locomotor.h
index 278595c40,fc6c3d287..b4c334182
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/Locomotor.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/Locomotor.h
@@@ -338,16 -318,16 +338,19 @@@ public
Bool isHelicopter(const Object* obj) const;
/**
- A tank, car or bike driving under its own power: treads, four wheels or a motorcycle, on an
- object that is no aircraft taxiing, and not in an ULTRA_ACCURATE manoeuvre. Its speed eases
- up and down, it brakes into bends and stops it can see coming, treads back up to a goal
- close behind and wheels turn no tighter than their wheelbase allows.
+ A tank, car or bike driving under its own power: treads, four wheels or a motorcycle, not in
+ an ULTRA_ACCURATE manoeuvre; or a jet taxiing on four wheels, which is. A helicopter taxiing
+ on treads is not. Its speed eases up and down, it brakes into bends and stops it can see
+ coming, treads back up to a goal close behind and wheels turn no tighter than their wheelbase
+ allows.
*/
Bool isGroundVehicle(const Object* obj) const;
+ /// the tightest circle a ground vehicle on wheels drives at speed, from its length
+ Real calcWheelTurnRadius(const Object* obj) const;
+ /// the owner's SpeedScale: Turkiye's reskins drive on the American locomotors at their own pace
+ inline void setSpeedScale(Real scale) { m_speedScale = scale; }
+
/// this is handy for doing things like forcing helicopters to crash realistically: cut their lift.
inline void setMaxLift(Real lift) { m_maxLift = lift; }
inline void setMaxSpeed(Real speed)
@@@ -524,7 -490,7 +527,8 @@@ private
Real m_brakingFactor;
Real m_maxLift;
Real m_maxSpeed;
+ Real m_speedFactor;
+ Real m_speedScale; ///< multiplies the template's speeds; 1 unless the owner's template sets SpeedScale
Real m_maxAccel;
Real m_maxBraking;
Real m_maxTurnRate;
diff --cc GeneralsMD/Code/GameEngine/Include/GameLogic/LocomotorSet.h
index a2d2eba43,acb2bbcad..4c15ee841
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/LocomotorSet.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/LocomotorSet.h
@@@ -102,9 -102,9 +102,11 @@@ public
void addLocomotor(const LocomotorTemplate* lt);
+ void setSpeedScale(Real scale); ///< on every locomotor in the set (Locomotor::setSpeedScale)
+
Locomotor* findLocomotor(LocomotorSurfaceTypeMask t);
+
+ void setSpeedFactor(Real factor); ///< Locomotor::setSpeedFactor on each
void xferSelfAndCurLocoPtr(Xfer *xfer, Locomotor** loco);
diff --cc GeneralsMD/Code/GameEngine/Include/GameLogic/SidesList.h
index d8dacadad,94db2afd1..54c506b47
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/SidesList.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/SidesList.h
@@@ -163,15 -162,6 +163,18 @@@ public
void prepareForMP_or_Skirmish(void); // After a map is loaded, save & clear any players.
+ /** The skirmish side a computer player on pt copies its scripts from, and in *teams (when asked) the
+ * record its teams are in. Under -modfactions a mod faction takes its own mod's side of the same
+ * Side (that mod's SkirmishScripts.scb, loadModSkirmishScripts) and retail's when the mod ships
- * none; a retail faction takes retail's. NULL when there is none. */
++ * none; a retail faction takes retail's. A faction no script was written for (Turkiye) takes its
++ * BaseSide's original faction's. NULL when there is none. */
+ SidesInfo *findSkirmishSideFor(const PlayerTemplate *pt, TeamsInfoRec **teams);
++ /// findSkirmishSideFor's search for one Side name
++ SidesInfo *findSkirmishSideNamed(const AsciiString& side, Int mod, TeamsInfoRec **teams);
+ /// how well a skirmish side of candidateSide from candidateMod (-1 retail) fits a player of side from
+ /// mod: 2 the player's own, 1 retail's standing in for a mod faction, 0 not at all
+ static Int skirmishSideFit(const AsciiString& candidateSide, Int candidateMod, const AsciiString& side, Int mod);
+
Int getNumTeams() { return m_teamrec.getNumTeams(); }
void emptyTeams();
void addTeam(const Dict* d);
diff --cc GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
index 0a83ec643,e3a138e22..8523d3828
--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
@@@ -1168,9 -1098,10 +1168,11 @@@ void GameEngine::init( int argc, char *
initSubsystem(TheMessageStream,"TheMessageStream", createMessageStream(), NULL);
initSubsystem(TheSidesList,"TheSidesList", MSGNEW("GameEngineSubsystem") SidesList(), NULL);
initSubsystem(TheCaveSystem,"TheCaveSystem", MSGNEW("GameEngineSubsystem") CaveSystem(), NULL);
- initSubsystem(TheRankInfoStore,"TheRankInfoStore", MSGNEW("GameEngineSubsystem") RankInfoStore(), &xferCRC, NULL, "Data\\INI\\Rank.ini");
- initSubsystem(ThePlayerTemplateStore,"ThePlayerTemplateStore", MSGNEW("GameEngineSubsystem") PlayerTemplateStore(), &xferCRC, "Data\\INI\\Default\\PlayerTemplate.ini", "Data\\INI\\PlayerTemplate.ini");
+ // -modfactions: each mod's own Rank.ini, the table its factions climb (RankInfoStore::getRankInfo)
+ initFactionSubsystem(TheRankInfoStore,"TheRankInfoStore", MSGNEW("GameEngineSubsystem") RankInfoStore(), &xferCRC, NULL, "Data\\INI\\Rank.ini");
+ initFactionSubsystem(ThePlayerTemplateStore,"ThePlayerTemplateStore", MSGNEW("GameEngineSubsystem") PlayerTemplateStore(), &xferCRC, "Data\\INI\\Default\\PlayerTemplate.ini", "Data\\INI\\PlayerTemplate.ini");
+ // The fork's own factions: a new name is added after EA's, an existing one is edited in place
+ ini.load( AsciiString( "Data\\INI\\PlayerTemplateReforged.ini" ), INI_LOAD_MULTIFILE, &xferCRC );
initSubsystem(TheParticleSystemManager,"TheParticleSystemManager", createParticleSystemManager(), NULL);
#ifdef DUMP_PERF_STATS///////////////////////////////////////////////////////////////////////////
@@@ -1187,12 -1118,11 +1189,15 @@@
stale against every patch, it cannot be reviewed, and - since it lands in the INI CRC below -
it silently refuses every multiplayer join from a machine that does not have the same one. */
ini.load( AsciiString( "Data\\INI\\FXListReforged.ini" ), INI_LOAD_OVERWRITE, &xferCRC );
- initSubsystem(TheWeaponStore,"TheWeaponStore", MSGNEW("GameEngineSubsystem") WeaponStore(), &xferCRC, NULL, "Data\\INI\\Weapon.ini");
+ initFactionSubsystem(TheWeaponStore,"TheWeaponStore", MSGNEW("GameEngineSubsystem") WeaponStore(), &xferCRC, NULL, "Data\\INI\\Weapon.ini");
+ /* Weapons of the fork's own that BalanceReforged.ini hands out. It cannot add one, and borrowing
+ one of EA's that nothing fires broke under a mod whose Weapon.ini leaves it out (Contra's Paladin
+ found no infantry laser and crashed); a new name here exists whatever Weapon.ini loaded. */
+ ini.load( AsciiString( "Data\\INI\\WeaponReforged.ini" ), INI_LOAD_OVERWRITE, &xferCRC );
+ /* Turkiye's own weapons. OVERWRITE rather than MULTIFILE: a patch file may only edit a weapon
+ that exists, and every one of these is new. */
+ ini.load( AsciiString( "Data\\INI\\TurkiyeWeaponReforged.ini" ), INI_LOAD_OVERWRITE, &xferCRC );
- initSubsystem(TheObjectCreationListStore,"TheObjectCreationListStore", MSGNEW("GameEngineSubsystem") ObjectCreationListStore(), &xferCRC, "Data\\INI\\Default\\ObjectCreationList.ini", "Data\\INI\\ObjectCreationList.ini");
+ initFactionSubsystem(TheObjectCreationListStore,"TheObjectCreationListStore", MSGNEW("GameEngineSubsystem") ObjectCreationListStore(), &xferCRC, "Data\\INI\\Default\\ObjectCreationList.ini", "Data\\INI\\ObjectCreationList.ini");
/* Lists EA left out or got wrong, before any object names one: a list parsed again is cleared
and replaced whole, and a new name is simply added. */
ini.load( AsciiString( "Data\\INI\\ObjectCreationListReforged.ini" ), INI_LOAD_OVERWRITE, &xferCRC );
@@@ -1252,11 -1180,8 +1259,13 @@@
initSubsystem(TheAI,"TheAI", MSGNEW("GameEngineSubsystem") AI(), &xferCRC, "Data\\INI\\Default\\AIData.ini", "Data\\INI\\AIData.ini");
+ /* -modfactions: each mod's sides' build lists and skill sets, under "M<n>~<side>". Unlike the
+ other faction files this one reads the mod's Default\ copy too: ShockWave and The End of Days
+ keep their whole AIData there, as retail does, and End of Days' AIData.ini is an empty block. */
+ INI::loadModPasses( "Data\\INI\\Default\\AIData.ini", &xferCRC );
+ INI::loadModPasses( "Data\\INI\\AIData.ini", &xferCRC );
+ // SideInfo and SkirmishBuildList for the fork's factions: a side named again is edited, a new one added
+ ini.load( AsciiString( "Data\\INI\\AIDataReforged.ini" ), INI_LOAD_MULTIFILE, &xferCRC );
initSubsystem(TheGameLogic,"TheGameLogic", createGameLogic(), NULL);
initSubsystem(TheTeamFactory,"TheTeamFactory", MSGNEW("GameEngineSubsystem") TeamFactory(), NULL);
initSubsystem(TheCrateSystem,"TheCrateSystem", MSGNEW("GameEngineSubsystem") CrateSystem(), &xferCRC, "Data\\INI\\Default\\Crate.ini", "Data\\INI\\Crate.ini");
diff --cc GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
index ff220e894,2154bc820..f30d2973e
--- a/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
@@@ -3929,7 -3851,9 +3956,10 @@@ void Player::jamRadarUntil( UnsignedIn
//-------------------------------------------------------------------------------------------------
Bool Player::hasRadar() const
{
+ LOGIC_WINDOW_READ( WINDOW_PLAYER_STATE );
+ if( TheGameLogic->getFrame() < m_radarJammedUntilFrame )
+ return FALSE;
+
if( m_radarDisabled && (m_disableProofRadarCount == 0) )
return FALSE;// Nope, no matter how many you have, if I say no, you don't have it
diff --cc GeneralsMD/Code/GameEngine/Source/Common/System/BuildAssistant.cpp
index 93f5747bf,53d1ef496..bf4596de3
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/BuildAssistant.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/BuildAssistant.cpp
@@@ -1528,8 -1386,26 +1532,26 @@@ Bool BuildAssistant::isPossibleToMakeUn
if( builder == NULL || whatToBuild == NULL )
return FALSE;
+ const ThingTemplate *buttonTemplate = findBuildButtonTemplate( builder, whatToBuild );
+ if( buttonTemplate == NULL )
+ return FALSE;
+
+ // make sure that the player can actually make this unit by checking prereqs and such
+ Player *player = builder->getControllingPlayer();
+ if( player->canBuild( buttonTemplate ) == FALSE )
+ return FALSE;
+
+ // all is well
+ return TRUE;
+
+ }
+
+ //-------------------------------------------------------------------------------------------------
+ const ThingTemplate *BuildAssistant::findBuildButtonTemplate( Object *builder, const ThingTemplate *whatToBuild ) const
+ {
+
// get the command set for the producer object
- const CommandSet *commandSet = TheControlBar->findCommandSet( builder->getCommandSetString() );
+ const CommandSet *commandSet = TheCommandStore->findCommandSet( builder->getCommandSetString() );
// if no command set we cannot build anything
if( commandSet == NULL )
diff --cc GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp
index e65125b30,778554e71..fd6d8f158
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp
@@@ -1172,14 -1097,21 +1172,15 @@@ void ControlBarSchemeManager::setContro
side.set("Observer");
// picked again every time, even for the side on screen: a new resolution can want a different
// scheme for it (findSchemeForSide), and the multiplier below is the screen's
- ControlBarScheme *tempScheme = findSchemeForSide( side );
- // a faction with no bar of its own (the fork's Turkiye) wears the original faction's it is built on
- if(tempScheme == NULL)
- {
- side = ThePlayerTemplateStore->getOldFactionSide( pt->getBaseSide() );
- if(useSmall)
- side.concat("Small");
- tempScheme = findSchemeForSide( side );
- }
- DEBUG_LOG(("setControlBarSchemeByPlayer used %s as its side\n", side.str()));
-
+ // the squished bar keeps EA's pick: the side's Small scheme, and none ships, so "Default"
+ AsciiString smallSide = side;
+ smallSide.concat("Small");
++ // a side with no bar of its own (the fork's Turkiye) wears America's (findSchemeForFaction)
+ ControlBarScheme *tempScheme = useSmall ? findSchemeForSide( smallSide ) : findSchemeForFaction( side );
if(tempScheme)
{
- // setup the multiplyer value
- m_multiplyer.x = TheDisplay->getWidth() / (Real)tempScheme->m_ScreenCreationRes.x;
+ DEBUG_LOG(("setControlBarSchemeByPlayer gave side %s the scheme of %s\n", side.str(), tempScheme->m_side.str()));
+ m_multiplyer.x = TheDisplay->getWidth() / (Real)tempScheme->m_ScreenCreationRes.x;
m_multiplyer.y = TheDisplay->getHeight() / (Real)tempScheme->m_ScreenCreationRes.y;
m_currentScheme = tempScheme;
}
@@@ -1208,12 -1146,31 +1209,12 @@@ void ControlBarSchemeManager::setContro
side.set("Observer");
// picked again every time, even for the side on screen: a new resolution can want a different
// scheme for it (findSchemeForSide), and the multiplier below is the screen's
- // the neutral and civilian players are of no country, and wear America's
- ControlBarScheme *tempScheme = findSchemeForSide( side );
- // a faction with no bar of its own (the fork's Turkiye) wears the original faction's it is built on
- if(tempScheme == NULL)
- {
- side = ThePlayerTemplateStore->getOldFactionSide( p->getBaseSide() );
- tempScheme = findSchemeForSide( side );
- }
- DEBUG_LOG(("setControlBarSchemeByPlayer used %s as its side\n", side.str()));
-
- if(tempScheme)
- {
- // setup the multiplyer value
- m_multiplyer.x = TheDisplay->getWidth() / (Real)tempScheme->m_ScreenCreationRes.x;
- m_multiplyer.y = TheDisplay->getHeight() / (Real)tempScheme->m_ScreenCreationRes.y;
- m_currentScheme = tempScheme;
- }
- else
- {
- // well, we couldn't find
- m_currentScheme = findControlBarScheme("Default");
- DEBUG_LOG(("There's no ControlBarScheme with a side of %s", side.str()));
-// m_currentScheme = NULL;
- }
- if(m_currentScheme)
- m_currentScheme->init();
++ // the neutral and civilian players are of no country, and wear America's, as does Turkiye
+ m_currentScheme = findSchemeForFaction( side );
+ DEBUG_LOG(("setControlBarSchemeByPlayer gave side %s the scheme of %s\n", side.str(), m_currentScheme->m_side.str()));
+ m_multiplyer.x = TheDisplay->getWidth() / (Real)m_currentScheme->m_ScreenCreationRes.x;
+ m_multiplyer.y = TheDisplay->getHeight() / (Real)m_currentScheme->m_ScreenCreationRes.y;
+ m_currentScheme->init();
}
diff --cc GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPlayer.cpp
index 28aeafb95,88ec45751..5e1361575
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPlayer.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPlayer.cpp
@@@ -2688,12 -2249,14 +2703,17 @@@ Bool AIPlayer::isPossibleToBuildTeam( T
{
const TCreateUnitsInfo *unitInfo = &proto->getTemplateInfo()->m_unitsInfo[0];
const ThingTemplate *thing = TheThingFactory->findTemplate( unitInfo[i].unitThingName );
+ if (thing && sideCanNeverField(m_player, thing)) {
+ anyLeftOut = true;
+ continue;
+ }
if (thing) {
+ anyFielded = true;
Int thingCost = thing->calcCostToBuild(m_player);
- if (NULL == findFactory(thing, true)) {
+ // One walk of the build list, not two: findFactory hands back the first idle factory
+ // when there is one and a busy one only when none is idle, so its queue says which.
+ Object *factory = findFactory(thing, true);
+ if (NULL == factory) {
// Couldn't find a factory.
return false;
}
@@@ -5431,31 -4522,20 +5453,32 @@@ void AIPlayer::update( void
AI_PHASE( AIP_TEAM, doTeamBuilding() ); // See if it's time to start another team.
AI_PHASE( AIP_UPGRADE, doUpgradesAndSkills() ); // See if it's time to build an upgrade or buy a skill.
AI_PHASE( AIP_BRIDGE, updateBridgeRepair() ); // Handle any bridge repairs.
- AI_PHASE( AIP_SCOUT, doScouting() ); // Keep one unit looking at the map.
- AI_PHASE( AIP_RETREAT, doRetreats() ); // Break off the fights we are losing.
- AI_PHASE( AIP_EXPAND, doExpansion() ); // Go and take the money that is lying around.
- AI_PHASE( AIP_CAPTURE, doCapture() ); // ... and the money that is standing around.
- AI_PHASE( AIP_CAPTURE, doHijack() ); // Take the enemy's tanks rather than shoot them.
- AI_PHASE( AIP_ECONOMY, doEconomy() ); // ... and the money sitting in the bank.
- AI_PHASE( AIP_POWER, doPower() ); // Keep the lights on, and out of reach.
- AI_PHASE( AIP_ECONOMY, doSuperweapons() ); // The big guns, as soon as they can be bought.
- AI_PHASE( AIP_ECONOMY, doReadySpecialPowers() ); // The powers no script knows to fire, as soon as they are ready.
- AI_PHASE( AIP_WAVE, doWaves() ); // Send the parked attack teams out together.
- AI_PHASE( AIP_TACTICS, doTactics() ); // Fight each unit from where it is strongest.
- AI_PHASE( AIP_TACTICS, doTransports() ); // Put the helicopters' riders down at the fight.
- AI_PHASE( AIP_TACTICS, doShuttles() ); // Fly the wave's ground units up its road.
- AI_PHASE( AIP_TACTICS, doHelixes() ); // Helix upgrades by the enemy army, healers, bomb raids.
+ // Everything below is the skirmish AI's own. A Challenge or mission opponent is handed its money,
+ // its base, its attacks and its superweapon by the map script, which is the whole of its difficulty:
+ // run on top of that, Kwai's $30000 stood three nuclear silos a minute into the match.
+ if( isSkirmishAI() )
+ {
+ AI_PHASE( AIP_SCOUT, doScouting() ); // Keep one unit looking at the map.
+ AI_PHASE( AIP_RETREAT, doRetreats() ); // Break off the fights we are losing.
+ AI_PHASE( AIP_EXPAND, doExpansion() ); // Go and take the money that is lying around.
+ AI_PHASE( AIP_CAPTURE, doCapture() ); // ... and the money that is standing around.
+ AI_PHASE( AIP_CAPTURE, doHijack() ); // Take the enemy's tanks rather than shoot them.
+ AI_PHASE( AIP_ECONOMY, doEconomy() ); // ... and the money sitting in the bank.
+ AI_PHASE( AIP_ECONOMY, doSpending() ); // Upgrades for the army, and whatever is over the bank target.
+ AI_PHASE( AIP_POWER, doPower() ); // Keep the lights on, and out of reach.
+ AI_PHASE( AIP_ECONOMY, doSuperweapons() ); // The big guns, as soon as they can be bought.
+ AI_PHASE( AIP_TACTICS, doParticleBeams() ); // ... and the Particle Cannon's beam driven across his base.
++ AI_PHASE( AIP_ECONOMY, doReadySpecialPowers() ); // The powers no script knows to fire, as soon as they are ready.
+ AI_PHASE( AIP_WAVE, rememberEnemies() ); // Write down the enemy army in sight.
+ AI_PHASE( AIP_WAVE, answerArmy() ); // Train the answer to the part of it nothing answers.
+ AI_PHASE( AIP_WAVE, doMass() ); // Build the fist, and send it when it is one.
+ AI_PHASE( AIP_WAVE, doWaves() ); // Send the parked attack teams out together.
+ AI_PHASE( AIP_TACTICS, doTactics() ); // Fight each unit from where it is strongest.
+ AI_PHASE( AIP_TACTICS, doTransports() ); // Put the helicopters' riders down at the fight.
+ AI_PHASE( AIP_TACTICS, doShuttles() ); // Fly the wave's ground units up its road.
+ AI_PHASE( AIP_TACTICS, doHelixes() ); // Helix upgrades by the enemy army, healers, bomb raids.
+ AI_PHASE( AIP_TACTICS, doAmbulances() ); // Ambulances behind the army, for the hurt and the hazards.
+ }
#ifdef DEBUG_LOGGING
Int64 playerEnd;
@@@ -7538,222 -5974,57 +7561,273 @@@ void AIPlayer::doSuperweapons( void
buildAsap( superweapon );
}
+static void findParticleCannons( Object *obj, void *userData )
+{
+ static const NameKeyType key = NAMEKEY( "ParticleUplinkCannonUpdate" );
+ if( !obj->isKindOf( KINDOF_FS_SUPERWEAPON ) )
+ return;
+ ParticleUplinkCannonUpdate *cannon = (ParticleUplinkCannonUpdate *)obj->findUpdateModule( key );
+ if( cannon )
+ ((std::vector<ParticleUplinkCannonUpdate *> *)userData)->push_back( cannon );
+}
+
+/** How far from the burning spot a steer looks, about four seconds of the beam's fast drive. */
+const Real BEAM_STEER_REACH = 150.0f;
+/** The look is a square of this many steps each side of the burning spot. */
+const Int BEAM_STEER_STEPS = 3;
+
+//----------------------------------------------------------------------------------------------------------
+/** A computer player's Particle Cannon used to draw EA's S curve: 200 feet along the line from the
+ * uplink to the aim point, 50 either side of it, whatever stood there. The aim was the richest
+ * spot in his base, and most of the ten seconds of beam burned the ground on either side of it.
+ * A player drives the beam instead, from one building to the next. So does this: every
+ * m_beamSteerSeconds it looks around the spot the beam is burning, and sends it to the ground
+ * worth most with the same score the aim used, nearer ground preferred. What the beam has killed
+ * drops out of that score, so it moves on from a dead cluster to the next one by itself.
+ * Hard steers more often than the game's double click delay, which makes the cannon drive at its
+ * fast speed; Medium drives at the walking speed; Easy keeps the S curve. */
+//----------------------------------------------------------------------------------------------------------
+void AIPlayer::doParticleBeams( void )
+{
+ const Real every = getSkillProfile()->m_beamSteerSeconds;
+ if( every <= 0.0f )
+ return;
+ const Int rate = REAL_TO_INT_CEIL( every * LOGICFRAMES_PER_SECOND );
+ if( TheGameLogic->getFrame() % rate != 0 )
+ return;
+
+ std::vector<ParticleUplinkCannonUpdate *> cannons;
+ m_player->iterateObjects( findParticleCannons, &cannons );
+ for( size_t i = 0; i < cannons.size(); ++i )
+ {
+ Coord3D spot;
+ Real radius;
+ if( !cannons[ i ]->getBurningSpot( &spot, &radius ) )
+ continue;
+ Coord3D aim;
+ if( richestGroundNear( &spot, radius, &aim ) )
+ cannons[ i ]->setSpecialPowerOverridableDestination( &aim );
+ }
+}
+
+//----------------------------------------------------------------------------------------------------------
+Bool AIPlayer::richestGroundNear( const Coord3D *spot, Real radius, Coord3D *aim )
+{
+ const Int me = m_player->getPlayerIndex();
+ const Real step = BEAM_STEER_REACH / BEAM_STEER_STEPS;
+ Real best = 0.0f;
+ for( Int x = -BEAM_STEER_STEPS; x <= BEAM_STEER_STEPS; ++x )
+ {
+ for( Int y = -BEAM_STEER_STEPS; y <= BEAM_STEER_STEPS; ++y )
+ {
+ Coord3D pos;
+ pos.x = spot->x + x * step;
+ pos.y = spot->y + y * step;
+ pos.z = 0.0f;
+ Int value = 0;
+ for( Int p = 0; p < ThePlayerList->getPlayerCount(); ++p )
+ {
+ Player *other = ThePlayerList->getNthPlayer( p );
+ if( other != m_player && m_player->getRelationship( other->getDefaultTeam() ) == ENEMIES )
+ value += getPlayerSuperweaponValue( &pos, p, radius, TRUE, me, strikeEconomyWeight(), strikeThreatWeight() );
+ }
+ const Real distance = sqrt( (Real)(x * x + y * y) ) * step;
+ const Real worth = value * (1.0f - 0.5f * distance / BEAM_STEER_REACH);
+ if( worth > best )
+ {
+ best = worth;
+ *aim = pos;
+ }
+ }
+ }
+ if( best <= 0.0f )
+ return FALSE;
+ aim->z = TheTerrainLogic->getGroundHeight( aim->x, aim->y );
+ DEBUG_LOG(("AI BEAM frame %d player %d drives the beam from (%.0f,%.0f) to (%.0f,%.0f), worth %.0f, radius %.0f\n",
+ TheGameLogic->getFrame(), me, spot->x, spot->y, aim->x, aim->y, best, radius));
+ return TRUE;
+}
+
+//----------------------------------------------------------------------------------------------------------
+/** The purchase queue. Every skirmish rung with a bank target, each saving below its own target; every
+ * campaign AI buys exactly as it did. */
+//----------------------------------------------------------------------------------------------------------
+Bool AIPlayer::purchaseQueueOn( void )
+{
+ return isSkirmishAI() && getSkillProfile()->m_bankTargetSeconds > 0.0f;
+}
+
+Int AIPlayer::bankTarget( void )
+{
+ const AIDifficultyProfile *profile = getSkillProfile();
+ return aiBankTarget( m_incomePerSecond, profile->m_bankTargetSeconds, profile->m_bankTargetFloor );
+}
+
+AIPurchaseKind AIPlayer::purchaseKindOf( const ThingTemplate *tmpl ) const
+{
+ if( tmpl->isKindOf( KINDOF_DOZER ) )
+ return AIBUY_DOZER;
+ if( tmpl->isKindOf( KINDOF_FS_POWER ) && !tmpl->isKindOf( KINDOF_CASH_GENERATOR ) )
+ return AIBUY_POWER;
+ if( tmpl->isKindOf( KINDOF_HARVESTER ) || tmpl->isKindOf( KINDOF_MONEY_HACKER ) || tmpl->isKindOf( KINDOF_FS_SUPPLY_CENTER ) ||
+ tmpl->isKindOf( KINDOF_FS_SUPPLY_DROPZONE ) || tmpl->isKindOf( KINDOF_FS_BLACK_MARKET ) || tmpl->isKindOf( KINDOF_FS_INTERNET_CENTER ) )
+ return AIBUY_ECONOMY;
+ if( tmpl->isKindOf( KINDOF_FS_SUPERWEAPON ) || tmpl->isKindOf( KINDOF_FS_ADVANCED_TECH ) )
+ return AIBUY_SUPERWEAPON;
+ if( tmpl->isKindOf( KINDOF_FS_BASE_DEFENSE ) )
+ return AIBUY_DEFENSE;
+ // the Turtle's demo traps are part of its line, and waited behind every building as one of them
+ if( m_persona == AIPERSONA_TURTLE && tmpl->isKindOf( KINDOF_DEMOTRAP ) )
+ return AIBUY_DEFENSE;
+ if( tmpl->isKindOf( KINDOF_STRUCTURE ) )
+ return AIBUY_BASE;
+ return AIBUY_ARMY;
+}
+
+Bool AIPlayer::purchaseAllowed( Int key, Int cost, AIPurchaseKind kind, Bool startable, const AsciiString &what, Int scoreOffset )
+{
+ if( !purchaseQueueOn() )
+ return TRUE;
+
+ const UnsignedInt now = TheGameLogic->getFrame();
+ const Int money = (Int)m_player->getMoney()->countMoney();
+ const Int held = m_purchases.m_held;
+ const AIPurchaseQueue::Lapse lapse = m_purchases.expire( now );
+ if( lapse != AIPurchaseQueue::KEPT )
+ DEBUG_LOG(("AI QUEUE frame %d player %d stops saving for '%s', %s, %d held back for it, %d in the bank\n", now,
+ m_player->getPlayerIndex(), m_purchaseSavingFor.str(), lapse == AIPurchaseQueue::STALE ? "no longer asked for" : "timed out",
+ held, money));
+
+ Int score = aiPurchaseScore( kind, now < AI_PURCHASE_EARLY_FRAMES );
+ if( m_persona != AIPERSONA_NORMAL )
+ score += personaWeights().m_buy[ kind ] + scoreOffset;
+ const Int target = bankTarget();
+ const AIPurchaseQueue::Verdict verdict = m_purchases.ask( key, cost, score, startable, money, target, now );
+ if( verdict == AIPurchaseQueue::RESERVED )
+ {
+ m_purchaseSavingFor = what;
+ DEBUG_LOG(("AI QUEUE frame %d player %d saves for '%s', %d of %d in the bank, score %d, bank target %d\n", now,
+ m_player->getPlayerIndex(), what.str(), money, cost, score, target));
+ }
+ return verdict == AIPurchaseQueue::BUY;
+}
+
+void AIPlayer::purchased( Int key, Int cost, AIPurchaseKind kind, const AsciiString &what )
+{
+ if( !purchaseQueueOn() )
+ return;
+ const UnsignedInt now = TheGameLogic->getFrame();
+ if( key == m_purchases.m_key )
+ DEBUG_LOG(("AI QUEUE frame %d player %d buys '%s' for %d, score %d, %d left in the bank, saved for over %d frames and %d held buys\n",
+ now, m_player->getPlayerIndex(), what.str(), cost, aiPurchaseScore( kind, now < AI_PURCHASE_EARLY_FRAMES ),
+ m_player->getMoney()->countMoney(), now - m_purchases.m_since, m_purchases.m_held));
+ else
+ DEBUG_LOG(("AI QUEUE frame %d player %d buys '%s' for %d, score %d, %d left in the bank\n", now,
+ m_player->getPlayerIndex(), what.str(), cost, aiPurchaseScore( kind, now < AI_PURCHASE_EARLY_FRAMES ),
+ m_player->getMoney()->countMoney()));
+ m_purchases.bought( key );
+}
+
+Bool AIPlayer::buyUnit( ProductionUpdateInterface *pu, const ThingTemplate *unit, AIPurchaseKind kind )
+{
+ // an airfield with every parking place taken refuses the aircraft (queueCreateUnit fails on it), so
+ // nothing is saved for one, and the refusal is what says the computer wants another airfield
+ if( pu->canQueueCreateUnit( unit ) == CANMAKE_PARKING_PLACES_FULL )
+ {
+ m_parkingBlockedFrame = TheGameLogic->getFrame();
+ return FALSE;
+ }
+ const Int cost = unit->calcCostToBuild( m_player );
+ // a personality's taste moves an army unit up or down the queue: the scripts' teams of a kind it
+ // does not like wait while its favoured units are saved for
+ Int offset = 0;
+ if( m_persona != AIPERSONA_NORMAL && kind == AIBUY_ARMY )
+ {
+ const Real taste = unitTaste( personaKindTaste(), unit );
+ offset = taste > 0.0f ? PERSONA_LIKED_SCORE : taste < 0.0f ? PERSONA_DISLIKED_SCORE : 0;
+ }
+ if( !purchaseAllowed( unit->getTemplateID(), cost, kind, pu->getProductionCount() == 0, unit->getName(), offset ) )
+ return FALSE;
+ if( !pu->queueCreateUnit( unit, pu->requestUniqueUnitID() ) )
+ return FALSE;
+ purchased( unit->getTemplateID(), cost, kind, unit->getName() );
+ return TRUE;
+}
+
+/** An upgrade's key: its bit in the upgrade mask, which the upgrade center hands out in INI order,
+ * past every template id. */
+static Int upgradePurchaseKey( const UpgradeTemplate *upgrade )
+{
+ const UpgradeMaskType mask = upgrade->getUpgradeMask();
+ for( Int i = 0; i < UPGRADE_MAX_COUNT; ++i )
+ if( mask.test( i ) )
+ return 0x10000 + i;
+ return 0x10000 + UPGRADE_MAX_COUNT;
+}
+
+Bool AIPlayer::buyUpgrade( ProductionUpdateInterface *pu, const UpgradeTemplate *upgrade, Int scoreOffset )
+{
+ const Int key = upgradePurchaseKey( upgrade );
+ const Int cost = upgrade->calcCostToBuild( m_player );
+ if( !purchaseAllowed( key, cost, AIBUY_UPGRADE, pu->getProductionCount() == 0, upgrade->getUpgradeName(), scoreOffset ) )
+ return FALSE;
+ if( !pu->queueUpgrade( upgrade ) )
+ return FALSE;
+ purchased( key, cost, AIBUY_UPGRADE, upgrade->getUpgradeName() );
+ return TRUE;
+}
+
+ //----------------------------------------------------------------------------------------------------------
+ static void collectObjects( Object *obj, void *userData )
+ {
+ ((std::vector<Object*> *)userData)->push_back( obj );
+ }
+
+ //----------------------------------------------------------------------------------------------------------
+ /** The skirmish scripts fire the powers they name and nothing else, so a side that runs another
+ * side's scripts (Turkiye runs America's) never touched its own. A power marked AIFiresWhenReady goes
+ * off the moment it is ready and the science behind it is bought, at the target the scripts' own
+ * "fire at most cost" would pick. */
+ //----------------------------------------------------------------------------------------------------------
+ static const Int SPECIAL_POWER_CHECK_RATE = 2 * LOGICFRAMES_PER_SECOND;
+
+ void AIPlayer::doReadySpecialPowers( void )
+ {
+ const Int phase = computeUpdatePhase( m_player->getPlayerIndex(), SPECIAL_POWER_CHECK_RATE );
+ if( (TheGameLogic->getFrame() + phase) % SPECIAL_POWER_CHECK_RATE != 0 )
+ return;
+ Player *enemy = getAiEnemy();
+ if( enemy == NULL )
+ return;
+
+ std::vector<Object*> owned;
+ m_player->iterateObjects( collectObjects, &owned );
+ for( std::vector<Object*>::iterator it = owned.begin(); it != owned.end(); ++it )
+ {
+ Object *obj = *it;
+ if( obj->isEffectivelyDead() || obj->isDisabled() )
+ continue;
+ for( BehaviorModule **m = obj->getBehaviorModules(); *m; ++m )
+ {
+ SpecialPowerModuleInterface *power = (*m)->getSpecialPower();
+ if( power == NULL || !power->getSpecialPowerTemplate()->isFiredByAIWhenReady() || !power->isReady() )
+ continue;
+ const ScienceType science = power->getRequiredScience();
+ if( science != SCIENCE_INVALID && !m_player->hasScience( science ) )
+ continue;
+
+ const SpecialPowerTemplate *tmpl = power->getSpecialPowerTemplate();
+ const Real radius = max( 50.0f, tmpl->getRadiusCursorRadius() );
+ Coord3D target;
+ if( !m_player->computeSuperweaponTarget( tmpl, &target, enemy->getPlayerIndex(), radius ) || target.lengthSqr() <= 0.0f )
+ continue;
+ DEBUG_LOG(("AI POWER frame %d player %d fires '%s' at (%.0f,%.0f)\n", TheGameLogic->getFrame(),
+ m_player->getPlayerIndex(), tmpl->getName().str(), target.x, target.y));
+ power->doSpecialPowerAtLocation( &target, INVALID_ANGLE, COMMAND_FIRED_BY_SCRIPT );
+ }
+ }
+ }
+
//----------------------------------------------------------------------------------------------------------
/** A money unit from every factory that trains one and has at most one thing in its queue. An
* idle-only rule measured as two hackers in a whole match, because a barracks feeding the army is
diff --cc GeneralsMD/Code/GameEngine/Source/GameLogic/Map/SidesList.cpp
index 8bff5a901,49b44e96c..a80a2c8ab
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Map/SidesList.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Map/SidesList.cpp
@@@ -468,217 -475,7 +468,229 @@@ static Bool ParseModTeamsDataChunk(Data
return true;
}
+/** What a mod's skirmish scripts call its own: its kept players and their default teams under
+ * "M<n>~", and what they build, upgrade, research, fire or press read as the mod's where it defines
+ * one. Script, flag and counter names stay, Player::initFromDict qualifies those per player. */
+struct ModScriptNames
+{
+ Int mod;
+ AsciiString prefix;
+ std::vector<AsciiString> players;
+
+ Bool isPlayer(const AsciiString& name) const
+ {
+ return std::find(players.begin(), players.end(), name) != players.end();
+ }
+ AsciiString player(const AsciiString& name) const
+ {
+ if (!isPlayer(name))
+ return name;
+ AsciiString renamed = prefix;
+ renamed.concat(name);
+ return renamed;
+ }
+ /// a player's default team is "team<player>" (Player::setDefaultTeam), so it follows the player
+ AsciiString team(const AsciiString& name) const
+ {
+ if (!name.startsWith("team") || !isPlayer(AsciiString(name.str() + 4)))
+ return name;
+ AsciiString renamed = "team";
+ renamed.concat(player(AsciiString(name.str() + 4)));
+ return renamed;
+ }
+ void parameter(Parameter *parm) const
+ {
+ ModNameType type;
+ switch (parm->getParameterType())
+ {
+ case Parameter::SIDE: parm->friend_setString(player(parm->getString())); return;
+ case Parameter::TEAM: parm->friend_setString(team(parm->getString())); return;
+ case Parameter::OBJECT_TYPE: type = MODNAME_OBJECT; break;
+ case Parameter::UPGRADE: type = MODNAME_UPGRADE; break;
+ case Parameter::SCIENCE: type = MODNAME_SCIENCE; break;
+ case Parameter::SPECIAL_POWER: type = MODNAME_SPECIALPOWER; break;
+ case Parameter::COMMAND_BUTTON: type = MODNAME_COMMANDBUTTON; break;
+ default: return;
+ }
+ parm->friend_setString(TheModNamespace.modName(mod, type, parm->getString()));
+ }
+ void script(Script *s) const
+ {
+ for (OrCondition *orCondition = s->getOrCondition(); orCondition; orCondition = orCondition->getNextOrCondition())
+ {
+ for (Condition *condition = orCondition->getFirstAndCondition(); condition; condition = condition->getNext())
+ {
+ for (Int i = 0; i < condition->getNumParameters(); ++i)
+ parameter(condition->getParameter(i));
+ }
+ }
+ ScriptAction *const actions[] = { s->getAction(), s->getFalseAction() };
+ for (Int list = 0; list < 2; ++list)
+ {
+ for (ScriptAction *action = actions[list]; action; action = action->getNext())
+ {
+ for (Int i = 0; i < action->getNumParameters(); ++i)
+ parameter(action->getParameter(i));
+ }
+ }
+ }
+ void scripts(ScriptList *list) const
+ {
+ for (Script *s = list->getScript(); s; s = s->getNext())
+ script(s);
+ for (ScriptGroup *group = list->getScriptGroup(); group; group = group->getNext())
+ {
+ for (Script *s = group->getScript(); s; s = s->getNext())
+ script(s);
+ }
+ }
+};
+
+/** -modfactions: each mod's own SkirmishScripts.scb, for its factions' computer players. A player of
+ * the file whose faction the mod defines (FactionAmerica read as M<n>~FactionAmerica) is kept with
+ * its scripts and teams, renamed so it never meets retail's player of the same name. */
+void SidesList::loadModSkirmishScripts(void)
+{
+ m_modSkirmishSides.clear();
+ m_modSkirmishTeamrec.clear();
+ if (TheGlobalData == NULL || !TheGlobalData->m_modFactions)
+ return;
+
+ const AsciiString path = "data\\Scripts\\SkirmishScripts.scb";
+ for (Int mod = 0; mod < (Int)TheGlobalData->m_mods.size(); ++mod)
+ {
+ // the stream reads the whole file as it opens, so the focus is back before the parse
+ TheFileSystem->setFocus(mod);
+ CachedFileInputStream theInputStream;
+ const Bool opened = TheFileSystem->doesFileExist(path.str()) && theInputStream.open(path);
+ TheFileSystem->setFocus(FILE_FOCUS_ALL);
+ if (!opened)
+ continue;
+
+ DataChunkInput file(&theInputStream);
+ file.registerParser( AsciiString("PlayerScriptsList"), AsciiString::TheEmptyString, ScriptList::ParseScriptsDataChunk );
+ file.registerParser( AsciiString("ScriptsPlayers"), AsciiString::TheEmptyString, ParsePlayersDataChunk );
+ file.registerParser( AsciiString("ScriptTeams"), AsciiString::TheEmptyString, ParseModTeamsDataChunk );
+ const Bool parsed = file.parse(this);
+ ScriptList *scripts[MAX_PLAYER_COUNT];
+ const Int count = ScriptList::getReadScripts(scripts);
+
+ ModScriptNames names;
+ names.mod = mod;
+ names.prefix.format("M%d~", mod + 1);
+ const size_t firstSide = m_modSkirmishSides.size();
+ for (Int i = 0; i < count; ++i)
+ {
+ // a file written without the players' dicts names its factions only through the map's player of that name
+ AsciiString fileFaction = static_readPlayerDicts[i].getAsciiString(TheKey_playerFaction);
+ SidesInfo *mapSide = findSkirmishSideInfo(static_readPlayerNames[i]);
+ if (fileFaction.isEmpty() && mapSide != NULL)
+ fileFaction = mapSide->getDict()->getAsciiString(TheKey_playerFaction);
+ const AsciiString faction = TheModNamespace.modName(mod, MODNAME_PLAYERTEMPLATE, fileFaction);
+ const PlayerTemplate *pt = ThePlayerTemplateStore->findPlayerTemplate(NAMEKEY(faction));
+ if (!parsed || scripts[i] == NULL || pt == NULL || pt->getModIndex() != mod || !pt->isPlayableSide())
+ {
+ if (scripts[i])
+ scripts[i]->deleteInstance();
+ continue;
+ }
+ names.players.push_back(static_readPlayerNames[i]);
+ Dict sideDict(static_readPlayerDicts[i]);
+ sideDict.setAsciiString(TheKey_playerName, names.player(static_readPlayerNames[i]));
+ sideDict.setAsciiString(TheKey_playerFaction, pt->getName());
+ m_modSkirmishSides.push_back(SidesInfo());
+ m_modSkirmishSides.back().init(&sideDict);
+ m_modSkirmishSides.back().setScriptList(scripts[i]);
+ }
+ for (size_t s = firstSide; s < m_modSkirmishSides.size(); ++s)
+ names.scripts(m_modSkirmishSides[s].getScriptList());
+
+ const NameKeyType unitKeys[] = { TheKey_teamUnitType1, TheKey_teamUnitType2, TheKey_teamUnitType3,
+ TheKey_teamUnitType4, TheKey_teamUnitType5, TheKey_teamUnitType6, TheKey_teamUnitType7, TheKey_teamTransport };
+ Int teams = 0;
+ for (Int t = 0; t < static_readModTeams.getNumTeams(); ++t)
+ {
+ Dict teamDict(*static_readModTeams.getTeamInfo(t)->getDict());
+ const AsciiString owner = teamDict.getAsciiString(TheKey_teamOwner);
+ if (!names.isPlayer(owner))
+ continue;
+ teamDict.setAsciiString(TheKey_teamOwner, names.player(owner));
+ teamDict.setAsciiString(TheKey_teamName, names.team(teamDict.getAsciiString(TheKey_teamName)));
+ for (size_t k = 0; k < ARRAY_SIZE(unitKeys); ++k)
+ {
+ Bool exists = FALSE;
+ const AsciiString unit = teamDict.getAsciiString(unitKeys[k], &exists);
+ if (exists)
+ teamDict.setAsciiString(unitKeys[k], TheModNamespace.modName(mod, MODNAME_OBJECT, unit));
+ }
+ m_modSkirmishTeamrec.addTeam(&teamDict);
+ ++teams;
+ }
+ DEBUG_LOG(("MODNS M%d~ SkirmishScripts.scb: %d of %d players kept, %d teams%s\n", mod + 1,
+ (Int)(m_modSkirmishSides.size() - firstSide), count, teams, parsed ? "" : ", unreadable"));
+
+ static_readModTeams.clear();
+ for (Int i = 0; i < MAX_PLAYER_COUNT; ++i)
+ {
+ static_readPlayerNames[i].clear();
+ static_readPlayerDicts[i].clear();
+ }
+ }
+}
+
+Int SidesList::skirmishSideFit(const AsciiString& candidateSide, Int candidateMod, const AsciiString& side, Int mod)
+{
+ if (candidateSide != side)
+ return 0;
+ if (candidateMod == mod)
+ return 2;
+ return candidateMod < 0 ? 1 : 0;
+}
+
+SidesInfo *SidesList::findSkirmishSideFor(const PlayerTemplate *pt, TeamsInfoRec **teams)
+{
- const AsciiString side = pt->getSide();
- const Int mod = pt->getModIndex();
++ SidesInfo *found = findSkirmishSideNamed(pt->getSide(), pt->getModIndex(), teams);
++ /* A faction the map's skirmish scripts were never written for (the fork's own, Turkiye) takes the
++ scripts of the original faction it is built on. */
++ if (found == NULL)
++ {
++ const AsciiString oldSide = ThePlayerTemplateStore->getOldFactionSide(pt->getBaseSide());
++ if (!oldSide.isEmpty() && oldSide != pt->getSide())
++ found = findSkirmishSideNamed(oldSide, pt->getModIndex(), teams);
++ }
++ return found;
++}
++
++SidesInfo *SidesList::findSkirmishSideNamed(const AsciiString& side, Int mod, TeamsInfoRec **teams)
++{
+ SidesInfo *best = NULL;
+ Int bestFit = 0;
+ for (size_t i = 0; i < m_modSkirmishSides.size() && bestFit < 2; ++i)
+ {
+ const PlayerTemplate *spt = ThePlayerTemplateStore->findPlayerTemplate(NAMEKEY(m_modSkirmishSides[i].getDict()->getAsciiString(TheKey_playerFaction)));
+ if (skirmishSideFit(spt->getSide(), spt->getModIndex(), side, mod) == 2)
+ {
+ best = &m_modSkirmishSides[i];
+ bestFit = 2;
+ if (teams)
+ *teams = &m_modSkirmishTeamrec;
+ }
+ }
+ for (Int i = 0; i < m_numSkirmishSides && bestFit < 2; ++i)
+ {
+ const PlayerTemplate *spt = ThePlayerTemplateStore->findPlayerTemplate(NAMEKEY(m_skirmishSides[i].getDict()->getAsciiString(TheKey_playerFaction)));
+ const Int fit = spt ? skirmishSideFit(spt->getSide(), spt->getModIndex(), side, mod) : 0;
+ if (fit > bestFit)
+ {
+ best = &m_skirmishSides[i];
+ bestFit = fit;
+ if (teams)
+ *teams = &m_skirmishTeamrec;
+ }
+ }
+ return best;
+}
+
void SidesList::prepareForMP_or_Skirmish(void)
{
m_skirmishTeamrec.clear();
@@@ -749,24 -544,7 +761,24 @@@
break;
}
}
- if (curSide == -1) continue;
+ if (curSide == -1) {
+ /* A map saved before a faction existed has no skirmish player for it: every retail map
+ lacks ShockWave's Armor, Special Weapons and Salvage generals. Player::initFromDict then
+ found no scripts, made the seat human with no AI, and the base stood idle - and the
+ takeover click handed it to whoever clicked it. The file's own player for that side
+ stands in, kept beside the map's, which nearly fill m_skirmishSides. */
+ const PlayerTemplate *pt = ThePlayerTemplateStore->findPlayerTemplate(NAMEKEY(static_readPlayerDicts[i].getAsciiString(TheKey_playerFaction)));
- if (scripts[i] && pt && pt->isPlayableSide() && findSkirmishSideFor(pt, NULL) == NULL) {
++ if (scripts[i] && pt && pt->isPlayableSide() && findSkirmishSideNamed(pt->getSide(), pt->getModIndex(), NULL) == NULL) {
+ DEBUG_LOG(("Skirmish map has no player for %s, using %s from the standard scripts\n", pt->getSide().str(), static_readPlayerNames[i].str()));
+ m_modSkirmishSides.push_back(SidesInfo());
+ m_modSkirmishSides.back().init(&static_readPlayerDicts[i]);
+ m_modSkirmishSides.back().setScriptList(scripts[i]);
+ scripts[i] = NULL;
+ }
+ if (scripts[i])
+ scripts[i]->deleteInstance();
+ continue;
+ }
ScriptList *pSL = getSkirmishSideInfo(curSide)->getScriptList();
getSkirmishSideInfo(curSide)->setScriptList(scripts[i]);
diff --cc GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Locomotor.cpp
index a48c44a3d,a5b8064eb..37ef95c6e
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Locomotor.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Locomotor.cpp
@@@ -811,7 -778,7 +811,8 @@@ Locomotor::Locomotor(const LocomotorTem
m_brakingFactor = 1.0f;
m_maxLift = BIGNUM;
m_maxSpeed = BIGNUM;
+ m_speedFactor = 1.0f;
+ m_speedScale = 1.0f;
m_maxAccel = BIGNUM;
m_maxBraking = BIGNUM;
m_maxTurnRate = BIGNUM;
@@@ -851,7 -817,7 +852,8 @@@ Locomotor::Locomotor(const Locomotor& t
m_brakingFactor = that.m_brakingFactor;
m_maxLift = that.m_maxLift;
m_maxSpeed = that.m_maxSpeed;
+ m_speedFactor = that.m_speedFactor;
+ m_speedScale = that.m_speedScale;
m_maxAccel = that.m_maxAccel;
m_maxBraking = that.m_maxBraking;
m_maxTurnRate = that.m_maxTurnRate;
@@@ -882,7 -847,7 +884,8 @@@ Locomotor& Locomotor::operator=(const L
m_brakingFactor = that.m_brakingFactor;
m_maxLift = that.m_maxLift;
m_maxSpeed = that.m_maxSpeed;
+ m_speedFactor = that.m_speedFactor;
+ m_speedScale = that.m_speedScale;
m_maxAccel = that.m_maxAccel;
m_maxBraking = that.m_maxBraking;
m_maxTurnRate = that.m_maxTurnRate;
@@@ -921,15 -885,15 +924,16 @@@ void Locomotor::crc( Xfer *xfer
/** Xfer method
* Version Info:
* 1: Initial version
- * 3: m_sineDescentDistance
+ * 3: m_diveDistance
* 4: m_yawRate, m_driveAccelX, m_driveAccelY
* 5: m_driveSpeed, m_driveFrame
- * 6: m_speedFactor */
- * 6: m_speedScale */
++ * 6: m_speedFactor
++ * 7: m_speedScale */
// ------------------------------------------------------------------------------------------------
void Locomotor::xfer( Xfer *xfer )
{
// version
-- const XferVersion currentVersion = 6;
++ const XferVersion currentVersion = 7;
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );
@@@ -971,8 -935,8 +975,11 @@@
}
if (version >= 6)
+ xfer->xferReal(&m_speedFactor);
+
++ if (version >= 7)
+ xfer->xferReal(&m_speedScale);
+
} // end xfer
// ------------------------------------------------------------------------------------------------
@@@ -999,8 -963,8 +1006,9 @@@ Real Locomotor::getMaxSpeedForCondition
speed = m_template->m_maxSpeed;
else
speed = m_template->m_maxSpeedDamaged;
+ speed *= m_speedScale;
+ speed *= m_speedFactor;
if (speed > m_maxSpeed)
speed = m_maxSpeed;
diff --cc GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp
index 72405d9d0,198636ae7..899d26f7d
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp
@@@ -4499,14 -4425,14 +4500,15 @@@ void Object::crc( Xfer *xfer
* 9: Extra sighting for reveal to all with different range units
* 10: each player's memory of it while it is out of their sight
* 11: the cached angle, which the matrix does not give back bit for bit
- * 12: how many enemy jammers are cutting its sight
+ * 12: the last threat and value sightings
++ * 13: how many enemy jammers are cutting its sight
*/
//-------------------------------------------------------------------------------------------------
void Object::xfer( Xfer *xfer )
{
// version
-- const XferVersion currentVersion = 12;
++ const XferVersion currentVersion = 13;
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );
@@@ -4949,24 -4875,9 +4951,27 @@@
else
m_isReceivingDifficultyBonus = FALSE;
- if( version >= 12 )
+ // The partition's threat and value maps are not saved, they are the sum of what every object last
+ // put on them. So each object carries its own part and puts it back, and the load no longer
+ // has every object take its old part off and add a new one where it stands (PartitionManager::xfer).
+ if (version >= 12)
+ {
+ xfer->xferSnapshot( m_partitionLastThreat );
+ xfer->xferSnapshot( m_partitionLastValue );
+ if (xfer->getXferMode() == XFER_LOAD)
+ {
+ if (!m_partitionLastThreat->isInvalid())
+ ThePartitionManager->doThreatAffect( m_partitionLastThreat->m_where.x, m_partitionLastThreat->m_where.y,
+ m_partitionLastThreat->m_howFar, m_partitionLastThreat->m_data, m_partitionLastThreat->m_forWhom );
+ if (!m_partitionLastValue->isInvalid())
+ ThePartitionManager->doValueAffect( m_partitionLastValue->m_where.x, m_partitionLastValue->m_where.y,
+ m_partitionLastValue->m_howFar, m_partitionLastValue->m_data, m_partitionLastValue->m_forWhom );
+ }
+ }
+
++ if( version >= 13 )
+ xfer->xferInt( &m_sightJammerCount );
+
} // end xfer
//-------------------------------------------------------------------------------------------------
diff --cc GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp
index 7c6b0bdf8,c4ae02820..98194b3e6
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp
@@@ -1046,8 -1040,8 +1046,9 @@@ Bool AIUpdateInterface::chooseLocomotor
if (lt)
m_locomotorSet.addLocomotor(lt);
}
+ m_locomotorSet.setSpeedScale(obj->getTemplate()->getSpeedScale());
m_curLocomotorSet = wst;
+ refreshVeterancySpeed();
return TRUE;
}
return FALSE;
diff --cc GeneralsMD/Code/GameEngine/Source/GameLogic/System/ScenarioDrill.cpp
index d8c844602,7d2bc77f7..5e08d1cb9
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/ScenarioDrill.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/ScenarioDrill.cpp
@@@ -340,14 -325,12 +345,16 @@@ static Int tokensNeededFor( ScenarioAct
case SCENARIO_ACTION_SHIFTUPGRADE: return SCENARIO_TOKENS_SHIFTUPGRADE;
case SCENARIO_ACTION_ATTACK: return SCENARIO_TOKENS_ATTACK;
case SCENARIO_ACTION_ENTER: return SCENARIO_TOKENS_ATTACK;
+ case SCENARIO_ACTION_RESUME: return SCENARIO_TOKENS_ATTACK;
case SCENARIO_ACTION_DOCK: return SCENARIO_TOKENS_ATTACK;
+ case SCENARIO_ACTION_GUARD: return SCENARIO_TOKENS_ATTACK;
case SCENARIO_ACTION_PRODUCE: return SCENARIO_TOKENS_ATTACK;
+ case SCENARIO_ACTION_REPEAT: return SCENARIO_TOKENS_ATTACK;
+ case SCENARIO_ACTION_GIVEMONEY: return SCENARIO_TOKENS_STANCE;
+ case SCENARIO_ACTION_RANK: return SCENARIO_TOKENS_STANCE;
case SCENARIO_ACTION_STOP: return SCENARIO_TOKENS_STOP;
case SCENARIO_ACTION_TALLY: return SCENARIO_TOKENS_STOP;
+ case SCENARIO_ACTION_PURCHASE: return SCENARIO_TOKENS_STOP;
case SCENARIO_ACTION_ARRIVE: return SCENARIO_TOKENS_ARRIVE;
}
return SCENARIO_TOKENS_STOP;
@@@ -445,16 -430,13 +452,17 @@@ ScenarioParseResult ScenarioDrill_parse
case SCENARIO_ACTION_ATTACK:
case SCENARIO_ACTION_ENTER:
+ case SCENARIO_ACTION_RESUME:
case SCENARIO_ACTION_DOCK:
+ case SCENARIO_ACTION_GUARD:
case SCENARIO_ACTION_SHIFTATTACK:
case SCENARIO_ACTION_FORCEATTACK:
+ case SCENARIO_ACTION_CLICKENTER:
case SCENARIO_ACTION_SHIFTPOWER:
{
- if (!parseWholeNumber( tokens[ 4 ], &action->targetSlot ))
+ if (tokens[ 4 ] == SCENARIO_CIVILIAN_TOKEN)
+ action->targetSlot = SCENARIO_CIVILIAN_SLOT;
+ else if (!parseWholeNumber( tokens[ 4 ], &action->targetSlot ))
return SCENARIO_PARSE_BAD_SLOT;
action->targetSelector = tokens[ 5 ];
if (actionType == SCENARIO_ACTION_SHIFTPOWER)
@@@ -495,22 -462,9 +503,23 @@@
break;
}
+ case SCENARIO_ACTION_REPEAT:
+ action->targetSelector = tokens[ 4 ]; // the unit
+ action->name = tokens[ 5 ];
+ if (action->name != "on" && action->name != "off")
+ return SCENARIO_PARSE_BAD_ACTION;
+ break;
+
+ case SCENARIO_ACTION_GIVEMONEY:
+ if (!parseWholeNumber( tokens[ 3 ], &action->targetSlot ))
+ return SCENARIO_PARSE_BAD_SLOT;
+ if (!parseWholeNumber( tokens[ 4 ], &action->count ) || action->count < 1)
+ return SCENARIO_PARSE_BAD_COUNT;
+ break;
+
case SCENARIO_ACTION_STOP:
case SCENARIO_ACTION_TALLY:
+ case SCENARIO_ACTION_PURCHASE:
break;
}
@@@ -1689,6 -1526,88 +1698,37 @@@ static Bool executeWeaponAt( const Scen
return TRUE;
}
-/** The search and destroy key: the ring sweepRoute gives this seat round the point, from where the
- units stand, each point handed to the order queue the way the key's messages arrive - the first
- fresh, the rest behind it - and then a guard of the whole circle. Each message gets a group of
- its own, because the queue destroys the one it takes. */
-static Bool executeSweep( const ScenarioAction &action, Player *player, const Coord3D &center, AIGroup *group, Int taken )
-{
- Coord3D from;
- from.zero();
- const VecObjectID ids = group->getAllIDs();
- for( VecObjectID::const_iterator it = ids.begin(); it != ids.end(); ++it )
- {
- const Object *obj = TheGameLogic->findObjectByID( *it );
- from.x += obj->getPosition()->x;
- from.y += obj->getPosition()->y;
- }
- from.x /= taken;
- from.y /= taken;
- TheAI->destroyGroup( group );
-
- std::vector<Coord3D> route;
- sweepRoute( player->getPlayerIndex(), center, action.radius, from, route );
- route.push_back( center );
-
- for( size_t i = 0; i < route.size(); i++ )
- {
- const Bool last = i + 1 == route.size();
- const GameMessage::Type type = last ? GameMessage::MSG_DO_GUARD_POSITION : GameMessage::MSG_DO_ATTACKMOVETO;
- GameMessage *msg = newInstance( GameMessage )( type );
- msg->friend_setPlayerIndex( player->getPlayerIndex() );
- msg->appendLocationArgument( route[ i ] );
- if( type == GameMessage::MSG_DO_GUARD_POSITION )
- {
- msg->appendIntegerArgument( GUARDMODE_NORMAL );
- msg->appendRealArgument( action.radius );
- }
-
- AIGroup *members = TheAI->createGroup();
- gatherIntoGroup( player, action.selector, members );
- player->getOrderQueue()->setNextOrderMode( i == 0 ? ORDER_QUEUE_FRESH : ORDER_QUEUE_APPEND );
- player->getOrderQueue()->takeMessage( msg, members, player );
- msg->deleteInstance();
-
- DEBUG_LOG(("SCENARIO: frame %d hunt slot %d '%s' step %d of %d at (%.0f,%.0f)\n", action.frame,
- action.slot, action.selector.str(), (Int)i + 1, (Int)route.size(), route[ i ].x, route[ i ].y));
- }
-
- DEBUG_LOG(("SCENARIO: frame %d hunt slot %d '%s' x%d round (%.0f,%.0f) radius %.0f\n", action.frame,
- action.slot, action.selector.str(), taken, center.x, center.y, action.radius));
- return TRUE;
-}
-
+ /** The rank tree's button: the player is raised to the rank the science asks for and given the points
+ it costs, and then MSG_PURCHASE_SCIENCE goes to the dispatcher as the control bar sends it, so the
+ purchase itself is the one a click makes. */
+ static const Int SCENARIO_HIGHEST_RANK = 5;
+
+ static Bool executePurchase( const ScenarioAction &action, Player *player )
+ {
+ const ScienceType science = TheScienceStore->getScienceFromInternalName( action.selector );
+ if (science == SCIENCE_INVALID)
+ {
+ DEBUG_LOG(("SCENARIO: frame %d purchase: there is no science '%s'\n", action.frame, action.selector.str()));
+ return FALSE;
+ }
+
+ while (!TheScienceStore->playerHasPrereqsForScience( player, science ) && player->getRankLevel() < SCENARIO_HIGHEST_RANK)
+ player->setRankLevel( player->getRankLevel() + 1 );
+ const Int cost = TheScienceStore->getSciencePurchaseCost( science );
+ if (player->getSciencePurchasePoints() < cost)
+ player->addSciencePurchasePoints( cost - player->getSciencePurchasePoints() );
+
+ GameMessage *msg = newInstance( GameMessage )( GameMessage::MSG_PURCHASE_SCIENCE );
+ msg->friend_setPlayerIndex( player->getPlayerIndex() );
+ msg->appendIntegerArgument( science );
+ TheGameLogic->logicMessageDispatcher( msg, NULL );
+ msg->deleteInstance();
+
+ DEBUG_LOG(("SCENARIO: frame %d purchase slot %d '%s' rank %d: %s\n", action.frame, action.slot,
+ action.selector.str(), player->getRankLevel(), player->hasScience( science ) ? "bought" : "refused"));
+ return player->hasScience( science );
+ }
+
static Bool executeOrder( const ScenarioAction &action, Player *player, const Coord3D &dest )
{
if (action.action == SCENARIO_ACTION_SHIFTUPGRADE)
@@@ -1734,24 -1653,16 +1774,26 @@@
case SCENARIO_ACTION_ATTACK:
case SCENARIO_ACTION_ENTER:
+ case SCENARIO_ACTION_RESUME:
case SCENARIO_ACTION_DOCK:
+ case SCENARIO_ACTION_GUARD:
{
const char *verb = (action.action == SCENARIO_ACTION_ATTACK) ? "attack"
: (action.action == SCENARIO_ACTION_DOCK) ? "dock"
- : (action.action == SCENARIO_ACTION_GUARD) ? "guard" : "enter";
++ : (action.action == SCENARIO_ACTION_GUARD) ? "guard"
+ : (action.action == SCENARIO_ACTION_RESUME) ? "resume" : "enter";
- Player *targetPlayer = findPlayerForSlot( action.targetSlot );
- Object *target = (targetPlayer != NULL)
- ? findFirstMatching( targetPlayer, action.targetSelector )
- : NULL;
+ Object *target = NULL;
+ if (action.targetSlot == SCENARIO_CIVILIAN_SLOT)
+ {
+ Coord3D center;
+ group->getCenter( &center );
+ target = findNearestCivilian( action.targetSelector, &center );
+ }
+ else
+ {
+ Player *targetPlayer = findPlayerForSlot( action.targetSlot );
+ target = (targetPlayer != NULL) ? findFirstMatching( targetPlayer, action.targetSelector ) : NULL;
+ }
if (target == NULL)
{
DEBUG_LOG(("SCENARIO: frame %d %s: slot %d owns nothing matching '%s'\n",
@@@ -1764,8 -1675,8 +1806,10 @@@
group->groupAttackObject( target, SCENARIO_ATTACK_SHOTS, CMD_FROM_SCRIPT );
else if (action.action == SCENARIO_ACTION_DOCK)
group->groupDock( target, CMD_FROM_SCRIPT );
+ else if (action.action == SCENARIO_ACTION_GUARD)
+ group->groupGuardObject( target, GUARDMODE_NORMAL, CMD_FROM_SCRIPT );
+ else if (action.action == SCENARIO_ACTION_RESUME)
+ group->groupResumeConstruction( target, CMD_FROM_PLAYER );
else
group->groupEnter( target, CMD_FROM_SCRIPT );