New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working master branch #3603
Working master branch #3603
Commits on Oct 7, 2018
-
fix oos when undoing after ally chat
previously the server would send [speak] commands that had no undo=no attributes so that the game would remove the speak command from the replay instead of the actual undoable action when undoing an action. (cherry-picked from commit 02bed5c)
-
fix oos when undoing after ally chat 2
for extra safety we add code to ensure undo=no for [speak] commands to the client aswell, this is not really needed as i just added a code that sets undo=yes to the server code, but it's an advantage to be able to safely connect to older servers aswell. (cherry-picked from commit c685031)
-
broken in commit 'preserve traslatable strings in simple_wml.' (cherry-picked from commit 7e0d63d)
-
fix missing map previews in the lobby
regression from 'fix require_scenario & require_era' (cherry-picked from commit 9a3917d)
-
improve wesnoth version warning 3
suggested by soliton (cherry-picked from commit bd16aee)
-
fix 'start game' locked when other players abort flg dialog wesnoth#3452
(cherry-picked from commit f03e3e8)
-
boost::ptr_vector -> std::vector<unique_ptr>
boost::ptr_vector has some nice features, but vector<unique_ptr> is still easier to use for most people basicially becasue people know it better. Also boost::ptr_vector does not support move ctors and also does not use std::unique_ptr, probably because it tries to stay compatible with c++03 so one has to use 'ptr_vector::auto_type' with it instead which has a different interface than std::unique_ptr (cherry-picked from commit 7e2dc29)
-
fix game freezes on droiding when using dsu wesnoth#3453
(cherry-picked from commit 1646a7b)
-
substr cannot throw bad_lexical_cast (cherry-picked from commit e90f0fc)
-
add wesnoth.terrain_mask lua function
`[terrain_mask]` had multiple unexpected behviours, see for example wesnoth#3364 in parituclar `wesnoth.wml_actions.terrain_mask { x =2, y=2, mask="Ww"}` will change the tile at (1,2) instead of (2,2), so instead of reusing the old terrain mask code i wrote a new function that behaves as one would expect. `wesnoth.terrain_mask` does not have a `border=` parameter but a `is_odd` parameter that specifies that a map is in the odd format __ __ /00\__/20\__ \__/10\__/30\ /01\__/21\__/ \__/11\__/31\ /02\__/22\__/ \__/ \__/ instead of the even map format __ __ __/10\__/30\ /00\__/20\__/ \__/11\__/31\ /01\__/21\__/ \__/12\__/32\ \__/ \__/ (Monospaced font required to see ascii images.) The lua function also has a lua interfacte, meaning it does not take wml tables but normal lua tables making it easier to use from lua code. (cherry-picked from commit a3367ee)
-
and implement it using wesnoth.terrain_mask. This also fixes an issue where [terrain_mask] would not remove removed villages from the teams villages list after [terrain_mask]. This also adds an alignment parameter to [terrain_mask]. (cherry-picked from commit 09c56ef)
-
Fixes track titles not being set from WML.
The current implementation of the [music] tag sets the title after adding the track, however the title field was read only. This makes the field writable. (cherry-picked from commit 0f5899b)
-
(cherry-picked from commit ae11499)
-
updated British English translation
(cherry-picked from commit 2f31345)
-
Help: Add Saurian race description (fix wesnoth#3372)
[ci skip] (cherry-picked from commit ed50b6b)
-
Units: Have Saurian warriors be female to fit lore in mainline
Fixes wesnoth#3392 & goes along with wesnoth#3372. (cherry-picked from commit ce6826d)
-
Fast Micro AI: fix for chance-to-hit specials without id
All mainline chance-to-hit weapon specials have ids, but it is not required for UMC specials. (cherry-picked from commit d421337)
-
Fix building with Xcode 10 (wesnoth#3460)
Resolves wesnoth#3458. (cherry-picked from commit 50301f8)
-
Made Thursagens words fit the timeframe
(cherry-picked from commit cf999f7)
-
gui2/game_load: Constrain leader sprites to 72x72 using image path fu…
…nctions Fixes wesnoth#3474. (cherry-picked from commit 36cf8c8)
-
Revert unwanted binary file change in previous commit
[ci skip] (cherry-picked from commit d3650a7)
-
Fix crash after hitting enter when no units match the recall list filter
Fixes wesnoth#3475 (cherry-picked from commit a3047f3)
-
Make Dune Burner line naphtha icons consistent and remove outdated co…
…mment (cherry-picked from commit df8a6f5)
-
Use MacCompileStuff for every macOS package
(cherry-picked from commit 6f8c504)
-
SotA S14: Add hint about needing plenty of gold for the next scenario
(cherry-picked from commit 7aced87)
-
Linux Packaging: Don't store log info which nobody will read
So it may not be saved in ~/.xession-errors or cluttering up disk space another way (cherry-picked from commit c998f13)
-
clarify that pango markup is the cause
changed as proposed by soliton (cherry-picked from commit 6998885)
-
pofix: Genericize the Lua version number for the 1.14 announcement
Otherwise people will keep complaining that it doesn't reflect the latest 1.14 version since the original number was valid for 1.14.0 and 1.14.4. [ci skip] (cherry-picked from commit c589e39)
-
wmlxgettext: fix wesnoth#3469: lua plural strings not recognized in s…
…ome context (wesnoth#3481) * bugfix: wesnoth#3469 * wmlxgettext: removed a debug comment forgotten on the previous bugfix (cherry-picked from commit 4b79c26)
-
Slightly rewrite dialogue (fixes wesnoth#3386)
Some non-native English readers may find use of the word 'disposed' confusing. (cherry-picked from commit 087a18a)
-
fix editor cannot add starting location for > 9 players.
previously attempting to place a starting location for side 10 or higher would result in a "invalid location id" error. (cherry-picked from commit cbf078a)
-
show add-on loading times on --log-debug=config
(cherry-picked from commit 6781fe1)
-
fixup 'fix game freezes on droiding when using dsu wesnoth#3453'
fixes wesnoth#3486 (cherry-picked from commit 08bb6a4)
-
Revert "preserve traslatable strings in simple_wml."
This reverts commit 4f3ce68. This reverts commit 20128ac. see issue wesnoth#3454, there were problems caused by simple_wml when joining/observing games and this commit is the obvious suspect so i'm reverting it until we can fix that one. (cherry-picked from commit 6b58ce7)
-
(cherry-picked from commit 86eba2b)
-
(cherry-picked from commit 59299ad)
-
Help: Re-fix Ancient Wose description.
Thanks @CelticMinstrel (cherry-picked from commit 9e296b4)
-
(cherry-picked from commit eb76378)
-
Thanks 613TheEvil https://forums.wesnoth.org/viewtopic.php?p=619347#p619347 (cherry-picked from commit d27b09a)
-
ANL worker: converting to flatland is not the same as creating a farm
Farms have a multi turn cycle: 1) crate farm (converts to Re) 2) end turn on the filed to harvest (Re has been automatically converted) 3) convert to grasland [othrwise the fields remains unusable for building] Step 3 was labeled the same as step 1. [ci skip] (cherry-picked from commit 1867274)
-
fixup, use same capitalization
[ci skip] (cherry-picked from commit c3227f5)
-
Game Load: Show the user-name difficulty name instead of the internal…
… name. The internal name (Easy/Medium/Hard/Nightmare) will only be shown if the campaign is not installed, or doesn't declare the saved difficulty. (cherry-picked from commit 937e971)
-
Add pofix entries for the recent typo fixes (resolves wesnoth#3377)
Manual merge of pull request wesnoth#3490. I also ran pofix. [ci skip] (cherry-picked from commit 217eba5)
-
The tool that generates .po files splits lines in order to limit line length, and pofix can't track split strings. Thus, pofix search rules need to be shorter so that pofix finds the affected strings. I also moved the replacements to the right text domains, placed wesnoth-l to the right spot, and removed the "Asheviere is the Queen of Wesnoth" replacement because it isn't pofixable. (The second part of the string becomes just "Queen of Wesnoth." and "queen of Wesnoth." with lowercase Q is used legitimately elsewhere.) [ci skip] (cherry-picked from commit 3df91c9)
-
That comma wasn't supposed to be replaced with a period, and I didn't notice the mistake before pushing the commit. [ci skip] (cherry-picked from commit 20bfb35)
-
DiD S10: use self dacaying object
use one event with an object instead of two events [ci skip] (cherry-picked from commit bed3524)
-
NR S02a: restrict movement by costs instead moves
because it is not obviously shown in the sidebar [ci skip] (cherry-picked from commit 4e11d41)
-
It's now possible to have this logic as part of [role] [ci skip] (cherry-picked from commit 440efd2)
-
TSG: S8b don't show the objectives when the mages arrive again
This is one of the few cases where it is not only a refactoring, but has an actual advanatge to use [show_if] - the note can be removed from the objectives witout showing them to the player. [ci skip] (cherry-picked from commit 844e56b)
-
TSG S3: Don't kill the elves at the end
This is a relict from when they had not their own side, and needed to be killed to not be added to the recall list. [ci skip] (cherry-picked from commit baec30b)
-
TSG S3: change side switch procedure for Ethiliel
Ethiliel remains on side 3, but a copy of her is added to the player's recall list for next scenario. The loyal trait is obtained at that point. [ci skip] (cherry-picked from commit 101cb21)
-
TSG S3: support debug mode :n and :cl
[ci skip] (cherry-picked from commit bbc31e6)
-
TSG S2: avoid the possibility of the AI neutralizing villages...
...which it neither burns or captures. The AI has two sides which are presented as one to the player. It's not the best approach, because it is possible that the player realizes it looking at the side informations, e.g. how many units the enemy side has listed there. This commit unifies both sides, while still keeping the units from formerly side 3 being unable to burn villages, but, as now being in a side with a leader, they can capture them. An advantage of having two sides was, that the units could have different AI settings, and that the leaderless side was not interrested in villages. The AI settings will be adressed in a seperate commit. (bug wesnoth#3032) [ci skip] (cherry-picked from commit d749005)
-
TSG S2: fix issues with killing the bandit leader first
- The peasants told Deoran to go for the already defeated bandit leader. - The pesants were useless at that time - they are now instead spawned when defeating the bandit leader or when Deoran arrives, whatever happens first. They may still have a fight with remaining bandits – or provoke their attack. - The dialogue when reaching the citadel after having defeated the bandits got a slight change, to better switch to the victory dance event. (issue wesnoth#1954) [ci skip] (cherry-picked from commit 0c5467c)
-
TSG S7a-S9a: prepare to let Hylas die
(FR wesnoth#3316) This includes changing when the overlays and ellipses for the hero units are changed, and for better testing part of the event is split into a victory event in S6a. [ci skip] (cherry-picked from commit b681ad8)
-
NR: use 1.13 syntax for finding suitable units for [role]
[ci skip] (cherry-picked from commit 0dd48bf)
-
use monstrous event instead of monstrous macro [ci skip] (cherry-picked from commit 00574c0)
-
This follows the earlier commit which unified side 2 and 3. In the first rounds the AI behaves like former side 3, later like side 2. This is seemlessly possible, because side 3's AI settings were having practical effect at the beginning of the game, and side 2's conflicing settings don't come into action before the recruited troops met the ones of the player. (bug wesnoth#3032) [ci skip] (cherry-picked from commit ee09bc3)
-
TSG S8b: allow while mages to be loyal and have random gender
[ci skip] (cherry-picked from commit 7c89b10)
-
TSG S5: Duo leader setup for the zombies
This adds on the one hand a second leader with secons keep in the same caslte. for the same side, on the other hand ich changes the speack when they die. They adverturers are not assuming they killed the undead masters anymore if they saw the lich before. (mentioned in wesnoth#1954) [ci skip] (cherry-picked from commit f1a465b)
-
TSG S4: Avoid submerging Rangers
If no suitable forest hex is found, the radius of the locations considered is extended instead of placing the unit next to Ethiliel. Also, a change of behaviour: * non-free hexes will not be considered * the bodyguards won't be placed adjacent to other units, like the ambush ability works normally * this includes Ethiliel In general that means that units may be placed farther away than before. [ci skip] (cherry-picked from commit e43b350)
-
TSG S4: add female name string
For some reason they never had one. [ci skip] (cherry-picked from commit 4fecc83)
-
TSG: change inclusion of death events
That way less events need to be duplicated in scenarios. It also does not include the full Hylas death event in S7a to S9a. Previously the Jarek event was not present in one of the final scenarios, now both include it, but the shorter variant of it. [ci skip] (cherry-picked from commit 29b4196)
-
TSG S7b & S8b: use undead encampments instead of ordinary ones
[ci skip] (cherry-picked from commit 8960da0)
-
TSG S5: Beast of the Lake is now loyal
It shall not hinder the recruiting capabilities of side 3 if the player spawns the monster. [ci skip] (cherry-picked from commit 63333c6)
-
Made it impossible that the undead leader can advance to a lich - though you do sth. badly wrong if he advances at all. Also, some more 1.13 syntactic sugar. [ci skip] (cherry-picked from commit a46d3f1)
-
TSG 5: ensure no additional event is triggered during allying
Ensure that allying with the bandits does not trigger the lich sighted event. It's unlikely that the bandits advanced that far though. [ci skip] (cherry-picked from commit 657bf30)
-
TSG S6a: may the queen be always female and have a more prominent ell…
…ipse And remove one mention of Mebrin before meeting him in S7b. [ci skip] (cherry-picked from commit 18db086)
-
TSG S2: add female strings for the units placed at start
On the other hand, all these units could as well use custom names. [ci skip] (cherry-picked from commit f04cdd3)
-
TSG S5: reformat comments, add translation hint
[ci skip] (cherry-picked from commit c030249)
-
TSG S6a: Mermen will leave afterwards
The text has already been prepared for this in 1.13 [ci skip] (cherry-picked from commit f84d680)
-
TSG S7b: use 1.13 code and make it debug safe
The invulnerable status is player-visible and does not insert new events which are checked at each attack. [ci skip] (cherry-picked from commit ddc763f)
-
Recalling units may increase the vision area when playing with shroud/fog. [ci skip] (cherry-picked from commit 5f7b185)
-
Don't scroll to an enemy leader that has an effective [hides] ability (…
…wesnoth#3492) (cherry-picked from commit 24cb784)
-
Lua AIs: use unit methods instead of wesnoth functions
(cherry-picked from commit a686639)
-
Messenger MAI Lua code: change proxy unit location directly
(cherry-picked from commit b3058e8)
-
Lua AIs: remove unused debug output
(cherry-picked from commit 83c4ef2)
-
Lua AIs: replace print() by std_print()
(cherry-picked from commit 3f54908)
-
Game Load: Show list of enabled modifications (wesnoth#3495)
(cherry-picked from commit 6f67055)
-
-
Lua AIs: get unit cost/level directly from proxy unit
These used to be accessible only through unit.__cfg or wesnoth.unit_types. The Fast Micro AI is not included here as it requires a larger clean-up. (cherry-picked from commit 8af988c)
-
Micro AIs: simplify unit variable handling functions
The main reason for doing this, besides simplifying the code, is to avoid using the WML table dump __cfg, which is slow. This includes a change of the format in which the variables are stored, but since these are internal Micro AI utility functions, that does not matter. (cherry-picked from commit 133568e)
-
GCC 8.2.0 -Wnoexcept flags two functions which should be marked as not throwing. (cherry-picked from commit 3826c26)
-
Fix error: no previous declaration
No used outside the source file, so marked as a static function. (cherry-picked from commit 616ae9b)
-
Lua AIs: avoid using __cfg for accessing weapon specials
(cherry-picked from commit aa59ac5)
-
Lua AI utility functions: fix for chance-to-hit specials without id
All mainline chance-to-hit weapon specials have ids, but it is not required for UMC specials. (cherry-picked from commit 5335a2a)
-
Lua AIs: remove inclusions of unused libraries
(cherry-picked from commit 8a996c5)
-
Lua AIs: remove another unused library inclusion
(cherry-picked from commit 1680436)
-
Most of the Fast MAI attack utils had been taken from a more general codebase and included things not needed here. This AI is supposed to be a slimmed down version doing only the absolutely necessary in as fast as possible a fashion. (cherry-picked from commit f4f2a44)
-
Lua AIs: use math.huge to initialize extrema variables
(cherry-picked from commit cb423b2)
-
Herding Micro AI: fix variabls not being local
(cherry-picked from commit 80ae232)
-
Lua AIs: no need to set variables to nil explicitely
This is mostly done for consistency across the Lua AI code (cherry-picked from commit 0e7c09f)
-
Lua Console: Print an error message when not opening the console beca…
…use :debug hasn't been run. (cherry-picked from commit 012142a)
-
(cherry-picked from commit e2c591e)
-
AOI S3: Address Erlornas as "lord" in lowercase as done elsewhere in the scenario. (cherry-picked from commit 6a1b593)
-
Liberty S3: Play orcish war drums
(cherry-picked from commit 8fd1b82)
-
fixup "fix oos when undoing after ally chat"
this also caused errors later when saving replays because the server would concatinate all [turn] leading to dublicate undo=no attributes. (cherry-picked from commit 144e8a1)
-
put [resource] before other content; fixes wesnoth#3345
Now content that is loaded via [load_resource] is placed to the position where the [load_resource] was. This fixes a problem where previously one could not use lua variables/functions created by the [resource][lua] because the engine would put the [lua] tags from the [resource] after the [resource] from the scenario. (cherry-picked from commit 1ac635e)
-
Lua AIs: don't initiate variables as empty tables
... if they might not be needed. (cherry-picked from commit a23f06d)
-
Lua AIs: don't compare variables with nil
... unless there is a difference between nil and false. Done mostly for consistency with all the other uses. (cherry-picked from commit 35d257f)
-
AToTB S2: rename custom AI file
For consistency with the other mainline campaigns (cherry-picked from commit 1040dbe)
-
Experimental AI: fix eval/exec debug output
This involves making the output independent of the stats CA (which is not used any more) and adding missing output to some CAs. (cherry-picked from commit c2635ab)
-
updated Chinese (Traditional) translation
(cherry-picked from commit 2436d70)
-
Experimental AI: convert to using external CAs
(cherry-picked from commit 5474785)
-
Liberty S8: Fix ambiguous pronoun
(cherry-picked from commit 4c61240)
-
Liberty S8: Fix family reference
According to po comments in S1, Baldras is Harper's mother's brother. Also change "mom"/"dad" to "mother"/"father" to match the general medieval setting of dialogs. (cherry-picked from commit bcb6153)
-
Lua AIs: avoid calling wesnoth.get_terrain() more than needed
It probably doen't make a noticeable difference for these AIs, but in general we should not call the slow functions more than necessary. (cherry-picked from commit 42b4430)
-
gui2/unit_create: Fix segfault on empty list when updating unit preview
This happens when the list comes up empty because of a non-matching filter, e.g. "Elvish Archer222" and the user clicks on one of the gender options in this state. Ideally we should clear the preview pane and disable the options and OK button here, but the former appears impossible and for some reason changing the pane's visibility in filter_text_changed() doesn't work reliably. (cherry-picked from commit 26629d4)
-
gui2/unit_create: Allow searching by race name as well
(cherry-picked from commit b7c7fca)
-
EI: Remove old TODO and add a new one
(cherry-picked from commit e078196)
-
EI S8: Fix event not being fired
The second event took as filtered unit an ogre that has reached the border of the map. Unfortunately, he was removed by the map before such event was fired, causing it to never happen. (cherry-picked from commit 643f133)
-
EI S12-S16: Split objectives into main and alternative ones
Also adds a new objective in S16, which was not stated but actually makes you win. (cherry-picked from commit 50e4cc5)
-
Most part of the old AI had no evident effect: the dragon just moved here and there without attacking you, and since he flied over shallow water, it was impossible to chase him. The micro ai makes Khrakhras wander around and attack you when you approach his castle. (cherry-picked from commit 64917b7)
-
AOI S3: Clear all enemies on victory
... for consistency with the previous message stating that all orcs are killed by the elves. (cherry-picked from commit 34f417c)
-
AOI S2: Prefer "id" to "speaker" in non-[message]'s SUFs
(cherry-picked from commit 240d235)
-
Removes all the default values and improves the syntax where possible (cherry-picked from commit 9086e17)
-
Protect Unit MAI: remove unused configuration variables
They cannot be set for the MAI, and they would have to be set through 'cfg' not 'data' anyway. (cherry-picked from commit 62625fd)
-
Fix bug in Fix_Xcode_Dependencies
(cherry-picked from commit 6b5edeb)
-
Lua AIs: do not use engine's 'data' variable unless necessary
Now that all the AIs use external CAs, there is no need to use the persistent 'data' variable any more, unless information is to be exchanged between different CAs or is supposed to be persistent across save/load cycles. (cherry-picked from commit 3bfd59f)
-
Allow ties to be reported as such in the turns_over_advantage calcula…
…tion (fixes wesnoth#1341) (cherry-picked from commit 3d481c1)
-
NR S13: slight bonus for AI controlled sides:
- allied AI leaders, whose death causes defeat, use passive_leader=yes - increased amount of money which the lich brothers have, if one has not the alternative leaders who can recall units - also increased Krash's gold to the same amount of as Eryssa has (they are the alternative leaders) [ci skip] (cherry-picked from commit 79993ea)
-
There has been a report that some scenario would be nearly unbeatable if they are empty in the first place, so this has the side effect of not showing the player that he misses something. (Nevertheless, they should be hidden) [ci skip] (cherry-picked from commit 47c3947)
-
NR deaths: use one event for both lich brothers
They text is the same, whoever of them dies [ci skip] (cherry-picked from commit 2e7d901)
-
the one usage of type is left deliberately, to point out that it affects 3 instad of 2 or 4 types. [ci skip] (cherry-picked from commit ce05689)
-
recruit_rushers CA: check if castle_switch CA is present
So that it is possible to use the recruit_rushers CA without the castle_switch CA. (cherry-picked from commit 0bcb98c)
-
recruit_rushers CA: don't reserve village for passive leader
(cherry-picked from commit b92d8e8)
-
Desktop file: start from a shell
output redirection is only possible when starting from a shell [ci skip] (cherry-picked from commit a46c6ed)
-
Experimental AI: adjustments to candidate action scores
The relative ranking of the CA scores is not changed, except for one case when two CAs had the same score. Reasons: - All scores should be lower than the scores of the default Goto CA (200,000) and the default scores of most Micro AIs (300,000). - Break tie, resulting in uncertain order of execution, of place_healers and retreat_injured CA. Healers should be placed first, to allow retreating injured units to adjacent hexes. - Set default for generic_recruit_engine to slightly above default AI recruiting score. That way it takes effect even if the default CA is not removed. - Increase move_to_any_enemy CA score from 1 to 1,000. It is still the lowest score that way, but allows for setting up custom CAs with even lower scores (even if it is just for end-of-turn statistics or the like). (cherry-picked from commit 35ba820)
-
Experimental AI: rename config file
This stopped being a rush AI long ago. (cherry-picked from commit ec45b53)
-
fix crash in ai code when a side has multiple leaders
see wesnoth#3240 Just fixing the crash, not sure how the code should behave in this case, it would be nice if someone who knows more about the ai code would either implement that todo or remove the second warning. An alternative fix would be to move the 'calculate_moves' inside the ai_leaders loop. (cherry-picked from commit 18526e4)
-
Appdata: change license identifier
former one is valid but deprecated [ci skip] (cherry-picked from commit d133b51)
-
Add keywords to the desktop file
They are as well used in the software centre. Having keywords is a bonus, even if they are not matched. [ci skip] (cherry-picked from commit 76e7c8d)
-
Lua AIs: remove commented-out debug code
(cherry-picked from commit 23f3554)
-
[ci skip] (cherry-picked from commit d3d2dec)
-
Lua AIs: use ai_helper.robust_move_and_attack()
ai_helper.robust_move_and_attack() does the stop_unit_moves automatically if the unit is at the destination hex. (cherry-picked from commit fdc3249)
-
gui2/unit_create: Use unit type ids as filtering criteria as well
(cherry-picked from commit 444d6d6)
-
add textdomains to appdata file:
One must compile wesnoth with -DLOCALEDIR=/usr/share/locale, as that's the place where the system looks for translations. (One can test it with gettext -s -d wesnoth "poisoned") This is according to the docs, needs more testing if it works. Doesn't work with Arch, though Arch doesn't support software centres well. [ci skip] (cherry-picked from commit 60f2158)
-
fix syntax error in Chinese manual
In Markup, only the normal quotes are allowed. [ci skip] (cherry-picked from commit b9396cd)
-
ai_helper: get_unit functions should only return live units
Live beiing defined as in get_live_units(), that is, non-petrified units (cherry-picked from commit a7d8024)
-
Lua AIs: use ai_helper get_unit functions where applicable
The ai_helper functions are optimized for speed (as much as possible in a general setting) and do all the necessary tests. For example, get_units_with_attacks() checks both whether the unit has attacks left, and whether it has any attacks in the first place. (cherry-picked from commit 7584354)
-
fix wesnoth#3515 : random start time
(cherry-picked from commit 8ed6014)
-
-
[animate_unit]: clear the animation after playing it
This avoids a reference to the unit from being leaked, which prevented the unit's halo (if any) from disappearing when the unit died. Fixes wesnoth#3509. Closes wesnoth#3520. (cherry-picked from commit e63bd35)
-
[heal_unit]: clear the animation after playing it (wesnoth#3526)
Fixes another case of unit halo remaining after death. (cherry-picked from commit 3541629)
-
ai_helper: new function get_locations_no_borders()
(cherry-picked from commit 10463fd)
-
Lua AIs: use ai_helper.get_locations_no_borders()
(cherry-picked from commit dcadab9)
-
generic_recruit_engine: remove unnecessary variable assignment
(cherry-picked from commit a781139)
-
EI custom ogre AI: remove a commented out line
(cherry-picked from commit 2591e43)
-
Certain distro/compiler combinations will apparently warn about not optimizing when _FORTIFY_SOURCE is set. (cherry-picked from commit 09fcc6b)
-
Bugfix generate random map unique names
The used names was never set so the check for duplicated names did not work. Detected by cppcheck. (cherry-picked from commit cc98bcd)
-
Move wmlxgettext to the data/tools directory so that it's automatical…
…ly included in official packages (cherry-picked from commit 59e78e5)
-
Allow lists in SLF location_id key (closes wesnoth#3493)
(cherry-picked from commit 354f24e)
-
Sync 1.14.4+dev changelog section
[ci skip] (cherry-picked from commit 6eba0cb)
-
Lua API: implicitly clear animator after playing it (wesnoth#3536)
This prevents the animator from holding a strong reference to the target unit, which was keeping the unit object alive and thus preventing the unit halo, if any, from disappearing. (cherry-picked from commit 7d6e2b2)
-
MP Tombs of Kesorak: adjust comment, avoid darkening overlay
A better image is needed, I remove the darkening overlay, because it would be missleading when a Mage of Light affects this field. [ci skip] (cherry-picked from commit 0ef3c0d)
-
core macros: don't clear nonexistant variable
A leftover from the switch from {FOREACH} to [foreach] [ci skip] (cherry-picked from commit 001b444)
-
ANL: remove superfluous temp variables
The other variables in that event are not needed either, left them in for readability for the time being. [ci skip] (cherry-picked from commit 7a29fc1)
-
[ci skip] (cherry-picked from commit f358bed)
-
Core Macro Reference: Fix hint
[ci skip] (cherry-picked from commit 00e41b9)
-
fix wesnoth#3396 lua_function= doesn't work in [effect][filter]
unfortunately this adds an annoying const_cast. The old code 'worked around' this by getting a nonconst reference to the same unit via the unit map, which i think is not better just hides the issue. (cherry-picked from commit 08b7d1b)
-
add game_config.combat experience
and make [harm_unit] use these values instead of hardcoded 8*level for killing and level for combat. (cherry-picked from commit 3591e82)
-
fix 3541 : crash in lua tstring comparision
(cherry-picked from commit 69cdbe8)
-
HttT S6: Allow canceling attack orders.
(cherry-picked from commit e50b6fa)
-
HttT S6: Trigger the additional undead as soon as the player touches …
…the cave entry. Seen in :debug with a Nightgaunt. Not sure if it can happen in normal play. (cherry-picked from commit 9509eec)
-
HttT S6: Support unlikely player behavior.
Trigger the undead reinforcements even if the player skips the main cave entrance. (cherry-picked from commit 95b3ccd)
-
Prevent C++ exception from escaping from is_user_banned()
(cherry-picked from commit 0b95653)
-
fix wesnoth#3532 : oos error in mp campaigns.
previously it would cause oos when a player that has not yet advanced to the currrent scenario sends random seed requests. (cherry-picked from commit d0c0f40)
-
Changelog entries for changes I committed
(cherry-picked from commit 6234faa)
-
-
-
-
-
-
-
-
-
-
-
-
gui2: indicate that unit cannot advance
(cherry-picked from commit 7cf478e)
-
Menu: re-order and re-rank campaigns (including new ranks) (fixes wes…
…noth#1222) (cherry-picked from commit a3a9b72)
-
(cherry-picked from commit 243a542)
-
WML [message]: Add left padding when the portrait is shown on the right.
The text is now shown at exactly the same place regardless of which side the portrait is on. Fixes wesnoth#1938. (cherry-picked from commit fc9e5f0)
-
WML [message]: Limit the text width for messages with portraits on bo…
…th sides as already done for messages with one portrait. (cherry-picked from commit 3809b64)
-
Micro AI Demos: save maps in new format
[ci skip] (cherry-picked from commit c5d3539)
-
Micro AI Demos: use Cme instead of Chw for lurkers map
[ci skip] (cherry-picked from commit c5cabd9)
-
SoF S2t,S3t,S4t - Move scenery items to map file
The braziers will also be animated, while they were still images before (cherry-picked from commit effb865)
-
1) Clear variables and macros 2) Remove default AI values 3) S7: Remove the ghost ship (cherry-picked from commit 9e8fb2d)
-
SoF S1: Remove Caravans' upkeep cost
In exchange, the player will have 2 starting villages less than before (cherry-picked from commit 76f081a)
-
SoF S2: Place glyphs during prestart
So we can see them while our ally is talking about them (cherry-picked from commit 29cec1a)
-
SoF S4: Add the tunnel the dwarves came from to reach the mines
(cherry-picked from commit 49d12cf)
-
SoF S5: Place the elvish encampment when the leader arrives
So remove his starting castle from the map; otherwise the user would see an empty keep and would know where the enemy is going to spawn (cherry-picked from commit 5dc6b79)
-
SoF S6: Set correct speaker for [message]
Alanin addresses Rugnur, and not Thursagan (cherry-picked from commit 20cd563)
-
SoF S7: Don't let the player kill all of the enemies
(cherry-picked from commit 5013a9f)
-
SoF S9: Fix some events and add TODOs
(cherry-picked from commit bc4a5e8)
-
SoF: Postpone Gryphon Riders availability
(cherry-picked from commit 67f4971)
-
SoF: add [show_if] to the objectives
(cherry-picked from commit 648035f)
-
updated British English translation
(cherry-picked from commit eadbb1e)
-
updated Scottish Gaelic translation
(cherry-picked from commit 7ac4029)
-
Reevaluate [show_if] conditions and delayed variable expansions befor…
…e displaying objectives at start. Fixes wesnoth#3544. (cherry-picked from commit d99f5b8)
-
Add const annotation to new function
(cherry-picked from commit 9f58a80)
-
ANL: fix village gold being too low
[ci skip] (cherry-picked from commit 09f418b)
-
Synchronized changelog with 1.14
[ci skip] (cherry-picked from commit 57709d4)
-
Tutorial S1: display an undo message if impossible to reach next target
Fixes wesnoth#3039 Until the elves attack the quintain it is not allowed to end turns before completing the given tasks. Display a message how to undo if there is not enough MP remaining to reach the current destination or an enemy by either unit. [ci skip] (cherry-picked from commit b16b7f0)
-
THoT: add potential workaround for wesnoth#3547
It's anyway a good idea to change this code. [ci skip] (cherry-picked from commit 5611181)
-
[ci skip] (cherry-picked from commit a38466d)
-
Multiple fixes to the changelog to make it look good on Steam
[ci skip] (cherry-picked from commit 7bb419a)
-
pofix: 1.14 announcement rules for 1.14.5
[ci skip] (cherry-picked from commit 2ea2a4d)
-
prevent double execution of on_event.lua
makes it safe to dofile("on_event.lua") (cherry-picked from commit 6010ffe)
-
Commandline: Add --campaign-skip-story option
Fixes wesnoth#3472 (cherry-picked from commit f7be872)
-
Commandline: Encapsulate skip_story in play_controller
(cherry-picked from commit 1d1d260)
-
Commandline: --campaign-skip-story skips [message]s during prestart a…
…nd start events (cherry-picked from commit b64f4b4)
-
WML: Support [filter_side] in [item]. (wesnoth#3533)
* WML: Support [filter_side] in [item]. If [filter_side] is present then "team_name" is ignored. Fixes wesnoth#1477. * WML: Compare [item]team_name to [side]team_name using intersection. Fixes problems with substrings and when one or the other is a comma-separated list. See wesnoth#3533 * WML: Rename [item][filter_side] to [item][filter_team] * Add changelog entry (cherry-picked from commit 3a3b752)
-
Fix wesnoth#3567: error when trying to send an error message to the c…
…lient Simple_wml requires double quotes to be duplicated like this. (cherry-picked from commit 9536f38)
-
Fix: Chance to hit wasn't protected from becoming negative
Manual merge of pull request wesnoth#3550. Credit to @newfrenchy83. (cherry-picked from commit 79206d9)
-
MP Create Game: Increase slider step size
Requested on the forums https://forums.wesnoth.org/viewtopic.php?t=48680 (cherry-picked from commit 9abdc20)
-
Unit Display: When the recruiting or recruited units is invisible, do…
…n't scroll to it. When the enemy leader and the unit it recruits are both invisible, scrolling to them would leak their location to the player. (cherry-picked from commit 4db9744)
-
Update Code::Blocks project (wesnoth#3566)
(cherry-picked from commit e395706)
-
Help: Hide abilities with empty names.
Fixes empty name abilities in help in Liberty S1. (cherry-picked from commit c88a799)
-
Commandline: Fix documentation of --render-image
(cherry-picked from commit c55b0c6)
-
manpage: Fix option name typos and update documentation of --render-i…
…mage. (cherry-picked from commit ae4ef05)
-
Update Code::Blocks project (wesnoth#3585)
(cherry-picked from commit 248af05)
-
DM S08: Cleanup & improve ending sequence, fixing wesnoth#3575
Removes final black screen that could be mistaken for a bug. Shows Delfador disappearing in front of the orcs more clearly. [ci skip] (cherry-picked from commit 75ab69d)