1
"$Id: ChangeLog,v 1.101 2006/06/29 06:28:09 mwedel Exp $"
1
"$Id: ChangeLog 5676 2007-03-05 05:49:19Z mwedel $"
3
4
------------------------------------------------------------------------------
5
gtk-v2/src/info.c: For extended message handling, special case the
6
MSG_TYPE_SIGN - the 1.x server puts a number in front of the message to
7
denote it is auto apply - strip it off in the gtk2 client. Not an
8
issue as far as 2.x goes, as the server doesn't prefix the message
12
gtk-v2/gtk-v2.glade: Apply patch 1636013 - standardize on underscored
13
widget names. Patch by Veli-Matti Valtonen - maligor.
16
Fix for bug #1538948: Assertion failure for map2 command.
17
Add checks for x,y and layer validity in the Map2Cmd.
18
Note that invalid values are not discarded, but clipped to valid ones.
19
common/commands.c: add checks.
20
common/mapdata.[ch]: move #define to header for access outside .c.
23
Merge patch #1558073: newpickup flesh courtesy bencha
26
gtk-v2/src/callbacks.h gtk2proto.h interface.c pickup.c
29
common/Makefile.am: Change svnversion.h generation to not update the file
30
unless it needs updating.
31
Alex Schultz 2006-11-09
33
Fix problem in display logic when the size of the image was not a multiple
34
of the map_image_size. This shows up when using tall character images.
35
It also shows up when using different -mapscale options due to rounding
36
errors - in both cases now, things are drawn correctly.
38
gtk/map.c: Add size parameters to draw_pixmap(). Add logic to figure out
39
proper offsets for drawing odd sized images.
40
gtk/sdl.c: Add logic to figure out proper offsets for drawing these odd
42
gtk-v2/src/map.c: Add size parameters to draw_pixmap(). Add logic to figure
43
out proper offsets for drawing odd sized images.
44
gtk-v2/src/sdl.c: Add logic to figure out proper offsets for drawing these
48
gtk/image.c: Fix bug that results in SDL mode not working if map_scale and
49
icon_scale are the same - can't use GDK pixmaps for SDL drawing.
52
Fix bug 1559804 - unable to drop items from inventory into open container
54
gtk-v2/src/inventory.c: Add check to see if container is on the ground in
55
addition to being in the player inventory as a valid drop target.
58
Add ability for client to get exp table from server. Add exp progressbar
61
common/client.c: Add declarations for exp_table, exp_table_max, and call to
62
send 'requestinfo exp_table' to server.
63
common/client.h: Add extern declarations for exp_table, exp_table_max
64
common/commands.c: Add get_exp_info() function to get exp table from
65
server in replyinfo command. Fix crash bug in ReplyInfoCmd() if replyinfo
66
with no parameters is sent to client.
67
common/init.c: Add code to clear/initialize exp_table, exp_table_max
68
gtk-v2/gtk-v2.glade: Add exp progessbar widget.
69
gtk-v2/src/gtk2proto.h: rebuilt
70
gtk-v2/src/interface.c: Rebuilt
71
gtk-v2/src/stats.c: Add code to draw/update the exp progressbar. Replace
72
some static numeric constants with #define values instead. Add
73
can_alert option to update_stat()
76
Fix annoying bug where popups appear all the time.
77
common/newclient.h: add some missing message types.
78
gtk/text.c: by default, admin commands are just sent to draw_info. This
79
prevents annoying popups.
82
common/Makefile.am: Make sure svnversion.h rebuilds every time.
83
Alex Schultz 2006-10-29
85
gtk/rcs-id.h, common/rcs-id.h, x11/rcs-id.h, gtk/gx11.c, x11/x11.c: Remove
87
gtk/Makefile.am, common/Makefile.am, x11/Makefile.am: Remove references to
90
configure.in, common/Makefile.am: Generate svnversion.h to define SVN_REV from
91
running the svnversion command if avaliable.
92
common/version.h: Add FULL_VERSION macro, to include SVN_REV if avaliable.
93
gtk/gx11.c, x11/x11.c, gtk-v2/src/main.c: Use FULL_VERSION instead of VERSION.
94
Alex Schultz 2006-10-20
96
common/client.c, gtk-v2/src/main.c: Remove excess log messages that flood
98
Alex Schultz 2006-10-12
100
Apply patches #1562945, #1562947, #1563796, and #1566467 to allow the gtk2
101
client to be built in mingw. Courtesy of Kurt Fitzner.
103
configure.in, gtk-v2/src/Makefile.in: Clean up build system a little and add
105
common/item.c, common/commands.c, common/init.c, common/script.c,
106
common/mapdata.c, common/client.c, common/p_cmd.c, common/player.c,
107
common/newsocket.c, common/metaserver.c: Add mingw/win32 support.
108
gtk-v2/src/keys.c, gtk-v2/src/map.c, gtk-v2/src/image.c,
109
gtk-v2/src/sdl.c, gtk-v2/src/main.c, gtk-v2/src/opengl.c, gtk-v2/src/png.c,
110
gtk-v2/src/Makefile.am, gtk-v2/src/sound.c, gtk-v2/src/menubar.c: Add win32
111
support to gtk2 client code, including for sdl and opengl.
112
Alex Schultz 2006-10-07
114
common/mapdata.c, common/proto.h: Move clearing of old map data from
115
mapdata_set_face_layer() to a new mapdata_clear_old() function.
116
common/commands.c: Call mapdata_clear_old() in Map2Cmd() instead of relying on
117
mapdata_set_face_layer() to clear it. Fixes bug #1559683.
118
x11/x11.c: Fix display_mapscroll() to handle scrolling by greater than 1 tile
119
at a time. Fixes bug #1564584.
120
Alex Schultz 2006-09-26
122
gtk-v2/src/info.c: Add some notes about downloading font. Add support
123
for underline in extended text modes.
126
configure.in: Fix opengl checks.
127
Alex Schultz 2006-09-17
129
Fix bug 1531060 - metaserver selection button is improperly activated.
130
Fix this by clearing the text box if an entry in the tree widget is selected -
131
if text is entered in the text box, unselect any selection - keeps it
132
very consistent what the connect button does. Have it greyed out until
133
there is either text in the text box or something selected in the treeview.
135
gtk-v2/gtk-v2.glade: add callback for key press events for text entry
137
gtk-v2/src/callbacks.h,gtk-v2/src/interface.c: Rebuilt
138
gtk-v2/src/metaserver.c: Add code to activate/disable button based on
139
status. Add code to clear text box when treeview selected. Add code
140
to deselect treeview if data is entered in textbox.
143
gtk-v2/src/stats.c: Fix bug 1527966 - protections window not properly
144
updated. Wrong variable was being used in loop.
148
gtk-v2/src/map.c: Clear clipmask and clear window in draw_splash() so that
149
splash is correctly redrawn.
150
gtk-v2/src/metaserver.c: Add call to draw_map() in metaserver selection just
151
to make sure splash is drawn correctly.
154
gtk-v2/src/inventory.c: Fix bug 1528014 - when dropping all objects, display
155
isn't updated correctly. Remove checks for cpl.ob->inv - relying on
156
cpl.ob->inv_updated appears to work fine.
157
gtk-v2/src/keys.c: Fix bug 1527988 - message about unused keys isn't very
158
useful. Include meta and alt information about unused keys. Add
159
warning message to bind when trying to bind a key that may conflict
160
with an existing binding.
163
Add suggestion from bug 1528536 - some menu items should be disabled during
164
metaserver selection.
166
gtk-v2/gtk-v2.glade: Fix some incorrect name (meny vs menu)
167
gtk-v2/src/interface.c: Rebuilt
168
gtk-v2/src/menubar.c: Add enable_menu_items(), which enables/disables some
170
gtk-v2/src/metaserver.c: Add calls to enable_menu_items() to disable
171
some menu items before metaserver selection, and to enable them after.
174
gtk-v2/gtk-v2.glade: Add callback for pressed event on metaserver quit button -
175
allows alt-Q to work - fix for bug 1551373
176
gtk-v2/src/interface.c: Rebuilt
178
gtk-v2/server/metaserver.c: Make some changes related to bug 1548290 - cached
179
entries show 0 value in players. Add code to check list of servers from
180
metaserver - if we have a match in the cached server list, don't display
181
the cached entry - use the one from the metaserver instead. Also, add
182
logic to not display empty server if the default server is null.
184
gtk-v2/src/config.c: Make save_winpos() do actual saving, have
185
on_save_window_position_activate() call save_winpos() - fixes
186
bug 1551395 where savewinpos command does not work.
187
gtk-v2/src/main.c: Remove empty function save_winpos()
190
gtk-v2/src/stats.c: Remove extra Player: in the player name. Fixes bug
191
1528011. MSW 2006-09-03
193
This change mainly adds support for the extended info messages for the gtkv2
194
client. Note that unlike the gtkv1 client, the gtkv2 client doesn't in any
195
way try to do pop up windows or fancy graphics - rather, the support is there
196
just so it can do font changes, color changes, etc, within the normal text
199
common/newclient.h: Sync it back up with server version. Several new
201
gtk-v2/src/info.c: Redo info pane handling - move all the relevant variables
202
into a structure - this should make it easier to add more panes in the
203
future, but right now, it means an integer can be passed in to functions
204
to control what pane to draw in. Add support for extended draw info -
205
notably, this means listing alternative fonts, and adding support
206
for different tags. Add callsbacks for the different message types. Add
207
code to process extended text message tags.
208
gtk-v2/src/keys.c: Change the grab focus after user enters command to use
209
the treeview_look widget instead fo the textview - given that the textview
210
is now stored away in a structure, harder to get to that variable.
213
common/client.c: fix Win32 compilation.
216
gtk-v2: Fix bug 1528540 - if metaserver window is closed, client is unusable.
217
Take suggested fix - if metaserver window is closed, exit client. Just
218
another hook to last commit.
219
gtk-v2/gtk-v2.glade: Add callback for destroy event on metaserver window.
220
gtk-v2/src/interface.c: rebuilt.
223
gtk-v2: Fix bug 1530024 - errors when manually closing a window.
224
gtk-v2/gtk-v2.glade: Add callback for destroy event on main window.
225
gtk-v2/src/callbacks.h, gtk-v2/src/interface.c: Updated by glade with new
227
gtk-v2/src/main.c: Code to handle callback
230
gtk/gx11.c: if cpl.no_echo is set, hide input.
233
configure: add --enable-cfgtk2 flag, to build gtk1 client with gtk2.
234
configure.in: add --enable-cfgtk2 flag. Add getaddrinfo check.
235
common/commands.c: check buffer length.
236
common/init.c: free allocated memory.
237
gtk/gx11.c: replace some WIN32 with CFGTK2.
238
gtk/win32/config.c: add #define CFGTK2.
241
Make common/cconfig.h act as the default server if set, if not set, connect
242
to metaserver. Prior to this, it always went to the metaserver unless
243
-server option was given.
245
common/cconfig.h: Comment out SERVER so by default it connects to metaserver
246
common/client.c: Add handling to initialize server from SERVER if defined,
248
common/metaserver.c: Don't present default server in metaserver selection
250
gtk/gx11.c, gtk-v2/src/main.c, x11/x11.c: Change command line handling -
251
if server is set, use that as default to connect to.
255
gtk-v2/src/inventory.c: Add another invisible column to inventory/look
256
lists for sorting based on name without nrof clogging results. Comment
257
out code that makes image fixed width.
260
x11/xutil.c: Use snprintf() to avoid possible buffer overflows.
261
gtk/image.c gtk-v2/src/image.c gtk-v2/src/opengl.c: Remove superfluous casts.
262
common/item.h, gnome/gnome.c, gtk/gx11.c, x11/x11.c: Remove unused macros.
263
common/commands.c: Unify/fix calls to LOG().
264
common/commands.c: In DeleteItem() and DeleteInventory() do not crash if an
265
invalid object tag was received.
266
Andreas Kirschbaum 2006-07-16
268
Fix problem in gtk1 & gtk2 client when player issues disconnect command -
269
client would hang and consume all CPU time.
271
common/external.h: Add declaration to cleanup_connection()
272
common/p_cmd.c: In disconnect command, add call to cleanup_connection()
273
gtk/gx11.c, gtk-v2/src/main.c: Add cleanup_connection() - removes socket
274
from one of the gdk input device, call gtk_main_quit so it returns
275
to metaserver selection.
276
x11/x11.c: Add empty cleanup_connection() - x11 client doesn't need to
280
More changes related to default logging. Able to specify default log level
281
with configure. Note: you will need to re-run configure after this change,
282
as otherwise MINLOGLEVEL will not be defined in config.h.
284
configure.in, configure: Add --with-loglevel=<val> to specify default
286
crossfire-client.spec: Update to include --with-loglevel for building RPMs
287
common/config.h.in: Add MINLOGLEVEL #define.
288
common/misc.c: Modify to use the MINLOGLEVEL #define
291
Clean up some compile warnings. They generally fall into either wrong form
292
for variable (%lld vs %ld), or cast for data (char* vs uint8*)
294
common/client-types.h: Add FMT64 defines like done in the server. Removes
295
need for #ifdef WIN32 in many places.
296
common/client.c: Remove unneeded cast for ReplyInfoCmd(). Change type
297
of length parameter passed to getsockopt() to be a socklen_t.
298
common/commands.c: Change ReplyInfoCmd() to take a uint8*. Add several
299
char*/uint8* casts. Change TickCmd() to also take uint8*
300
common/external.h: Add extern void client_tick(uint32 tick).
301
common/image.c: load_image() so that its fourth param (checksum) is a uint32.
302
In finish_face_cmd() change filename to be a char*. Add some casts in
303
ImageCmd() & Image2Cmd(). Change display_newpng() so its first param
304
(face) is just a int, not a long. Change get_image_info() to take in
305
a uint8* for data, add some casts. Change get_image_sums() to take in
307
common/item.c: Change several buffers used by the socklist structure to
308
be uint8, add casts as needed.
309
common/newsocket.c: Change SockList_Init() so that the passed in buffer
310
is a uint8*, so that is what the target buffer type is. Add some
311
casts and update some types within the program.
312
common/player.c: Change a buffer from char to uint8.
313
common/proto.h: Rebuilt.
314
common/script.c: Change it to take in a uint8 for data. Change %lld
316
common/script.h: Update declaration of script_watch()
317
gtk/config.c: Remove const from titles. While they may be used as a const,
318
the gtk function they are passed to isn't declared that way.
319
gtk/gx11.c: Remove unused function end_windows(). Replace %lld with
320
FMT64. Removed const from title declaration.
321
gtk/inventory.c: Remove const from titles declaration. re-enable cast
322
for image creation for tabs.
323
gtk/keys.c: Add note about compiler warning and bad code technique for
324
for getting the selection.
325
gtk/png.c: Removed unused variables/function - png_to_gdkpixmap()
326
gtk/text.c: Change void_callback() to match format of other callbacks
328
gtk-v2/src/gtk2proto.h: Rebuilt.
329
gtk-v2/src/png.c: Remove unused variable.
330
gtk-v2/src/stats.c: Replace %lld with FMT64.
331
pixmaps/question.111, pixmaps/stipple.111, pixmaps/stipple.112: Change
332
types to be char and not unsigned char, since that is what
333
the function tha uses this data expects.
334
x11/x11.c: Replace %lld with FMT64
338
Changes related to logging of version information.
339
aclocal, Makefiles.*: Rebuilt for new file in gtk-v2/src.
340
common/misc.c: Change MINLOG to be a variable so it can be changed via
341
command line options.
342
gtk/gx11.c: Have bug window display rcsid versions. Add -loglevel command
343
line option. Move printing of some log messages until after we process
344
command line options since that can change the log level.
345
gtk-v2/gtk-v2.glade: Add an about window for the gtkv2 client.
346
gtk-v2/src/Makefile.am: Add about.c file.
347
gtk-v2/src/about.c: file for about window.
348
gtk-v2/src/callbacks.h: on_about_close_clicked() added by glade.
349
gtk-v2/src/interface.c, interface.c: New logic for about window. New
350
function - create_about_window()
351
gtk-v2/src/main.c: Add -loglevel command line option. Move printing of some
352
log messages after we process command line options.
353
gtk-v2/src/menubar.c: remove menu_about() - now in about.c
356
common/misc.c: Make default log level 2 when not in debug mode. Normal users
357
probably don't want all the INFO log messages, and it never makes a good
358
impression about stability/quality if a program spews out lots of errors
362
Make some changes to the defaults so that the game is a bit more user friendly
363
to completely new users (eg, those that don't have a settings file):
365
common/init.c: Turn off popups (gtkv1 client) by default - general seems
366
that it isn't popular, and placement of the popups needs to be fixed.
367
gtk-v2/src/main.c: Change default map size to ask from server to be
368
25x25 - the gtkv2 client has default window size for that, so lets use
370
x11/x11.c: Turn on scroll of text by default - non scroll is really ugly
371
and doesn't make any sense give the power of even very slow cpus now.
374
gtk-v2/src/config.c: Fix bug resulting in a crash when opening the
375
configuration dialogue if you have an empty gdefaults2 file.
6
379
------------------------------------------------------------------------------