Directory trunk/client/common/

Directory Created:
2001-11-02 03:22
Directory Deleted:
2006-09-19 02:24
Total Files:
0
Deleted Files:
35
Lines of Code:
0

[root]/trunk/client/common

Lines of Code

trunk/client/common/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 465 (100.0%) 15808 (100.0%) 33.9
mwedel 224 (48.2%) 10360 (65.5%) 46.2
akirschbaum 68 (14.6%) 1827 (11.6%) 26.8
crowbert 18 (3.9%) 1308 (8.3%) 72.6
tchize 69 (14.8%) 1184 (7.5%) 17.1
ryo_saeba 65 (14.0%) 880 (5.6%) 13.5
cavesomething 12 (2.6%) 194 (1.2%) 16.1
gros 4 (0.9%) 43 (0.3%) 10.7
qal21 3 (0.6%) 9 (0.1%) 3.0
tanner 1 (0.2%) 2 (0.0%) 2.0
reeve 1 (0.2%) 1 (0.0%) 1.0

Most Recent Commits

mwedel 2006-09-19 02:24 Rev.: 4942

make branche directories, delete old trunk.

0 lines of code changed in 35 files:

  • trunk/client/common: .cvsignore (del), Makefile.am (del), Makefile.in (del), cconfig.h (del), client-types.h (del), client.c (del), client.h (del), commands.c (del), config.h (del), config.h.in (del), def-keys (del), def-keys.h (del), external.h (del), image.c (del), init.c (del), item-types (del), item-types.h (del), item.c (del), item.h (del), items.pl (del), main.c (del), mapdata.c (del), mapdata.h (del), metaserver.c (del), metaserver.h (del), misc.c (del), newclient.h (del), newsocket.c (del), p_cmd.c (del), p_cmd.h (del), player.c (del), proto.h (del), rcs-id.h (del), script.c (del), script.h (del)
mwedel 2006-09-04 01:42 Rev.: 4874

This change mainly adds support for the extended info messages for the gtkv2
client. Note that unlike the gtkv1 client, the gtkv2 client doesn't in any
way try to do pop up windows or fancy graphics - rather, the support is there
just so it can do font changes, color changes, etc, within the normal text
window.
--
common/newclient.h: Sync it back up with server version. Several new
MSG_ types added.
gtk-v2/src/info.c: Redo info pane handling - move all the relevant variables
into a structure - this should make it easier to add more panes in the
future, but right now, it means an integer can be passed in to functions
to control what pane to draw in. Add support for extended draw info -
notably, this means listing alternative fonts, and adding support
for different tags. Add callsbacks for the different message types. Add
code to process extended text message tags.
gtk-v2/src/keys.c: Change the grab focus after user enters command to use
the treeview_look widget instead fo the textview - given that the textview
is now stored away in a structure, harder to get to that variable.
MSW 2006-09-03

104 lines of code changed in 1 file:

  • trunk/client/common: newclient.h (+104 -43)
ryo_saeba 2006-09-03 10:24 Rev.: 4872

Fix Win32 compilation

3 lines of code changed in 1 file:

  • trunk/client/common: client.c (+3 -1)
ryo_saeba 2006-07-29 05:13 Rev.: 4727

Add .cvsignore files, courtesy Rapha��l Quinet - quinet

0 lines of code changed in 1 file:

  • trunk/client/common: .cvsignore (new)
ryo_saeba 2006-07-29 03:12 Rev.: 4724

Add --enable-gtk2 to build gtk1 client with gtk2. Misc bugfixes.

2 lines of code changed in 2 files:

  • trunk/client/common: commands.c (+1 -1), init.c (+1 -1)
mwedel 2006-07-18 01:24 Rev.: 4690

Make common/cconfig.h act as the default server if set, if not set, connect
to metaserver. Prior to this, it always went to the metaserver unless
-server option was given.
--
common/cconfig.h: Comment out SERVER so by default it connects to metaserver
common/client.c: Add handling to initialize server from SERVER if defined,
null otherwise.
common/metaserver.c: Don't present default server in metaserver selection
default is null.
gtk/gx11.c, gtk-v2/src/main.c, x11/x11.c: Change command line handling -
if server is set, use that as default to connect to.
--
MSW 2006-07-1

