Commit Graph

20976 Commits

Author SHA1 Message Date
Ali El Gariani
6496347233 Clean and optimize movement_type data:
Each unit_type give its whole wml config to its related movement_type.
This was wasted ressource (e.g all anim WML was stored in both places)
and not clean (unit_type and movement_type both have a "name" key)

Now we filter the unit_type cfg to only keep related info in
movement_type.  This speed-up the unit WML loading (maybe ~20%) and
spare a little memory.  Best thing would be to separate movement_type
info given in the unit WML file, by using a [unit] [movement_type]
[movement_costs], so we can just read the unit specific
[movement_type] (and also organize more the unit WML). But not sure
that deprecating current WML worth the change.
2007-11-28 02:21:00 +00:00
Gunter Labes
f7ac00fe74 remove a useless function
some more replay::error checks
2007-11-28 00:38:31 +00:00
Gunter Labes
04cda48efb emit a warning if the AI tries to recruit a usage
...that isn't defined in any available recruit
2007-11-27 23:13:46 +00:00
Ali El Gariani
283a4b5c8b Quick fix to do a refresh_game_cfg before test scenario,
...since it's now needed.

And finally fix bug #8991: Load a second savegame crash when using
--test option
2007-11-27 23:00:10 +00:00
Gunter Labes
1700e03330 prevent errors in the (pre)start event to exit the application
logging improvements
2007-11-27 22:35:05 +00:00
Jörg Hinrichs
f2010d48d6 This patch prevents unnecessary parsing of game_config-WML
(especially unit types). Game startup is speeded up as well as
entering the same campaign (or multiplayer) from the title screen (and
returning to the title screen).
2007-11-27 21:53:41 +00:00
Nils Kneuper
e75d5c2e5e updated Polish translation 2007-11-27 21:40:21 +00:00
David Philippi
fa23cda1ea swedish translation update 2007-11-27 20:29:01 +00:00
David Philippi
3f9d2651e8 danish translation update 2007-11-27 19:24:45 +00:00
Gunter Labes
149f576a8d add a replay logger
log to the replay logger rather than network in replay.cpp

line length improvemets
2007-11-27 17:26:47 +00:00
Lari Nieminen
4929525216 Remove a bunch of unused macros. 2007-11-27 10:59:39 +00:00
Eric S. Raymond
0fa7406fc0 Add guard clause needed...
...to prevent the code for preserving changed titles across a
set_resolution() call from damaging the editor display.
2007-11-27 08:34:05 +00:00
Miguel Zapico
a35eef9135 Added units and factions to the translation 2007-11-27 04:49:58 +00:00
Ali El Gariani
75bdda2c91 Load unit animations data only when the first unit of a type is created.
Previously, we directly loaded all the images of all unit types.

Here it makes the initial loading of units few times faster (few sec
gain) and spare some memory. But it also helps when loading MP,
Campaigns, add-ons...

The only drawback is when discovering a lot of various units at the
same time, but it is supposed to happen only when loading or starting
a game, so seems ok to load data there, and it only happens the first
time
2007-11-27 01:06:05 +00:00
Eric S. Raymond
35245ba904 Move the themes images again,
this time to where the binary_paths code reliably finds them.
2007-11-26 23:43:13 +00:00
Benoît Timbert
84deaa97a4 Fixed recruitment pattern according to 2007-11-26T22:52:31Z!benoit.timbert@free.fr change 2007-11-26 22:59:54 +00:00
Benoît Timbert
5041eee60d Fixed the Giant Scorpion usage from "mixed fighter" to "fighter" 2007-11-26 22:52:31 +00:00
Benoît Timbert
4c1f6f96c5 Some tweaks to the recruitmement algorithm.
It now take in account the damage taken./total HP ratio instead of
just the resistance.

