68 Commits

Author SHA1 Message Date
Iurii Chernyi
5652b111c0 optional new-style AI configs...
...and generation of AI lists in multiplayer from files
2009-06-28 13:01:41 +00:00
Guillaume Melquiond
cacf765f3c Removed config::get_children from multiplayer_wait.cpp. 2009-03-20 07:09:27 +00:00
Ignacio R. Morelle
86b55949c3 Hide the "Network Player" option for Local MP games (bug #12596) 2009-01-21 00:30:01 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Mark de Wever
ca2a4a9cbb Update doxygen comment style. 2008-09-19 15:30:28 +00:00
Pauli Nieminen
bf70edf190 Fixed drag&drop visual problems
Added test for drop target

Added mouse event locking to widget class
2008-08-03 15:46:07 +00:00
Pauli Nieminen
73ce931167 Added initial drag&drop support for button widgets 2008-08-02 07:56:45 +00:00
Ali El Gariani
79d9147cad Team-color faction images in MP lobby, now all images are team-colored there.
This add a new key "image" allowing to kill the ugly hack which
inserted image url in the "name" key. This hack is still supported but
not team-colored.

Fix a bug about replacing faction by the leader image only when using
the hack.  Data changed in the next commit.
2008-07-10 00:21:31 +00:00
Pauli Nieminen
551251f978 Removed persistent from team configuration (bug: #10916)
Added support for multiple sides per client in MP start

Added support for reserving slots when reloading game
2008-06-28 19:13:15 +00:00
Jörg Hinrichs
95bf75315f Lazy loading for unit_types Step 2:
Rename game_data to unit_type_data and make it a singleton to prevent
passing the same instance throughout the whole code and make
subsequent optimization less painful.
2008-03-30 13:49:03 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Pauli Nieminen
d6dd5a02f8 Made scrollarea to stay in bottom if it is resized (bug #6974)
Fixed random start ToD (bug #11056)
2008-02-15 10:51:36 +00:00
Gunter Labes
1be058cfce use different join/leave sounds for the game lobby 2008-02-08 08:10:07 +00:00
Pauli Nieminen
af0bdd6c0d Fixed MP saves loadind to choose correct human side (bug #10894) 2008-01-29 10:25:08 +00:00
Gunter Labes
a3e166a303 further avoid inserting empty keys to reduce clutter in diffs 2007-12-21 00:54:20 +00:00
Ignacio R. Morelle
8f45ad1daa Partial revert of patch #812 to replace with better MP gender selection
alternative. GUI code by Noyga, config and main algorithm by
ShadowMaster.
2007-10-25 12:05:22 +00:00
Hans Joachim Gurt
871c44fea0 doxygen, comments, formatting 2007-09-30 01:31:33 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
e7b801ffbc Made sure all files have a copyright header, the update to GPL 2+ will follow
in a separate commit.
2007-08-15 12:39:11 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Eric S. Raymond
43e5de9fee Huge patch pretty much all name changes.
display is now the base class and game_display the derived; code that
can use the base class because it doesn't need to grok units or teams
(like preferences.cpp and hotkeys.cpp) does so.
2007-06-28 05:32:36 +00:00
Jörg Hinrichs
d936c47ebd Fixes most problems with savegames...
...that have been introduced by the last changes. Also supposed to fix
bug #8389 and bug #8045.
2007-02-01 22:01:22 +00:00
Pauli Nieminen
ab1daeb9fb Added support for random start ToD
(feature request #8024)

Also added my name to trunk about.cfg
2006-12-29 21:22:08 +00:00
Jérémy Rosen
c323cfa7fa fix team translation in mp game, thx to coren 2006-12-27 13:39:18 +00:00
Serge Martin
5e14920901 fix https://gna.org/bugs/?7746
improve the way allow_player tag are handled

host no longer take side if no allowes and controller are set as
config set it
2006-11-16 17:32:40 +00:00
Jörg Hinrichs
04f1a065dc Reverts changes from 2006-10-10T19:57:48Z!joerg.hinrichs@alice-dsl.de
(savegame patch), since it causes more problems and i can't care for
it for at least a week.
2006-10-21 19:00:08 +00:00
Jörg Hinrichs
4069a6811a [[Gamestate and replay fixes]]
- makes some use of gamestate wording more consistent

- enables (again) saving of events and variables for mp savegames

- uses the same gamestate information for mp saves, campaign saves and autosaves

- keeps replay information for mp saves so that they always start from
  the beginning

- corrects the messed up savegame WML structure

I tested this in itself but not against latest changes: If there are
any incompatibilities/problems please tell me
2006-10-10 19:57:48 +00:00
Danny Daemonic
abe0924bbf The ai vs ai button is no longer needed after revision #12574. 2006-08-31 16:33:49 +00:00
Patrick Parker
5a0b2dce5f tidying up the GUI code for ai algorithm combo
note: human players who droid themselves still become default AI.
would be better if it remembered the hidden choice in cfg.
2006-05-25 02:12:37 +00:00
Patrick Parker
b89870bb33 cleaning up appearance of the AI select combo box 2006-05-24 05:34:57 +00:00
Elias Pschernig
cfd453e7f3 Added a combo box to the multiplayer dialog...
...which allows to select an AI algorithm or python script, as well as
helper functions to return the algorithms and scripts.
2006-05-21 17:44:42 +00:00
Gunter Labes
a8ae1fc7f1 [[MP features]]
* two additional MP timer settings, time reservoir limit and action bonus:
    Reservoir prevents the turn timer from exceeding an upper limit.
    Action bonus is added after turn for each attack, capture, and recruit.

* share view/map option removed from multiplayer create screen

* slider for each player to adjust their base income

...and then we shall have peace
2006-03-25 23:41:10 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Philippe Plantier
eccc1c65a7 Added support for the "next_scenario" WML value in multiplayer games.
(This means that now, we only need a few UI polishing fixes to have decent
support for multiplayer campaigns)

This is possibly buggy and needs polishing anyway.
2005-04-27 21:11:44 +00:00
Philippe Plantier
8bdfd1d7d8 Fixed a bug where MP savegames could not be correctly loaded...
...when made by the game client, because of the host-side era changes
(CVS internal.)
2005-04-02 10:36:12 +00:00
Philippe Plantier
a6439ffe57 When loading multiplayer savegames, the leader is now displayed.
Fixes bug #12112.
2005-03-19 17:33:32 +00:00
Philippe Plantier
f38bb8ea08 [[More MP bug fixes]]
* Fixed bug #12207: bell ringing when changing multiplayer screen

* Fixed userlist not being correctly reset when creating a multiplayer game

* Fixed the multiplayer lobby not existing on network error
2005-03-19 16:21:02 +00:00
Yann Dirson
59ad858b54 include cleanup: tooltips 2005-03-10 22:29:57 +00:00
Yann Dirson
456eaa6e11 moved mp:controller defn into multiplayer_connect, to cleanup mp deps a bit 2005-03-09 09:32:11 +00:00
Philippe Plantier
4a44521896 [[MP fixes]]
* Fixed the level description not being update when a side is tropped,
on the multiplayer game setup code

* Most updates are now done using diffs, and not full re-sends of the
level, on MP game setup.
2005-02-23 22:45:00 +00:00
Philippe Plantier
1968b66c3f * Changed the names of some WML parameters...
...transmitted during client - host MP game setup:

original_description => save_id
id => description.

* Now, use "id" as a faction id, to allow the factions name to be
translated by the client. Made the client use the faction it to lookup
the faction name, and not to use the faction name sent by the server.
2005-02-22 23:07:20 +00:00
Jon Daniel
38d47c316f Fixed team_names not working and wrong colour indices.
Also started to use user_description for translated descriptions.
2005-02-22 20:34:29 +00:00
Philippe Plantier
3f7ead7858 Fixed bug #12060:
multiplayer_game parameters not being saved, and not working at all.
2005-02-21 21:33:27 +00:00
Dave White
5c6af8ea7e fixed Visual C++6 compile errors 2005-02-21 00:40:28 +00:00
Philippe Plantier
9283ba2423 Completely rewrote "multiplayer lobby" and "multiplayer game creation" code,
...and modified the associated server code.

Added the ability to kick users in the "game creation" screen
Added the ability for users to switch sides in the "game creation" screen
Added the name of the previous user for each position, on the "game creation" screen, when loading saves.
Fixed several bugs.
Certainly introduced several more.
2005-02-20 22:30:29 +00:00
Isaac Clerencia Perez
4a9da17a81 Commit forcemstr patch #3654,
http://savannah.nongnu.org/patch/?func=detailitem&item_id=3654
2005-01-18 12:25:21 +00:00
Guillaume Melquiond
503941500a First patch in a sequence from forcemstr. Remove team list duplicates (bug #11567). 2005-01-12 21:08:21 +00:00
Dave White
dbabdcd096 fixed some problems with loading multiplayer games,
including widgets not appearing, and teams not being maintained
2004-12-31 19:31:13 +00:00
Philippe Plantier
6d26c0333e Fixed bugs #10829 and #9868.
#10829 is "multiplayer setup screen broken in low resolutions" and 
#9868 is "resizing in multiplayer lobby creates some glitches."

Added 2 new widgets:
* The scrollpane, which contains other widgets and makes them scroll
* The label, a basic text label

Added a "clip box" parameter to widgets.
Factored the hidden(), dirty() checks, and background restoration in the widget
system. Now, draw() is implemented in widgets.cpp, and widgets implement
draw_contents();
2004-11-01 18:06:37 +00:00