17 lines of code changed in 3 files:

  • trunk/client/common: cconfig.h (+6 -1), client.c (+7 -1), metaserver.c (+4 -2)
akirschbaum 2006-07-16 07:32 Rev.: 4681

common/item.h: Remove unused macros.

0 lines of code changed in 1 file:

  • trunk/client/common: item.h (-12)
akirschbaum 2006-07-16 07:13 Rev.: 4680

Change "if(ptr) free(ptr)" into "free(ptr)".

21 lines of code changed in 6 files:

  • trunk/client/common: client.c (+1 -2), client.h (+2 -2), commands.c (+4 -6), image.c (+6 -12), init.c (+6 -6), script.c (+2 -2)
akirschbaum 2006-07-16 06:17 Rev.: 4679

common/commands.c: In DeleteInventory() do not crash if an invalid object tag
was received.

6 lines of code changed in 1 file:

  • trunk/client/common: commands.c (+6 -5)
akirschbaum 2006-07-16 06:09 Rev.: 4678

common/commands.c: Unify/fix calls to LOG().

8 lines of code changed in 1 file:

  • trunk/client/common: commands.c (+8 -8)
akirschbaum 2006-07-16 05:57 Rev.: 4677

common/commands.c: In DeleteItem() do not crash if an invalid object tag was
received.

8 lines of code changed in 1 file:

  • trunk/client/common: commands.c (+8 -1)
mwedel 2006-07-06 02:07 Rev.: 4670

Fix problem in gtk1 & gtk2 client when player issues disconnect command -
client would hang and consume all CPU time.
---
common/external.h: Add declaration to cleanup_connection()
common/p_cmd.c: In disconnect command, add call to cleanup_connection()
gtk/gx11.c, gtk-v2/src/main.c: Add cleanup_connection() - removes socket
from one of the gdk input device, call gtk_main_quit so it returns
to metaserver selection.
x11/x11.c: Add empty cleanup_connection() - x11 client doesn't need to
do anything special.
MSW 2006-07-06

9 lines of code changed in 2 files:

  • trunk/client/common: external.h (+2 -1), p_cmd.c (+7 -1)
mwedel 2006-07-06 01:16 Rev.: 4669

More changes related to default logging. Able to specify default log level
with configure. Note: you will need to re-run configure after this change,
as otherwise MINLOGLEVEL will not be defined in config.h.
---
configure.in, configure: Add --with-loglevel=<val> to specify default
loglevel.
crossfire-client.spec: Update to include --with-loglevel for building RPMs
common/config.h.in: Add MINLOGLEVEL #define.
common/misc.c: Modify to use the MINLOGLEVEL #define
MSW 2006-07-05

7 lines of code changed in 2 files:

  • trunk/client/common: config.h.in (+5 -1), misc.c (+2 -6)
mwedel 2006-07-05 02:12 Rev.: 4665