Since the average score is now usually lower, lowered the recruit
threshold by 40%
2007-11-26 22:49:39 +00:00
Eric S. Raymond
12d0d1929e Minor code cleanup of vicrory reporting. 2007-11-26 22:32:47 +00:00
Gunter Labes
cff1f1272b formatting fixes 2007-11-26 21:02:11 +00:00
Eric S. Raymond
b81d7af783 Switch to better STL usage suggested by alink. 2007-11-26 20:14:14 +00:00
Eric S. Raymond
dd5e401782 Also preserve title changes during theme modifications (not used yet,
I'm just trying to avoid someone else tripping over this down the road).
2007-11-26 19:18:16 +00:00
Eric S. Raymond
8bce1ccbee Preserve menu and button title changes through changes of screen resolution. 2007-11-26 19:13:16 +00:00
Ali El Gariani
ee7d2ed896 Activate the new unit_type preview panel for "Recruit" dialog too
(better speed and fields at fixed place)
2007-11-26 18:23:00 +00:00
Ali El Gariani
4f92767d85 use flag_rgb() instead of "magenta" for ~RC in the new unit_type preview panel 2007-11-26 18:17:42 +00:00
Ali El Gariani
5ef2318ef0 The new unit_type preview panel now display must-have traits
(as the old system did)

PS: gender name for traits are coded but not tested yet
2007-11-26 18:05:59 +00:00
Eric S. Raymond
18d437e4d5 Correct a comment. 2007-11-26 18:01:08 +00:00
Gunter Labes
2528cde1af use the correct name when announcing the new host 2007-11-26 17:40:53 +00:00
Gunter Labes
b9b5b1740f save some more server messages in the replay 2007-11-26 16:41:09 +00:00
Gunter Labes
2e979eb4c3 only accept info about the game state from players 2007-11-26 16:12:17 +00:00
Ali El Gariani
eb2eb65396 Improve speed of unit preview panel showing only unit types (not real units)
Avoid creating all the units (which was slow) and just read unit type
info.  Currently only used for Create Unit, I will activate it for
Recruit later.  Also clean a bit the rendering of text: use blank
lines for missing info (no ability or trait), so all fields stay
aligned when comparing units.  PS: Maybe add some "None" or "-" to
make the empty space more meaningfull?
2007-11-26 15:36:40 +00:00
Lari Nieminen
4509f0d685 Made 'A New Land' winnable by waiting to the end of turns.
The scenario should be properly redesigned later, though.
2007-11-26 11:04:39 +00:00
Eric S. Raymond
93918352aa Fix some messages. 2007-11-26 10:25:46 +00:00
Eric S. Raymond
889d64cc2f Comment out some broken WML until Rhuvaen can fix it. 2007-11-26 07:03:40 +00:00
Eric S. Raymond
77955165ee Make sure the status line is properly updated as we enter linger mode. 2007-11-26 06:48:09 +00:00
Eric S. Raymond
96b9d5bfe3 Fixes for a contruction in UtBS that gave wmllint indigestion.
Also, re-indent Dark Forecast.
2007-11-26 03:53:50 +00:00
Eric S. Raymond
15f26e42be Move theme images to their own directory.
This makes cleaner reporting of  unused images possible.
2007-11-26 03:29:38 +00:00
Eric S. Raymond
a59c9f904d Fix a couple of small problems turned up by wmllint. 2007-11-26 03:15:10 +00:00
Eric S. Raymond
c6d35c917e Cope with the fact that the default Ubuntu shell...
...no longer does {} expansion of file globs.
2007-11-26 02:19:02 +00:00
Ali El Gariani
6914277871 Restore cyclic haloes (Fix bug #10393):
Consider a cyclic halo animation as never expired.

(because cyclic animation now finish)
2007-11-26 01:29:06 +00:00
Eric S. Raymond
a7499251cc Correct somebody's thinko. 2007-11-26 00:26:31 +00:00
Eric S. Raymond
5273f5f689 Fix some broken invocations in the data/tools makefile. 2007-11-26 00:18:58 +00:00
Gunter Labes
5ab65d59a6 enable compiling of wesnothd as well
require a parameter to compile the editor or server
2007-11-25 15:46:53 +00:00
Gunter Labes
d1a2968d9a small addition to a tip 2007-11-25 15:44:47 +00:00
Mark de Wever
7dc0a49577 Wrote more comment regarding the problem fixed in commit 21940. 2007-11-25 11:47:22 +00:00
Dimitar Ilccov
03199b2b7e Adress bug #10151 part I
updated the dots and crosses on TRoW's bigmap for scenarios 1-13 and
split the bigmap data into a separate file. Also, some various minor
fixes to some TRoW's scenarios
2007-11-25 00:44:35 +00:00
Patrick Parker
2f7870feef partial fix for bbug #10354:
loading linger mode savegame where the enemy leader is back with 0 or less HP
2007-11-25 00:25:06 +00:00
Eric S. Raymond
b66c824442 Address bug #10383:
change underscores to spaces in the copy ogf the campaign name used in
the objectives dialog.
2007-11-24 16:01:33 +00:00
Eric S. Raymond
2ad767ac5c Typo fix. 2007-11-24 15:43:25 +00:00
Gunter Labes
13daea9b83 make the HttT campaign abbreviation look like the others 2007-11-24 14:01:08 +00:00