Clean up some compile warnings. They generally fall into either wrong form
for variable (%lld vs %ld), or cast for data (char* vs uint8*)
---
common/client-types.h: Add FMT64 defines like done in the server. Removes
need for #ifdef WIN32 in many places.
common/client.c: Remove unneeded cast for ReplyInfoCmd(). Change type
of length parameter passed to getsockopt() to be a socklen_t.
common/commands.c: Change ReplyInfoCmd() to take a uint8*. Add several
char*/uint8* casts. Change TickCmd() to also take uint8*
common/external.h: Add extern void client_tick(uint32 tick).
common/image.c: load_image() so that its fourth param (checksum) is a uint32.
In finish_face_cmd() change filename to be a char*. Add some casts in
ImageCmd() & Image2Cmd(). Change display_newpng() so its first param
(face) is just a int, not a long. Change get_image_info() to take in
a uint8* for data, add some casts. Change get_image_sums() to take in
a char*
common/item.c: Change several buffers used by the socklist structure to
be uint8, add casts as needed.
common/newsocket.c: Change SockList_Init() so that the passed in buffer
is a uint8*, so that is what the target buffer type is. Add some
casts and update some types within the program.
common/player.c: Change a buffer from char to uint8.
common/proto.h: Rebuilt.
common/script.c: Change it to take in a uint8 for data. Change %lld
to use FMT64
common/script.h: Update declaration of script_watch()
gtk/config.c: Remove const from titles. While they may be used as a const,
the gtk function they are passed to isn't declared that way.
gtk/gx11.c: Remove unused function end_windows(). Replace %lld with
FMT64. Removed const from title declaration.
gtk/inventory.c: Remove const from titles declaration. re-enable cast
for image creation for tabs.
gtk/keys.c: Add note about compiler warning and bad code technique for
for getting the selection.
gtk/png.c: Removed unused variables/function - png_to_gdkpixmap()
gtk/text.c: Change void_callback() to match format of other callbacks
to prevent warning.
gtk-v2/src/gtk2proto.h: Rebuilt.
gtk-v2/src/png.c: Remove unused variable.
gtk-v2/src/stats.c: Replace %lld with FMT64.
pixmaps/question.111, pixmaps/stipple.111, pixmaps/stipple.112: Change
types to be char and not unsigned char, since that is what
the function tha uses this data expects.
x11/x11.c: Replace %lld with FMT64
---
MSW 2006-07-04

61 lines of code changed in 11 files:

  • trunk/client/common: client-types.h (+6), client.c (+3 -2), commands.c (+8 -8), external.h (+2), image.c (+15 -14), item.c (+6 -6), newsocket.c (+4 -4), player.c (+1 -1), proto.h (+6 -6), script.c (+9 -8), script.h (+1 -1)
mwedel 2006-07-05 00:21 Rev.: 4664

Changes related to logging of version information.
aclocal, Makefiles.*: Rebuilt for new file in gtk-v2/src.
common/misc.c: Change MINLOG to be a variable so it can be changed via
command line options.
gtk/gx11.c: Have bug window display rcsid versions. Add -loglevel command
line option. Move printing of some log messages until after we process
command line options since that can change the log level.
gtk-v2/gtk-v2.glade: Add an about window for the gtkv2 client.
gtk-v2/src/Makefile.am: Add about.c file.
gtk-v2/src/about.c: file for about window.
gtk-v2/src/callbacks.h: on_about_close_clicked() added by glade.
gtk-v2/src/interface.c, interface.c: New logic for about window. New
function - create_about_window()
gtk-v2/src/main.c: Add -loglevel command line option. Move printing of some
log messages after we process command line options.
gtk-v2/src/menubar.c: remove menu_about() - now in about.c
MSW 2006-07-04

5 lines of code changed in 1 file:

  • trunk/client/common: misc.c (+5 -2)
mwedel 2006-07-01 22:19 Rev.: 4660

common/misc.c: Make default log level 2 when not in debug mode. Normal users
probably don't want all the INFO log messages, and it never makes a good
impression about stability/quality if a program spews out lots of errors
or other messages.
MSW 2006-07-01

1 lines of code changed in 1 file:

  • trunk/client/common: misc.c (+1 -1)
mwedel 2006-07-01 22:10 Rev.: 4659

Make some changes to the defaults so that the game is a bit more user friendly
to completely new users (eg, those that don't have a settings file):
--
common/init.c: Turn off popups (gtkv1 client) by default - general seems
that it isn't popular, and placement of the popups needs to be fixed.
gtk-v2/src/main.c: Change default map size to ask from server to be
25x25 - the gtkv2 client has default window size for that, so lets use
it.
x11/x11.c: Turn on scroll of text by default - non scroll is really ugly
and doesn't make any sense give the power of even very slow cpus now.
MSW 2006-07-01

1 lines of code changed in 1 file:

  • trunk/client/common: init.c (+1 -1)
akirschbaum 2006-05-21 05:35 Rev.: 4577

Make socket handling more robust.

18 lines of code changed in 3 files:

  • trunk/client/common: client.c (+6 -4), newclient.h (+5 -3), newsocket.c (+7 -10)
ryo_saeba 2006-05-17 12:58 Rev.: 4567

Fix unitialized variable.

1 lines of code changed in 1 file:

  • trunk/client/common: mapdata.c (+1)
mwedel 2006-05-15 00:57 Rev.: 4566

This commit adds client side support for the map2 & tick protocol commands.
In additional the the necessary decode logic, more layers are also added
to the map.
--
common/Makefile.am/.in: Fix proto directive
common/client.c: Add global tick variable. Add links to handle map2
and tick protocol commands. Update setup request sent to server
to request to use the tick and map2 commands.
common/client.h: Add additional fields to Animations structure. Increase
MAX_MAP_OFFSET to match the value on the server.
common/commands.c: Add parsing of return of map2 failures on setup command
so that client can fall back. Add additional initializations for
new fields in AnimCmd(). Change definition of NUM_LAYERS to match
what the map1 command wants/expects. Add Map2Cmd() to decode
map2 protocol command. Do some whitepsace clean of ExtSmooth().
Add TickCmd()
common/init.c: Add seeing of random number generator.
common/mapdata.c: Rewrite CLEAR_CELLS macro to handle additional layers.
Clear animation data in expand_clear_face(). Change MAXLAYERS to
MAP1_LAYERS since map2 increase MAXLAYERS. Add support functions for
setting data in the map2 command.
common/mapdata.h: Increase MAXLAYERS, add MAP1_LAYERS define to old number
of layers. Add animation data to MapCellLayer.
common/newclient.h: Add various defines related to the map2 data.
common/proto.h: Rebuilt
gtk/gx11.c: Add cleint_tick() to handle map animations. Update
do_timeout() to not do animations if we are getting tick data.
gtk-v2/src/config.c: Fix bug in config code where it wasn't enabling
darkness when player switched back from no darkness mode to some
mode.
gtk-v2/src/main.c: Add client_tick() to handle animations. Update
do_timeout() to not do animations if tick is set.
gtk-v2/src/opengl.c: Fix drawing logic where objects which were visible
but in which the bottom right corner was off the map was not being
drawn - only a problem in opengl since it only draws the object
when it finds the head, does not draw each piece.
sound-src/Makefile.am/.in: Fix creation of sounds file - was using
wrong variable name.
x11/xutil.c: Add basic client_tick() that is a callback from the common code.
MSW 2006-05-14

729 lines of code changed in 10 files:

  • trunk/client/common: Makefile.am (+2 -1), Makefile.in (+3 -4), client.c (+5 -1), client.h (+5 -1), commands.c (+144 -35), init.c (+3), mapdata.c (+394 -23), mapdata.h (+18 -2), newclient.h (+15), proto.h (+140 -122)
cavesomething 2006-04-12 06:18 Rev.: 4552

use the same image hashing algorithm that the server uses for archetypes, increase the table size to 8192 to reduce collisions.

11 lines of code changed in 1 file:

  • trunk/client/common: image.c (+11 -9)
ryo_saeba 2006-03-14 13:08 Rev.: 4531

Fix memory leaks and uninitialized variable.

6 lines of code changed in 2 files:

  • trunk/client/common: item.c (+1), p_cmd.c (+5 -1)
akirschbaum 2006-03-04 11:20 Rev.: 4507

common/p_cmd.c: Update command table for auto-completion to all (non-DM)
server side commands. Also check for client side commands. Add a space
after a completed command so the player can enter arguments.

48 lines of code changed in 1 file:

  • trunk/client/common: p_cmd.c (+48 -16)
akirschbaum 2006-03-04 10:56 Rev.: 4506

Fix bug #1442523 (Crash when pressing TAB during login). Also fix undefined
behavior due to overlapping strings passed to strncpy().

7 lines of code changed in 1 file:

  • trunk/client/common: p_cmd.c (+7 -16)
mwedel 2006-02-28 03:09 Rev.: 4505

More updates for the gtkv2 client. Add a config window to change the
config options. Note this isn't quite as cluttered as the gtkv1 config
window because only the options that affect the gtkv2 client are presented.
---
common/client.h: Add CFG_LT_NONE to use instead of 0.
common/init.c: Change 'sdl' config name to 'displaymode'. the CONFIG_
parameter was changed a while back, but still used this old name in the
save file.
gtk/config.c: Add some logic to handle 'sdl' legacy config mode.
gtk-v2/gtk-v2.glade: Updated with new config window.
gtk-v2/src/callbacks.h: rebuilt by glade-2
gtk-v2/src/config.c: Lots of new code to handle setting/getting of config
values in config window.
gtk-v2/src/gtk2proto.h: Rebuilt.
gtk-v2/src/interface.c: Rebuilt by glade-2
gtk-v2/src/interface.h: Rebuilt by glade-2
gtk-v2/src/main.c: Add call to config_init() to initialize config window.
MSW 2006-02-27

2 lines of code changed in 2 files:

  • trunk/client/common: client.h (+1), init.c (+1 -1)
ryo_saeba 2006-02-26 05:28 Rev.: 4497

Apply patch #1424583 (IPv6 patch for client) courtesy Christoph Hohmann (reboot)

45 lines of code changed in 2 files:

  • trunk/client/common: client.c (+42 -6), config.h.in (+3)
ryo_saeba 2006-02-26 05:09 Rev.: 4496

Win32 1.9.0 release

3 lines of code changed in 1 file:

  • trunk/client/common: script.c (+3 -1)
ryo_saeba 2006-02-25 08:55 Rev.: 4493

Fix broken server cache

3 lines of code changed in 1 file:

  • trunk/client/common: metaserver.c (+3 -2)
akirschbaum 2006-02-23 15:18 Rev.: 4485

Apply patch #1433271 (code-cleanup) by Stefan Huehner: Add const and static,
remove unused variables

37 lines of code changed in 13 files:

  • trunk/client/common: client.c (+1 -1), commands.c (+1 -1), image.c (+1 -1), init.c (+1 -1), item.c (+1 -1), metaserver.c (+1 -1), misc.c (+2 -2), newsocket.c (+7 -7), player.c (+1 -1), proto.h (+5 -5), rcs-id.h (+11 -11), script.c (+4 -4), script.h (+1 -1)
mwedel 2006-02-23 03:30 Rev.: 4484

More improvements to the gtk-v2 client:
- Add spell selection window similar to that in the gtk-v1 client.
- Make it so that clicking on the headers in the metaserver and keybinding
selection windows will result in table be sorted by that header.
--
*/Makefile.in: Rebuilt by automake.
aclocal.m4: Updated by aclocal.
gtk-v2/TODO: Remove things that have been done, add other things mentioned
on mailing list that should be done.
gtk-v2/gtk-v2.glade: Updated with new spell selection window.
gtk-v2/src/Makefile.am: Add spells.c file
gtk-v2/src/spells.c: File that handles spell selection window.
gtk-v2/src/callbacks.h: Updated by glade
gtk-v2/src/gtk2proto.h: rebuilt
gtk-v2/src/interface.c: Updated by glade.
gtk-v2/src/interface.h: Updated by glade.
gtk-v2/src/keys.c: Add necessary calls to enable sorting of table by
clicking on headers.
gtk-v2/src/main.c: Add call to update_spell_information() if spell information
has changed.
gtk-v2/src/metaserver.c: Add necessary calls to enable sorting of table by
clicking on headers. Convert the idletime and number of players columns
to be ints - this makes the sort work as expected, and actually simplifies
the code a little.
gtk-v2/src/support.h: Rebuilt by glade.
MSW 2006-02-22

3 lines of code changed in 1 file:

  • trunk/client/common: Makefile.in (+3 -1)
mwedel 2006-02-21 03:11 Rev.: 4482

common/player.c: Fix bug in that spell data wasn't being cleared when
logging on. Thus, if you logged on as one character, then another,
etc, it would just keep adding to the spell list, not being a
representative list of spells character knows.
MSW 2006-02-20

11 lines of code changed in 1 file:

  • trunk/client/common: player.c (+11)
mwedel 2006-02-20 02:22 Rev.: 4474

Improvements to the gtkv2 client - Add free form text box to metaserver
selection window so server name can be manually entered, add keybinding
interface window to client similar to one in gtkv1 client, and disconnect
menu item to client. Note that this keybinding interfaces allows for
ALT and META modifiers in addition to SHIFT and CONTROL, hence minor changes
to the common code.
---
common/client.h: Add meta_on, alt_on to player structure.
gtk-v2/gtk-v2.glade: Updated with new elements - keybinding window, new
menubar, text box for metaserver window.
gtk-v2/src/callbacks.h: Generated by glade for new function prototypes
gtk-v2/src/gtk2proto.h: rebuilt for new function definitions.
gtk-v2/src/interface.c: Generated by glade for new features.
gtk-v2/src/interface.h: Generated by glade for new function prototypes
gtk-v2/src/keys.c: New initialization code for keybinding window. New
KEYF_ modifiers. New handling for meta and alt keys. Many new callbacks
for new code.
gtk-v2/src/main.c: Remove unused extern declartions.
gtk-v2/src/menubar.c: Add function for disconnect menu item.
gtk-v2/src/metaserver.c: Add metaserver_connect_to() to handle common
connection logic (pulled from on_treeview_metaserver_row_activated().
Add on_metaserver_text_entry_activate() for text entry server connections.
MSW 2006-02-19

2 lines of code changed in 1 file:

  • trunk/client/common: client.h (+2)
akirschbaum 2006-02-17 04:35 Rev.: 4460

Apply modified patch #1432404 (Solve bug in watch stats script function) by
Benjamin Lerman: make watch stats command work if more than one stat changes
simultaneously.

127 lines of code changed in 1 file:

  • trunk/client/common: script.c (+127 -125)
akirschbaum 2006-02-16 17:32 Rev.: 4458

Apply patch #1430279 (code-cleanup: const, static, etc) by Stefan Huehner.

35 lines of code changed in 13 files:

  • trunk/client/common: client.c (+2 -2), client.h (+2 -2), commands.c (+1 -1), def-keys.h (+1 -1), external.h (+2 -2), init.c (+1 -1), item-types.h (+1 -1), item.c (+3 -3), metaserver.c (+2 -2), misc.c (+14 -12), p_cmd.c (+2 -2), player.c (+1 -1), proto.h (+3 -3)
akirschbaum 2006-02-12 06:46 Rev.: 4447

Apply patch #1429975 (patch to support port numbers in metaserver host names)
by Marc Lehmann.

16 lines of code changed in 1 file:

  • trunk/client/common: metaserver.c (+16 -5)
akirschbaum 2006-02-12 04:23 Rev.: 4446

common/metaserver.c, common/metaserver.h: Make cached_servers_loaded static
since it is not used elsewhere.

1 lines of code changed in 2 files:

  • trunk/client/common: metaserver.c (+1 -1), metaserver.h (-1)
akirschbaum 2006-02-12 04:14 Rev.: 4445

General cleanup -- just whitespace changes; should not affect behavior.

242 lines of code changed in 1 file:

  • trunk/client/common: metaserver.c (+242 -262)
cavesomething 2006-01-31 16:11 Rev.: 4412

remove option to display resistances without a scrollbar

1 lines of code changed in 1 file:

  • trunk/client/common: init.c (+1 -1)
cavesomething 2006-01-31 09:22 Rev.: 4411

remove coloured inventory and text options and support for black and white monitors, change cfclient to a grey colourscheme

33 lines of code changed in 2 files:

  • trunk/client/common: client.h (+32 -34), init.c (+1 -3)
cavesomething 2006-01-19 13:02 Rev.: 4403

fix bug with reading the wrong bytes on an updspell packet

3 lines of code changed in 1 file:

  • trunk/client/common: commands.c (+3 -3)

(117 more)

Generated by StatSVN 0.7.0