ChangeLog
- 2019-01-15 01:44 partmedia
- [r20694] . Tag client 1.73.0 release
- 2019-01-15 00:30 partmedia
- [r20693] Bump copyright year
- 2019-01-14 05:21 partmedia
- [r20690] Lower CMake requirement to 3.1
3.1 is the lowest version we can use to keep taking advantage of
automatic C standard compile flag selection.
- 2019-01-12 20:13 partmedia
- [r20688] Call show_main_client() after addme_success
- 2019-01-12 20:12 partmedia
- [r20687] Fix possible segfault
- 2019-01-07 15:27 partmedia
- [r20682] Report client layout in version string
- 2019-01-06 21:53 partmedia
- [r20681] Update source packer
- 2019-01-06 21:52 partmedia
- [r20680] Update version string to 1.73.0
- 2019-01-06 21:52 partmedia
- [r20679] Remove outdated spec file
The spec file still uses the old autoconf/automake build system, which
is no longer available.
If someone can maintain this, please resurrect it!
- 2019-01-02 02:37 partmedia
- [r20674] Hide main client when not playing
- 2019-01-02 02:36 partmedia
- [r20673] Show main client after character selection
- 2019-01-02 02:36 partmedia
- [r20672] Make resize_map_window() a no-op again
We shouldn't do anything here until we get new map data to draw.
- 2019-01-02 02:36 partmedia
- [r20671] Regroup connect button
- 2019-01-01 04:46 partmedia
- [r20670] Install sounds if available
- 2018-12-30 05:16 silvernexus
- [r20656] Adjust minimum cmake version to match presence of c_std_99 item for compile targets.
- 2018-12-27 20:38 partmedia
- [r20628] Update ChangeLog
- 2018-12-27 20:22 partmedia
- [r20627] Show open containers in unlocked inventory view
Submitted by: Frank Wilde <F.Wilde@casino2000.lu>
- 2018-12-27 19:54 partmedia
- [r20626] Better document options
- 2018-12-27 19:54 partmedia
- [r20625] Update config.h based on options changed
- 2018-12-27 19:42 partmedia
- [r20624] Use target_compile_features()
- 2018-12-27 19:42 partmedia
- [r20623] Replace uses of include_directories()
- 2018-12-27 19:42 partmedia
- [r20622] Use full path to SDL headers
- 2018-12-27 01:58 partmedia
- [r20621] Pass player and server name to client scripts
Submitted by: Frank Wilde <F.Wilde@casino2000.lu>
- 2018-11-19 00:54 partmedia
- [r20612] Avoid stopping a nonexistent sound server
- 2018-11-19 00:53 partmedia
- [r20611] Pave over memory error
- 2018-11-19 00:53 partmedia
- [r20610] Check for divide by zero
- 2018-11-19 00:52 partmedia
- [r20609] Wrap error around LOG()
- 2018-10-26 01:22 silvernexus
- [r20607] Make blessed items display '(blessed)' to denote they are blessed.
This is mostly for scrolls, where being blessed makes a difference.
- 2018-10-26 01:21 silvernexus
- [r20606] Make blessed items display '(blessed)' to denote they are blessed.
This is mostly for scrolls, where being blessed makes a difference.
- 2017-08-29 00:00 silvernexus
- [r20507] Don't make a local copy of the environment string in sound initialization. We only use it in a read-only manner.
- 2017-08-28 00:16 silvernexus
- [r20506] Change environment variable access to use unowned string result
This allows for the sound server to run with Vala < 0.25.3.
- 2017-08-19 04:06 silvernexus
- [r20500] Fix delayed update of weight limit display on Strength changes.
- 2017-08-13 19:17 partmedia
- [r20488] Update version string to 1.72.0
- 2017-08-13 19:17 partmedia
- [r20487] Make upgrade message more useful
- 2017-08-13 19:17 partmedia
- [r20486] Normalize application name
- 2017-08-13 19:17 partmedia
- [r20485] Update README
- 2017-08-08 13:57 partmedia
- [r20479] Fix double free after stopping music
- 2017-08-02 01:44 silvernexus
- [r20464] Check the packet size using an unsigned short, since a signed short rolls to negative before being converted to a size_t
- 2017-07-29 05:32 partmedia
- [r20454] Lower login windows after 'addme' command as well
After creating a new account and starting to play, 'addme' gets sent
without the player hitting the login button.
- 2017-07-29 05:31 partmedia
- [r20453] Disable client-side socket timeout
- 2017-07-27 16:21 partmedia
- [r20451] Handle end of stream correctly
- 2017-07-27 06:34 partmedia
- [r20447] Stop music when disconnecting
- 2017-07-26 15:48 partmedia
- [r20446] Control sound logging with client log level
- 2017-07-26 15:48 partmedia
- [r20445] Rewrite change log to be more useful
- 2017-07-26 15:48 partmedia
- [r20444] Suggest ordering of rendering modes
- 2017-07-26 15:48 partmedia
- [r20443] Add Windows packaging script
- 2017-07-26 15:48 partmedia
- [r20442] Remove old Windows build files
- 2017-07-23 21:00 partmedia
- [r20438] Fix SDL_image detection
- 2017-07-23 20:12 partmedia
- [r20437] Use pkg-config to find libcurl and SDL
- 2017-07-23 20:12 partmedia
- [r20436] Add missing linker flag for Windows
- 2017-07-23 19:34 partmedia
- [r20435] Update Windows build
- 2017-07-23 19:03 partmedia
- [r20434] Use pkg-config to find GTK2 libraries
FindGtk2 has some issues finding all parts of the GTK2 library on MSYS2
under Windows, which causes the whole library to be disabled. This
change can be reverted if the CMake module is ever fixed.
- 2017-07-23 19:03 partmedia
- [r20433] Apply volume settings
- 2017-07-23 19:03 partmedia
- [r20432] Replace ChildProcess with GLib functions
The sound server invocation now theoretically works on Windows. While
here, make the spawned sound server inherit stderr and stdout from the
parent to fix the issue of the sound server blocking on pipe write.
- 2017-07-23 19:03 partmedia
- [r20431] Update shared header from server
- 2017-07-23 19:03 partmedia
- [r20430] Store sound mapping in a hash table
- 2017-07-23 19:02 partmedia
- [r20429] Add Vala dependency
- 2017-07-23 19:02 partmedia
- [r20428] Import CMake Vala modules
Vala CMake is a collection of macros for the CMake build system to allow
the creation and management of projects developed using the Vala
programming language or its "Genie" flavor (less tested).
Author: Jakob Westhoff
License: GPLv2
WWW: https://github.com/jakobwesthoff/Vala_CMake/
- 2017-07-23 19:00 partmedia
- [r20427] Return error when server sends an invalid packet
- 2017-07-23 19:00 partmedia
- [r20426] Show message when metaserver support is disabled
- 2017-07-23 15:04 silvernexus
- [r20425] Fix short-circuit logic that bypasses fflush on music commands.
- 2017-07-22 18:07 partmedia
- [r20424] Use radio buttons for keybinding scope modifier
- 2017-07-22 18:07 partmedia
- [r20423] Stop making csocket.inbuf global
- 2017-07-22 18:07 partmedia
- [r20422] Replace socket reads with GInputStream
- 2017-07-14 05:47 partmedia
- [r20421] Initialize map after client window comes up
- 2017-07-13 01:34 silvernexus
- [r20420] Add define around debugging message in cfsndserv.
- 2017-07-10 00:05 partmedia
- [r20418] Remove duplicate event handler
- 2017-07-10 00:04 partmedia
- [r20417] Improve metaserver and login windows
- 2017-07-10 00:04 partmedia
- [r20416] Add missing return
- 2017-07-09 18:52 partmedia
- [r20415] Hide main window during server selection
- 2017-07-09 18:52 partmedia
- [r20414] Add preferences button on metaserver dialog
- 2017-07-09 18:52 partmedia
- [r20413] Split preferences into multiple tabs
- 2017-07-09 18:51 partmedia
- [r20412] Handle error leading to segfault
- 2017-07-06 21:43 partmedia
- [r20407] Print negative numbers correctly
- 2017-07-06 21:43 partmedia
- [r20406] Use accessor functions
- 2017-07-04 20:42 partmedia
- [r20405] Improve build on Windows
- 2017-06-29 17:05 partmedia
- [r20401] Move debug output to main
- 2017-06-29 17:05 partmedia
- [r20400] Fix short-circuit logic error
- 2017-06-28 16:14 partmedia
- [r20399] Fix likely double free
- 2017-06-24 20:13 partmedia
- [r20398] Mark local symbols static
- 2017-06-24 20:12 partmedia
- [r20397] Remove delay
- 2017-06-24 20:12 partmedia
- [r20396] Clean up sound server main
- 2017-06-24 20:12 partmedia
- [r20395] Revert "Remove unused check for sysconf"
Turns out I wasn't careful while running a global grep and didn't see
where we're using sysconf().
- 2017-06-23 04:02 partmedia
- [r20393] Remove unused check for sysconf
- 2017-06-22 21:38 partmedia
- [r20392] Cache chunks for the duration of the sound server
- 2017-06-22 21:38 partmedia
- [r20391] Remove old documentation
- 2017-06-22 21:38 partmedia
- [r20390] Reduce sound server link dependencies
- 2017-06-22 21:38 partmedia
- [r20389] Reduce test-metaserver link dependencies
- 2017-06-21 17:46 partmedia
- [r20388] Pass callback as argument instead of using global
- 2017-06-21 17:46 partmedia
- [r20387] Parse metaserver info from a buffer
Store character data from curl using mbuf_write() and parse it as an
ordinary string. This makes the parser easier to debug and separates
curl logic from the parsing code.
- 2017-06-21 17:46 partmedia
- [r20386] Move declarations closer to first use
- 2017-06-08 01:23 partmedia
- [r20383] Lower login window after receiving 'player' command
Sometimes 'addme_success' is not received by the client after a
successful login, even though the player shows up in-game. This is the
bug where you have to press 'Play' twice to dismiss the login window.
- 2017-06-08 01:23 partmedia
- [r20382] Request bigger map to hide right and bottom edge
- 2017-06-08 01:23 partmedia
- [r20381] Add minimal metaserver test program
- 2017-06-02 02:53 partmedia
- [r20375] Move music to $CF_SOUND_DIR/music
- 2017-06-02 02:53 partmedia
- [r20374] Fix path to sound effects
- 2017-06-02 02:53 partmedia
- [r20373] Separate sound functions from sound server
- 2017-06-02 02:53 partmedia
- [r20372] Add shim to match client type signature
- 2017-06-02 02:53 partmedia
- [r20371] Move declarations closer to first use
- 2017-06-02 02:53 partmedia
- [r20370] Remove unused headers
- 2017-05-29 23:48 partmedia
- [r20366] Use modern defaults for sample format and rate
- 2017-05-29 23:48 partmedia
- [r20365] Improve music playback
- Avoid restarting when playing same music
- Fade tracks in and out
- Free previously played track
- Stop playback when receiving NONE or unknown music
- 2017-05-29 23:48 partmedia
- [r20364] Refactor mostly empty source files
- 2017-05-29 23:48 partmedia
- [r20363] Use full filename for sound files
This allows using sounds that don't have a .wav extension.
- 2017-05-19 21:43 partmedia
- [r20355] Convert remaining old sound types
- 2017-05-19 21:43 partmedia
- [r20354] Update README
- 2017-05-19 21:43 partmedia
- [r20353] Update field documentation from README
- 2017-05-19 21:43 partmedia
- [r20352] Fix sound server
- Add missing path separator
- Fix SOUND build when SDL is not enabled
- Fix cfsndserv argument order
- Fix logic errors breaking initialization
- 2017-05-19 21:43 partmedia
- [r20351] Remove man page
The man page for the GTKv2 client is out-of-date. Command-line arguments
are sufficiently documented in the '--help' text and the rest of the
functionality is discoverable via the GUI.
- 2017-05-18 04:43 partmedia
- [r20348] Use install(DIRECTORY) for layouts and themes
- 2017-05-18 04:43 partmedia
- [r20347] Install icons in new icon directories
- 2017-05-14 04:22 partmedia
- [r20346] Install icon image
- 2017-01-17 17:57 partmedia
- [r20330] Clean up CMakeLists
- 2017-01-17 17:57 partmedia
- [r20329] Mark all find_package() macros as REQUIRED
This makes missing dependencies fail at configure instead of compile
time and simplifies CMake logic.
- 2017-01-17 17:57 partmedia
- [r20328] Remove client heartbeats
The server doesn't do anything useful with this information and this
feature has only been causing occasional crashes.
- 2016-02-15 21:21 partmedia
- [r20223] Remove unused pixmaps
- 2016-01-09 19:44 partmedia
- [r20215] Add newline at end of file
- 2016-01-02 22:33 partmedia
- [r20212] Rewrite README using reStructuredText
- 2015-12-24 05:05 partmedia
- [r20198] Send keep-alive in all input modes
- 2015-12-24 05:05 partmedia
- [r20197] Remove empty signal handler
- 2015-12-22 00:08 partmedia
- [r20193] Clean up network event loop
- 2015-12-22 00:08 partmedia
- [r20192] Remove command-line server selection option
- 2015-12-22 00:08 partmedia
- [r20191] Remove unused functions
- 2015-12-20 21:52 partmedia
- [r20188] Remove unused CMake configuration checks
- 2015-11-24 08:49 partmedia
- [r20104] Fix small memory leak
- 2015-11-13 20:29 partmedia
- [r20044] Clean up redundant metaserver signal handlers
- 2015-11-13 20:29 partmedia
- [r20043] Remove 'Last Update' column from server list
- 2015-11-13 20:28 partmedia
- [r20042] Improve login dialogs
- 2015-11-13 20:28 partmedia
- [r20041] Overhaul configuration dialog
Removing deprecated APIs exposed issues with how the client processed
input from different input widgets. While here, remove some redundant
configuration options (e.g. map size, which is set automatically) and
redesign the layout of the configuration dialog.
- 2015-11-13 20:28 partmedia
- [r20040] Replace deprecated GDK and GTK APIs
- 2015-11-03 23:41 silvernexus
- [r20036] Adjusted msgtypes.pl to use strict perl syntax.
- 2015-11-03 05:12 silvernexus
- [r20035] Fixed a reference to meta_update.php for the US metaserver on client metaserver poll.
- 2015-11-03 05:06 silvernexus
- [r20034] Fix Linux build if autotools-generated common/config.h file is removed. CMake needed to define _BSD_SOURCE in Linux for gio to include properly.
- 2015-11-03 03:10 silvernexus
- [r20033] Improve the mdk.pl script to use strict compilation rules.
- 2015-11-02 17:15 silvernexus
- [r20032] Alter the preprocessor directive for alphasort() and scandir() to fix failed build on Linux.
- 2015-10-31 19:18 partmedia
- [r20031] Compact client help message
- 2015-10-31 19:18 partmedia
- [r20030] Fix invalid type comparisons
- 2015-10-31 19:18 partmedia
- [r20029] Remove common stub commands
- 2015-10-31 19:18 partmedia
- [r20028] Reformat client commands array
- 2015-10-31 19:18 partmedia
- [r20027] Remove common toolkit-specific command handler
- 2015-10-31 19:18 partmedia
- [r20026] Omit unused function definition parameters
- 2015-10-31 19:18 partmedia
- [r20025] Clean up formatting and remove unused functions
- 2015-10-31 19:18 partmedia
- [r20024] Add server debugging command
- 2015-10-31 19:18 partmedia
- [r20023] Remove autotools build system
- 2015-04-05 17:33 partmedia
- [r19900] Clean up empty comments
- 2015-04-05 17:33 partmedia
- [r19899] Avoid manually wrapping help text
- 2015-04-05 17:33 partmedia
- [r19898] Clean up unused ifdefs
- 2015-04-05 17:33 partmedia
- [r19897] Remove redundant help commands
- 2015-03-25 04:39 rjtanner
- [r19879] Added additional US based metaserver for the client to query.
- 2015-03-22 18:49 partmedia
- [r19876] Check for <gio/gnetworking.h> before using it
- 2015-03-22 18:49 partmedia
- [r19875] Combine compiler include directories
- 2015-03-22 16:54 partmedia
- [r19874] Clean up main event loop and exit conditions
- 2015-03-22 16:54 partmedia
- [r19873] Clean up redundant disconnect handling
- 2015-03-22 16:54 partmedia
- [r19872] Rename client functions for consistency
- 2015-03-22 16:53 partmedia
- [r19871] Use GOutputStream to write to socket
- 2015-03-22 16:53 partmedia
- [r19870] Simplify hostname and port number parsing
GSocketClient parses the port number automatically.
- 2015-03-22 16:53 partmedia
- [r19869] Use GSocketClient to connect and disconnect socket
- 2015-03-21 20:07 partmedia
- [r19864] Redraw map from main loop only when idle
Instead of redrawing whenever the client receives a tick, redraw from
the event loop when there are no events pending. This improves the
responsiveness of the client on slow machines.
- 2015-03-21 20:06 partmedia
- [r19863] Clean up error dialog function
- 2015-03-21 20:06 partmedia
- [r19862] Improve error handling in layout loading
- 2015-03-21 20:06 partmedia
- [r19861] Replace unsafe sprintf() with snprintf()
- 2015-03-20 18:57 partmedia
- [r19860] Switch to ZIP for package creation
- 2015-03-20 18:57 partmedia
- [r19859] Clean up some global symbols
- 2015-03-19 18:34 partmedia
- [r19858] Avoid setting fixed default map size
- 2015-03-19 18:34 partmedia
- [r19857] Avoid sending data to suspicious file descriptors
This is a workaround for when the client sends data before connecting to
a server. This prevents some unexpected hangs due to a blocking socket
operation that cannot return.
- 2015-03-19 16:56 partmedia
- [r19856] Update desktop icon
- 2015-03-17 21:53 partmedia
- [r19851] Improve multi-tile rendering in pixmap mode
- 2015-03-17 19:32 partmedia
- [r19850] Combine pixmap layer rendering in a single pass
The pixmap renderer now draws each layer in a single pass without going
back to check big faces. It now only uses head data and avoids redundant
calculations or map data accesses.
- 2015-03-17 19:31 partmedia
- [r19849] Remove mapdata functions from 'proto.h'
- 2015-03-17 19:31 partmedia
- [r19848] Fix CMake build and clean up angled brackets
- 2015-03-08 16:20 partmedia
- [r19845] Update comments and convert to switch statement
- 2015-03-08 16:20 partmedia
- [r19844] Merge 'client-types.h' with 'client.h'
- 2015-03-08 16:20 partmedia
- [r19843] Clean up header file hierarchy
- 2015-03-01 18:13 partmedia
- [r19828] Remove unnecessary map draw in do_network()
This effectively halves the number of map redraw calls without
sacrificing anything visually.
- 2015-03-01 18:13 partmedia
- [r19827] Rename 'time-redraw' command-line option
- 2015-03-01 18:13 partmedia
- [r19826] Move redraw timing to draw_map()
- 2015-03-01 00:49 partmedia
- [r19816] Fix blocking map redraws in pixmap mode
- 2015-03-01 00:49 partmedia
- [r19815] Fix automatic map size adjustment
The map size is now set automatically when the client starts and
subsequently when the map window size is changed.
- 2015-02-17 20:23 partmedia
- [r19772] Update ChangeLog
- 2014-12-31 18:45 partmedia
- [r19746] Display core player stats on progress bars
Numeric stats for hp, mana, grace, food, and experience were displayed
on labels next to the progress bar. Instead, draw the information
directly on the progress bar widget.
This commit includes layout updates to GTKv1 and GTKv2. The rest of the
layouts should still work, but will eventually need updating.
- 2014-12-19 20:54 partmedia
- [r19737] Remove unnecessary array allocation
- 2014-12-05 02:16 silvernexus
- [r19733] Reordered some includes to silence preprocessor warnings about including winsock2.h after windows.h.
- 2014-12-01 21:11 ryo_saeba
- [r19732] Fix types.
- 2014-12-01 21:02 ryo_saeba
- [r19731] Remove file deleted in r19726.
- 2014-11-24 23:10 partmedia
- [r19726] Clean up about dialog and menu bar handling
There is no longer enough logic in the about dialog handling that
justifies storing it in a separate source file. While here, declare
local functions static.
- 2014-11-24 23:10 partmedia
- [r19725] Redesign about dialog using built-in about widget
- 2014-11-24 23:09 partmedia
- [r19724] Dialog XML cleanup
- 2014-11-23 21:10 partmedia
- [r19723] Avoid doing pixel conversions on-the-fly
Instead of storing a Pixbuf and rendering it every time it goes on the
screen, convert it to a suitable on-screen format beforehand.
- 2014-11-23 21:10 partmedia
- [r19722] Clean up rgba_to_gdkpixbuf()
- 2014-11-23 21:10 partmedia
- [r19721] Access map cells through a new mapdata API
- 2014-11-16 21:14 partmedia
- [r19719] Update Doxyfile
- 2014-11-16 20:55 partmedia
- [r19718] Reimplement default renderer using Cario
- Clean up non-Cairo (deprecated) graphics code
- Rewrite fog of war and darkness
- Use cleaner method to draw multi-tile graphics
- Use double buffering while rendering map
This commit breaks smoothing for the Pixmap render mode. Smoothing still
works as usual with the SDL and OpenGL renderers.
- 2014-11-15 02:44 partmedia
- [r19717] Reduce default logging verbosity
Many messages are routine, non-harmful bits of information that should
not demand the user's attention. In any case, the noise these generate
mask more important errors when they occur.
- 2014-11-09 15:46 partmedia
- [r19716] Hide duplicate server entries
- 2014-11-09 15:46 partmedia
- [r19715] Move metaserver list to top of file
- 2014-11-09 15:46 partmedia
- [r19714] Simplify metaserver logic
Replace global variables and mutexes with a callback system. Remove
server caching and support fetching from multiple servers.
- 2014-11-09 15:46 partmedia
- [r19713] Add additional metaserver
- 2014-11-09 05:35 partmedia
- [r19712] Improve user-visible column titles
- 2014-10-19 20:36 partmedia
- [r19707] Document and replace assertions
- 2014-10-15 01:28 partmedia
- [r19701] Send beats only when client is in playing state
- 2014-10-04 00:12 partmedia
- [r19673] Avoid setting CMAKE_C_FLAGS
- 2014-10-03 22:17 partmedia
- [r19672] Re-order inclusions to fix Windows build
- 2014-10-02 01:32 silvernexus
- [r19671] Added a couple log messages for connection timeout and closing of server connection to help with diagnosing issues.
- 2014-09-28 01:44 partmedia
- [r19669] Minor menu and about window change
Rename the "Client" menu to "Edit", rename "Quit Character" to "Delete"
with a tooltip under the "Player" menu, remove trailing period.
- 2014-09-22 01:05 partmedia
- [r19668] Avoid calling srandom(3) since we use GLib
- 2014-09-22 01:05 partmedia
- [r19667] Remove extraneous pthread header file
- 2014-09-21 22:19 partmedia
- [r19666] Replace pthreads with GLib threads
- 2014-09-21 16:04 partmedia
- [r19665] Declare functions static whenever possible
- 2014-09-21 16:04 partmedia
- [r19664] Name and document inventory-related enums
- 2014-09-21 16:03 partmedia
- [r19663] Indicate which items are applied in icon view
- 2014-09-21 16:03 partmedia
- [r19662] Shorten and standardize inventory tooltips
- 2014-09-21 16:03 partmedia
- [r19661] Mostly cosmetic whitespace and formatting changes
- 2014-09-20 21:04 partmedia
- [r19655] Clean up initial processing of script commands
- 2014-09-14 17:25 partmedia
- [r19648] Fix server cache saving
- 2014-09-14 17:25 partmedia
- [r19647] Fix sign conversion warnings
- 2014-09-13 03:44 partmedia
- [r19644] Fix server cache display
- 2014-09-13 03:44 partmedia
- [r19643] Clean up fallout from metaserver1 removal
- 2014-09-13 03:44 partmedia
- [r19642] Cosmetic whitespace reformat
- 2014-09-13 03:43 partmedia
- [r19641] Remove metaserver1 support
- 2014-09-07 18:47 partmedia
- [r19639] Clean up startup code and main loop
Several initialization functions were redundant and poorly organized.
Clean up some of the bit rot and improve readability.
- 2014-08-11 14:22 partmedia
- [r19602] Add missing linker flags to Autotools client build
While here, update ChangeLog and re-wrap a few old entries
Submitted by: Tolga Dalman
- 2014-08-03 14:37 partmedia
- [r19597] Remove splash image drawn on empty map
- 2014-07-23 13:56 partmedia
- [r19593] Clean up basic mouse character control
Allow the player to run by clicking and holding the right mouse button.
- 2014-07-22 16:10 partmedia
- [r19592] Header cleanup and cosmetic changes
- 2014-07-22 16:02 partmedia
- [r19591] Remove unused variable
- 2014-07-22 16:01 partmedia
- [r19590] Remove struct declarations from typedefs
- 2014-07-22 15:46 partmedia
- [r19589] Avoid setting window position on startup
Trust the window manager to set window positions correctly. On
multi-screen displays, this is the only correct way to do it. Keep
saving the window position in the original format, though.
- 2014-06-13 19:00 silvernexus
- [r19557] Remove g_strdup from proto.h. It isn't defined in misc.c (where its location in the file should indicate) and should be defined in GLib.
- 2014-06-13 03:02 silvernexus
- [r19556] Fix potential for socket buffer overflows in non-string inputs.
- 2014-06-12 00:44 silvernexus
- [r19545] Fix undefined reference to script_killall in Windows builds.
- 2014-06-11 16:46 silvernexus
- [r19544] Fix CMake's use of mdk.pl. r19543 overlooked CMake as a configuration generator.
- 2014-06-11 03:38 silvernexus
- [r19543] Converted mdk.sh to perl script for better portability.
- 2014-06-11 01:59 silvernexus
- [r19542] Fully fix client hang issue in bug #782. r19541 only fixed it on initial loading.
- 2014-06-11 01:43 silvernexus
- [r19541] Prevent client hang resulting from invalid attempt to delete a nonexistent character.
- 2014-06-09 22:56 partmedia
- [r19539] Use GLib to set config and cache directories
This also means that we can remove filespec conversion macros. Users who
wish to keep their configuration files MUST manually move them to the
new location.
- 2014-06-08 14:31 partmedia
- [r19537] Avoid calling timeout functions when not connected
- 2014-06-08 14:31 partmedia
- [r19536] Add extra platform definitions and linking flags
- 2014-06-08 14:30 partmedia
- [r19535] Use GLib memory allocation functions
These functions terminate the program if there are memory allocation
errors, instead of returning a null pointer.
- 2014-06-08 14:30 partmedia
- [r19534] Replace non-standard string functions with GLib
- 2014-06-06 01:41 partmedia
- [r19523] Enable smoothing by default.
- 2014-06-01 21:26 partmedia
- [r19508] Implement client-side 'heartbeat' support.
- 2014-06-01 21:26 partmedia
- [r19507] Clean up old macros.
- 2014-05-22 00:15 partmedia
- [r19480] Exit after disconnect if metaserver is not used.
Reported by: Andreas Kirschbaum
PR: bugs/227
- 2014-05-19 04:41 silvernexus
- [r19457] Remove check for svnversion, as it was removed in partmedia's commit r19423.
- 2014-05-19 04:04 silvernexus
- [r19455] Maintain message options in commented out message section (mapredraw is obsolete).
- 2014-05-18 04:39 silvernexus
- [r19442] Remove redundant include of SDL.h and SDL_image.h
- 2014-05-18 03:47 partmedia
- [r19438] Fix CMake sound server build.
- 2014-05-17 19:25 partmedia
- [r19433] Use GLib functions where portability is an issue.
- 2014-05-17 19:25 partmedia
- [r19432] Add missing CMake conditional statements.
- 2014-05-17 02:30 silvernexus
- [r19430] Fixed unchangeable sound path issue noted in configure.ac.
- 2014-05-16 21:27 silvernexus
- [r19426] Found some version references to 1.70.0. Updated to 1.71.0.
- 2014-05-16 00:46 partmedia
- [r19424] Add CMake support.
- 2014-05-16 00:38 partmedia
- [r19423] Fix output directory of generated headers.
This fixes out-of-tree builds, and removes a few generated headers.
Finally, retire 'svnversion' since it creates more problems for
dependency tracking than it is worth.
- 2014-05-16 00:37 partmedia
- [r19422] Safely assume that "string.h" is available.
- 2014-05-10 19:26 partmedia
- [r19409] Regenerate autotools when important files change.
- 2014-05-10 19:26 partmedia
- [r19408] Refactor primitives using GLib data types.
- 2014-05-10 19:26 partmedia
- [r19407] Add dependency on GLib.
- Clean up unnecessary and redundant substitutions.
- Trim copyright header from Makefiles.
- 2014-05-10 02:25 partmedia
- [r19406] Split header with defaults into other headers.
- 2014-05-10 02:23 partmedia
- [r19405] Run timed events less frequently.
- 2014-05-10 02:23 partmedia
- [r19404] Clean up globals and reduce variable scopes.
- 2014-05-09 01:07 partmedia
- [r19403] Split up metaserver initialization.
- 2014-05-09 01:07 partmedia
- [r19402] Consistently use want_config and use_config.
Program defaults are now initially stored to use_config, which is coped
to want_config before loading settings and parsing arguments. Replace
the redundant option checking with a single function call.
- 2014-05-06 00:56 partmedia
- [r19398] Clean up command-line arguments.
- 2014-05-06 00:55 partmedia
- [r19397] Fix null argument warning.
- 2014-05-05 20:52 partmedia
- [r19396] Remove empty Lua header file.
- 2014-05-04 20:51 partmedia
- [r19393] Revert change that broke window position saving.
- 2014-05-04 00:28 partmedia
- [r19391] Use more reasonable defaults.
- 2014-05-04 00:28 partmedia
- [r19390] Save window positions in new settings file.
- 2014-05-04 00:28 partmedia
- [r19389] Clean up window layout loading.
- 2014-05-03 21:02 partmedia
- [r19388] Store client settings using a key-value file.
- 2014-05-03 21:02 partmedia
- [r19387] Change not-reached exit to a GTK assertion.
- 2014-05-03 21:02 partmedia
- [r19386] Convert drawing from forgotten expose event.
- 2014-05-03 04:41 partmedia
- [r19385] Convert inventory table drawing to Cairo.
Drawing pixmaps using GDK has been deprecated for a long time. This also
conveniently fixes the icon view crash on Windows.
- 2014-05-03 03:17 partmedia
- [r19384] Clean up layout loading logic.
- 2014-05-02 23:00 partmedia
- [r19383] Clean up 'configure' script.
- Remove autoconf checks that are not referenced by any source file.
- Remove unnecessary program checks (most automatically called).
- Build with silent make rules.
- 2014-05-02 22:27 partmedia
- [r19382] Change default layout to 'gtk-v2'.
- 2014-05-02 04:01 partmedia
- [r19381] Replace strsep(3) with more portable strtok(3).
- 2014-05-02 04:01 partmedia
- [r19380] Remove outdated client scripting guide.
- 2014-04-05 21:44 partmedia
- [r19307] Update AUTHORS and README.
- 2014-04-05 18:39 partmedia
- [r19305] Update ChangeLog.
- 2014-04-05 17:42 partmedia
- [r19303] Bump version information for upcoming release.
- 2014-03-19 19:11 partmedia
- [r19285] Clean up and fix build with Lua.
- 2014-03-19 19:11 partmedia
- [r19284] Remove options that set CFLAGS.
Correct behavior is to honor CFLAGS set by the user or use the defaults
supplied with autoconf. Also replace dmalloc logic with existing macros.
- 2014-03-17 17:38 partmedia
- [r19280] Improve core stats display.
Line up attributes using a table. While here, remove the useless
placeholders added by Glade.
- 2014-03-10 02:35 partmedia
- [r19264] Improve message filter labels.
- 2014-03-07 02:57 kstenger
- [r19262] Set minimum window size at startup.
These lines where removed by revision 19186, but this caused weird effects.
- 2014-02-17 16:53 partmedia
- [r19236] Clean up mostly empty help/ directory.
Move 'chelp.h' into common/ and delete 'shelp.h' which isn't being used
at all. Make the necessary changes to autoconf.
- 2014-02-17 16:52 partmedia
- [r19235] Remove header file generated by `autoheader`.
Also remove an unused endianness check in configure script.
- 2014-01-26 18:42 partmedia
- [r19232] Remove unused autoconf macros.
- 2014-01-26 18:41 partmedia
- [r19231] Add `configure` flag to disable OpenGL.
- 2014-01-26 18:41 partmedia
- [r19230] Use pkgconf to find SDL_mixer and OpenGL.
- 2014-01-26 18:36 partmedia
- [r19229] Rename non-functional enable_menu_items().
This function was supposed to enable/disable menu items, but the actual
implementation only enabled them. Rename this function to prevent future
confusion and pave the way for a correct implementation.
- 2014-01-03 17:09 partmedia
- [r19224] Remove variable assignments that are never read.
- 2014-01-02 17:47 partmedia
- [r19219] Fix various keybinding issues.
Because new_player() is always called, remove most calls to initialize
keybindings from other functions. Also avoid calling it if the player
name sent is empty. Correctly read the per-character bindings file.
- 2014-01-01 16:10 partmedia
- [r19212] Do not store last server in gdefaults2.
- 2014-01-01 15:49 partmedia
- [r19211] Fix several memory leaks.
- 2014-01-01 15:49 partmedia
- [r19210] Fix several unsafe uses of strncpy(3).
- 2014-01-01 15:48 partmedia
- [r19209] Exit after experiencing a failure with realloc(3).
- 2014-01-01 04:37 partmedia
- [r19206] Fix compiler warning by removing unused argument.
- 2013-12-31 22:57 buzzsawddog
- [r19205] changed wording to make it seem less programmerish
- 2013-12-31 22:24 partmedia
- [r19204] Fix unnecessary use of character buffers.
Only string literals are selected, so no buffers are needed. Replace
buffers with character pointers and assign literals to them.
Pointy hat to: Karla Stenger (kstenger), Kevin Zheng (partmedia)
- 2013-12-31 21:59 partmedia
- [r19203] Fix incorrect use of strcat(3).
7 characters (including a newline) were copied from a string literal to
a fixed 6-character wide buffer, causing a buffer overflow.
Pointy hat to: Karla Stenger (kstenger)
Reported by: Anthony Wyatt (buzzsaw)
- 2013-12-31 01:54 kstenger
- [r19202] Undo the changes made in revision 19200. Found a better place/way to do it.
When the player is initialized in new_player() initialize the bindings too.
Added keybindings_init to common/external.h to be able to do it.
- 2013-12-31 01:49 kstenger
- [r19201] Forgot to use the servername when saving the char bindings file too.
- 2013-12-30 22:05 kstenger
- [r19200] Add some compatibility for older servers to use char-specific bindings.
It's probably not the best solution: update bindings when redrawing stats.
When the playername label has to be updated it's a good sign that the bindings
also should, and it's the right moment to get the character's name
if the server doesn't support accounts.
- 2013-12-30 21:27 kstenger
- [r19199] Add the servername as a part of the char specific keys filename allowing
to have characters with the same name have different bindings for each
server they belong.
- 2013-12-30 17:59 partmedia
- [r19198] Respect XDG base directories for image/server cache.
- 2013-12-30 16:50 kstenger
- [r19197] Added the chance to bind a global key with the 'bind' command.
- 2013-12-30 16:39 kstenger
- [r19196] Changed the 'user' scope name to 'global' as suggested by Partmedia.
Corrected a couple of details in some comments while at it.
And removed a couple of spaces by the end of the lines (which my editor
insists in erasing).
No functional changes.
- 2013-12-30 16:34 partmedia
- [r19195] Fix compiler warning from last commit.
Pointy hat to: Kevin Zheng (partmedia)
- 2013-12-30 15:26 partmedia
- [r19194] Fix metaserver connection window behavior.
Correctly update "connecting" status and return after timing out.
- 2013-12-30 14:33 kstenger
- [r19193] Added support for scoped keybindings.
When bindings are loaded let them know where they come from by adding a flag indicating if it comes from the character's keys file or from the user's keys file.
I found it easier to put default keybindings into the user's scope too, it won't hurt.
Load them separatedly to ease their maintenance.
Adapt the keybindings management window to let the user see and switch scopes.
TODO: add support for the 'bind' command to save user scoped new bindings (by defauld it saves them into the character's scope).
- 2013-12-27 19:49 partmedia
- [r19192] Load the default if selected layout doesn't work.
- 2013-12-26 22:44 partmedia
- [r19191] Remove check for libglade and bump GTK version.
- 2013-12-26 22:25 partmedia
- [r19190] Update GTKv2 client documentation.
Take this opportunity to sneak myself into the developers list.
- 2013-12-26 22:25 partmedia
- [r19189] Reimplement save_winpos() for GtkBuilder.
- 2013-12-26 22:25 partmedia
- [r19188] Convert widgets to use GtkBuilder.
- 2013-12-26 22:25 partmedia
- [r19187] Convert Glade window layouts to GtkBuilder.
- 2013-12-21 04:34 partmedia
- [r19186] Substantial cleanups to startup code.
- 2013-12-20 22:59 partmedia
- [r19185] Fix configuration dialog combo boxes.
This has the unfortunate consequence of bumping up the minimum GTK
version requirement to 2.24.
- 2013-12-17 04:01 partmedia
- [r19183] Clean up sound logging and improve readability.
- 2013-12-16 19:47 kstenger
- [r19182] Change the order in which keybinding's files are loaded.
Now defaults go first, then user global bindings, then character specific bindings.
So also changed what we do when a binding is inserted, if it already exists do not return error and leave but overwrite it instead.
EKEYBIND_TAKEN was so useless and got removed.
Use keybind_find() instead of keybind_insert() at several places to check for previous existance when we don't want to overwrite the previous binding.
- 2013-12-16 16:26 kstenger
- [r19181] Remove never used if statement.
- 2013-12-16 16:20 kstenger
- [r19180] Add deprecation warning for bindings 'S' flag.
- 2013-12-16 16:15 kstenger
- [r19179] Turn uppercase bindings to lowercase with the shift flag on.
Fixes bug #766.
- 2013-12-15 17:30 partmedia
- [r19176] Clean up logging and remove in-memory log.
- 2013-12-14 01:59 rjtanner
- [r19175] Punctuation correction (missing a period) in the summary for Strength. No functional changes.
- 2013-12-13 18:46 partmedia
- [r19170] Fix dialog conversions to GtkBuilder.
Remove an unused variable in 'info.c' and convert the widgets that were
forgotten in 'spells.c'.
- 2013-12-13 00:28 partmedia
- [r19169] Update and improve 'About' dialog.
Replace the 'hbox' hack with correct usage of GtkImage.
Merge the contents of 'about.h' into the UI dialog to improve future
accessibility and make translations possible. Also take this opportunity
to make the dialog look a bit nicer.
- 2013-12-13 00:28 partmedia
- [r19168] Fix several GTK assertion failures.
- 2013-12-08 23:51 partmedia
- [r19167] Move 'mdk.sh' script to 'common/' directory.
- 2013-12-08 23:10 partmedia
- [r19166] Migrate 'dialogs.glade' and widgets to GtkBuilder.
- 2013-12-08 23:10 partmedia
- [r19165] Switch to a library-independent naming scheme.
- 2013-12-08 23:09 partmedia
- [r19164] Update README and convert to AsciiDoc format.
- 2013-11-16 21:16 partmedia
- [r19124] Prevent a segmentation fault by checking for NULL animations.
Submitted by: H. S. Teoh
Tracker: bugs/765
- 2013-11-15 01:16 partmedia
- [r19119] Fix client item name buffer overflow.
set_item_values concatenates a number string with the item name, but
doesn't check for buffer overflow. [1]
Take this opportunity to back out my previous hackish commit by
restoring item name buffer length to 128 characters. [2]
Submitted by: H. S. Teoh [1]
Pointyhat to: Kevin Zheng [2]
- 2013-11-13 04:31 partmedia
- [r19118] Increase item name buffer size to 150 characters.
The server limits the length of the name that is sent, but the client
may append flags (e.g. worn, locked) that cause it to 'overflow'.
Resolve this issue by increasing buffer from 128 char to 150 char.
- 2013-11-13 04:31 partmedia
- [r19117] Use Xorg-style log level indicators and tweak colors.
- 2013-11-11 01:06 partmedia
- [r19116] Fix SHIFT modifier with NetHack-style keys.
- 2013-11-10 19:08 partmedia
- [r19115] Replace common menu items with stock items.
- 2013-11-10 19:04 partmedia
- [r19114] Sync shared headers from server.
- 2013-11-10 18:11 partmedia
- [r19112] Remove svn:externals for trunk branch.
- 2013-11-10 17:27 partmedia
- [r19109] Put less information in the message window on client startup.
- 2013-11-10 17:03 partmedia
- [r19108] Clean up client logger and give it color output.
- 2013-11-10 16:00 partmedia
- [r19107] Fix NetHack-style keys and remove duplicates in default keybinding.
- 2013-11-10 15:58 partmedia
- [r19106] Be more descriptive about duplicate bindings.
- 2013-11-05 01:05 partmedia
- [r19095] Sort default keybindings and remove old FXX keys.
- 2013-11-05 00:23 partmedia
- [r19094] Fix keybindings when connecting to a pre-login server.
Submitted by: Arvid Brodin <arvidb@kth.se>
- 2013-11-04 00:59 silvernexus
- [r19093] Adjusted message for invalid stats to correspond with change in r19092.
- 2013-11-03 23:09 silvernexus
- [r19092] Adjusted the boundaries for the invalid stat message for character creation to include zero.
- 2013-11-03 15:35 partmedia
- [r19091] Implement per-character key bindings [1].
Submitted by: Arvid Brodin <arvidb@kth.se> [1]
- 2013-11-03 03:34 partmedia
- [r19090] Implement multiple changes to how keybindings are handled. [1]
- Show all keybindings (including defaults)
- Add "Any" key modifier type
- Consistently use hash helper functions to clean up code
- Fix usage texts
- Only bind lowercase keys
- Rehash keybind entry on key dialog update
- Remove -afmnr flags from 'bind' command
Submitted by: Arvid Brodin <arvidb@kth.se> [1]
- 2013-10-30 23:03 partmedia
- [r19089] Whitespace and style improvements to gtk-v2/src/keys.c.
Submitted by: Arvid Brodin <arvidb@kth.se>
- 2013-10-12 22:16 kstenger
- [r19081] Tweak to get the colored stat bars to work.
This worked after a lot of trial and error and disabling my theme's pixmaps.
Hopefully won't break anything on other systems.
- 2013-10-09 19:27 kstenger
- [r19080] Add an "unidentified" flag when sending information about an item to a script.
- 2013-09-29 14:57 partmedia
- [r19068] Ignore tags file in source directories.
- 2013-09-29 14:50 partmedia
- [r19067] Use correct datatype in format_si_number to prevent int overflow.
- 2013-09-20 15:07 partmedia
- [r19056] Whitespace formatting and source header update.
- 2013-09-14 22:36 partmedia
- [r19052] Fix sound results display.
- 2013-09-14 21:41 partmedia
- [r19051] Fix allocator sizeof operand mismatch.
- 2013-09-10 00:37 partmedia
- [r19023] Do not play sound if no matching sound was found.
- 2013-09-09 00:19 partmedia
- [r19010] Correctly add SDL LIBS to sound-src build.
- 2013-09-08 23:54 partmedia
- [r19009] Adapt to new sound def format.
- 2013-09-08 20:57 partmedia
- [r19007] Sound definitions belong in the sound folder, not the client sources.
- 2013-09-08 17:49 partmedia
- [r19002] Reduce buffer size, improve error message, and use WAV instead of OGG.
- 2013-09-08 16:59 partmedia
- [r19001] Fix sound effects. Remove type conversion hack and take out select() calls.
- 2013-09-08 15:43 partmedia
- [r19000] Clean up old code and global variables.
- 2013-09-07 23:54 partmedia
- [r18999] Reorganize code into logical sections.
- 2013-09-07 23:11 partmedia
- [r18998] Clean up useless variables, move stuff into separate functions.
- 2013-09-07 04:03 partmedia
- [r18995] Fix options disabled by default.
- 2013-09-07 04:02 partmedia
- [r18994] Remove obsolete/redundant code, being accepting (some) arguments.
- 2013-09-06 21:03 partmedia
- [r18993] Remove redundant configure options.
- 2013-09-05 03:40 partmedia
- [r18986] Fix broken CFLAGS for SDL_mixer.
- 2013-09-05 01:45 partmedia
- [r18985] Drop support for legacy sound systems. SDL_mixer can use either OSS or ALSA (and perhaps more) as a backend, anyways.
- 2013-09-04 22:55 partmedia
- [r18984] Remove depricated "swapped" attribute introduced by broken Glade editor.
- 2013-09-04 22:30 partmedia
- [r18983] GTK2 interface requires 2.16 only features; this was not correctly set in the glade file.
- 2013-09-04 22:23 partmedia
- [r18982] Fix debug flag and add FIXME for configuration option.
- 2013-09-04 17:18 kstenger
- [r18980] Update status of the key modifiers to 0 when the main window looses focus.
- 2013-09-04 04:09 partmedia
- [r18979] Fix cut off menu bar by removing unused labels. Somehow Glade insists on shuffling the format of the entire file, which will confuse diff.
- 2013-09-04 03:48 partmedia
- [r18978] Remove unused dialog window.
- 2013-09-04 03:14 partmedia
- [r18977] Use stock buttons whenever possible.
- 2013-09-04 02:12 partmedia
- [r18976] Rename "Metaserver Selection" to "Server Selection" and switch to a few stock buttons.
- 2013-09-04 01:07 partmedia
- [r18975] Clean up client configure script options.
- 2013-09-04 00:42 partmedia
- [r18974] Improve post-configure status message.
- 2013-09-04 00:18 partmedia
- [r18973] Require an explicit command-line argument to 'configure' script to enable Lua.
- 2013-09-03 18:32 kstenger
- [r18972] Function script_tell() modifies the command it receives.
Since the parameter is a pointer to the command, it was actually modifying the binding command itself when you used a binding.
Now it will only modify a local copy of the command making it posible to actually bind things to tell to your scripts.
- 2013-09-02 23:36 partmedia
- [r18971] Replace buggy strncpy/strncat calls with safer snprintf.
- 2013-09-02 19:03 partmedia
- [r18970] Remove unused variables.
- 2013-09-02 19:01 partmedia
- [r18969] Remove unnecessary sign check on an unsigned variable.
- 2013-09-02 18:27 partmedia
- [r18968] Remove and ignore automatically generated files.
- 2013-09-02 18:03 partmedia
- [r18967] Temporarily fix sound with SDL_mixer. Sound files must be converted to OGG to use this, though.
- 2013-09-02 15:51 partmedia
- [r18966] Remove USE_PIPE conditional compilation; always use pipes. This also fixes scripting on FreeBSD.
- 2013-09-02 15:30 partmedia
- [r18965] Ignore tags file in sound sources.
- 2013-09-02 03:26 partmedia
- [r18964] Automatic whitespace formatting and source header change.
- 2013-09-01 01:37 partmedia
- [r18963] Clean up and improve mdk script.
- 2013-09-01 01:35 partmedia
- [r18962] Improve help for 'script' command.
- 2013-08-31 15:12 partmedia
- [r18961] Format common client sources as per DevGuide. Also update to new copyright banner as per mailing list discussion.
- 2013-08-30 03:01 partmedia
- [r18960] Make it clear that the stat bar color option only works when using a few specific GTK themes. Somehow Glade insists on reordering every line in the dialog file which makes `svn diff` output look ugly.
Submitted by: Pascal Zotto
PR: bugs/685
- 2013-08-28 23:15 partmedia
- [r18959] Various manual formatting (whitespace/comment) changes.
- 2013-08-28 21:31 partmedia
- [r18957] Cosmetic cleanup to (sub)makefile.
- 2013-08-25 14:41 partmedia
- [r18956] Remote automatically generated file.
- 2013-08-25 04:22 partmedia
- [r18955] Reorganize configure.ac (whitespace/comment changes, re-sorting).
- 2013-08-25 04:00 partmedia
- [r18954] Update automatically-generated aclocal file.
- 2013-08-24 13:31 ryo_saeba
- [r18953] Fix variable conflicting with a #define.
- 2013-08-24 00:50 partmedia
- [r18952] Update TODO and tweak NEWS.
- 2013-08-24 00:36 partmedia
- [r18951] Add transparency to a few images/pixmaps.
- 2013-08-24 00:06 partmedia
- [r18950] Shorten exp bar display using SI prefixes (as suffixes).
- 2013-08-11 21:14 partmedia
- [r18925] Replace C99-style comments.
- 2013-08-10 20:38 partmedia
- [r18919] Improve keybinding-loading debug messages.
- 2013-08-10 20:25 partmedia
- [r18918] Update keybindings and remove generated file from version control.
- 2013-07-30 10:28 partmedia
- [r18850] Fix capitalization.
- 2013-07-15 05:00 partmedia
- [r18783] Remove 'License', which is identical to 'COPYING'.
- 2013-07-15 04:58 partmedia
- [r18782] Delete empty, not-required-by-automake file.
- 2013-07-15 04:54 partmedia
- [r18781] Replace badly outdated INSTALL with generic instructions.
- 2013-07-15 04:47 partmedia
- [r18780] Remove legacy README about gtk-v2 client.
- 2013-07-15 04:26 partmedia
- [r18779] Replace INCLUDES with AM_CPPFLAGS to quiet autoreconf warning.
- 2013-07-15 04:25 partmedia
- [r18778] Remove empty files.
- 2013-07-15 04:04 partmedia
- [r18777] Use the STAT_BAR defines instead of hard-coded numerals.
- 2013-07-14 23:41 partmedia
- [r18770] Implement stopgap measure to fix segfault on startup with no environmental variables set.
- 2013-07-14 05:23 partmedia
- [r18764] Automatically regenerate with 'autoreconf'; adds a few #defines for other header files that may be useful.
- 2013-07-14 05:17 partmedia
- [r18763] Update client macros to the latest version produced by 'autoreconf'. No manual changes were mode; hopefully nothing bad will happen.
- 2013-04-06 11:02 ryo_saeba
- [r18666] Remove obsolet file.
- 2013-04-06 11:02 ryo_saeba
- [r18665] Apply part of patch #328 Documentation changes to client, Kevin Zheng. Remove unused files.
- 2013-04-06 11:01 ryo_saeba
- [r18664] Apply part of patch #328: Documentation changes to client, by Kevin Zheng. Move "Documentation" to "doc".
- 2013-04-05 13:46 kfitzner
- [r18657] Remove dependency on X for OpenGL - there is generally not X in Win32, and if a Linux/Unix system is trying to configure and it doesn't have X then there are bigger problems with that build than whether or not OpenGL is enabled.
Also put the addition of X libs behind a test for have_x. Automatically adding X libs breaks MinGW builds.
- 2013-04-04 14:27 kfitzner
- [r18656] Updated for current (1.70 + Trunk) clients and most recent versions of GTK+. Mentions all-in-one dependencies that have been prepared and are available for download at:
http://icculus.org/~kfitzner/misc/MinGWCrossfireDependenciesV1.70.1.zip
- 2013-04-04 01:19 kfitzner
- [r18655] Add @GTK_CFLAGS@ to AM_CFLAGS. Should have little effect in Linux/Unix where GTK include files will be in standard places anyway. In Windows under MinGW (and any other system where the include files are in a non-standard location) it will be required.
- 2013-04-03 17:11 kfitzner
- [r18654] Update deprecated MINGW macro to __MINGW32__
- 2012-12-01 10:07 ryo_saeba
- [r18546] Apply patch/bug #3591423: GTK2 client -fix for the jumpy look view, by Katia Stenger.
- 2012-09-28 07:10 kbulgrien
- [r18461] - Character creation windows aesthetics dramatically improved. A window title
was added. Character name alignment is more consistent with the rest of the
window layout. Frames were added around information blocks. Wasted space
is used by pulling the race/class descriptions out of the stat table. Unused
points are now in the Total column and closer to the rest of the stat data.
- The starting map window aesthetics were improved. A window title was added
and the map selector is positioned at the top of the window rather than in
the middle.
- The add character dialog has minor modifications to improve consistency with
other dialogs.
- The password change dialog is more uniform looking.
- Add dialogs are set to not be deletable to avoid client failure when a user
might click on the [X] window control (some window managers do not
honor this).
- A liblade warning is no longer presetn at client startup. This was done by
Glade automatically. A widget was automatically removed when the project
was saved.
- Many widget names were changed to logical names that describe where they
appear in the various dialogs and what purpose they serve. These are not
functional changes, but they greatly improve readability of the layout.
- 2012-09-26 05:19 kbulgrien
- [r18455] - Fix for choose_starting_map_window. Primarily making the dialog not
deletable since deleting the window completely hoses the client and
forces a restart. This also makes the dialog not ugly.
- 2012-06-17 13:45 kbulgrien
- [r18265] - On Mageia 2, build with libfreeglut-devel failed due to the linker not
knowing to link with -lX11. In searching for a solution, I found the
AX_CHECK_GL, AX_CHECK_GLU, AX_CHECK_GLUT macros that are supposed to
improve compatibility various OpenGL implementations. See the files
here: http://code.google.com/p/autoconf-gl-macros/ . Though that did
not help with the X11 issue, the change is kept in the hope that it is
still an improvement. Though it was not used, the Microsoft compiler
detection support in this package was also included for completeness.
- The X11 issue seems to be related to a malfunction of AC_PATH_XTRA, as
it does not do what the documentation says it should do (at least in
this environment.) It does not set X_PRE_LIBS, X_LIBS, and X_XTRA_LIBS
and others seem to concur per web search. Though the AC_PATH_XTRA
method seems broken, this change hopefully leaves it as a fallback in
case the pkg_config method does not work.
- Since gtk-v2/src/Makefile is changed anyway, also fix the cproto/proto
target failure due to a upper/lowercase issue. A TAB/spaces consistency
issue is also addressed.
- The macros folder is updated to include the new M4 files that provide
AX_CHECK_GL, AX_CHECK_GLU, AX_CHECK_GLUT.
- 2012-06-15 17:13 ryo_saeba
- [r18221] Allow selection of 'wraith' and 'wizard'.
- 2012-03-18 06:17 mwedel
- [r17585] Update for 1.70.0 release.
- 2012-03-16 21:24 ryo_saeba
- [r17543] Add missing include.
- 2012-02-23 19:06 ryo_saeba
- [r17215] Fix for PNG, patch by David McIlwraith.
- 2012-01-31 02:27 alestan
- [r16896] Updated zlib version to 1.2.6
- 2011-12-04 09:28 ryo_saeba
- [r16029] Apply patch by David McIlwraith related to automake.
- 2011-11-21 07:03 mwedel
- [r15869] Add proper bounds checking for skill_names array.
MSW 2011-11-20
- 2011-11-21 07:02 mwedel
- [r15868] If the client lacks display mode from settings file (different
system, recompiled with different options), fall back to pixmap
display so that they at least get something.
MSW 2011-11-20
- 2011-10-27 16:41 ryo_saeba
- [r15279] Apply patch #3428070: Autoreconf Warnings, by Steven Johnson.
- 2011-10-22 18:54 ryo_saeba
- [r15243] Fix bug #2805103: Client Side Scripting error with watch stats.
- 2011-09-22 23:45 alestan
- [r15132] Fixed path in Bundle.py and made CFInstall ask before compiling gtk2 client
- 2011-09-22 23:39 alestan
- [r15131] Updated the building.txt entry in gtkclient.nsi.in for uninstalling
- 2011-09-22 23:37 alestan
- [r15130] Updated bundle.py to grab latest copy of gtkclient.nsi.in when run
- 2011-09-22 23:34 alestan
- [r15129] Updated the building.txt entry in gtkclient.nsi.in
- 2011-09-21 23:50 alestan
- [r15126] Added script for doing daily builds of the gtk2 client on windows
- 2011-09-21 23:41 rjtanner
- [r15125] Updated the web forum URL.
- 2011-09-21 23:24 alestan
- [r15124] Cleaned up and updated gtk2 client win32 documentation
- 2011-09-21 22:59 alestan
- [r15123] Fixed client version number
- 2011-09-20 07:20 alestan
- [r15120] Added HOWTO for building win32 GTK client
- 2011-09-20 07:18 alestan
- [r15119] Added scripts for building gtk2 client on windows
- 2011-09-10 10:59 ryo_saeba
- [r15072] Remove old include.
- 2011-09-10 09:22 ryo_saeba
- [r15064] Fix metaserver not correctly displaying everything. Patch by Maurice Massar.
- 2011-07-14 13:42 ryo_saeba
- [r14846] Remove obsolete values.
- 2011-06-23 20:26 ryo_saeba
- [r14690] Change suspicious computation in smoothing code.
- 2011-06-06 21:27 ryo_saeba
- [r14516] Add timestamping option.
- 2011-05-23 17:57 ryo_saeba
- [r14486] Add account password change logic and dialogs.
- 2011-03-09 16:07 akirschbaum
- [r14328] Remove stray debug option introduced in r13675.
- 2011-01-28 06:17 mwedel
- [r14259] Update for 1.60.0 release
- 2011-01-24 05:21 mwedel
- [r14247] Minor bugfixes/improvements:
common/cconfig.h: Turn off metaserver1 support - will remove code in future,
but will see what effect this has.
gtk-v2/src/create_char.c: Remove call setting starting map combox box active -
this is done elsewhere, and that call generates an error since the widget
isn't realized yet, so isn't doing anything in any case.
gtk-v2/src/info.c: Handle client generated messages at startup - removes
a bunch of errors going to console about invalid type/subtype.
gtk-v2/src/gtk2proto.h: Add missing prototypes.
gtk-v2/src/main.h: Change default layout to be gtk-v1
MSW 2011-01-23
- 2011-01-12 06:31 mwedel
- [r14240] Fix theme handling so it is properly loaded/processed at client start up.
Remove the theme lookup from the init_...() routines and load the theme
after all the initialization routines are done.
MSW 2011-01-11
- 2011-01-12 06:12 mwedel
- [r14239] Change adjustment value to remove:
(crossfire-client-gtk2:341): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
messages from showing up at program start.
MSW 2011-01-11
- 2010-11-15 07:21 mwedel
- [r14099] common/client.h: Update race & class structures to hold choice information
from server.
common/commands.c: Add handling of choice information from server.
gtk-v2/src/create_char.c: Add handling of choice option lists.
gtk-v2/glade/dialogs.glade - add labels and combo boxes for the choice
options.
MSW 2010-11-14
- 2010-11-06 11:24 ryo_saeba
- [r14058] Fix client crash on empty magic map.
- 2010-10-27 03:56 kbulgrien
- [r14037] - Fix bogus doxygen @params directives.
- 2010-10-24 14:06 anmaster
- [r14032] Fix building client with build directory separate from source directory.
- 2010-10-24 03:05 kbulgrien
- [r14023] - It is now possible to ./configure; cd gtk-v2/src; make to build the client,
without having to execute make at the top of the project first. This can
be helpful during development.
- 2010-10-21 06:18 mwedel
- [r14014] Commit client side support for new in client character creation.
common/client.h: Add various new globals for map, race, and class info.
common/commands.c: Move Race_Class_Info structure to header file, add
new global declarations. Add handling of requesting and storing
starting map information from server. Handle newcharinfo
protocol command.
common/external.h: Add new external calls.
common/init.c: Add calls to free race and class data.
common/proto.h: Add new prototype
gtk-v2/glade/dialogs.glade: Update dialogs.glade file with new
window for creating character.
gtk-v2/src/Makefile.am: Add create_char.c file
gtk-v2/src/account.c: Add calls for popups and to show the choose
character window. Add handling for new character creation method.
gtk-v2/src/create_char.c: New file that handles character creation logic.
gtk-v2/src/gtk2proto.h: Update with new functions
gtk-v2/src/main.c: update loginmethod to 2, add call to
init_create_character_window()
gtk-v2/src/main.h: Add global reference to account password
gtk-v2/src/stats.c: Make some widgets static to the file.
MSW 2010-10-20
- 2010-10-20 04:34 kbulgrien
- [r14010] - For almost the same reason given for removing the path, also remove the
dot extension on the sound names so that the server can append whatever
extension it wants to use.
- 2010-10-15 04:49 kbulgrien
- [r14002] - It is now possible to `./configure; cd sound-src; make` and build the sound
server without doing a top-level make.
- 2010-10-15 04:37 mwedel
- [r14001] Fix minor syntax error for sun sound.
MSW 2010-10-14
- 2010-10-14 11:54 kbulgrien
- [r14000] - Rename a missed reference to sounds.dist.
- 2010-10-14 11:53 kbulgrien
- [r13999] - Do not encourage putting path names into the sounds file anymore. Instead,
commit it with no paths at the point of use rather than making it with a
script that translates the paths to the flavor of the day. cfsndserv is
now able to search multiple paths defined at build time.
- 2010-10-14 11:48 kbulgrien
- [r13998] - Having hardcoded paths is a bad plan. Much better to allow the sound server
to be adaptable about where it locates sound files. Since the sound system
changed away from use of numbers, this file is almost useless anyway. For
now, remove the paths so we can use it as a cross-reference between sound
name and the sound number used by the original sound protocol.
- 2010-10-14 04:13 kbulgrien
- [r13997] - Remove warning: pointer targets in passing argument 1 of ‘StdinCmd’ differ
in signedness (for legacy sound systems).
- 2010-10-14 04:11 kbulgrien
- [r13996] - Move an #ifdef to fix compilation for legacy sound systems.
- Fix a misspelling of StdinCmd in fd_server() function to fix compilation for
legacy sound systems.
- 2010-10-14 04:01 kbulgrien
- [r13995] common.h
- Add #defines for commonly used sound server data directories and externs for
the pointer variables they will ultimately be used with.
- Add a helpful #define SOUND_DEBUG in this common file.
- Add an extern to the client replace_chars_with_string() function so that the
sound server can transparently support backslash delimited path strings.
sndproto.h
- Rebuild to support the new stdin handler and the sound number and type
translator functions.
common.c
- Instead of allocating memory for paths each time a file is referenced, set
up pointers for each path that is used more than once, and allocate the
memory for them one time via init_sounds().
- Remove function prototypes as common.h is the correct place to put them.
- Update a comment relating to play_sound()'s sound_number parameter.
- Document the rationale behind use of MAXSOCKBUF for a file path buffer size.
- Remove individualized setup of paths at the point-of-use in init_sounds(),
write_settings(), and read_settings().
- To smooth the transition from sound to sound2 command support by cfsndserv,
or, rather, to temporarily limit the scope of the rewrite and speed time to
initial functionality testing, create a stub sound_to_soundnum() translator
to take legacy sound names and map them to sound numbers so all legacy
sound drivers do not have to be re-written all at once. For this commit,
the function is a stub, so sound effects are basically disabled, but the
code compiles cleanly.
- As with conversion of sound name to sound number, create type_to_soundtype()
to convert sound2 types to sound types so that legacy sound effects can be
played with minimal rewrite. This conversion layer is hopefully temporary,
but should allow minimally functional sound support much earlier as it
prevents a need to immediately rewrite the drivers for all supported sound
systems.
- Rename SoundCmd() to StdinCmd() and rewrite it to parse both sound2 and
music commands coming from the client over stdin. The format of commands
from the client is completely changed to support all of the parameters that
the sound2 protocol defines, and requires string arguments to be quoted to
make it easier to manage names with a variety of characters including white
space. StdinCmd() does basic parameter sanity checks on the data so it can
discard invalid commands. StdinCmd() detects the type of command by the
location of the quoted strings in the client commands.
alsa9.c
common.c
cfsndserv.c
- Add client includes to the sound server to allow more commonality between
the sound server and the client.
alsa9.c
cfsndserv.c
- Update the sound server notice that identifies how it is compiled and add
a statement summarizing what is supported and not supported.
- Standardize SOUND_DEBUG announcements when entering primary sound support
functions.
- Add a play_music() stub function to all legacy sound systems (ALSA, ALSA9,
Sun, SGI, and OSS) that does nothing when they are selected, and add a very
basic (but functional) play_music() function that plays music if SDL_SOUND
is compiled in. Having play_music() available for all sound systems lets
StdinCmd() remain the same no matter which sound system is built.
- Rename calls to SoundCmd() to StdinCmd().
cfsndserv.c
- Move the helpful #define SOUND_DEBUG to common.h.
- Relocate all SDL_mixer sound support functions into the same #ifdef and all
the legacy functions into the same #else to put the related functions in
closer proximity with each other.
- 2010-10-14 00:55 kbulgrien
- [r13994] - Fix make complaint about having two targets that resolve to the same
library.
- 2010-10-14 00:49 kbulgrien
- [r13993] - Fix duplicate reference to cfsndserv instead of a reference to the alsa9
version.
- 2010-10-13 03:19 kbulgrien
- [r13992] - Remove duplicate of strdup_local() in common.c. It is in ../common/misc.c,
so it seems silly not to link with ../common/libccflient.a rather than have
it two places in the same project. Furthermore, for sound and music, more
functions from ../common are needed, so this is also prep work for that.
- 2010-10-09 22:41 anmaster
- [r13982] Fix some bugs found by static analysis (dead assignment, NULL dereference) using clang-analyzer.
- 2010-10-09 21:43 anmaster
- [r13981] Fix a number of serious compiler warnings (passing pointer to integer of different size, discarding const qualifiers).
- 2010-10-08 02:26 kbulgrien
- [r13974] - Got a bit hasty on that last commit eh? Update various play_sound()
references to play_sound_effect().
- 2010-10-08 02:22 kbulgrien
- [r13973] - Rename the play_sound() function to avoid a name conflict with a cfsndserv
function of the same name. It messes up the doxygen call graphs.
- Reverse the order of the sound and source names sent to cfsndserv so that
the name of the sound effect or music is always the last quoted string on
the command line as it makes the command parse a little nicer on the
cfsndserv end of the pipe.
- 2010-10-07 11:43 kbulgrien
- [r13971] - Disable developer aids in sound/music functions. They were accidentally
turned on at revision 13969.
- 2010-10-07 04:03 kbulgrien
- [r13970] - Doxygen comment rework for Sound2Cmd() and MusicCmd().
- 2010-10-07 03:45 kbulgrien
- [r13969] - Fix a doxygen complaint about the use of unsupported XML/HTML tags in a
Sound2Cmd() and MusicCmd().
- 2010-10-07 03:33 kbulgrien
- [r13968] - Make the gtk-v2 client compatible with the sound2 protocol from the server
and complete the unfinished implementations in Sound2Cmd() and MusicCmd().
This makes the client ready for sound2 and music by altering the format of
data sent to cfsndserv. cfsndserv is incompatible with the sound2 protocol
because sound numbers have been dispensed with, so the change in format of
data piped to cfsndserv does not break anything any worse than it already
was.
- 2010-10-07 03:22 kbulgrien
- [r13967] - Add the common/shared folder to INCLUDES.
- Reformat for readability, and remove DEFAULT_INCLUDES from the proto target
to get rid of duplicate includes.
- 2010-10-06 13:23 anmaster
- [r13965] Fix out of tree build. common/Makefile.am called some scripts that were not properly handling the case of source directory and build directory differing.
- 2010-10-02 21:17 kbulgrien
- [r13959] - Give sound-serv access to the shared newclient.h file, and update the proto
target with similar changes.
- 2010-10-02 09:34 ryo_saeba
- [r13958] Add 'containers' pickup menu item.
- 2010-10-01 11:43 kbulgrien
- [r13954] - Update so that server and client both use MAXSOCKBUF as the SockList buffer
size.
- 2010-10-01 03:02 kbulgrien
- [r13952] - Update to latest version of the shared newclient.h that removes unreferenced
MAXSOCKRECFBUF and MAXSOCKSENDBUF defines.
- 2010-10-01 02:32 kbulgrien
- [r13950] - Fix doxygen @param warnings for process_race_class_info().
- 2010-10-01 02:30 kbulgrien
- [r13949] - Fix doxygen @param warnings for metaserver_update_cache().
- 2010-10-01 02:27 kbulgrien
- [r13948] - Fix doxygen warning: argument 'data' of command @param is not found in the
argument list of FailureCmd().
- 2010-10-01 02:24 kbulgrien
- [r13947] - Fix doxygen warning: argument 'varargs' of command @param is not found in
the argument list.
- 2010-10-01 02:21 kbulgrien
- [r13946] - Fix doxygen warnings: Found unknown command `\parm'.
- 2010-10-01 02:16 kbulgrien
- [r13945] - Fix doxygen warnings: Unsupported xml/html tags found.
- 2010-10-01 02:10 kbulgrien
- [r13944] - Fix doxygen warnings about unsupported xml/html tags.
- 2010-10-01 02:04 kbulgrien
- [r13943] - Remove duplicate prototype for draw_ext_info() not needed here as it is in
gtk2proto.h.
- Fix doxygen add_marked_text_to_pane() undocumented parameter warning.
- 2010-10-01 01:52 kbulgrien
- [r13942] - Resolve a doxygen warning about undocumented parameters, and transfer plain
comments into the @param documentation of drawquarterlightmap_sdl().
- 2010-10-01 01:43 kbulgrien
- [r13941] - Remove incorrect forward reference to do_clienthelp() to fix doxygen
warning, and remove a doxygen header comment from another prototype.
- 2010-10-01 01:32 kbulgrien
- [r13940] - Fix doxygen errors (@params vs @param).
- 2010-09-29 11:38 kbulgrien
- [r13936] - Fix spelling.
- 2010-09-29 03:08 kbulgrien
- [r13935] - Get the latest doxygen comment changes in the shared newclient.h file.
- 2010-09-29 03:06 kbulgrien
- [r13934] - Create doxygen defgroup setups for related definitions.
- Minor reformatting of comments and definitions.
- Convert comments to doxygen style.
- Convert tabs to spaces.
- 2010-09-28 06:04 kbulgrien
- [r13932] - It's not CVS anymore.
- 2010-09-28 02:43 kbulgrien
- [r13930] - Add doxygen commenting to describe various functions and data structures.
- Make the music command look more like it is grouped with sound2 by swapping
the order of the commands in the commands[] array.
- Restructure and rewrite various comment texts to improve use of line width
and to improve the text grammar and clarity.
- Comment DoClient() to make it more clear what it does.
- Fix typographical errors.
- 2010-09-26 18:26 ryo_saeba
- [r13915] Add file.
- 2010-09-26 18:23 ryo_saeba
- [r13914] Update the number of lists.
- 2010-09-26 18:21 ryo_saeba
- [r13913] Add an 'unidentified' tab.
- 2010-09-26 17:50 ryo_saeba
- [r13910] Update to new reference.
- 2010-09-26 17:44 ryo_saeba
- [r13907] Update reference.
- 2010-09-26 03:27 kbulgrien
- [r13886] - Make it clearer what the setup command "sound 3" means by adding a comment.
- 2010-09-25 19:00 kbulgrien
- [r13884] - Remove a test that kills off the sound server before it should (now that the
SDL_mixer server basically works with the [obsoleted] sound command data
sent from the client).
- 2010-09-25 18:32 kbulgrien
- [r13883] - This is a bug-fix for Sound2Cmd() in preparation for implementing sound2
support, and it includes doxygen comments for Sound2Cmd() and MusicCmd()
with formatting changes near play_sound(), Sound2Cmd(), and MusicCmd().
- Improve the sound2 data format description text by using variable names.
- Change the data types of Sound2Cmd values x and y to match server type.
- Fix incorrect data indexing and data smashing in Sound2Cmd, including a
broken sound name length check in Sound2Cmd.
- Improve Sound2Cmd() LOG messages.
- 2010-09-24 05:06 kbulgrien
- [r13871] - Its not CVS anymore.
- 2010-09-24 05:06 kbulgrien
- [r13870] - Update the ignore property for this folder to account for a new file and a
renamed file.
- 2010-09-24 04:50 kbulgrien
- [r13869] - Make common.c a common file instead of maintaining duplicate code in both
common.c and cfsndserv.c.
- Rename soundsdef.h to def_sounds.c throughout to convert the sound data to
a linkable object instead of an include (as part of the transition to use
of common code and data). Create def_sounds.h to support shared use of
the data structure defined in def_sounds.c.
- Create an sndproto.h maintained by `make proto` to maintain prototypes for
shared code.
- Create common.h to support shared use of common.c between different sound
servers.
- Migrate all shared/duplicate definitions in cfsndserv.c and alsa9.c into
common.c.
- Remove duplicate functions from cfsndserv.c.
- Change rcsid_* declaration from static to const to remove a compile warning.
- Add support for using .ogg and .wav extensions in parse_sound_line() when
SDL_mixer is used to support sound.
- 2010-09-24 04:33 kbulgrien
- [r13868] - Modify the script to produce the def_sounds[] array in a .c file instead
of a .h file so that the data can be compiled to a .o for use in multiple
.c files that make up a sound binary.
- The script now also produces a .h file that contains and extern prototype
for def_sounds[].
- 2010-09-24 00:04 kbulgrien
- [r13867] - Synch init_sounds() and SoundCmd() with cfsndserv.c. This is a formatting
change only.
- 2010-09-23 23:55 kbulgrien
- [r13866] - Sync common.c write_settings() and read_settings() with cfsndserv.c. This
is a formatting change only.
- 2010-09-23 23:34 kbulgrien
- [r13865] - Synch parse_sound_line() with cfsndserv.c (oddly, common.c isn't common at
all yet). The code is identical except that an unnecessary else is removed.
- 2010-09-23 04:52 kbulgrien
- [r13854] - A first run at playing sound effects using SDL_mixer. It mixes sounds over
another playing "song", but doesn't yet seem to work with the client, so
more work is needed. Getting this far, it looks like the cfsndserv overhead
is kind of a waste. SDL_mixer handles a lot of the issues the fd driver
code had to manage on its own. Also, noted, use of fork means that Windows
use is probably not viable even if SDL_mixer is cross-platform.
- Added tracking for SDL_mixer "Mix_Chunk"s which contain sounds to mix.
- Transitioned back to using .ogg files as converting a bunch of .wav to .ogg
is trivial with oggenc. .oggs are half the size of .raw, and a quarter the
size of .wav.
- Add error handling to use of the various SDL_mixer initialization processes.
- Switched from printf to fprintf on stderr for error message output in the
SDL_mixer sound server code.
- Legacy play_sound() was so tied to the fd server that it is ifndef SDL_SOUND
now, and a whole new play_sound() is added to support SDL_mixer use. It is
starting to look like SDL_mixer should be separated as the Alsa9 server is.
- For now, settings.simultaneous sets the number of allocated mixing channels,
and defines a fixed number of Mix_Chunks to manage. This means sounds are
loaded from file each time played.
- Some whitespace changes.
- 2010-09-22 03:47 kbulgrien
- [r13853] - Mostly whitespace changes and commenting.
- Set up parse_sound_line to convert .raw file extensions to .ogg or .wav when
the SDL_mixer sound support is set up to help with development of the new
server.
- Remove SDL_INIT_VIDEO from SDL_Init() in init_audio() as this server is only
meant to handle audio.
- Add stdin processing to sdl_mixer_server(). This is pretty much a copy of
the code used for the legacy code now in fd_server().
- 2010-09-21 04:06 kbulgrien
- [r13838] - Improve a debug message in parse_sound_line().
- Remove an unnecessary else in parse_sound_line().
- Comment parse_sound_line() to add doxygen content and describe the parse.
- Change the default signedness for SDL_mixer to match the settings used by
most of the supported sound systems.
- 2010-09-18 05:52 kbulgrien
- [r13836] - Fix improper use of buffers in Mix_OpenAudio() where a chunksize should be
used instead. The docs say: chunksize is the size of each mixed sample. The
smaller this is the more your hooks will be called. If make this too small
on a slow system, sound may skip. If made to large, sound effects will lag
behind the action more. You want a happy medium for your target computer.
You also may make this 4096, or larger, if you are just playing music.
- Fix ifdef SOUND_DEBUG in main() to not include the return -1 in the event
that a file descriptor is not identifed when the SDL_mixer server is not in
use.
- Resolve a compiler warning by providing a return value in the SDL_mixer
audio_play() function. This function is still a stub, but the return value
is calculated the same as all the other audio_play() functions compute it.
- 2010-09-18 05:33 kbulgrien
- [r13835] - Extract the "legacy" server code that is based on file descriptors into a
function called fd_server(). The SDL_mixer library is not based on file
descriptors, so no need to blow up main() with a giant if statement to
support the two different types of server.
- Create an sdl_mixer_server() function that will handle sound when the
SDL_mixer library is in use. For now, simply play a sample .ogg file
found in the current working directory, and exit. This just proves that
playing music works, but does nothing to act like the sound server should,
and indeed, it does!
- Add a few SOUND_DEBUG statements to the SDL_mixer init_audio() and
audio_play() functions.
- 2010-09-18 04:48 kbulgrien
- [r13834] - Indentation fix. Whitespace only.
- 2010-09-18 04:15 kbulgrien
- [r13833] - Fix assignment of zerolevel used in memset() where 0x8000 was specified
instead of 0x00.
- Move descriptive text into @return documentation for init_sounds().
- Add doxygen header comments to all audio_play() and init_audio()
functions.
- 2010-09-18 04:11 kbulgrien
- [r13832] - Fix up doxygen comment headers for init_audio() and audio_play().
- 2010-09-18 03:51 kbulgrien
- [r13831] - Mark init_audio() doxygen @return to indicate what the return value is
supposed to be.
- 2010-09-18 03:50 kbulgrien
- [r13830] - Explicitly return zero if init_audio() for SDL_mixer started up the sound
stuff okay.
- Mark all init_audio() doxygen @return to indicate what the return value is
supposed to be.
- Remove smash of 'buffers' pointer in SDL_mixer init_audio().
- 2010-09-18 02:13 kbulgrien
- [r13829] - Fix syntax error in --enable-sdl_mixer related code.
- 2010-09-16 04:13 kbulgrien
- [r13821] - Clean up the (hastily written/copy/pasted) SDL_mixer init_audio comments and
error messages.
- 2010-09-16 04:04 kbulgrien
- [r13820] - Replace a comment that was deleted because it was in the wrong place.
- 2010-09-16 03:50 kbulgrien
- [r13819] - Add the beginnings of SDL_mixer support as a potential solution for cross-
platform sound support that allows mixing sound effects and music.
- Fix spelling and change Couldn't to Could not.
- 2010-09-16 03:47 kbulgrien
- [r13818] - Whitespace changes. Indentation made consistent. No functional change.
Comments converted to Doxygen style, etc.
- 2010-09-16 03:45 kbulgrien
- [r13817] - Begin preparations for adding SDL_mixer support for potential cross-platform
sound support that can support mixing music and sound effects.
- 2010-09-15 05:01 kbulgrien
- [r13816] - Back off the dependency on GTK 2.18.0. The client still has the new
functionality, but compiles and runs fine at GTK 2.14.0. As the lower
limit is not known, return the dependency to 2.0.0 as it was before.
- 2010-09-14 07:52 kbulgrien
- [r13815] - Fix error compiling with -Wformat -Werror=format-security. Mandriva 2010.1
uses these options by default when building RPMs.
- 2010-09-14 06:56 kbulgrien
- [r13814] - Take a stab at setting a GTK+2.0 requirement on a minimum of 2.18.0.
- Remove commented out support for old clients.
- 2010-09-14 06:25 kbulgrien
- [r13813] - Change mixed grave accent and single quoting in a message to use only single
quotes so it doesn't break syntax highlighting in the file.
- Comment rework to fix spelling, etc, and generally fill out formatting to
use more column width. Also deleted what appears to be an extraneous
comment.
- 2010-09-14 06:08 kbulgrien
- [r13812] - Since someone deleted the x11 and gtk-v1 client codebases, there is really
no point in keeping around the commented out configure support for them.
- 2010-09-14 04:04 kbulgrien
- [r13811] - Not sure what this is for, but the comment says to update it, so here we go.
- 2010-09-14 04:03 kbulgrien
- [r13810] - Use the gtk-2.0.m4 macro to test for a usable version of GTK+ 2.0. mmetson
found that build fails on Fedora Core 11. It turns out the spells dialog
uses two functions first provided by GTK+ 2.18.0 in the code that wraps the
description and auto-grows/shrinks the column when the player resizes the
dialog. It is known that one of the calls is pretty easy to rewrite for
build with pre-2.18.0, but converting the other call has not been reviewed.
- 2010-09-14 01:01 kbulgrien
- [r13809] - GTK 1 is long gone, so replace the macro file with one for GTK 2.
- 2010-09-11 01:57 kbulgrien
- [r13786] - Whitespace changes. Indentation made consistent. No functional change.
Comments converted to Doxygen style, etc. Minor comment improvements.
- 2010-09-07 03:00 kbulgrien
- [r13759] - Tabs to spaces, comment restructuring and change to doxygen format including
addition of @param and @return comments for the functions. No code changes.
- 2010-09-04 11:32 ryo_saeba
- [r13743] Apply patch #2913553: Fix implicit declaration warning Tim Hentenaar.
- 2010-09-04 04:49 kbulgrien
- [r13722] - Remove warning: function declaration isn’t a prototype
- 2010-09-04 04:37 kbulgrien
- [r13721] - Remove unneeded cast.
- Replace simple type casts (GtkSpinButton*) and (GtkToggleButton*) with what
appears to be more commonly used notation in GTK code: GTK_SPIN_BUTTON() and
GTK_TOGGLE_BUTTON().
- 2010-09-04 04:29 kbulgrien
- [r13720] - Remove warning: initialization discards qualifiers from pointer target type
- 2010-09-04 04:27 kbulgrien
- [r13719] - Remove various warnings about pointer qualifiers:
note: expected ‘char *’ but argument is of type ‘const char *’
warning: assignment discards qualifiers from pointer target type
warning: passing argument 2 of ‘add_to_textbuf’ discards qualifiers from
pointer target type
warning: passing argument 8 of ‘add_to_textbuf’ discards qualifiers from
pointer target type
- 2010-09-04 04:07 kbulgrien
- [r13718] - Remove warning: function declaration isn’t a prototype
- 2010-09-04 04:04 kbulgrien
- [r13717] - Remove warning: will never be executed
- 2010-09-04 04:02 kbulgrien
- [r13716] - Remove warning: cast from function call of type ‘gdouble’ to non-matching
type ‘unsigned int’
- 2010-09-04 04:01 kbulgrien
- [r13715] - Remove warning: comparison between signed and unsigned integer expressions
- 2010-09-04 03:57 kbulgrien
- [r13714] - Remove warning: old-style function definition
- 2010-09-04 03:53 kbulgrien
- [r13713] - Reformat comments to more uniform margins.
- Reformat some long code lines for consistency.
- Minor comment text modifications: mostly capitalization, grammar, and so on.
- Convert TODO/FIXME comments to doxygen style so they show up in generated
documentation.
- Unify the style used for @param comments so they all start the description
on the same line as doxygen @param, et. al., for readability and to use less
vertical space.
- 2010-08-29 21:15 kbulgrien
- [r13691] - On second thought, its more future-proof to use the GTK type than to use
the GDK type for treeview allocation in on_spell_window_size_allocate().
- 2010-08-29 20:47 kbulgrien
- [r13690] - It has been pointed out that on_spell_window_size_allocate() was written
with a non-portable structure reference (offended target: Sun). Fix the
structure reference to use the base GDK type only, and comment on the
equivalence of GdkRectangle and GtkAllocation.
- 2010-08-29 20:05 kbulgrien
- [r13689] - Change comment text to better fit current spells dialog implementation.
- 2010-08-28 21:36 kbulgrien
- [r13684] - Tab to spaces, end-of-line whitespace removed.
- Minor whitespace reformat of some tabular code.
- 2010-08-28 05:19 kbulgrien
- [r13681] - Formatting of comments / function parameters only. No functional change.
- 2010-08-28 05:15 kbulgrien
- [r13680] - Remove comment text that is no longer pertinent since the descriptions are
now handled by a single cell renderer.
- 2010-08-28 04:11 kbulgrien
- [r13679] - Remove commented out abort();
- 2010-08-28 04:08 kbulgrien
- [r13678] - Remove extra blank line.
- Fix spelling and capitalization in comments.
- Format block comments more consistently to use less vertical space. etc.
- 2010-08-28 03:52 kbulgrien
- [r13677] - Tabs to spaces and associated indentation fixes.
- 2010-08-28 03:49 kbulgrien
- [r13676] - End-of-line whitespace and extra blank lines removed.
- 2010-08-28 01:43 kbulgrien
- [r13675] - Since this is a C project, rename AM_CPPFLAGS to AM_CFLAGS.
- 2010-08-27 02:46 kbulgrien
- [r13674] - Update to add a new function in spells.c that redraws the spell information
to optimize use of space when the dialog content and/or size is changed.
- 2010-08-27 02:33 kbulgrien
- [r13673] - The prior implementation instantiated a cell renderer for each spell listed
in the dialog, but a single renderer behaves the same as multiple renderers
in this dialog, so there is no need to waste resources on more than one.
- The description cell data function is only needed to create row-specific
renderers, so it is removed in favor of using the size-allocate signal
handler to apply updates to the description column wrap-width.
- Comments for several global variables are added or improved.
- 2010-08-26 02:49 kbulgrien
- [r13668] - The spells dialog description text now dynamically reflows text and adjusts
row height when the window is re-sized by the user.
- 2010-08-26 00:46 kbulgrien
- [r13667] - Fix indentation error.
- 2010-08-25 05:03 kbulgrien
- [r13666] - Remove silly mis-typed pointer type and unnecessary cast from spells.c.
- 2010-08-25 04:46 kbulgrien
- [r13665] - The spells dialog now defaults to wrap the description at 300 pixels or so
as before, but dynamically re-calculates the wrap width based on the dialog
width and the width of the other columns. Presently the code does not
reclaim extra vertical height when the dialog is widened, so the dynamic
wrap is a bit pointless except for shrinking the dialog down. More work is
needed to get the description field to shrink vertically.
- Three of the columns now have their values centered under the column title
to try to improve aesthetics.
- The SP/Mana column title is renamed "Cast/Cost" as SP/Mana was redundant and
Grace was unmentioned. This new title also goes along with Spellmon 2
changes in the pipeline that support setting ingredients as additional
casting costs. Ingredient data is expected to merge with the mana/grace
data in this dialog, and go in the same column as mana/grace cost.
- 2010-08-22 21:46 kbulgrien
- [r13663] - Move a widget pointer assignment closer to its point of use improve code
readability and consistency with code elsewhere. No functional change.
- 2010-08-22 21:39 kbulgrien
- [r13662] - Spell dialog data is now top, right aligned so that details are at the top
of the cell and lined up with the first line of the description.
- Auto-wrap the description to a fixed width. Though a dynamic, or user
settable width would be better, this at least returns the dialog to a
state similar to how it was prior to removal of line breaks from the spell
description text in the archetypes. Ideally, more work to improve the wrap
will be done, but lets lock in this fix for the time being.
- 2010-08-20 02:21 kbulgrien
- [r13659] - Non-functional whitespace, comment, and formatting changes only.
Some local variables in functions swapped order for readability.
- 2010-08-19 10:03 kbulgrien
- [r13654] - make proto is broken again (at least on some systems) due to -pthread
getting on the cproto command line and being misinterpreted as command
options: cproto: invalid option -- 'h'. This was fixed before by taking
out PTHREAD_CFLAGS, but it has crept back via some other make variable.
A workaround is added, but is commented out because it uses a GNU make
extension that is not portable. What constitutes a portable way to filter
out -pthread if it occurs?
- 2010-08-19 09:46 kbulgrien
- [r13653] - Update to add new function in account.c.
- 2010-08-19 09:15 kbulgrien
- [r13652] - Fix client malfunction on [X] closing of account system dialogs. Though the
dialogs have the Deletable property set to No, some window managers do not
honor this setting, and put the [X] close icon on the window frame. Added
new on_window_delete_event() callback and connected it to all of the account
system dialogs so their delete_events are trapped and ignored. The dialogs
now only dismiss in the manner the designer intended.
- 2010-08-19 08:46 kbulgrien
- [r13651] - Remove warning: old-style function definition
- 2010-08-19 08:43 kbulgrien
- [r13650] - Whitespace, margin, and comment reformat only. No functional change.
Cuddle function names with opening parenthesis. Add doxygen comment headers
for functions. Add doxygen @param throughout. Cuddle doxygen parameter
description with parameter. Reformat comments to make better use of line
width. Capitalization. Collapse consecutive empty lines to single line.
Remove end-of-line whitespace, and excessive intra-line whitespace, etc.
- 2010-08-19 04:48 kbulgrien
- [r13649] - Add the msgctrl_window to the list of dialogs that need special settings.
- Add a note on the importance of setting the Deletable property to No, and
connecting the delete events of all dialogs to gtk_widget_hide_on_delete().
- 2010-08-19 04:22 kbulgrien
- [r13648] - Fix segfaults and/or client malfunctions when [X] closing the about and
message control dialogs under window managers that do not honor setting
the GTK deletable property to No.
- 2010-08-19 04:11 kbulgrien
- [r13647] - Fix segfault and/or client malfunction when [X] closing the keybinding
dialog on window managers that do not honor setting its GTK deletable
property to No.
- 2010-08-19 04:03 kbulgrien
- [r13646] - Fix client malfunction when [X] closing the configuration dialog under
window managers that do not honor setting its GTK deletable property to No.
- 2010-08-19 03:53 kbulgrien
- [r13645] - Fix segfault when [X] closing the spells dialog under window managers that
do not honor setting the GTK deletable property of the dialog to No.
- 2010-08-19 03:45 kbulgrien
- [r13644] - Fix segfault when [X] closing the skills dialog under window managers that
do not honor setting the deletable property of the dialog to No.
- 2010-08-19 03:35 kbulgrien
- [r13643] - Style, formatting, and whitespace changes only. No functional change.
- 2010-08-19 01:19 kbulgrien
- [r13642] - Make all the account-related dialogs non-deletable.
- 2010-08-18 03:35 kbulgrien
- [r13640] - Change the dialogs.glade design up to support GTK 2.16 and let Glade-3
reorder orientation properties to amuse itself. It also automatically added
more properties in various places... hopefully all sane changes.
- Set the login dialog deleteable property to false so (some) window managers
do not show the [X] close icon. The client can't handle the dialog being
closed. This is a partial fix only. Some window managers (or whatever) do
not honor the GTK property.
- Clean up a widget name in the config dialog.
- Summarize .glade file mods in the ChangeLog.
- 2010-08-18 00:05 kbulgrien
- [r13639] - Fix id strings with trailing spaces. The Glade editor used previously had
a GUI issue that caused these. Apparently some problems occurred before
it was realized the items were being generated with trailing spaces.
- 2010-08-17 22:43 kbulgrien
- [r13637] - Prevent royal screw up by Glade 3.6.7 when loading this file. 3.6.7 was
released knowing that it would render vboxes horizontally when the .glade
file was made for GTK < 2.16, and that manual edit/save would be required.
http://mail.gnome.org/archives/gnome-announce-list/2009-June/msg00063.html
- 2010-08-17 04:06 kbulgrien
- [r13630] - Prevent royal screw up by Glade 3.6.7 when loading this file. 3.6.7 was
released knowing that it would render vboxes horizontally when the .glade
file was made for GTK < 2.16, and that manual edit/save would be required.
http://mail.gnome.org/archives/gnome-announce-list/2009-June/msg00063.html
- 2010-08-15 03:24 kbulgrien
- [r13603] - The removal of line breaks from the .arc files has made the spells dialog
width explode, so add a comment to the spells dialog code that gives a hint
about making the description line-wrappable. The code is commented because
it wraps at a bad width, but in case I don't get it figured out soon, I do
not want to forget the command.
- 2010-07-13 06:09 mwedel
- [r13458] gtk-v2/glade/dialogs.glade: Fix for bug 3020531 - The Create Character
button does nothing. Trailing space in widget name resulted in code
not finding the widget and attaching callback to it.
MSW 2010-07-12
- 2010-07-13 01:48 kbulgrien
- [r13455] - Revert unexplained revert of r12191 at r13271. R12191 was a bug fix for
bug tracker ID 2850517. It should not be reverted without justification.
- 2010-06-19 15:36 ryo_saeba
- [r13415] Remove disabled GTK and X11 clients.
- 2010-05-21 02:49 cavesomething
- [r13280] Include theme files in the package script
- 2010-05-20 15:21 cavesomething
- [r13277] Use a better default value for map height on win32
- 2010-05-20 15:18 cavesomething
- [r13276] remove old-style icon and a compiled windows package I'd accidentally included.
- 2010-05-20 15:16 cavesomething
- [r13275] Merge some changes to the nsi file from the one from the 1.12 branch
- 2010-05-20 14:17 cavesomething
- [r13274] Merge the contents of win32Readme.txt into the Running.txt file
- 2010-05-20 13:40 cavesomething
- [r13273] Define sleep in a way that can be compilied for windows
- 2010-05-20 12:58 cavesomething
- [r13272] More explicit type definition in a struct to fix windows compilation
- 2010-05-20 03:42 cavesomething
- [r13271] Merge Revisions 11626 and 11627 from the 1.12 branch into trunk
- 2010-05-20 00:03 cavesomething
- [r13270] Remove .gladep files from those included in the windows package.
- 2010-05-19 18:55 cavesomething
- [r13269] Some support files for building windows packages
- 2010-05-18 06:58 mwedel
- [r13266] common/commands.c: Add code to process & store race_info and class_info
data. Still TODO is actually write code that will use this information
(new character creator)
MSW 2010-05-17
- 2010-05-16 06:41 mwedel
- [r13249] common/client.c: Fix connection logic which failed if system was using
ipv6 + ipv4 (and trying ipv6 first) - code was not properly re-setting
variables and trying the next protocol in the list. Also clean up some
formatting.
MSW 2010-05-15
- 2010-05-07 03:32 kbulgrien
- [r13143] - Add CONVERT_FILESPEC_TO_OS_FORMAT() everywhere the GTK-V2 client creates a
path so that on WIN32 platforms, the path will be converted to use backslash
delimiters.
- 2010-05-07 03:28 kbulgrien
- [r13142] - Create a replace_chars_with_string() function that does a find/replace on
a string. Specified character tokens in the buffer are replaced by strings.
- Create a CONVERT_FILESPEC_TO_OS_FORMAT(path) macro that uses this function
to provide a method for converting paths to WIN32 format when a client is
compiled for that platform. The macro does nothing on non-WIN32 platforms.
- 2010-05-05 03:23 kbulgrien
- [r13120] - Change function header comments to doxygen style and add empty comment
headers for functions that have none.
- 2010-05-02 21:57 kbulgrien
- [r13113] - Add Vendor tag so the official builds say something other than (none).
For now, use sourceforge.net/projects/crossfire as there is no other
mention of SourceForge in the .spec file.
- 2010-04-30 12:20 kbulgrien
- [r13048] - Lession: re-read carefully before commit. Fix problem with last check in.
- 2010-04-30 12:17 kbulgrien
- [r13047] - Remove convoluted logic from metaserver_load_cache().
- 2010-04-30 01:33 kbulgrien
- [r13044] - Completed fix initiated at commit 13020 (or fixed regression introduced at
that point). The "fix" was incomplete, and resulted in scrambling of the
cache file. Sorry folks.
- 2010-04-30 01:05 kbulgrien
- [r13043] - Add prototype for GTK-V2 client use.
- 2010-04-30 01:02 kbulgrien
- [r13042] - The GTK-V2 client now updates the player's ~/.crossfire/servers.cache file
whenever a connection with a server is successful.
- Remove an unused variable.
- 2010-04-30 00:46 kbulgrien
- [r13041] - Replace duplicated code with call to metaserver_connect_to().
- 2010-04-29 03:39 kbulgrien
- [r13022] - Factor out the server cache maintenance code out of the metaserver_select()
function used by older clients to make it is accessible to clients that use
a different mechanism for selecting a server to play on. The new function
is called metaserver_update_cache().
- 2010-04-29 01:40 kbulgrien
- [r13021] - Rewrite the ChangeLog and fix the commit comment for 13020. What was
originally written was not clear enough to explain the circumstances that
triggered the buggy behavior in metaserver_load_cache().
- 2010-04-29 00:50 kbulgrien
- [r13020] - Fixed a logic bug in the loader that reads player .crossfire/servers.cache
files. The loader wrongly ignored the last valid entry in a cache when it
contained an odd number of lines. I.e. if the servers.cache file had only
one valid two-line entry, and an extra blank line, the loader ignored the
the valid entry and it would not show up in the client. With this change,
it does show up.
- 2010-04-29 00:36 kbulgrien
- [r13019] - Add doxygen-style comment headers to all functions that do not already have
them, and as needed reformat existing headers.
- Add detail to the metaserver_load_cache() comment header.
- 2010-04-28 11:51 kbulgrien
- [r13016] - In init_connection(), fix tests for failure to properly check only for
-1 return values when calling socket(), fcntl(), connect(), and select().
- If fcntl() fails, do not try to immediately re-call it to set blocking
mode in init_connection(). Instead, just fail.
- 2010-04-28 06:57 kbulgrien
- [r13015] - In the case where HAVE_GETADDRINFO is available (not WIN32), a timeout is
now implemented when establishing a connection with a server. The timeout
is presently hard-coded at 30 seconds. Prior to this, if a connection
attempt failed, the client was observed to lock up hard for three minutes.
Half a minute is still pretty harsh, but a DNS lookup failure can take 30
seconds, so it may be wiser to wait at least as long before bailing out on
the attempt.
- 2010-04-27 04:04 kbulgrien
- [r12988] - Where LOG() is called with a string like "gtk-v2:*" or "<filename>:*", make
the string use double colons for consistency with common code and many
other files.
- 2010-04-27 03:50 kbulgrien
- [r12987] - Where LOG() is called with "gtk::*", change the label to "gtk-v2::*" as
these are carryovers from the gtk-v1 client sources. The convention is
established by LOG() messages in common that use the string "common::*".
- 2010-04-27 03:03 kbulgrien
- [r12986] - Re-ran `make proto` to catch all the new account login functions, and other
accumulated changes.
- 2010-04-27 03:01 kbulgrien
- [r12985] - Rename init_cache_data() to init_image_cache_data(). "cache" is not unique
enough. The init_cache_data() call immediately follows setup of the
servers_cache_file, and the two are completely unrelated. The name
init_cache_data() undoubtedly persisted from ../../gtk/gx11.c.
- 2010-04-27 02:54 kbulgrien
- [r12984] - Rework gtk-v2 Makefile.am to fix `make proto`. Factor the CFLAGS out of
INCLUDES and put them in AM_CFLAGS instead to take PTHREAD_CFLAGS out of
INCLUDES. On some systems, PTHREAD_CFLAGS resolves to -pthread or other
similar options. Since INCLUDES is on the cproto command-line -pthread gets
interpreted as cproto command flags. That is bad as it is, but doubly so
since cproto bombs out with a complaint that "h" is not a valid option.
This factoring seems safe to do because ../../macros/ax_pthread.m4 does not
contain any references to -I options.
- 2010-04-26 06:01 mwedel
- [r12959] Update version numbers in configure, client-spec.
common/client.c: Send server deprecated 'newmpcmd 1' setup option - this lets
the client work properly on old servers.
MSW 2010-04-25
- 2010-04-25 07:07 mwedel
- [r12949] Add missing code for account login to display character icons (note server
code won't be checked in until after 1.50 release). Add missing function
declarations to external.h to remove compiler warnings. Update common/shared
to latest version.
common/commands.c: Add support for new attribute.
common/external.h: Add missing declarations.
gtk-v2/src/account.c: Update update_character_choose() to display icon.
MSW 2010-04-24
- 2010-04-24 20:54 kbulgrien
- [r12947] - Remove the Skills/Experience tab from the core stats notebook in
gtk-v2.glade as the skills window is better to use. Tested at 1400x1050,
640x480. At 640x480, the inventory/message panel is all the way to the
left, but the hpane grab bar is visible. At default client size with no
gdefaults2 or gtk-v2.pos, the map is to small to work properly, (some map
tiles stay black) but, if the corestats are pushed down or hidden at the
bottom of the screen it is playable.
- 2010-04-24 19:44 cavesomething
- [r12946] Fix the handling of the standalone metaserver code, add some more information in stderr.
- 2010-04-24 15:39 cavesomething
- [r12944] Put the name of the glade file into the version string sent by the client.
- 2010-04-24 06:10 kbulgrien
- [r12943] - Oh, ok, remove disfunctional scrollbars from ALL the layouts...
- 2010-04-24 06:00 kbulgrien
- [r12942] - Remove the disfunctional scrollbars from around the map in most gtk-v2
.glade files. The layout acts better under different circumstances when
they aren't there. After all these years they've never been used, so no
point in keeping them around as they just take up space.
- 2010-04-24 05:49 kbulgrien
- [r12941] - Remove the disfunctional scrollbars from around the map in chthonic.glade.
The layout acts better under different circumstances if they aren't there.
- 2010-04-22 07:14 kbulgrien
- [r12935] - Extend the client theme handling by adding support for player-accessible
style file support. load_theme() is modified to always look in the player
${HOME}/.crossfire folder for a gtkrc file even when the client theme is
None. This file can serve as a player's private theme file, or could be
used just to tweak certain aspects of the client in the same way any other
.gtkrc file would. After looking for the gtkrc file, load_theme() also now
looks for a <layout>.gtkrc file. I.e. If sixforty.glade is in use, a
corresponding ${HOME}/sixforty.gtkrc is processed to make it possible to
create layout-specific adjustments. Both files have the same capabilities
as a client theme file, and, in cases where a player might not have write
access to the client theme folder, this modification allows the player to
use themes by putting them in the .crossfire folder, albeit under fixed
names. This also sets up a mechanism by which the client could one day
actually actively maintain (write/update) per-user GTK rc files, but the
current goal is primarily to make it easier to customize the client's
presentation without having to put a bunch of highly customized files in
the distribution. An in-client-selected theme is loaded last, so as to
have a higher priority than either the gtkrc or layout-specific rc files.
- 2010-04-20 03:16 kbulgrien
- [r12933] - Remove the skills/experience table from these layout as a result of the new
skills window. A significant design point for both of these layouts was to
try to remove the vertical space constraints that the skills & experience
information placed on the layout when it was used on smaller displays.
- Update the AUTHORS notes for both of these layouts.
- 2010-04-19 04:02 kbulgrien
- [r12932] - Remove the skills/experience table from the chthonic layout as a result of
the new skills window. At least one user desires this change also.
- Give meaningful names to various chthonic widgets that had generic names.
- Add a note to the AUTHORS file that notes a minor save/restore issue with
the protections/core statistics notebook area in the lower right corner
of the chthonic layout. It seems as though nesting hpaned or vpaned within
each other may be part of why some layouts have restore issues that need to
be dealt with.
- 2010-04-18 21:02 kbulgrien
- [r12931] - Fix sixforty.glade issue with spinbutton_count to avoid run-time message
regarding non-zero page size.
- Remove the sixforty.glade table_skills_exp and enclosing structures now that
the skills window is available.
- Add note to AUTHORS that sixforty.glade has save/restore window position
issues at this time. This issue has been present prior to this, so until it
is fixed, just document it as a known issue so it doesn't get forgotten
(again). Also do not mention a map dimension less than allowed (8 vs.
minimum 11), and add mention of use of map and icon scale to improve
usability.
- 2010-04-18 00:24 kbulgrien
- [r12919] - Update the description of oroboros.glade. Removed the skills and experience
table per creation of the new skills window. This allowed the four tab
notebook in the top right to change to 2 tabs to improve accessibility of
vital statistics. This redesign also seems to improve the sizability of the
client, possibly making it easier to shrink below the default 1024x768
dimensions and opening the door to improvements in other layouts.
- 2010-04-17 17:17 kbulgrien
- [r12918] - A complete rework of the client configuration dialog to make it take up less
vertical space. Netbook users with a screen height of 600 pixels could not
access all items in the dialog. The dialog was also pretty ugly and the
controls were not organized as well as they could be. The overall design of
the dialog now matches the design principles used for the account dialogs.
- Fix up even more confusion in the ChangeLog.
- 2010-04-17 17:15 kbulgrien
- [r12917] - Allow the table_skills_exp to be missing from a main window .glade layout
without generating stderr spew like (crossfire-client-gtk2:*): Gtk-CRITICAL
**: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed. The new
skills window means this table is optional, so there is no point to make
noise or do extra work if it is absent from the window definition.
- Fix up some confusion in the ChangeLog.
- 2010-04-17 16:36 kbulgrien
- [r12916] - Fix broken build (perhaps only on older gtk/libglade versions?). Replaced
gtk_widget_get_visible() with GTK_WIDGET_VISIBLE().
- 2010-04-17 15:54 kbulgrien
- [r12915] - Yet another attempt to fix builds after disable of x11 and gtk-v1 clients.
- 2010-04-17 15:45 kbulgrien
- [r12914] - Fix up another error. Its not fatal, but generates error messages.
- 2010-04-17 15:20 kbulgrien
- [r12913] - Fix prior mistake.
- 2010-04-17 15:03 kbulgrien
- [r12912] - Second attempt to fix builds after disable of x11 and gtk-v1 clients.
- 2010-04-17 14:48 kbulgrien
- [r12911] - First attempt at disabling x11 and gtk-v1 clients.
- 2010-04-17 02:43 cavesomething
- [r12903] If the player has left the skill window open whilst playing, update the exp/level values.
- 2010-04-16 00:29 kbulgrien
- [r12893] - Dress up the dialogs related to the account code. A few items are moved to
make better use of space, but this mostly adds containers, attributes,
padding, etc. that improves the dialog aesthetics. Orientation properties
are removed to reduce libglade spew when running on older versions. They
aren't needed anyway. The other major change is that now all widgets have
logical names.
- 2010-04-15 11:42 cavesomething
- [r12889] Add a file that was missed in the previous commit
- 2010-04-15 11:29 cavesomething
- [r12888] Add skills window
- 2010-04-12 06:58 mwedel
- [r12884] Fix for bug 1845694 - improper inventory/map redraws in cache mode.
gtk-v2/src/image.c: Add a variable to track if we have gotten new images.
gtk-v2/src/image.h: Add declaration for above variable.
gtk-v2/src/main.c: If we have new images, force full map and inventory
redraws in main loop.
MSW 2010-04-11
- 2010-04-12 06:35 mwedel
- [r12883] gtk-v2/src/account.c: Clear new account names/status when activating
window. Otherwise, odd to have info filled in from account
created on previous server.
MSW 2010-04-11
- 2010-04-12 06:14 mwedel
- [r12881] common/client.c: Mostly whitespace changes. Make minor improvment to
-download_all_faces to request 1 set more than being worked on.
common/image.c: Whitespace change - fix formatting.
common/newsocket.c: Whitespace change - fix formatting.
gtk-v2/src/image.c: Fix for bug 2938906 - don't free pixmap data when
using cache mode.
gtk-v2/src/info.c: Remove useless message about not fine (sic) color.
MSW 2010-04-11
- 2010-04-10 06:30 mwedel
- [r12880] gtk-v2/src/info.c: Fix problem with crashes on some systems -
initialization was outside of for loop which set the variable. Should
fix bug 2984398.
MSW 2010-04-09
- 2010-04-10 04:22 mwedel
- [r12879] Add error message and quit client if user has out of date dialog.glade file
installed. Make error_dialog non static so account.c can use this,
add check in account.c to see if we found required window, and change
order if initialization of account windows to do login window first (as
that is where the check is).
Files changed: gtk-v2/src/account.c gtk-v2/src/main.c gtk-v2/src/gtk2proto.h
MSW 2010-04-09
- 2010-04-09 09:27 kbulgrien
- [r12878] - Follow Ragnor's suggestion. since info.h itself needs newclient.h, go with
putting the newclient.h include there instead of in main.h ahead of the
info.h include.
- 2010-04-09 09:01 kbulgrien
- [r12877] - Fix broken compile.
- 2010-04-09 07:13 mwedel
- [r12876] Update revision for shared.
MSW 2010-04-08
- 2010-04-09 07:04 mwedel
- [r12875] Add account based support to gtk2 client & common code. Remove support
for gtk1 and X11 clients
---
configure.ac: Remove check for gtk1, cfgtk2 option, X11 libraries, and
checks related to those clients.
common/client.c: Add tracking of loginmethod. Update setup to send
loginmethod, update dispatch table for new commands. Add
close_server_connection() so duplicate code does not need to be
repeated. Don't send addme command when using new login method.
common/client.h: Add globals for motd, news, rules, loginmethods,
INFO_... types.
common/commands.c: Add processing of requestinfo for motd, rules, news.
Add handling of loginmethod setup. Add call to hde_all_login_windows()
when play starts. Add FailureCmd(), AccountPlayersCmd() to handle
protocol commands.
common/init.c: Free motd/news/rules data when changing servers.
common/metaserver.c: Move meta_sort() to this file, don't make it
static - removes compiler warnings.
common/metaserver.h: Remove static declaration of meta_sort, and
function prototype for it.
common/p_cmd.c: Update do_disconnect() to use close_server_connection()
common/proto.h: Updated with new functions.
gtk-v2/glade/dialogs.glade: Add new windows for account login code.
gtk-v2/src/Makefile.am: Add account.c file.
gtk-v2/src/gtk2proto.h: Update with new functions.
gtk-v2/src/account.c: New file - does account logic.
gtk-v2/src/info.c: Change order of includes. Move some declarations
from this file to info.h. Generalize some of the handling so
other functions can use textbuffer but take advantage of the markup
processing provided in this file
gtk-v2/src/info.h: New file - declarations from info.c moved here.
gtk-v2/src/keys.c: Change order if include of main.h. Update to use
close_server_connection()
gtk-v2/src/main.c: Change order of includes. Add sample use of
custom glib log handler. Update to try and use loginmethod 1
gtk-v2/src/main.h: Add extern for csocket_fd so a bunch of
files don't have to declare it itself.
gtk-v2/src/map.c: Change ordering of includes.
gtk-v2/src/menubar.c: Update to sue close_server_connection()
gtk-v2/src/metaserver.c: change order of includes. Call
hide_all_login_windows() when bringing up metaserver window.
gtk-v2/src/opengl.c: Change order of includes.
gtk-v2/src/pickup.c: Change order of includes.
gtk-v2/src/spells.c: Change order of include of gtk2proto.h
----
MSW 2010-04-08
- 2010-04-04 21:27 kbulgrien
- [r12862] - Convert tooltip_text fields to tooltip fields as mwedel reports that newer
versions of glade3 have issues with it (though the version I have does not).
- Remove has_tooltip settings not needed by the tooltip fields.
- Make sure all the tooltips have a Translatable property.
- 2010-04-04 03:09 kbulgrien
- [r12807] - LOG message for spellmon FALSE is changed from WARNING to INFO. It's not
clear that a server's failure to support spellmon is really that bad. It
mostly seems to mean that spell information dialog will not be populated.
Also with the addition of spellmon 2, it is normal for older servers to not
support it, so that does not seem to warrant the error being a warning
anymore.
- 2010-04-04 02:47 kbulgrien
- [r12806] - Add debugged trunk server code for spellmon 2 request to handle the extended
data in AddspellCmd(). The extended information is currently not exposed
to the user interface, but this commit makes it available.
- The original idea to look at data on the fly instead of tracking spellmon
command response did not work out. It turns out to be very easy to
track server response anyway, so there is not much point in trying to
figure things out dynamically.
- These changes have been tested on old and new servers - including logging in
and out of each on the same client session. The data in the Spell struct
has been confirmed to hold data (by testing with spells found in the
test/spell_requirements map).
- 2010-04-03 05:13 kbulgrien
- [r12794] - Let's try that again. "silver" isn't a recognized color name and results
in a different error at server startup. The HTML RGB code for silver is
too dark anyway.
- 2010-04-03 04:53 kbulgrien
- [r12793] - Fix [ INFO ] (spells.c::spell_get_styles) Unable to find style for
spell_normal.
- Remove some end-of-line whitespace.
- 2010-04-02 05:05 kbulgrien
- [r12780] - Reformat of some comments to ~ 80 cols to reduce vertical text spacing.
Some tab-->space conversion done in the reformatted comments.
- Fix some spelling/grammar issues in comments, and improve readability in
various places.
- Fill out the doxygen comments to the Spell structure by adding information
found in the server documentation of the protocol.
- Add usage and requirements members to the Spell structure that will support
the spellmon 2 extended information.
- Convert some variable comments to doxygen style.
- Add a TODO at the spot where spellmon 2 will be requested when the code is
ready.
- Update SetupCmd() to get ready to handle spellmon 2. Non-functional changes
are comment reformatting/rewriting, and addition of spellmon 2 comments.
Code change to separate darkness and spellmon done, but presently no actual
functional change occurs except there is a minor duplication of an identical
LOG() call.
- Update AddspellCmd() to get ready to handle spellmon 2. Non-functional
changes are comment reformatting/rewriting/addition. Stubs are added
to initialize the spellmon 2 data fields in the Spell structure.
- 2010-03-31 03:55 kbulgrien
- [r12773] - Update the link to the server/trunk/include/shared folder to revision 12770
to pull in a new revision of shared/newclient.h for the purpose of updating
the message type/subtype for magic ears and magic mouths.
- Regenerate msgtypes.h to capture the changes from the updated
shared/newclient.h file.
- Rename msg_dialog_magic_mouth to msg_dialog_magic_ear in the theme files to
more accurately identify what is being themed. Magic mouths are signs, not
dialogs. It is the magic ears that are dialogs. This change is driven by
an update in common/shared/newclient.h and common/msg_types.h.
- 2010-03-31 03:46 kbulgrien
- [r12772] - Update the link to the server/trunk/include/shared folder to revision 12770
to pull in a new revision of newclient.h for the purpose of updating the
message type/subtype for magic ears and magic mouths.
- 2010-03-31 03:08 kbulgrien
- [r12769] - Fix msgctrl_defaults[] to list magic ears as a subtype but not magic mouths.
Magic mouths are signs, so add that to the sign message descriptive text.
This results in a change to the message control dialog.
- 2010-03-28 02:04 cavesomething
- [r12742] Use the map2 type defines for parsing, update the version of newclient.h that is drawn from the server.
- 2010-03-18 16:47 cavesomething
- [r12660] Remove the use of the setup flag sexp - The server doesn't
respond to it any more and the clients don't use it.
- 2010-01-20 08:07 mwedel
- [r12356] Protocol cleanup - remove code that supports protocol commands that are out
of date. Also change setup to only request current options.
MSW 2010-01-18
---
common/client.c: Remove handling of obsolete protocol commands. Clean up
setup logic - do it all in one setup command instead of several,
don't send options to server which are now standard.
common/client.h: remove extern command_inscribe declaration.
common/commands.c: Fix up a lot of setup logic - remove fallbacks to
protocol commands that predate the setup replacements. Remove
handling of settings which are now standard.
common/init.c: Remove SendSetFaceMode()
common/item.c: Presume all servers support inscribe protocol command.
gtk/gx11.c: Presume all servers support inscribe protocol command.
gtk/sound.c: remove SoundCmd()
gtk/win32/porting.c: Remove SoundCmd()
gtk-v2/src/sound.c: Remove SoundCmd()
---
- 2009-12-08 07:36 mwedel
- [r12303] gtk-v2/src/info.c: off duplicate supression of command responses by default.
Otherwise, things like statistics output ends up in what effectively
looks like random order, which isn't good when you have a table.
MSW 2009-12-07
- 2009-10-11 10:56 anmaster
- [r12195] Make svnversion give the right result for out of tree builds of the client (already works for server).
- 2009-10-11 10:50 anmaster
- [r12194] Make out-of-source-tree builds work by making common/msgtypes.pl to look in the right place.
- 2009-10-11 10:43 anmaster
- [r12193] // comments is not C89. Change to /**/ to make GCC shut up warning.
- 2009-09-19 21:58 akirschbaum
- [r12192] Fix prototype declaration.
- 2009-09-15 11:46 kbulgrien
- [r12191] - Add a new m4 macro ax_pthread.m4 to (hopefully) better suport detection of
pthreads. See: SF tracker ID 2850517 for info: crossfire-client-1.12.0
build failure under Slackware 12.2 - ID: 2850517. Note that ax_thread.m4 is
itself licensed under GPLv3. Note a possibility for license confusion, but
also note that a review of various projects shows a fairly common precedent
of allowing mixed licenses in the m4 macro directory - not all explicitly
documenting the fact that different licenses are used. Other projects
maintain a file identifying copyright and licensing provisions for various
parts of the project. Whereas it is very likely other sources will be
modified, it is highly unlikely anyone will expect to modify the .m4 macros
in this project.
- Replace AC_CHECK_LIB(pthread, pthread_create) method of detecting pthreads
with AX_PTHREAD()i
- Modify the configure.ac file to create a configure script that reports if
the x11 client is built. There is no reason to avoid this since it reports
other clients are or are not built.
- Modify the configure script notice "Will build * renderer" to "With *
renderer" since it looks silly in the case where no clients are built that
use the renderers.
- Modify common, x11, gtk, and gtk-v2 Makefile.am files to use PTHREAD_CFLAGS
and PTHREAD_LIBS variables as advised by the new macros/ax_pthread.m4 file.
It is advised that both CFLAGS and LIBS variables be used (even though on
some systems both are not needed).
- 2009-09-07 18:55 kbulgrien
- [r12189] - Improve comments for load_image() in common/image.c.
- 2009-09-06 04:17 kbulgrien
- [r12188] - Convert function header comments to doxygen style so they show up in the
generated documentation.
- 2009-09-05 04:41 kbulgrien
- [r12187] - Rework un-deux.glade layout to support SVN revision 11699 changes to GTK-V2
client code. HP/SP/Grace/Food/Exp label is split up into four labels each,
and the encumbrance data is also split.
- 2009-09-05 04:29 kbulgrien
- [r12186] - Continued fixing of hp/sp/food/grace/encumbrance in the gtk-v1 themed
glade files.
- 2009-09-05 03:01 kbulgrien
- [r12185] - This is a resumption of the rework of all .glade layouts to support SVN
revision 11699 changes to GTK-V2 client code. HP/SP/Grace/Food/Exp label is
split up into four labels each, and the encumbrance data is also split.
This change fixes all zeroes reported by knotwork/mark metson. The other
layouts in the V1 theme need similar updates.
- 2009-09-04 02:40 kbulgrien
- [r12184] - ChangeLog for prior commit.
- 2009-09-04 02:14 kbulgrien
- [r12183] - The msgctrl_window now has more padding around the title label to improve
aesthetics.
- The header of the message control dialog is modified to make room for two
spinbutton controls: msgctrl_spinbutton_count and msgctrl_spinbutton_timer.
The spinbuttons allow user access to the output count and time controls
previously hardcoded. The controls have tooltips that explain what they are
for. Both spinbuttons allow pasting new values, clicking the value up/down,
or using PgUp/PgDn to adjust the values in one second increments (8 client
ticks).
- The tooltips for all of the message control dialog column labels are
reworked.
- Padding is added to numerous message control dialog widgets to improve the
overall appearance of the dialog.
- Tool tips have been added to all the message control dialog buttons to give
some indication of what they do.
- Add output count and timer spinbutton control capability to the new message
control dialog by adding to info.c a buffer_parameter_t struct typedef and
buffer_control initialize structure that contains space for the pointer,
state variable, and a default value. The message_control struct is
initialized with the #defines that controlled the system previously.
- Renamed checkbox_t to boolean_widget_t since it doesn't really matter what
kind of control is used as we only care whether it supports some kind of
on/off capability.
- msgctrl_init() initializes the state and ptr members of the buffer_control
structure. Comments are also added to the function header.
- update_msgctrl_configuration() now updates the count and timer spinbuttons.
- save_msgctrl_configuration() has improved comments, and also reads the
dialog to assure saving of the currently displayed settings and not just the
last applied settings. The save file format is modified to add the
spinbutton values. The format of the file is slightly changed to include a
record type so that it is easier to validate the file format.
- load_msgctrl_configuration() is heavily modified to improve the savefile
error detection, and to support the new file format. The load process is a
bit more strict about the file being in the right format. Saved values are
only read from records that are in the correct format.
- Spinbutton initialization is added to default_msgctrl_configuration().
- The comment header for read_msgctrl_configuration() is improved and
spinbutton support added.
- Comment improvements are made for all the button handlers.
- on_msgctrl_button_close_clicked() automatically applies the current values
displayed on the control.
- 2009-09-02 11:43 kbulgrien
- [r12182] - Support autoload of Message Control dialog settings by reading the
configuration file in msgctrl_init().
- Move msgctrl_init() later in client start up so that autoload of Message
Control dialog settings does not segfault.
- 2009-09-02 03:22 kbulgrien
- [r12181] - The Message Control dialog Load button is now fully functional.
- Changed some of the struct definitions to be compatible with use to allocate
a buffer in load_msgctrl_configuration() by making them typedefs and then by
declaring the msgctrl_widgets[] separately.
- Fix the update_msgctrl_configuration() truncated header comment.
- save_msgctrl_configuration() client message format changed to report the
save file path/filename.
- Add load_msgctrl_configuration() data parsing using strtok() and only report
settings were loaded if at least some valid data records were processed. If
any data records are not in the expected format, the file is reported as
corrupt.
- Add comments to local variables in several message control system functions.
- Remove various instances of end-of-line whitespace.
- 2009-09-01 05:04 kbulgrien
- [r12180] - The Save and Load buttons are now enabled. The Save button is fully
functional, but the Load button only opens the save file and scans it
without actually loading the data. The Load data parsing is not yet
implemented. For now, it counts the number of non-comment and non-blank
lines and outputs a message if it does not match the number of message types
the system supports.
- msgctrl_init() no longer de-sensitizes the Save and Load buttons.
- save_msgctrl_configuration() now supports saving the message control
configuration to ./crossfire/msgs.
- load_msgctrl_configuration() does read the ./crossfire/msgs file, but does
not update the client message control configuration yet (though it does
reset the control to match the msgctrl_widgets[] state variables).
- on_msgctrl_button_load_clicked() now calls the load_msgctrl_configuration()
function.
- 2009-08-31 04:34 kbulgrien
- [r12176] - Go ahead and make change to attribute messages default to go to both so that
level ups show up in critical. Meflin concurs.
- 2009-08-30 21:40 kbulgrien
- [r12175] - Add some space between the Message Control dialog buttons (in the HButtonBox
setup) so they are not crammed completely together when the dialog is small.
- 2009-08-30 21:34 kbulgrien
- [r12174] - Add Defaults and Load buttons to Message Control dialog in dialogs.glade.
- Update the gtk2proto.h file per addition of Defaults button support in the
Message Control dialog.
- Rename msgctrl_data[] to msgctrl_defaults[] to better indicate current
function and make all values const. This data is no longer modified at
run-time.
- In msgctrl_init(), connect the Load and Defaults buttons, but in the case
of the Load button, desensitize it until the functionality is present.
- Replace widget and state variable initialization code in msgctrl_init() with
a call to a new default_msgctrl_configuration().
- Add update_msgctrl_configuration() to update the the widgets on the Message
Control dialog with the values in the msgctrl_widgets[] state variables.
- Add default_msgctrl_configuration() in which msgctrl_widgets[] state is
initialized. It loads all msgctrl_widgets[] state variables with values
stored in msgctrl_defaults[]. This method runs when the Defaults button is
pressed and when msgctrl_init() runs. update_msgctrl_configuration() is
then invoked to perform an implicit apply when the client defaults are
reloaded.
- Added on_msgctrl_button_load_clicked() to support the new Load button.
- Added on_msgctrl_button_defaults_clicked() to support the Defaults button.
- 2009-08-30 19:18 kbulgrien
- [r12173] - Rework the data structures for the Message Control dialog to prepare for
supporting return to default. msgctrl_data[] is now only used to hold the
defaults. Also convert the buffer empty code to use the flush function to
centralize that operation in one place.
- 2009-08-30 04:12 kbulgrien
- [r12172] - Bug fix for output-count sometimes outputting duplicate messages when a lot
of messages pass through the system with single occurances that never
accumulate duplicates.
- 2009-08-30 03:53 kbulgrien
- [r12171] - Fix a missed rename in draw_ext_info().
- Add braces to avoid wasted debug time due to forgetting to put them in.
- 2009-08-29 22:25 kbulgrien
- [r12170] - Some aesthetics and practical improvements to the Message Control dialog
including using the names of the message panels exactly as they appear
in all the client layouts.
- 2009-08-29 22:07 kbulgrien
- [r12169] - Until the layouts are changed, refer the the secondary message panel as
it is labelled in the client layout - "Critical".
- 2009-08-29 21:47 kbulgrien
- [r12168] - Add the new Message Control menu item to the Client menu.
- 2009-08-29 21:24 kbulgrien
- [r12167] - Begin referring to the in-client output-count and message routing as the
"Message Control System", and add support for in-client, player
configuration via a new dialog to replace previously hard-coded settings.
- Change some previously selected data types to GTK data types to make
interfacing with the UI require fewer casts.
- Instead of continuing to use the info_ prefix for this functionality, start
using a msgctrl_ prefix.
- Added new functions to support the Message Control dialog: msgctrl_init()
which does the dialog setup on client start;
save_msgctrl_configuration(), and load_msgctrl_configuration() that are
presently stubs, but are intended to be used to allow the message control
configuration to be saved and restored. read_msgctrl_configuration()
obtains the state of the Message Control dialog checkboxes, and dynamically,
at run-time, allows the player to reconfigure which message types undergo
duplicate suppression, and to which message panels they are routed to.
on_msgctrl_button_save_clicked(), on_msgctrl_button_apply_clicked(), and
on_msgctrl_button_close_clicked() support the dialog buttons (though
presently the save button is disabled as saving and loading is not yet
supported). on_msgctrl_activate() displays the new dialog when the Client |
Message Control menu option is selected.
- All new data structures and functions are heavily commented in the doxygen
style.
- Added a call to msgctrl_init() in main() during client startup to construct
the checkbox table and preset all the checkboxes to match the hardcoded
defaults in info.c.
- Link the new Message Control dialog into the client menu.
- 2009-08-29 21:00 kbulgrien
- [r12166] - Update to include prototypes for the new Message Control system in-client
configuration support.
- 2009-08-29 20:45 kbulgrien
- [r12165] - Add a new Message Control dialog that is for configuring the client-side
output-count and message routing. The table only has static titles set.
The client code will construct the rest of the dialog widgets needed to
configure the system.
- 2009-08-29 20:40 kbulgrien
- [r12164] - Dress up the About dialog by adding an HSeparator and by replacing an HBox
with an HButtonBox. Padding adjusted here and there, and now widgets all
have meaningful names.
- 2009-08-29 20:32 kbulgrien
- [r12163] - Change up some padding on the config dialog for appearance. Rename widgets
to meaningful names.
- 2009-08-29 20:06 kbulgrien
- [r12162] - Make the spell dialog look a bit nicer by adding an HSeparator and replacing
an HBox with an HButtonBox. Some padding also adjusted. Renamed widgets
with meaningful names.
- 2009-08-29 19:54 kbulgrien
- [r12161] - Dress up the keybinding dialog by adding an HSeparator, by replacing an HBox
with an HButtonBox, and by adjusting some padding here and there.
- 2009-08-29 19:43 kbulgrien
- [r12160] - Dress up the metaserver dialog by adding a couple of horizontal separator
bars and by replacing an HBox with a HButtonBox. Rename widget names that
were "typenumber" to "dialog_type_description".
- 2009-08-26 03:13 kbulgrien
- [r12156] - Set up an info_control[] array of structs, one element for each message
MSG_TYPE_* in common/shared/newclient.h. This array contains enable/disable
flags that determine whether or not a message shows up in any of the message
panels (and it is possible to route message types to both panels). The
array also determines which of the message types are processed for duplicate
message reduction. There are still a few conditions that override the
info_control[] settings. Presently the array is filled with hard-coded
defaults, but they will ultimately become defaults that can be over-ridden
by an in-client control panel and, eventually, by settings saved to a
configuration file. message_callback() and draw_ext_info() are now modified
to use info_control[] instead of the hard-coded settings they used
previously.
- 2009-08-24 03:17 kbulgrien
- [r12155] - Adjust the client-side output-count implementation to always output a
message the first time it occurs when it first enters the buffering system.
After the initial display, the output-count and sync settings determine
display time. With the new scheme, inactive buffers are also aged and
discarded by age so that the content can be re-used if the message recurs
before it is pushed out of the buffer. The "initial" display of a message
is not done if the message buffer is re-activated after having been
inactivated by output-count or sync. Meflin also pointed out the trailing
" (Nx)" differed from the original server implementation, so now the count
is prefixed on the message as "N times ". This changed the size of the
count buffer, and affected the output buffering method - making it more
logical to avoid allocating the count buffer in each message buffer, but
rather only one time in the info_buffer_flush() function. This
implementation is a bit heavier since buffers are now processed more when
they are inactive, but it does get unique messages to the player more
quickly even if they happen to pass through the duplicate suppression
system.
- 2009-08-21 01:22 kbulgrien
- [r12154] - More doxygen @file comment conversions, this time for the gtk v1 client.
- 2009-08-20 23:31 kbulgrien
- [r12153] - Fix some rcsid variable references renamed with the prior commit.
- 2009-08-20 11:56 kbulgrien
- [r12152] - Add doxygen @file and in the case of common.c, add a header not present
that is commonly used in all other source files.
- 2009-08-20 11:47 kbulgrien
- [r12151] - Narrow in on more reasonable defaults for duplicate message suppression.
- 2009-08-20 03:40 kbulgrien
- [r12150] - Exempt chats/tells from duplicate message suppression (until a proper
configuration is available.
- 2009-08-20 02:11 kbulgrien
- [r12149] - Convert header comments, if any, to doxygen @file comments. Add stubs just
to encourage someone to put something there later if no comment existed.
- 2009-08-19 04:05 kbulgrien
- [r12148] - Convert/add file and function header comments in doxygen format.
- Fix spelling.
- 2009-08-19 03:32 kbulgrien
- [r12147] - Adjust the doxygen defgroup names for map and spell command function groups.
- Fix spelling.
- 2009-08-19 03:23 kbulgrien
- [r12146] - Convert file header and function header comments to doxygen format.
Transfer some information in the file header to the function headers.
- Convert grouping comments to use doxygen @defgroup.
- 2009-08-19 03:20 kbulgrien
- [r12145] - Change the doxygen grouping construct to use @defgroup.
- Fix spelling.
- 2009-08-18 03:54 kbulgrien
- [r12144] - Some doxygen fixup and comment errors corrected from the output-count/sync
implementation just committed.
- 2009-08-18 03:28 kbulgrien
- [r12143] Implement a client-side replacement for the recently removed output-count and
output-sync commands. The client implementation matches the basic operation
of the server feature. Output-count determines the highest number of messages
that can to coalesce into one. The output-sync determines the maximum amount
of time a message stays in a buffer until it is displayed. The present code
has output-count hardcoded to 16 (info.c: MESSAGE_COUNT_MAX) and output-sync
to 16 client ticks, or about 2 seconds (info.c: MESSAGE_AGE_MAX). Messages
ARE NOT considered for duplicate suppression if: define MESSAGE_COUNT_MAX <=
1; the message is sourced from client code; the hinted color of the message is
NDI_UNIQUE; the message length is greater than 56 characters. Messages are
displayed if either output-count or output-sync limits are reached. Either or
both client command configuration and GUI configuration is planned. Probably
GUI configuration will be implemented with an ability to configure message
routing as well.
- 2009-08-10 01:29 kbulgrien
- [r12138] - Fix an incomplete rename of ratio_pickup_off1 to ratio_pickup_off in the
pickup menu. This is a partial fix of the recent breakage in the pickup
menu.
- 2009-07-28 06:24 mwedel
- [r12123] common/metaserver.c: Fix bug 2806906- gcfclient hangs on exit when offline.
Limit number of attempts to get metaserver2 data - was trying
perpetually before.
MSW 2009-07-27
- 2009-07-14 06:50 mwedel
- [r12063] gtk-v2/src/keys.c: Always extract spinbutton count and send it to server
when doing commands - fixes 'invoke dimension door' spacing issue.
MSW 2009-07-13
- 2009-05-25 22:28 kbulgrien
- [r11723] - GTK-V2 sixforty layout rework that started out as a general fix for the new
stat.c and pickup.c code, but became a general improvement effort. The
layout still has some issues as saving windows position seems unreliable -
possibly due to a need for constraining containers (viewport?) in the vpaned
widgets. To debug, experimentation with scrolled windows can show when
widgets might be have a size that subverts sizing. The default layout with
no sixforty.pos is sane.
- The stats panel is changed the most with scroll bars added so the wide stats
can be viewed in a small client.
- Both message panels are not in a notebook anymore to support recent chat,
tell, say changes.
- 2009-05-25 13:59 kbulgrien
- [r11718] - Fix an omitted change in the menubar edits made prior to support changes in
pickup.c to restore functionality and remove a warning during client start.
- 2009-05-24 03:30 kbulgrien
- [r11716] - GTK-V2 lobotomy layout has undergone a significant dress-up of the layout
and general reduction of various container widgets that are not necessary
for one reason or another. An issue with chat panels was discovered and
fixed. Under some circumstances, the vertical scroll bar would disappear
due to the horizontal scroll bar policy being set to never. The policy is
now set to automatic to prevent the issue. Unused menu bar widgets are
removed, and the menu widgets names are made more consistent.
- GTK-V2 menubar widgets are renamed to remove numeric suffixes & improve
uniformity.
- All GTK-V2 .glade files have had their menubars replaced with the new one
developed for lobotomy.glade to correspond with the changes in menubar.c and
pickup.c.
- 2009-05-24 01:02 kbulgrien
- [r11715] - This update supports recent client code changes. The layout is basically
the same as before the the update but viewports are added in a number of
places to improve the aesthetics of the UI. The stat bar numeric data has
been moved to the left of the bars.
- 2009-05-23 04:30 kbulgrien
- [r11705] - Update lobotomy, caelestis, and chthonic notes to mention the swapping of
critical and normal message panel positions due to chat, tell, and say
message routing to the critical panel.
- 2009-05-23 04:26 kbulgrien
- [r11704] - This update supports recent client code changes to widget count and names.
- The stat bar display is moderately reorganized to allow very long experience
data to be covered by the neighboring hpane panel as needed.
- The critical and normal message panels have swapped positions due to recent
use of the critical panel for chat, tell, and say messages (placed nearer
the command entry control).
- 2009-05-23 03:59 kbulgrien
- [r11703] - This update includes both stylistic changes to lobotomy.glade and updates to
support recent client code changes. Though the lobotomy layout was unique
in certain respects, the notorious skills and stats carry-overs from the
original gtk-v2 layout were ugly. This commit introduces statistic panels
that are completely unique. The skills and protections areas still take up
the bulk of the bottom row, but they are designed to better avoid the
overlap that so easily occurs in gtk-v2. A stats cluster in the bottom
right corner explores a new method of organizing all character stats and any
related stat bars in a small area, while tending to avoid the width problems
that can so easily crop up with the stat bar numeric data. Another notable
change is that all notebooks except the map/magic map notebook are gone.
- The AUTHORS file is updated to describe the changes above.
- 2009-05-23 02:16 kbulgrien
- [r11702] - Fix the character information panel by converting a single column table to
a vbox. Glade3 Designer displays the table as a three column table when
it is opened... even though it was displayed correctly when saved. There
must be a bug in the Designer.
- Various widgets that do not interact with the client code are given more
creative names.
- 2009-05-22 04:00 kbulgrien
- [r11701] - The prior commit accidentally omitted the gtk-v2.glade file changes even
though the commit comment mentioned it. The gtk-v2.glade changes described
are hereby committed.
- 2009-05-22 03:58 kbulgrien
- [r11700] - This is the beginning of the rework of all .glade layouts to support SVN
revision 11699 changes to GTK-V2 client code.
- All of the files are changed using Glade3 Designer, so are about half their
former size. The files target Glade 2.12 and do not contain deprecations or
version conflicts.
- The HP/SP/Grace/Food/Exp label is split up into four labels each, and the
encumbrance data is also split. Though gtk-v2.glade has been changed
subtly, the data is still in the same relative location as the original
layout. The caelestis and chthonic relocate stat numeric data to the right
side of the progress bars to achieve the same improvements originally
developed for meflin.glade.
- The encumbrance portion of the layout has changed in the XML structure, but
does not appear different to the player.
- All layouts have had some viewports added in various places to give the UI
an overall better, more polished appearance.
- 2009-05-22 03:46 kbulgrien
- [r11699] - The following commit introduces a code incompatibility with existing .glade
layouts. The reason for this change is to allow greater flexibility in UI
design. The existing "Stat: Current/Max" strings that appear beside the
progress bars (especially Exp:) get very long and bulky and do not align
well vertically. It is felt that all UI layouts will benefit from this
change, and that it will allow layout density to be increased for those who
prefer small UIs.
- Existing, unmodified .glade layouts may still be used, but some numeric
stat data (HP/SP/Grace/Food/Encumbrance/ExpToNextLevel) will no longer be
visible in the client until the layout is updated.
- meflin.glade rework sparked the idea for this change, and was used to test
the code, so is hereby committed. It improves readability by restructuring
the stats pane, and increases available UI space for critical messages by
allowing the player to easily hide very wide experience data displays.
- Expect the author to update all of the other layouts in relatively short
order.
- In summary, the .glade widget count has been increased slightly to support
splitting of data into more widgets. The stat widgets and weight widgets
have been renamed as part of this change. The client no longer explicitly
names stats with hard-coded strings. The stat names are now set by the
layout.
- 2009-05-21 03:19 kbulgrien
- [r11695] - Whitespace change only (tab --> spaces).
- 2009-05-18 02:41 kbulgrien
- [r11691] - Swapped position of Messages and Look/Inventory at Meflin's request.
- With the look/inventory panel at the bottom, it makes more sense to put the
notebook tabs next to the command input to reduce mouse movement, so the
tabs are relocated to the bottom of the notebook.
- To maintain a consistent appearance, the stats/protections/skills notebook
tabs are also moved to the bottom of the notebook.
- The Range: slot in the stats table caused some expanding and contracting of
the stats panel when rotating through ranged skills, so it is now assigned a
row of its own. The cell where Range: used to be is now blank.
- After adding the Range: row, the table now has seven rows, so the Str, Dex,
Con, Int, Wis, Pow, Cha can now be laid out in a vertical fashion, so two
columns are added to do so, and the row previously assigned to them is gone.
- The addition of the Range: row also leaves a cell above WSp blank, so Run &
Fire is moved from the menubar to this cell.
- Added separators between the menu and the player information items in the
menu bar.
- 2009-05-17 03:57 kbulgrien
- [r11690] - Reworked the GTK-V2 meflin layout which was not used (probably because
messages were not visible when clicking or examining items with the mouse).
- The rework is based off of the sixforty layout to improve playability when
more screen area is available. The changes involve making sure critical
messages and regular messages are both visible at the same time. The
critical messages are put on the stats pane below the maps. The other big
change is to try putting ground view and inventory on their own tabbed
notebook with the ground view the default.
- Overall appearance of the client seems nicer as this layout makes more use
of viewports around various elements. There are still areas for improvement
like the menubar.
- The command input box seems small too, but its worth getting other feedback
before messing around too much more with it.
- This layout concentrates on keeping mousework at the bottom of the client
screen, and to pull that off, flips the tabs to the bottom in a few places.
- 2009-05-17 01:06 kbulgrien
- [r11689] - Open GTK-V2 meflin.glade layout in glade3 and save changes after verifying
GTK+ target 2.12 and that deprecation and version mismatch checks pass.
Plan to use this layout to experiment with some concepts that sixforty
inspired.
- 2009-05-16 23:46 kbulgrien
- [r11688] - Add sixforty.glade to the crossfire-client.spec and update its internal
changelog.
- 2009-05-16 22:20 kbulgrien
- [r11687] - Add a four-quadrant layout that seems workable at a 640x480 screen
resolution. It has some innovations for tightening up stats display, and
will likely be nice for larger resolutions also. This layout actually
appears to be different enough to inspire some ideas on how to make a few
code changes to improve the ability to tighten up the displays even more.
This layout was developed with glade2, but resaved using glade3 prior to
commit. The XML targets GTK+ 2.12 and fully passes glade3s deprecation and
version mismatch checks.
- Incorporate the new sixforty.glade into the build (Makefile.am), but changes
to the RPM .spec file are still pending.
- Add a descriptive summary of the new sixforty layout to the AUTHORS file.
- 2009-05-16 03:15 kbulgrien
- [r11686] - Set the About dialog window_position property to center for more logical and
natural positioning of an infrequently viewed dialog. The other dialogs
seem to try to position themselves in corners of the screen, which makes
sense so they do not overlay each other, but it doesn't make a lot of sense
for the About dialog, and looks better this way.
- 2009-05-15 05:08 kbulgrien
- [r11685] - Try again to save the deletable property false.
- 2009-05-15 04:47 kbulgrien
- [r11684] - Set the deletable property False on all gtk-v2 dialogs to fix Tracker ID:
2784779 GTK-V2 loses dialogs if closed with X control. It looks like glade3
is going to be annoying. The diff is huge, but if you sort the old file and
new file, the real difference is only one line of text for each dialog.
- 2009-05-15 04:39 kbulgrien
- [r11683] - Open/save gtk-v2/glade/dialogs.glade using glade3 so that later
modifications may be better identified in a diff. Glade3 appears to save
widgets in alpha order. Glade3 also seemed to remove quite a bit of
content (79K reduced down to 55K), but so far what I have seen indicates
that glade2 to glade3 migration is pretty safe.
- 2009-05-10 15:07 kbulgrien
- [r11679] - Change some of the RPM .spec file BuildRequires to be
more flexible after after testing on Mandriva 2009.0 (local machine) and
Centos (Invidious). Centos build failed with requires libcurl-devel and
libglade2.0-devel but both succeed if the requires are changed to curl-devel
and libglade2-devel. These new requires also work on fedora10.
- 2009-05-09 16:00 kbulgrien
- [r11678] - Added an svn:externals property to use server/include/shared revision
11676 to create and populate client/common/shared so that newclient.h is a
direct copy of the file maintained in the server area.
- 2009-05-09 15:48 kbulgrien
- [r11677] - After coming to the realization that newclient.h is better sourced in the
server so that different client codebases could conceptually use different
versions of the file depending on their development state, this file and
is now moved to server/include/shared. The common/shared is removed to allow
the server/include/shared directory to be made and external reference here.
- 2009-05-09 06:27 kbulgrien
- [r11674] Removed comment that talked about the file being separately controlled in
client and server. Add a comment to the #ifdef that switches the content of
one typedef depending on where it is compiled.
- 2009-05-09 04:15 kbulgrien
- [r11672] Moved common/newclient.h to common/shared/newclient.h because svn
externals work on a directories only, and it is planned to use this
facility to share this file between the server and client to assure
synchronization.
- 2009-05-09 03:16 kbulgrien
- [r11671] Merge differences with server/trunk/include/newclient.h in preparation for
correcting the fact that the two files are separately maintained - allowing
divergence in implementation. One apparent required conflict is handled by
detecting a define present only in the client.
- 2009-04-23 04:08 kbulgrien
- [r11663] The following commit converts all common code and GTK-V2 draw_info() calls to
draw_ext_info() calls so that support for untyped draw_info() messages can be
completely removed from GTK-V2. While converting the draw_info() calls, also
get rid of the deprecated draw_color_info() use in common so that the clients
can have this deprecated function removed. This conversion also requires all
clients provide a draw_ext_info() for common code to use. In the X11 and the
GTK-V1 client, draw_ext_info() discards the message type information and just
uses its existing draw_info() function. To support this change, new message
types and subtypes have been added to support client-sourced messages. More
than likely the client-side message subtypes could be fine tuned, but GTK-V2
also has changed to allow the draw_info() colors to be used until style data
is set up for the client message types. draw_info() is removed from GTK-V2.
common/item.c: draw_info() --> draw_ext_info().
common/commands.c: draw_info() --> draw_ext_info(); Remove
draw_color_info().
Remove commented code used to develop skills report.
common/script.c: draw_info() --> draw_ext_info().
common/client.c: draw_info() --> draw_ext_info().
common/msgtypes.h: Regenerated with `make msgtypes.h`.
common/p_cmd.c: draw_info() --> draw_ext_info().
common/image.c: draw_info() --> draw_ext_info().
common/player.c: draw_info() --> draw_ext_info().
common/script_lua.c: draw_info() --> draw_ext_info().
common/metaserver.c: draw_info() --> draw_ext_info(); comment updates.
common/external.h: Remove draw_info(); remove draw_color_info(); add
draw_ext_info().
common/newclient.h: Add/tweak comments for pre-existing message types.
Add a new message type for client-sourced messages
along with some subtypes that seemed reasonable when
reviewing the kinds of messages the client spawns.
x11/x11proto.h: Regenerated with `make proto`.
x11/x11.c: Remove draw_color_info(). Add draw_ext_info().
gtk/gtkproto.h: Rebuilt file with `make proto`.
gtk/gx11.c: Remove draw_color_info(). Add draw_ext_info().
gtk-v2/src/gtk2proto.h: Regenerated with `make proto`.
gtk-v2/src/config.c: draw_info() --> draw_ext_info().
gtk-v2/src/keys.c: draw_info() --> draw_ext_info(). Fix a misspelling
in a message.
gtk-v2/src/info.c: Fix the message_callback() prototype to match the
function declaration and add a draw_ext_info()
prototype. Modify message_callback() to honor the
orig_color parameter in cases where a style has not
been set for a particular message type/subtype so
that draw_info() texts converted to draw_ext_info()
will not lose their color just because the themes
are not updated. To make this work, the message
routing code was moved to run earlier. draw_info()
is removed from the GTK-V2 client to strongly show
that any new client messages need to be typed. This
enhances the value and coverage of the theme support
in the client. In fact, draw_info() comments hinted
that draw_info() has been considered questionable in
various ways before this conversion was conceived.
Add a draw_ext_info() call that simply uses the
message_callback(). Really the message_callback()
should probably be renamed draw_ext_info() instead
of putting this extra call in.
gtk-v2/src/pickup.c: draw_info() --> draw_ext_info().
gtk-v2/src/inventory.c: draw_info() --> draw_ext_info().
- 2009-04-20 02:46 kbulgrien
- [r11657] After some play-testing, its kind of wierd for say to go to one window and
NPC/Magic Mouth responses go to the other, so MSG_TYPE_DIALOG is now also
routed to the critical messages pane. Added some comment text to help in
understanding message types.
- 2009-04-17 01:17 kbulgrien
- [r11651] Per mailing list discussion on or about 2008/12/22, route MSG_TYPE_ATTRIBUTE
(Changes to attributes: stats, resistances, etc), MSG_TYPE_COMMUNICATION
(Communication between players), and MSG_TYPE_VICTIM (Something bad is
happening to the player) to the critical messages pane. As stated on the ML,
there are other potentially superior solutions to chats tells not getting
drowned out by other messages, but this is a very simple one. The critical
messages pane gets very little activity, unlike the regular messages pane.
Addition of a chat-specific panel, or client-side routing configuration is not
considered precluded by this quick fix.
- 2009-04-08 06:11 kbulgrien
- [r11633] - Add a comment header that summarizes the GTK font style strings used in the
theme files. Reference a couple of external documents that more detail is
available in. This might help someone tweak a style more easily as it can
clarify what options exist even if they are not used anywhere in the client
theme files that already exist.
- 2009-01-19 20:41 akirschbaum
- [r11192] Fix typo in scripting protocol: send "watch stats maxsp" rather than "watch stats maxspp".
- 2009-01-18 17:32 akirschbaum
- [r11181] Fix typo.
- 2009-01-18 16:46 akirschbaum
- [r11176] Send correct coordinates for "request map pos" script command.
- 2009-01-18 16:38 akirschbaum
- [r11175] Do not crash for "request items cont" if there is no opened container.
- 2009-01-18 16:30 akirschbaum
- [r11174] Replace while loops with for loop.
- 2009-01-18 16:26 akirschbaum
- [r11173] Whitespace changes.
- 2009-01-18 15:41 akirschbaum
- [r11172] Report weight in grams in "request items" commands.
- 2009-01-18 13:36 akirschbaum
- [r11171] Simplify expressions.
- 2009-01-18 11:29 akirschbaum
- [r11166] Add checks for incorrect parameters to scripttell command. Do not pass the script ID to the script.
- 2009-01-05 07:11 mwedel
- [r11117] Various fixes and improvements, mostly related to map handling in gtk2 client.
Main change is that the map area can now be resized during play and it will
draw things as expected. Note server change is needed for map to not appear
jumbled after initial resize. Fix bug 2476715: Image display problem when not
sized to a multiple of 32
--
configure.ac: Move evaluation of extra includes and extra linker flags (
--with-..) options before lua/opengl checks - if those libraries are not
in usual location, still want to be able to use them.
gtk-v2/src/gtk2proto.h: callback for configure event added.
gtk-v2/src/map.c: map_init(): Remove explicit call to set map area size.
display_mapcell(): Fix drawing of images not a multiple of 32.
resize_map_window(): Additional processing after resize event.
on_drawingarea_map_configure_event(): New function - gets resize event
and makes necessary updates.
gtk-v2/glade/gtk-v2.glade: Remove explicit size value from layout. This
gives more resize flexibility.
MSW 2009-01-04
- 2008-12-30 06:57 mwedel
- [r11116] gtk-v2/src/info.c: Add missing initializer to pane variable. Without it,
we are passing in garbage value to functions, which results in crashes.
MSW 2008-12-29
- 2008-12-22 05:20 kbulgrien
- [r11076] - Add/update code comments throughout, including function headers for doxygen.
- 2008-12-21 06:12 kbulgrien
- [r11045] make proto in the GTK-V2 source directory yielded an error about a missing
about.h file. Additional includes are passed to cproto to remove this
error.
- 2008-12-21 06:07 kbulgrien
- [r11044] The GTK-V2 client for some reason saved the window positions file multiple
times per use of menubar Client | Save Window Position. Adding a call to
g_signal_stop_emission_by_name() in on_save_window_position_activate()
puts this silliness to an end. The file is now only saved one time.
- 2008-12-21 04:44 kbulgrien
- [r11043] - Add doxygen-style comments to identify what functions do.
- 2008-12-20 08:09 kbulgrien
- [r11029] Remove "(crossfire-client-gtk2:2088): Gtk-WARNING **: GtkSpinButton: setting
an adjustment with non-zero page size is deprecated run-time warnings for the GTK-V2 client.
- 2008-12-17 03:36 kbulgrien
- [r10997] Complete fixing GTK-V1 issue [ 1876788 ] Doubled characters in GTK clients
(unusable). Tested with --enable-cfgtk2 compiled as RPM.
- 2008-12-14 08:51 ryo_saeba
- [r10973] Misc compilation tweaks, no functional change.
- 2008-12-14 02:56 kbulgrien
- [r10964] gtk_signal_emit_stop_by_name() was poorly placed and is moved to a location
where it will help fix the [ 1876788 ] Doubled characters in GTK clients
(unusable) for the GTK-V1 client.
- 2008-12-13 23:42 kbulgrien
- [r10963] - The fix applied for [ 2022488 ] and [ 1862055 ] was for a GTK-V1 client
compiled against GTK2, but used a function probably not in GTK1, so this
commit changes it back to a GTK1 function used elsewhere in keyfunc() and
in the GTK1 docs: http://www.gtk.org/tutorial1.2/gtk_tut-18.html#ss18.1
- 2008-12-13 22:18 kbulgrien
- [r10961] - Mark another open bug [2022488] as fixed by SVN 10960.
- 2008-12-13 22:14 kbulgrien
- [r10960] Fix for [ 1862055 ] GTKv1 client built with --enable-cfgtk2 cannot login so
it is no longer necessary to run the client with Popup Windows.
- 2008-12-04 05:12 kbulgrien
- [r10827] Pending fix for [ 1876788 ] Doubled characters in GTK clients (unusable).
mwedel noted gtk_signal_emit_stop_by_name() was not used consistently
everywhere keypresses were consumed by the client. Patches were written
and tested to show that consistent use of gtk_signal_emit_stop_by_name()
caused the doubled character problem to disappear. Then a new patch was
written to replace redundant call/return pairs with fall-through logic.
http://www.gtk.org/api/2.6/gtk/gtk-Signals.html#gtk-signal-emit-stop-by-name
also states this is a deprecated function, g_signal_stop_emission_by_name()
is now used instead of gtk_signal_emit_stop_by_name().
- 2008-11-29 05:49 kbulgrien
- [r10767] To satisfy rpmlint and remove the error "E: no-packager-tag", add the packager
tag and define it to a sane default.
- 2008-11-29 05:05 kbulgrien
- [r10766] To satisfy rpmlint and remove the error "E: non-standard-group X11/Games", all
package groups are changed from "X11/Games" to "Games/Adventure". Choices
offered by rpmlint were "Games/Adventure", "Games/Arcade", "Games/Boards",
"Games/Cards", "Games/Other", "Games/Puzzles", "Games/Sports", and
"Games/Strategy"
- 2008-11-29 05:00 kbulgrien
- [r10765] Update all client .desktop files so they do not trigger rpmlint messages like
".desktop file is not valid, check with desktop-file-validate": Terminate
the Categories key/value with a semicolon; remove the deprecated Encoding key.
Unify the Comment for all three clients. Add an appropriate GenericName key.
Add [en] localestrings for the Name, GenericName, and Comment keys to help
make it more obvious that translations may be placed in this file. Put the
keys in order as listed in http://standards.freedesktop.org/desktop-entry-spec
These changes are tested with desktop-file-validate.
- 2008-11-29 03:43 kbulgrien
- [r10764] Eliminate rpmlint message W: mixed-use-of-spaces-and-tabs (spaces: line 159,
tab: line 169) by converting tabs to spaces. No functional change.
- 2008-11-26 19:50 kbulgrien
- [r10739] Remove remaining vestiges of the old gcfclient/gcfclient2 naming convention.
This does also slightly change the default gdefaults2 file generated by the
client, and removes a blank line from the help output of the gtk-v2 client.
- 2008-08-04 18:57 ryo_saeba
- [r9719] Win32 fixes.
- 2008-07-20 08:52 kbulgrien
- [r9583] Update crossfire-client.desktop files by using consistent names; making sure
all have categories; and adding a new file for the X11 client.
x11/crossfire-client.desktop
x11/Makefile.am
gtk/crossfire-client.desktop
gtk-v2/Makefile.am
gtk/crossfire-client.desktop
Change the default version for the client to 2.0.dev instead of 2.0-dev as the
dash is incompatible with modern RPM tools. Dash is reserved for separating
things in the RPM file name, and must not be embedded in the version string.
Also rework datadir computation, and report where client data files will be
placed. Improve reporting of the bindir to be used.
configure.ac
Fix RPM creation for the client release procedure. Add new .desktop files and
package them with the clients rather than in the common package. Change the
location for the .desktop files to /usr/share/applications. Update the list
of .glade files for the GTK client V2. Correct the RPM build process by
adding a _datadir definition, and modify all file specifications accordingly.
Fix the build specs so a crossfire-client-x11 package is made. Swap the gtk
client build to use GTK V2 by default. Change versions to 2.0.dev instead of
2.0-dev, which is invalid for current versions of rpmbuild.
crossfire-client.spec
- 2008-07-20 00:54 kbulgrien
- [r9581] - Override common/init.c default for popups for GTKv1 client only as a partial
workaround for Bug #2022488 2.x GTKv1 client built --enable-cfgtk2 cannot
login. This actually changes the behavior to agree with the man page that
states popups on is the default. Naturally this will not work if a player
has a ~/.crossfire/gdefaults file with popups off, but this ensures a new
player with have a working client with popups on.
- 2008-07-20 00:39 kbulgrien
- [r9580] - Fix spelling.
- 2008-07-20 00:34 kbulgrien
- [r9579] - Spelling, capitalization, and some whitespace modifications. No functional
code changes.
- 2008-07-19 23:53 kbulgrien
- [r9578] - Add -popups to the default startup options as a partial workaround for
Bug #2022488 2.x GTKv1 client built --enable-cfgtk2 cannot login.
- 2008-07-19 23:42 kbulgrien
- [r9576] - GTK-v1 client name changes from gcfclient to crossfire-client-gtk.
- 2008-07-19 22:37 kbulgrien
- [r9571] - Fix release procedure support (make dist) for msgtypes.h.
- 2008-07-19 21:47 kbulgrien
- [r9569] - Fix release procedure support (make dist) for script_lua.h.
- 2008-07-19 21:08 kbulgrien
- [r9566] Fix Makefile.am per use of configure.ac vs. configure.in.
- 2008-07-08 06:31 mwedel
- [r9428] common/newsocket.c: Improve error message (print out actual error) on failed
write. Also, try to write again on errno==EAGAIN - fixes problem for systems
that return EAGAIN instead of 0 when a write fails on a non blocking device.
MSW 2008-07-07
- 2008-06-22 21:53 quinet
- [r9364] Allow scripts to retrieve information that was previously unavailable: tag of
the player object (used in move commands), title, list of known spells, names
of the known skills, and attuned/repelled/denied spell paths.
- 2008-06-05 21:43 anmaster
- [r9230] Clean up configure.ac and add a missing test for size_t.
- 2008-06-03 13:45 anmaster
- [r9218] Fix a valgrind error (uninitialised value) in smoothing code.
- 2008-06-03 10:45 anmaster
- [r9217] Fix a valgrind error in the common metaserver code. For some reason sc_version
and cs_version fields were not always properly initialized when check_server_version()
was called.
- 2008-06-02 18:31 anmaster
- [r9215] Add stub support for sound2/music commands, I was unable to make server send
the actual commands except "music NONE" (and jxclient that do have sounds don't
get these commands either, but decides locally to play some sounds it seems) so
was not able to debug it beyond making sure it compiled and ran. When the server
actually sends these commands someone need to fill in the implementations and
check the parsing code is correct for sound2.
- 2008-06-01 19:25 anmaster
- [r9212] Unbreak LUA check in configure. Also update autogen.sh to mention that
autoreconf should be used instead and make the call aclocal in the script correct.
- 2008-06-01 18:12 anmaster
- [r9207] Remove acinclude.m4 and add macros/libcurl.m4 (as acinclude.m4 just contained
a copy of what should have been in macros/libcurl.m4).
- 2008-06-01 18:01 anmaster
- [r9204] Normalize the *.xpm and *.xbm files by opening them in gimp and resaving them.
Then readd "const" as needed in a text editor. Also had to update some source
files because the name of the array for the xpm changed in some cases.
- 2008-06-01 17:32 anmaster
- [r9201] Run protoize on code to add missing void in prototypes. Run the png_compress
script from arch on some *.png files in the tree to reduce their size.
- 2008-06-01 17:12 anmaster
- [r9200] Some changes to use snprintf instead of sprintf.
- 2008-06-01 16:41 anmaster
- [r9199] Set svn:eol-style to native on *.c and *.h files that were missing it.
- 2008-06-01 16:32 anmaster
- [r9197] Add some missing "extern" keywords that caused warnings. Remove some extern
variable definitions in source file that were already found in headers.
- 2008-06-01 15:52 anmaster
- [r9196] Run make proto in subdirs. Make sure make doesn't error out on some subdirs
when running make proto in top directory.
- 2008-06-01 15:36 anmaster
- [r9195] Use the -combine option of gcc to find code (mostly extern inside source instead
of headers), where the definitions didn't agree with each other. Fix most of them.
One (hard to fix) is left, I will look at it later. Also use cproto in common/.
Two sprintf changed to snprintf as well.
- 2008-06-01 14:51 anmaster
- [r9194] Some changes to use snprintf instead of sprintf.
- 2008-06-01 14:26 anmaster
- [r9193] Run a script to clean up trailing whitespaces. In this list below "ChangeLog"
is listed due to script cleaning up some whitespaces.
- 2008-06-01 14:19 anmaster
- [r9192] Reorder some structs to waste less memory, also cosmetic changes to struct
definitions.
- 2008-06-01 12:57 anmaster
- [r9191] More changes of char* to const char*.
- 2008-06-01 08:53 anmaster
- [r9190] Change some char* to const char*. This reduces memory usage when serveral copies
are running as const data can be shared between the copies.
- 2008-06-01 08:26 anmaster
- [r9189] Move configure.in to configure.ac (the new name since a few years). Update
configure.ac syntax with autoupdate. Make help strings use AS_HELP_STRING.
- 2008-06-01 08:05 anmaster
- [r9188] Yet more fixes of Makefile.am/aclocal stuff: Make aclocal install needed macros
into the macros directory.
- 2008-05-31 23:37 anmaster
- [r9185] Fix Makefile.am so aclocal.m4 generation works correctly.
- 2008-05-31 23:33 anmaster
- [r9184] Seems like the autotools define for LUA changed, update source to properly
use LUA.
- 2008-05-31 23:23 anmaster
- [r9183] More cleanup of autotools mess. Also update svn:ignore where needed.
- 2008-05-31 23:04 anmaster
- [r9182] Remove some auto generated autotools files from the tree. Just run autogen.sh
to create them. This prevents the mess of different developers using different
versions of autotools, making commits a mess.
- 2008-05-09 13:16 ryo_saeba
- [r8952] Fix bug #1871476:] client script 'watch stats' error.
- 2008-05-07 20:12 ryo_saeba
- [r8911] Apply patch by Jochen Suckfüll to move recently updated skills to top of list for X11 client (could possibly be used for other clients).
- 2008-04-26 17:38 kbulgrien
- [r8801] Fix detection and use of lua 5.0 and 5.x as the build broke on some systems if
the liblua stuff was loaded. For 5.0, libm and libdl are added to LUA_LIBS for
liblualib to be usable. The summary report for ./configure now reports if lua
scripting support is included in the build, and @LUA_LIBS@ is added into the
link library lists for each client to fix build problems when lua is detected.
- 2008-04-26 12:39 quinet
- [r8800] Move the signal handler for SIGPIPE in main so that it can be used both for sounds and for scripts.
- 2008-03-29 10:58 ryo_saeba
- [r8649] Apply patch #1878451: Let crossfire client compile with OSS4's soundcard.h courtesy anonymous user.
- 2008-02-17 23:35 kbulgrien
- [r8465] Change the minimum window size to 640x480 since a window layout has been
made that shows it is possible. There seem to be people out there that
like small...
- 2008-02-17 06:55 kbulgrien
- [r8457] Primarily a rename of widgets that had generic names (Eg. vbox2 --> vbox_all).
The corestats tab changed to cuddle the stat value with the stat name for
readability. Numeric values beside the stat bars is now left justified.
Fire/Run indicator positions slightly altered. Presently the window will not
shrink smaller than 800x600. This is due to the size set in main.c
(geometry.min_width and geometry.min_height).
- 2008-02-16 04:37 kbulgrien
- [r8424] - Rewrite the portions of the README that deal with saved window positions
since they are now saved in unique files named after the layout in use at
the time window positions were saved.
- Add an important tip regarding use of Width and Height properties. In
general, they should not be used as they cause resize problems at runtime
in most cases.
- 2008-02-13 05:10 kbulgrien
- [r8419] - Update the descriptions of recently modified client layout files.
- 2008-02-13 05:09 kbulgrien
- [r8418] This is an aethsetic overhaul, adding viewports with insets to set different
screen elements off. Key widgets are moved to a common centerline below the
map notebook to keep critical information at a consistent eye-level to improve
visibility during play. The encumbrance and count box is now between the
inventory and ground view, and the fire/run indicators are just below the
command entry box.
- 2008-02-13 03:53 kbulgrien
- [r8417] Roll in the recent changes to gtk-v1.glade that make the layout more true to
the original GTK V1 layout while keeping the tab notebook improvement. The
encumbrance display and count box has had a slight aesthetic improvement also.
- 2008-02-13 00:44 kbulgrien
- [r8416] A major facelift brings this client layout much closer to the appearance of the
GTK V1 client layout with a few exceptions like the XP bar and the Magic Map
in the tab notebook.
- 2008-02-12 15:16 kbulgrien
- [r8415] Miscellaneous fixes to add previously invisible or missing widgets: Run/Fire
labels, Count input, and encumbrance.
- 2008-02-12 10:26 quinet
- [r8414] - Escape the apostrophe when it starts a line, to avoid confusing man or
nroff ('help -> \'help). Reported by Kari Pahula.
- 2008-02-11 04:59 kbulgrien
- [r8413] - Typo fixes. Take out note about "experimental" from Meflin's layout.
- 2008-02-11 02:45 kbulgrien
- [r8412] - Fix a few inaccurate map size statistics, and add a description for the
gtk-v2.glade layout, along with a brief text describing dialogs.glade.
- 2008-02-10 07:27 kbulgrien
- [r8409] - Update to summarize the changes made with the three prior GTK V2 client
commits.
- 2008-02-10 07:26 kbulgrien
- [r8408] - Change more instances of gcfclient to crossfire-client-gtk2.
- Change the title to specify that this client is a second-generation GTK
client.
- Update the client option list, and add or remove descriptions to match the
client's capabilities. Some additional work may be needed to be sure the
information is up to date and accurate, but this is at least a first pass
at an update.
- Change some capitalization.
- Document the new window position save file conventions.
- 2008-02-10 07:24 kbulgrien
- [r8407] - Add some doxygen comments to variable definitions.
- LOG() calls are reformatted to break long lines.
- Instances of "gtk::" in LOG() calls are changed to "main.c::" for consistency
with other LOG() messages.
- Change the title bar of the client from "GTK2 ... Client" to
"GTK V2 ... Client" to make it a little less likely that people will assume
that the 2 means GTK version 2 (especially since this client may eventually
be built with a different version of GTK and also because people seem to
not realize the first generation client can be built against GTK2).
- 2008-02-10 07:21 kbulgrien
- [r8406] - Reformat LOG() calls to break long lines.
- Convert all instances of "gtk::" to "config.c::" for better consistency with
other LOG() messages in the client, and also change instances of "config.c:"
to "config.c::".
- A player visible change in load_winpos() and save_winpos() changes the window
position save file from gwinpos2 to a name based on the window layout file
name. For example, if the default window layout (gtk-v2.glade) is used, the
window positions are now saved to gtk-v2.pos. This allows retention of saved
window sizes for all window layouts, and has a side benefit of making sure
that the default window positions are all used the first time a window layout
is selected. Providing that the player's screen size is large enough, this
will tend to reduce difficulty in setting up window positions for the first
time. A message now informs the player whether default window positions are
used or which file they are recovered from.
- 2008-02-06 12:54 kbulgrien
- [r8379] Remove the .xpm files from the list of files to parse as it is painfully slow
to do so.
- 2008-02-06 05:35 kbulgrien
- [r8378] Factor out redundancy in draw_info() in both cases of an if/else statement.
- 2008-02-06 05:21 kbulgrien
- [r8377] Prepare to work on this file. Break long lines; indention fixes; commenting
changes; addition of new doxygen content. No code changed for this commit.
- 2008-01-29 19:48 kbulgrien
- [r8319] - Fix dumb typo.
- 2008-01-29 15:52 kbulgrien
- [r8317] Use hint at http://www.in-ulm.de/~mascheck/various/echo/ to try to remove
a portability issue in common/Makefile.am regarding use of echo -n.
- 2008-01-28 07:01 kbulgrien
- [r8299] Rename non-client referenced widgets that used numbers to uniquely identify
them. Now use words that describe the function or content of the item.
Add a missing label_cha from v1-redux.glade.
Rename program_names to see if it names the window.
- 2008-01-28 06:04 mwedel
- [r8297] gtk-v2/glade/Makefile.am: Fix non portable usage of foreach, use makes
built in variable substitution instead.
MSW 2008-01-27
- 2008-01-27 22:57 kbulgrien
- [r8295] Fix missing label_cha so Charisma stat will display in the core stats pane.
- 2008-01-27 06:39 kbulgrien
- [r8289] - Correct gaff in last edit.
- 2008-01-27 03:17 kbulgrien
- [r8288] The original design did not allow the ground view to be expanded optimally.
The layout was changed to remove this limitation.
- 2008-01-27 03:10 kbulgrien
- [r8287] - Some spelling fixed.
- 2008-01-26 20:26 kbulgrien
- [r8286] Add a new layout that is a heavily modified v1-redux that places the critical
messages, stat bars, protections, and ground view all in horizontally
adjustable boxes. It still vaguely reminiscent of the original GTK V1 client,
but only slightly so. The message boxes are to the left of the map, and the
inventory view is to the right. The command input box is between the tall
message pane and the short critical message pane, at the bottom left corner of
the map. This puts chat messages right next to the command input box. The
window size defaults to 1180x925 and comfortably handles a 19x17 map pane.
- 2008-01-26 20:24 kbulgrien
- [r8285] Updated this file with new hints and information concerning the editing of
.glade layout files.
- 2008-01-26 09:13 kbulgrien
- [r8282] Add a slightly variant layout that challenges the tradition of all those that
have passed this way before.
- 2008-01-26 08:38 kbulgrien
- [r8281] Standardize these layouts at 1180x925 so they easily fit 1280x1024 screens
and allow for a either a vertical or horizontal menu bar. Document the
map pane sizes and overall window sizes for the different layout files.
- 2008-01-26 07:52 kbulgrien
- [r8280] gtk-v2/glade/v1-redux.glade, gtk-v2/glade/v1-redux.gladep: Add a new layout
that revisits the legacy GTK V1 client look, but saves on vertical space by
using a tab notebook for the character and skill information.
gtk-v2/glade/AUTHORS: Add and describe the v1-redux layout.
gtk-v2/glade/Makefile.am: Add support for the v1-redux layout.
- 2008-01-26 07:03 kbulgrien
- [r8279] gtk-v2/glade/eureka.glade, gtk-v2/glade/eureka.gladep: Add a new layout to SVN
that has just been sitting on my system for ages.
gtk-v2/glade/AUTHORS: Add and describe the new eureka.glade layout.
gtk-v2/glade/Makefile.am: Add support for the new eureka.glade layout.
gtk-v2/glade/README: Remove no longer relevant comment about inability to
restore screen positions.
- 2008-01-25 05:22 kbulgrien
- [r8273] General cleanup with propset svn:ignore && fixup oops due to not quite getting
how svn:ignore works.
- 2008-01-25 05:05 kbulgrien
- [r8272] General cleanup with propset svn:ignore.
- 2008-01-24 13:08 kbulgrien
- [r8257] - Changes for prior commit.
- 2008-01-24 05:18 kbulgrien
- [r8253] Packaging update work.
crossfire-client-spec: An initial attempt to bring the .spec file up to date
with the libglade/libcurl/pthread requirements and for packaging the theme
and window layout files. It has not been tested yet and probably needs
more work.
gtk-v2/crossfire-client-gtk2.man: For now, this is really only a slightly
modified copy of gtk/crossfire-client-gtk. It needs an update, but then
so do all the other client man pages.
gtk-v2/crossfire-client.desktop: An executable file name change. Really, I
think this file needs a rename to be correct.
gtk-v2/Makefile.am: Support for the new crossfire-client-gtk2.man file.
gtk/crossfire-client-gtk.man: Client name changes for trunk, and a number of
spelling errors fixed and .crossfire file names fixed like winpos->gwinpos.
x11/crossfire-client-x11.man: Client name changes for trunk, and a number of
spelling errors fixed.
- 2008-01-22 06:41 kbulgrien
- [r8252] [ 1839894 ] Keybind editor flaw (gtk2, gtkv2) appears fixed by prior commit.
This is basically a doxygen documentation commit. gtk-v2/keys.c: Remove
erroneous comment. Document Key_Entry struct typedef. Fix @defgroup syntax.
Fix @todo items with #if 0 in description by quoting the hash mark. Line
length adjustments and notation consistency fixes for LOG() calls. Other
miscellaneous line length adjustments. Add descriptions for more functions.
Enhance one function description.
- 2008-01-22 03:28 kbulgrien
- [r8247] This should fix remaining issues in [ 1527973 ] bind command does not work, &
also is a general doxygen update for keys.c files.
help/chelp: Add the additional flags supported by the GTK V2 client and a note
that says each client may not support all flags, and to use bind w/o any
parameters for client specific help, otherwise there is no verbose help
for the GTK V2 enhancements, and no explanation for why -g doesn't work.
gtk/keys.c: doxygen @file added.
gtk-v2/keys.c: In parse_keybind_line(), A is for all flags, so add KEYF_META
and KEYF_ALT when it is the flag in a keybinding entry. Add function
descriptions for various previously undocumented one, or improve/add detail
to others. Various minor reformatting including spacing and line length
changes. In bind_key(), remove spurious line break and whitespace from
bind help text. Indentation fixes. In keybinding_get_data() change up
the logic for use of the checkboxes in the keybinding dialog so that flags
are set consistently. The new logic is very intuitive. KEYF_NORMAL is
set if none or all of the Run/Fire/Alt/Meta checkboxes are checked. In
update_keybinding_list(), "All " is now used to indicate when all of these
flags are set to differentiate from only the normal flag being set.
- 2008-01-20 17:50 kbulgrien
- [r8234] Saved work-in-progress. Long lines shortened. Added doxygen modules definition.
More comments converted to doxygen form. Improved the style of some previously
converted commenting. Reordered some declarations to move them with other
similar ones. Started to use column 41 for end-of- line comments where
reasonable for cleaner read. Rewrote some function comment descriptions.
Added new function and parameter descriptions. Some indentation corrections.
- 2008-01-20 17:12 kbulgrien
- [r8230] Fix for [ 1875657 ] Bogus keybinding too long errors. Made more truncation
messages consistent, and fixed an inconsistently formatted LOG message.
Fixed case and shortened message when keybinds are saved.
- 2008-01-20 06:08 kbulgrien
- [r8218] Change Update Keybindings button to Update Bindings for consistency with the
Remove Bindings button.
- 2008-01-20 05:21 kbulgrien
- [r8217] Dress up the dialog for the libglade client by adding some padding in various
places. Fixed some spelling and reworked various texts on the dialogs.
- 2008-01-19 07:18 kbulgrien
- [r8209] Per-character keybind support.
gtk-v2/src/keys.c: In save_keys() and keys_init(), a pointless #ifdef WIN32
was used to attempt to implement per-character keybind files but keys_init()
is called long before a player can log in, so this had the effect of writing
keybinds to a file that cannot be loaded. Oddly, this was under a #ifdef
WIN32 which is quite inappropriate as if supported, it should be for all
platforms. The support is commented out with #if 0 until it can be fixed
and then re-enabled for all clients. Meanwhile, it surely fixes a WIN32 bug.
General doxygen update:
gtk/sound.c: Convert function description comments to doxygen form.
common/client.h: Convert comments to doxygen form.
x11/sound.c: Add doxygen file header.
Makefile.am: Add target dox to generate doxygen files and output errors to
doxygen.err
gtk-v2/src/stats.c: Add doxygen file header. Convert function description
comments to doxygen form. Fix missing doxygen @param for update_stat().
Add stubs for missing function descriptions.
gtk-v2/src/spells.c: Add doxygen file header. Convert comments to doxygen
form. Convert function description comments to doxygen form.
gtk-v2/src/about.c: Whitespace only.
gtk-v2/src/keys.c: Convert comments to doxygen form. Convert function
description comments to doxygen form. Define groups for the functions in
this file. In parse_keybind_line, add a parameter description. In
init_default_keybindings, add to the function description.
gtk-v2/src/image.c: Minor reformatting. In image_update_download_status()
description, remove erroneous @param items.
gtk-v2/src/sdl.c: Add doxygen file header. Convert comments to doxygen form.
Convert function description comments to doxygen form. Add stubs for missing
function descriptions. Move some defines from between a function description
and the function code to above the description to help out doxygen.
gtk-v2/src/png.c: Add doxygen file header. Convert comments to doxygen form.
Add stubs for missing function descriptions. Move some defines from between
a function description and the function code to above the description to help
out doxygen.
gtk-v2/src/sound.c: Rework the doxygen file header.
- 2008-01-18 23:13 kbulgrien
- [r8206] Undo unintentional change from prior commit.
- 2008-01-18 13:42 kbulgrien
- [r8204] Fix: [ 1806282 ] Libglade client screen position saving faulty
The root window "visible" property must be set to "no" in order for saved
screen size settings to be restored when the application starts up.
- 2008-01-16 06:42 mwedel
- [r8201] Fix for bug [ 1810609 ] menu items don't work if metaserver is bypassed -
move call to enable_menu_items() into main.c, and call it even if we
are doing direct connection (-server option).
gtk-v2/src/metaserver.c: Remove call to enable_menu_items()
gtk-v2/src/main.c: Add calls to enable_menu_items()
MSW 2008-01-15
- 2008-01-16 05:40 mwedel
- [r8200] Various bugfixes mostly:
common/client.c: If servername is (null), don't both trying to connect - this
happens when the NULL value is saved out on some systems.
common/client.h: Update VERSION_SC to 1029
common/metaserver.c: Add more code since this client (at version_sc 1029) can
still play on 1027 and 1028 servers.
gtk-v2/src/stats.c: Fix stat bar handling for exp - it now shows a progression
relative to currently level (so the instance you gain a new level, stat
bar goes back to zero) - this is more how things are expected to work.
Also, handle weapon_speed properly based on sc_version.
gtk-v2/src/gtk2proto.h: Rebuilt
MSW 2008-01-15
- 2008-01-05 19:58 kbulgrien
- [r8127] Rename client '.crossfire/crossfire-images/' to '.crossfire/image-cache/' to
make backups avoid backing it up with a generic exclude like "*/*cache*/*"
that works for many other packages that employ caching.
- 2008-01-03 12:07 ryo_saeba
- [r8077] Win32 compilation fixes. Remove superflous includes messing everything.
- 2007-12-27 21:17 kbulgrien
- [r8048] - Apply meflin's preferred default screen/window sizing.
- 2007-12-27 20:31 kbulgrien
- [r8047] - Add missing ground view to Inventory/Ground tab, and resize overall window
to Meflin's normal settings.
- 2007-12-26 19:26 tchize
- [r8040] Fixup smoothing code during animations
- 2007-12-24 15:03 tchize
- [r8034] Fix smoothing code so it take into account smoothing on layers >0 if there is something drawn at lower layers.
- 2007-12-01 11:32 ryo_saeba
- [r7631] Fix for bug #1825653: Odd number problem with nrof.
- 2007-11-26 20:06 tchize
- [r7576] fix for [ 1832377 ] configure script should check for SDL_image.h
Also added configure summary lines at the end.
Rebuild using autogen.sh
- 2007-11-21 19:32 tchize
- [r7554] GTK1 fix for [ 1680331 ] Cannot exit "What is your name?" prompt.
- 2007-11-21 19:22 tchize
- [r7553] gtk2 fix for [ 1680331 ] Cannot exit "What is your name?" prompt.
- 2007-11-20 20:40 tchize
- [r7551] Fix for [ 1815465 ] Too many messages on stderr causes client hang
- 2007-10-04 07:13 mwedel
- [r7298] gtk/text.c: Add missing write_media() calls in handling of admin messages.
Results in news and rules not being displayed. Fixes bug 1657000
MSW 2007-10-03
- 2007-09-30 07:49 kbulgrien
- [r7289] - Change error message when the client gets a message with a [] text format
tag that is not valid to make it more obvious what is wrong. This can
help determine the error faster if the server inadvertently sends the
client a message with displayed text that has square brackets around it.
This happened for bug [ 1804610 ] cast : info.c:message_callback:
unidentified messages where the 'cast command returned data with headings
like [lvl] and [sp].
- 2007-09-26 05:49 mwedel
- [r7241] Fix for bug 1800702 - gdk_draw_drawable: assertion `src != NULL' failed.
gtk/gx11.c: Call sdl_gen_map() or gtk_draw_map() based on displaymode in use.
gtk-v2/src/main.c: Call draw_map() instead of gtk_draw_map(). draw_map()
will figure out what function (sdl, opengl, gtk) to call do actually
draw the map.
MSW 2007-09-25
- 2007-09-26 03:45 kbulgrien
- [r7240] - Spelling/grammar fixes.
- Doxygen commenting work.
- Reformat block comments to use 79 columns.
- 2007-09-25 06:44 kbulgrien
- [r7239] - Fix abbreviated ChangeLog comment.
- 2007-09-25 06:42 kbulgrien
- [r7238] - Spelling/grammar fixes.
- Doxygen commenting work.
- Some indentation adjustments.
- Reformat block comments to use 79 columns.
- else block structures changed to comply with project coding standards.
- 2007-09-25 03:47 kbulgrien
- [r7237] - Spelling/grammar fixes.
- Doxygen commenting work.
- Some indentation adjustments.
- Reformat block comments to use 79 columns.
- 2007-09-24 05:53 mwedel
- [r7235] gtk/text.c: Remove call to void_callback() for MSG_TYPE_MONUMENT - if there
is no code to handle it, no reason to set the callback. Fixes bug 1759860 -
gravestone messages go to stdout and not client window.
MSW 2007-09-23
- 2007-09-24 03:38 kbulgrien
- [r7234] - Doxygen commenting work.
- Spelling fix visable --> visible.
- Reformat block comments to use 79 columns.
- 2007-09-17 06:08 mwedel
- [r7175] gtk-v2/src/metaserver.c: Modify metaserver_connect_to so it can connect to
servers running on different ports (eg, localhost:13328). Gtk1 client
already handles this fine, so this is only a change for the gtk2 client.
MSW 2007-09-16
- 2007-09-17 03:51 kbulgrien
- [r7167] - Undo delete-too-many-characters regression in 7165 (EOL white space removal)
- 2007-09-17 03:25 kbulgrien
- [r7166] - Tab-->space changes only.
- 2007-09-17 03:09 kbulgrien
- [r7165] - Delete end-of-line whitespace.
- 2007-09-15 02:39 kbulgrien
- [r7145] gtk-v2/src/map.c
gtk-v2/src/main.c
- Fix for SourceForge Bugs Tracker #1794455 "Libglade client Magic Map:
cannot return to Map". During the libglade conversion, and incorrect
g_signal_connect() call was placed in map.c. The corrected connection
is now made in main.c where the magic_map pointer is initialized.
gtk-v2/glade/README
- Add a note for .glade file developers concerning the MAGIC_MAP_PAGE
define that constrains the tab on which magic maps must appear.
- 2007-09-14 07:03 mwedel
- [r7143] Improve metaserver handling some - in particular, if server is listed
on both metaserver 1 & 2, listed it only once. Also, for gtk2 client,
fix handling of not showing cached entries if they are listed on the
metaserver. Add filtering of protocol versions, so we only show player
compatible servers.
--
common/metaserver.c: Add check_server_version() to do version checking.
Add checks to find duplicate server entries.
gtk-v2/src/metaserver.c: Move retrieval of data from metaserver before
adding cached entries to table - otherwise, can not detect duplicates.
Add check to proper version information.
MSW 2007-09-13
- 2007-09-06 01:38 kbulgrien
- [r7117] common/client.h
- Add doxygen file header.
gtk-v2/src/gtk2proto.h
gtk-v2/src/main.c
gtk-v2/src/metaserver.c
- Remove unused return value for get_metaserver().
gtk-v2/src/metaserver.c
- Doxygen comment formatting, and add comment headers for all functions.
- Remove commented-out IP Address column formerly shown in metaserver dialog.
- 2007-09-05 03:40 kbulgrien
- [r7113] - Doxygenification of source/comments.
- 2007-09-04 04:58 kbulgrien
- [r7112] gtk-v2/src/about.c
gtk-v2/src/image.h
gtk-v2/src/sound.c
gtk-v2/src/main.h
- Doxygenification of comments in various client files.
- 2007-09-04 03:13 kbulgrien
- [r7111] - A minor rearrangement of the order of the oroborus tabs above the map view,
and some modifications to the word descriptions of some of the layouts.
- 2007-09-04 01:59 kbulgrien
- [r7110] gtk-v2/glade/AUTHORS
- Add oroboros.glade and add short paragraph descriptions of each of the new
layout files.
gtk-v2/glade/Makefile.am
gtk-v2/glade/Makefile.in
gtk-v2/glade/oroboros.gladep
gtk-v2/glade/oroboros.gladep
- A layout designed expressly for clients running with 1024x768 resolution.
- 2007-09-03 23:04 kbulgrien
- [r7109] Remove spurious end-of-comment leftover from doxygenification
- 2007-09-03 22:29 kbulgrien
- [r7108] - Doxyfile from server modified/added for client.
- svn:ignore autom4te
- 2007-09-03 22:08 kbulgrien
- [r7107] - Tabs --> spaces, commenting, and doxygenation. No functional code changes.
- 2007-09-03 05:02 kbulgrien
- [r7106] - Remove whitespace regression from prior commit as you cannot predict what the
user's terminal width will be.
- 2007-09-03 04:51 kbulgrien
- [r7105] configure
configure.in
- Tabs --> spaces, indenting uniformity, and typo corrections only.
- 2007-09-03 04:20 kbulgrien
- [r7104] aclocal.m4
configure
Makefile.in
common/Makefile.in
gtk/Makefile.in
gtk-v2/Makefile.in
gtk-v2/themes/Makefile.in
gtk-v2/src/Makefile.in
gtk-v2/glade/Makefile.in
help/Makefile.in
pixmaps/Makefile.in
sound-src/Makefile.in
utils/Makefile.in
x11/Makefile.in
- Result of new and fixed m4 files.
autogen.sh
- Point aclocal at macros so that undefined macros do not crash ./configure
macros/gtk.m4
macros/sdl.m4
- ./configure should never crash, so add to remove errors as follows:
aclocal:configure.in:?: warning: macro `AM_PATH_GTK' not found in library
./configure: line ?: syntax error near unexpected token `1.0.0'
./configure: line ?: ` AM_PATH_GTK(1.0.0)'
aclocal:configure.in:?: warning: macro `AM_PATH_SDL' not found in library
./configure: line ?: syntax error near unexpected token `1.1.3'
./configure: line ?: ` AM_PATH_SDL(1.1.3)'
macros/curses.m4
macros/gnome-print-check.m4
macros/gnome-gettext.m4
macros/linger.m4
macros/need-declaration.m4
- Update .m4 files from a newer glade package to remove many warnings like
the following:
macros/linger.m4:4: warning: underquoted definition of AC_STRUCT_LINGER
- 2007-09-02 09:18 kbulgrien
- [r7103] - Add error_dialog() to display a graphical dialog that notifies the user when
a Glade layout file cannot be loaded. Client version information is shown
with an error description and the file that could not be loaded.
- 2007-09-01 18:53 kbulgrien
- [r7102] - Add missing layout to list.
- 2007-09-01 18:36 kbulgrien
- [r7101] - Submit ChangeLog edits for the commit of Revision 7100.
- 2007-09-01 18:35 kbulgrien
- [r7100] This is a merge of client/branches/gtk-v2-libglade to trunk. It converts the
GTK-V2 client to a libglade-2.0 client that supports changing the UI layout
with glade-2 generated .glade XML files. Various alternate client layouts
are included.
AUTHORS
- Reformatted for aesthetics.
- Added libglade-2.0 conversion author.
ChangeLog
- Summarize gtk-v2-libglade branch merge to trunk.
common/init.c
- Typo corrected in LOG message (inic.c --> init.c).
configure
- LIBGLADE_CFLAGS/LIBS addition.
- gtkv2 checks converted to HAVE_GTK2.
- gtk-v2/glade directory addition now supported.
- V2 client now depends on libglade2.0 instead of GTK+ 2.0.
- Some reformatting resulting from autoconf/automake changes flowing down.
configure.in
- gtk-v2/glade directory addition now supported.
- Update indenting; tab->space conversion for readability.
- Minor message updates for consistency like GTK2 -> GTK+ 2.0.
- V2 client dependency checks changed to require libglade-2.0 vs. gtk+-2.0.
gtk-v2/glade
gtk-v2/glade/Makefile
gtk-v2/glade/Makefile.am
gtk-v2/glade/Makefile.in
- A fully autoconf/automake supported directory to be used for the control
of glade-2 layouts compatible with this client.
gtk-v2/glade/AUTHORS
- A file to attribute the authors of the glade-2 XML layout projects in this
directory.
gtk-v2/glade/README
- A help file for prospective glade-2 XML layout creation that describes how
to create a new layout and workarounds for various issues that may arise.
gtk-v2/glade/caelestis.glade
gtk-v2/glade/caelestis.gladep
gtk-v2/glade/chthonic.glade
gtk-v2/glade/chthonic.gladep
gtk-v2/glade/gtk-v1.glade
gtk-v2/glade/gtk-v1.gladep
gtk-v2/glade/meflin.glade
gtk-v2/glade/meflin.gladep
- New layout files for the V2 client. make install places the .glade files
in the crossfire-client data directory, where they are detected by the
client in order to allow a user to select a new layout from the
configuration popup dialog.
gtk-v2/glade/dialogs.glade
gtk-v2/glade/dialogs.gladep
- This glade-2 XML layout project contains pop-up dialogs formerly contained
in the ../gtk-v2.glade files. It was created to reduce the overhead in
setting up a new main window layout. The client allows a user to specify
a new file at the command-line, but does not attempt to support in-client
selection of an alternate file.
- Various modification to the original pop-up dialogs have been made to
support the libglade-2.0 conversion. The generated code allowed the XML
file to have variations in it that cause problems for libglade.
- Minor alterations have been mode to appearance and/or text on various
dialogs.
gtk-v2/glade/gtk-v2.glade
gtk-v2/glade/gtk-v2.gladep
gtk-v2/gtk-v2.glade
gtk-v2/gtk-v2.gladep
- Moved to gtk-v2/glade sub-directory.
- This is the original gtk-v2 client layout by mwedel.
- All popup dialogs have moved into gtk-v2/glade/dialogs.glade.
gtk-v2/Makefile.am
gtk-v2/Makefile.in
- LIBGLADE_CFLAGS/LIBS addition
- gtk-v2/glade directory addition now supported.
- DIST_COMMON modifications by autoconf/automake to remove files not under
SVN control.
- Remove gtk-v2/gtk-v2.glade and gtk-v2/gtk-v2.gladep from EXTRA_DIST as they
are now located in the gtk-v2/glade subdirectory.
gtk-v2/README-dev
- Reformat for aesthetics and readability.
- Various updates to content based upon IRC or mailing list discussions.
- Rework content to third-party point-of-view to make it easier for other
developers to modify the document.
gtk-v2/src
- Inexplicable property changes to svn:ignore simply reposition .deps entry.
gtk-v2/src/about.c
gtk-v2/src/inventory.c
gtk-v2/src/keys.c
gtk-v2/src/map.c
gtk-v2/src/metaserver.c
gtk-v2/src/spells.c
- Include glade.h
- Remove includes of glade-2 generated source files.
- Conversion to libglade-2.0 requires use of glade_get_widget_tree() and
change from lookup_widget() to glade_xml_get_widget() and insertion of
g_signal_connect() to replace functionality previously found in glade-2
generated source files.
gtk-v2/src/config.c
- Include glade.h
- Various code comment improvements.
- Remove includes of glade-2 generated source files.
- All functions without a comment header now have one.
- Significant code comment reformatting to use of a 79 character line width
and to reduce line lengths over 80 characters.
- Add static char pointers themedir and gladedir to better support loading
combo box widgets from the crossfire-client data directory, and to reduce
the number of redundant hard-coded strings.
- The configuration popup dialog now supports in-client selection of an XML
layout file to redefine the root window appearance. Modified functions
include load_defaults(), save_defaults(), setup_config_window(), and
read_config_window(). New functions are scandir_glade_filter,
fill_combobox_from_datadir() which is derived from code factored out of
setup_config_window() so it can be used multiple times. Modifications to
save_winpos() and load_window_positions() alters screen position saving to
remove hard-coded copy/pasted code and more flexibly support multiple XML
UI layout files.
- Conversion to libglade-2.0 requires use of glade_get_widget_tree() and
change from lookup_widget() to glade_xml_get_widget() and insertion of
g_signal_connect() to replace functionality previously found in glade-2
generated source files.
- scandir_filter() renamed to scandir_theme_filter() for more consistent
naming for multiple scandir filter functions now required since the window
layout combo box also requires on.
gtk-v2/src/image.c
gtk-v2/src/opengl.c
gtk-v2/src/sdl.c
- Include glade.h
gtk-v2/src/info.c
gtk-v2/src/pickup.c
gtk-v2/src/stats.c
- Include glade.h
- Remove includes of glade-2 generated source files.
- Conversion to libglade-2.0 requires use of glade_get_widget_tree() and
change from lookup_widget() to glade_xml_get_widget().
gtk-v2/src/interface.c
gtk-v2/src/interface.h
gtk-v2/src/callbacks.h
gtk-v2/src/support.c
gtk-v2/src/support.h
- Remove glade-2 generated source files.
gtk-v2/src/magicmap.c
- Include glade.h
- Remove includes of glade-2 generated source files.
gtk-v2/src/main.c
gtk-v2/src/main.h
- Include glade.h
- General changes to support the conversion to libglade-2.0 require runtime
processing of the glade-2 XML layout file names and locations.
- Add support for command-line specification of glade-2 generated XML files
that describe the UI windows and pop-up dialogs.
- Conversion to libglade-2.0 requires use of glade_get_widget_tree() and
change from lookup_widget() to glade_xml_get_widget() and insertion of
g_signal_connect() to replace functionality previously found in glade-2
generated source files.
gtk-v2/src/Makefile.am
gtk-v2/src/Makefile.in
- LIBGLADE_CFLAGS/LIBS addition.
- Replace GTK2_CFLAGS/LIBS with LIBGLADE_CFLAGS/LIBS.
- Changes resulting from removal of glade-2 generated source files.
gtk-v2/src/menubar.c
- Include glade.h
- Remove includes of glade-2 generated source files.
- Include image.h and gtk2proto.h as support the libglade-2.0 conversion.
- Conversion to libglade-2.0 requires use of glade_get_widget_tree() and
change from lookup_widget() to glade_xml_get_widget() and insertion of
g_signal_connect() to replace functionality previously found in glade-2
generated source files.
gtk-v2/TODO
- Reformat for aesthetics and readability.
- Add todo for non-functional scroll bar handles on the map display.
- Adjust todo for lower screen resolution support since the libglade-2.0 port
at least partially addresses usability on smaller desktops.
help/about.h
- EOL whitespace removed.
- Minor reformat for aesthetics.
- Added libglade-2.0 conversion author.
Makefile.in
common/Makefile.in
gtk/Makefile.in
gtk/themes/Makefile.in
help/Makefile.in
pixmaps/Makefile.in
sound-src/Makefile.in
- LIBGLADE_CFLAGS/LIBS addition
x11/Makefile.in
- LIBGLADE_CFLAGS/LIBS addition
- DIST_COMMON modifications by autoconf/automake to remove files not under
SVN control.
- 2007-09-01 14:09 kbulgrien
- [r7097] - svn copy files are not visible as added. Perhaps because this was added too
early and removed?
- 2007-09-01 14:04 kbulgrien
- [r7096] - Oops. Should have used svn copy.
- 2007-09-01 13:44 kbulgrien
- [r7095] - Prepare for libglade merge.
- 2007-09-01 05:37 mwedel
- [r7092] common/metaserver.c: Update to use official and not test metaserver2 location.
MSW 2007-08-31
- 2007-08-26 03:10 kbulgrien
- [r6986] - autoconf/automake changes
- gtk-v2/src: make proto changes
- 2007-08-15 14:12 ryo_saeba
- [r6935] Fix map not updated at tick causing items to appear non animated.
- 2007-08-15 09:49 ryo_saeba
- [r6928] Partial fix for bug #1772759: Too much alchemy causes client crash.
- 2007-08-15 07:07 mwedel
- [r6927] Make metaserver1 gather it's data in its own thread.
common/metaserver.c: Add ms1_is_running flag, re-work some of the metaserver1
logic so the function structure makes it easy to spawn the thread,
rename metaserver2_check_status() to just metaserver_check_status()
gtk-v2/src/metaserver.c: Change call to metaserver_check_status(), resort
data after getting all info from sever.
SMW 2007-08-14
- 2007-08-15 06:20 mwedel
- [r6925] gtk-v2/src/metaserver.c: Add missing pthread_mutex_unlock() - resulted in
client hanging after disconnecting from server.
MSW 2007-08-14
- 2007-08-14 02:23 kbulgrien
- [r6922] - Fix typo "chosing" -> "Choosing".
- 2007-08-09 07:10 mwedel
- [r6899] Add support for metaserver2 in client. For the X11/C clients, they use basic
interface (drawn in text window, select a number), so no changes to the GUI
portions of those clients was done - gtk2 uses window, so some extra work
there.
--
acinclude.m4: New file - added for LIBCURL_CHECK_CONFIG macro support.
aclocal.m4: Rebuilt
configure: Add --disable-metaserver2 option, check for Curl, pthread. Make
sure user either has curl installed or has used --disable-metaserver2
configure, */Makefile.in: Rebuilt with Curl support
common/cconfig.h: Add note about METASERVER2 (controlled via configure)
common/client.c: Add metaserver2 global
common/client.h: Add metaserver2 global
common/config.h.in: Rebuilt by autoheader.
common/init.c: Add call to init_metaserver()
common/metaserver.c: Support for metaserver2. More fields in Meta_Info.
Re-arrange file a little so logical functions are together.
common/metaserver.h: New fields in Meta_Info, some renamed to keep
it consistent accross all of metaserver2.
common/proto.h: rebuilt
gtk-v2/src/metaserver.c: Add support for threaded metaserver2 retrievals -
need to make sure data is accessed in thread safe way, also need to
add check for status of retrieval thread.
MSW 2007-08-08
- 2007-08-05 21:23 ryo_saeba
- [r6881] Fix bug #1735271: Version numbers of client and server do not match.
- 2007-07-24 19:52 kbulgrien
- [r6808] - Applied patch by "Olivier Huet" <huet.o@free.fr> to fix experience label and
progress bar for high levels (int -> sint64, %d -> %"FMT64").
- 2007-07-22 22:01 kbulgrien
- [r6801] - GTK2 Metaserver dialog modifications:
* Minor rework of prompt texts.
* Add Escape key accelerator for the Quit button.
* Add tooltip to the Quit button to tell a user about the accelerator.
* Cosmetic improvement to the metaserver dialog done by adding padding or
* border width to some widgets so there is spacing between them.
* Make more room for "Server Comments" by removing the redundant "IP Addr"
field, renaming "Last Update (Sec)" to "Updated (Sec)", and renaming
"# Players" to "Players".
- Various non-descript Glade Interface Designer generated file changes.
- 2007-07-22 20:26 kbulgrien
- [r6800] - Adjust GTK2 client setup_list_columns() so "Weight" column titles are no
longer truncated (on some systems).
- 2007-07-11 22:16 ryo_saeba
- [r6771] Fix memory leak.
- 2007-07-10 07:38 mwedel
- [r6767] gtk-v2/src/inventory.c: Add support for client side animation of look window.
MSW 2007-07-09
- 2007-07-05 22:06 ryo_saeba
- [r6755] Fix various GAIM/GTK links.
- 2007-06-27 20:13 akirschbaum
- [r6718] utils/mdk.sh: Make script work again.
- 2007-06-27 18:57 akirschbaum
- [r6716] Remove trailing whitespace.
- 2007-06-18 20:44 ryo_saeba
- [r6677] Remove Gnome client, which is not built anyway.
- 2007-06-18 20:43 ryo_saeba
- [r6676] Remove Gnome client, which is not built anyway.
- 2007-06-18 20:32 ryo_saeba
- [r6675] Trash obsolete junk.
- 2007-06-18 18:48 ryo_saeba
- [r6674] Remove 'map1cmd' variable which is always 1.
- 2007-06-18 18:24 ryo_saeba
- [r6673] Remove map1cmd, face, face1, item1 and some obsolete stuff.
- 2007-06-18 17:59 ryo_saeba
- [r6672] Remove 'resist' command, duplicates server-side 'resistances' giving more info.
- 2007-06-12 06:48 mwedel
- [r6524] configure.in: Add another eval $ndatadir line so properly resolve all
the shell variable names so that CF_DATADIR is set properly in common/config.h
--
MSW 2007-06-11
- 2007-06-12 06:35 mwedel
- [r6522] gtk-v2/src/inventory.c: Add tooltips to the inventory tabs, to make it
clearer what the different tabs do.
--
MSW 2007-06-11
- 2007-06-12 05:51 mwedel
- [r6520] Add pick up menu updating support for gtk2 client - when you log in, it
will get your character pickup mode and update the check boxes accordingly.
---
gtk-v2/gtk-v2.glade: Change "don't_pickup1" widget name to "do_not_pickup"
gtk-v2/src/interface.c: Rebuilt
gtk-v2/src/main.c: Remove empty client_pickup() function, add pickup_init()
gtk-v2/src/pickup.c: Bunch of new code to support pickup updating - mostly
a mapping from menu items to pickup modes, since glade doesn't let us
store those attributes in the menu item.
MSW 2007-06-11
- 2007-06-02 10:06 ryo_saeba
- [r6375] Remove obsolete mapredraw command (empty on server-side).
- 2007-06-02 10:05 ryo_saeba
- [r6374] Remove obsolete mapredraw command (empty on server-side).
- 2007-05-16 22:31 ryo_saeba
- [r6298] Apply patch #1720388: data len in client.c is calculated wrong courtesy Jürgen Kahnert.
- 2007-05-03 22:16 ryo_saeba
- [r6176] Fix callback that was eating a word.
- 2007-04-28 19:29 qal21
- [r6134] Change the version string from 1.9.1 to 2.0-dev for trunk
- 2007-04-25 11:10 akirschbaum
- [r6120] Fix incorrect command name.
- 2007-04-23 20:34 ryo_saeba
- [r6107] Implement feature request #1560389: improve inscription logic.
- 2007-04-23 18:10 akirschbaum
- [r6105] Fix memory overrun error in gtk-v2 client's rc file loader.
- 2007-04-23 18:00 akirschbaum
- [r6104] Fix memory overrun error in gtk-v2 client's text display.
- 2007-04-23 17:55 akirschbaum
- [r6103] Fix memory overrun error in gtk-v2 client's skills display.
- 2007-04-23 17:47 akirschbaum
- [r6102] Fix memory overrun error in gtk client's menu handling.
- 2007-04-16 20:22 akirschbaum
- [r6052] Remove trailing whitespace.
- 2007-04-16 20:06 akirschbaum
- [r6051] Add script to rebuild autoconf files.
- 2007-04-16 20:01 akirschbaum
- [r6050] Rebuilt auto-generated files.
- 2007-04-16 19:56 akirschbaum
- [r6049] Remove double quotes because they create strange comments.
- 2007-04-16 18:53 akirschbaum
- [r6048] Add missing #include <ctype.h>.
- 2007-04-16 18:47 akirschbaum
- [r6047] Remove trailing slash from directory name.
- 2007-04-16 18:39 akirschbaum
- [r6046] Add template comments to AC_DEFINEs. Now autoheader and ./configure --enable-maintainer-mode does work again.
- 2007-04-16 18:09 akirschbaum
- [r6045] Remove unused/commented code.
- 2007-04-16 18:04 akirschbaum
- [r6044] Whitespace changes (fix indentation).
- 2007-04-16 18:01 akirschbaum
- [r6043] Rewrite commands to build svnversion.h to not generate an error message the first time they are run.
- 2007-04-16 17:49 akirschbaum
- [r6042] Remove duplicate use of AC_CONFIG_SRCDIR.
- 2007-04-16 17:41 akirschbaum
- [r6041] Use #include <config.h> instead #include "config.h" to support multiple configurations outside the source directory.
- 2007-04-16 17:28 akirschbaum
- [r6040] Rename DATADIR to CF_DATADIR to avoid name clashes when cross-compiling to Win32.
- 2007-02-26 07:53 mwedel
- [r5617] Add theme support to the gtk2 client spell window.
gtk-v2/gtk-v2.glade: Remove the drawingarea boxes, add eventboxes and put
the labels in the eventbox - the labels now act as key, as it is easier
to do all of foreground, background, and font style there.
gtk-v2/src/config.c: Add calls to set spell styles and redraw spell window
gtk-v2/src/interface.c: Rebuilt
gtk-v2/src/inventory.c: Declare Style_Names static, since it is a generic
name and spells.c uses same name. Linewrap a long line.
gtk-v2/src/spells.c: Add theme handling - load up theme data, set entries
in the treeview widget, update code to draw keys.
gtk-v2/themes/Black, gtk-v2/themes/Standard: Add style information for the
spells.
MSW 2007-02-25
- 2007-02-26 04:31 mwedel
- [r5615] configure, configure.in: Fix broken check for liblua - not all systems have
liblualib, so assuming they do if liblua exists breaks compilation. And
separate check for lualib.
MSW 2007-02-25
- 2007-02-23 21:43 ryo_saeba
- [r5588] Fix missing -llualib linking option.
- 2007-02-21 08:20 mwedel
- [r5583] Remove hard dependancy of LUA - instead, have configure check for it and
just don't compile in the LUA bits if we don't have lua installed.
--
configure,configure.in: Add lua checks.
*/Makefile.am, */Makefile.in: Remove hard coded links of -llua
common/config.h.in: Add HAVE_LIBLUA define
common/commands.c, common/p_cmd.c, common/script_lua.c: Add #ifdef
HAVE_LIBLUA checks
MSW 2007-02-20
- 2007-02-18 15:24 ryo_saeba
- [r5561] Implement feature request 1025952: GTK Client - Save Pickup options.
- 2007-02-10 18:25 ryo_saeba
- [r5432] Apply patch #1560052: LUA client-side support.
- 2007-02-07 07:32 mwedel
- [r5396] gtk-v2/gtk-v2.glade: Apply patch 1636013 - standardize on underscored
widget names. Patch by Veli-Matti Valtonen - maligor.
MSW 2007-02-06
- 2007-02-06 07:28 mwedel
- [r5386] Remove svn:eol-style, so hopefully these will work now.
- 2007-02-06 07:16 mwedel
- [r5384] Change type of files to binary, recommit proper files.
MSW 2007-02-05
- 2007-02-05 18:05 akirschbaum
- [r5383] Remove unused variable.
- 2007-02-05 18:04 akirschbaum
- [r5382] Remove trailing whitespace.
- 2007-02-05 08:53 lalo
- [r5381] adding desktop files for the gtkv2 client
- 2007-02-05 08:26 mwedel
- [r5380] Add support for different themes in the gtk2 client. A lot of compiled
in defaults have also moved to the the theme file.
---
INSTALL: Added file - wanted by automake.
README: Move install directions to INSTALL file.
configure.in, configure: Add gtk-v2/themes/Makefile to list of Makefiles.
common/Makefile.in, common/Makefile.am: Add rule to make msgtypes.h file.
common/client.h: Add Msg_Type_Names file, used by msgtypes.h file.
common/msgtypes.h: File that holds names for the message type/subtype
values.
common/msgtypes.pl: Script to make msgtypes.h file - basically parses
newclient.h, pulling out the MSG_ structures.
common/newclient.h: Update to match server version.
gtk-v2/Makefile.am, gtk-v2/Makefile.in: Add themes to list of subdirectories.
gtk-v2/gtk-v2.glade: Add theme selection to config window.
gtk-v2/src/config.c: Add support for loading/saving theme to gdefaults2 file.
Add support for getting theme from config window, and changing appearance
without need for restart.
gtk-v2/src/gtk2proto.h: rebuilt for theme related functions.
gtk-v2/src/info.c: Remove hard coded font values. Add code to load
color, font, and msg type/subtype from theme file. Remove
a lot of the hardcoding for having 2 textviews - removes a lot
of redundant code. Change processing for adding messages to
to text buffers - don't create a new text tag - use the various
textags we have that match.
gtk-v2/src/interface.c: Rebuilt with theme selection for config window.
gtk-v2/src/inventory.c: Remove hard coded values for color on
inventory status. Add ability to specify more than just background
color for different status - can now also change font & foreground
color. Add code to load up style information. Change processing
for getting row style. Update code that adds entries to the rows.
gtk-v2/src/main.c: Ad usercolorname global array that provides a name
to color number mapping to be used in theme files. Add code to
load up user theme.
gtk-v2/src/stats.c: Add support for parsing theme data. Remove hard coded
color values for the stat bars. Removed hard coded value on number
of stat bars in lots of places.
gtk-v2/themes: New directory to hold the theme files.
---
MSW 2007-02-04
- 2007-01-07 09:01 ryo_saeba
- [r5299] Fix for bug #1538948: Assertion failure for map2 command.
- 2007-01-01 21:52 ryo_saeba
- [r5276] Fix annoying focus issue on autocompletion.
- 2007-01-01 21:52 ryo_saeba
- [r5275] Improve completion: display matching commands.
- 2006-12-22 19:01 akirschbaum
- [r5191] Remove trailing backslash.
- 2006-11-29 22:50 ryo_saeba
- [r5144] Merge patch #1558073: newpickup flesh courtesy bencha
- 2006-11-10 06:31 qal21
- [r5097] Only update svnversion.h when the content actually changes.
- 2006-11-08 07:33 akirschbaum
- [r5090] Whitespace changes and added braces to make the formatting consistent and comply with the programming guide.
- 2006-11-06 21:19 akirschbaum
- [r5089] Whitespace changes and added braces to make the formatting consistent and comply with the programming guide.
- 2006-11-06 05:53 mwedel
- [r5087] Fix problem in display logic when the size of the image was not a multiple
of the map_image_size. This shows up when using tall character images.
It also shows up when using different -mapscale options due to rounding
errors - in both cases now, things are drawn correctly.
--
gtk/map.c: Add size parameters to draw_pixmap(). Add logic to figure out
proper offsets for drawing odd sized images.
gtk/sdl.c: Add logic to figure out proper offsets for drawing these odd
sized images.
gtk-v2/src//map.c: Add size parameters to draw_pixmap(). Add logic to figure
out proper offsets for drawing odd sized images.
gtk-v2/src/sdl.c: Add logic to figure out proper offsets for drawing these
odd sized images.
MSW 2006-11-05
- 2006-11-06 05:48 mwedel
- [r5085] gtk/image.c: Fix bug that results in SDL mode not working if map_scale and
icon_scale are the same - can't use GDK pixmaps for SDL drawing.
MSW 2006-11-05
- 2006-11-04 08:36 mwedel
- [r5077] Fix bug 1559804 - unable to drop items from inventory into open container
on the ground.
gtk-v2/src/inventory.c: Add check to see if container is on the ground in
addition to being in the player inventory as a valid drop target.
MSW 2006-11-03
- 2006-11-04 08:09 mwedel
- [r5075] Add ability for client to get exp table from server. Add exp progressbar
to GTK2 client.
--
common/client.c: Add declarations for exp_table, exp_table_max, and call to
send 'requestinfo exp_table' to server.
common/client.h: Add extern declarations for exp_table, exp_table_max
common/commands.c: Add get_exp_info() function to get exp table from
server in replyinfo command. Fix crash bug in ReplyInfoCmd() if replyinfo
with no parameters is sent to client.
common/init.c: Add code to clear/initialize exp_table, exp_table_max
gtk-v2/gtk-v2.glade: Add exp progessbar widget.
gtk-v2/src/gtk2proto.h: rebuilt
gtk-v2/src/interface.c: Rebuilt
gtk-v2/src/stats.c: Add code to draw/update the exp progressbar. Replace
some static numeric constants with #define values instead. Add
can_alert option to update_stat()
MSW 2006-11-03
- 2006-10-31 07:26 mwedel
- [r5065] common/newclient.h: Merge/copy over file from server to get it synced up.
gtk-v2/src/info.c: Modify so that it sets the text manager for all the
types so it can use extended markup language.
MSW 2006-10-30
- 2006-10-29 21:57 ryo_saeba
- [r5062] Fix annoying popups. Default admin messages use draw_info instead of show_media_message. Add new message types.
- 2006-10-29 06:12 qal21
- [r5056] Ensure that svnversion.h is rebuilt every time.
- 2006-10-21 05:13 qal21
- [r5037] Make a small tweak to make the svnversion call more proper, and rebuild makefiles (Most don't need to be, however it was becoming too much of a pain to only update the right ones).
- 2006-10-21 04:44 qal21
- [r5036] Remove rcs-id handling code from the clients. Unnecessary with the svnversion system.
- 2006-10-21 02:02 qal21
- [r5034] Use 'svnversion' to add the svn revision to the version string.
- 2006-10-12 06:11 qal21
- [r5024] Remove excess log messages that flood console.
- 2006-10-07 18:29 qal21
- [r5010] Apply patches #1562945, #1562947, #1563796, and #1566467 to allow the gtk2 client to be built in mingw. Courtesy of Kurt Fitzner.
- 2006-09-27 00:11 qal21
- [r4982] Move clearing of old map data from mapdata_set_face_layer() to a new mapdata_clear_old() function. Call mapdata_clear_old() in Map2Cmd() instead of relying on mapdata_set_face_layer() to clear it. Fixes bug #1559683.
- 2006-09-26 13:23 qal21
- [r4980] Fix display_mapscroll() in the x11 client to handle scrolling by greater than 1 tile at a time. Fix bug #1564584
- 2006-09-21 05:50 mwedel
- [r4963] add propset ID's to client.
MSW 2006-09-20
- 2006-09-21 04:58 qal21
- [r4959] Adjust .cvsignore files to account for renamed binaries.
- 2006-09-21 04:54 qal21
- [r4958] Change client binary names for 2.0 to crossfire-client-foo, where foo is either gtk, gtk2, or x11. Rebuild makefiles.
- 2006-09-21 04:52 qal21
- [r4956] Rebuild old item-types.h
- 2006-09-19 07:18 mwedel
- [r4941] move some files about.
- 2006-09-18 06:12 mwedel
- [r4939] gtk-v2/src/info.c: Add some notes about downloading font. Add support
for underline in extended text modes.
MSW 2006-09-17
- 2006-09-17 07:12 qal21
- [r4936] Rebuild configure.
- 2006-09-17 07:11 qal21
- [r4935] Fix opengl checks.
- 2006-09-06 07:27 mwedel
- [r4889] Fix bug 1531060 - metaserver selection button is improperly activated.
Fix this by clearing the text box if an entry in the tree widget is selected -
if text is entered in the text box, unselect any selection - keeps it
very consistent what the connect button does. Have it greyed out until
there is either text in the text box or something selected in the treeview.
--
gtk-v2/gtk-v2.glade: add callback for key press events for text entry
box.
gtk-v2/src/callbacks.h,gtk-v2/src/interface.c: Rebuilt
gtk-v2/src/metaserver.c: Add code to activate/disable button based on
status. Add code to clear text box when treeview selected. Add code
to deselect treeview if data is entered in textbox.
MSW 2006-09-05
- 2006-09-06 07:26 mwedel
- [r4888] gtk-v2/src/stats.c: Fix bug 1527966 - protections window not properly
updated. Wrong variable was being used in loop.
MSW 2006-09-05
- 2006-09-05 07:30 mwedel
- [r4887] gtk-v2/src/map.c: Clear clipmask and clear window in draw_splash() so that
splash is correctly redrawn.
gtk-v2/src/metaserver.c: Add call to draw_map() in metaserver selection just
to make sure splash is drawn correctly.
MSW 2006-09-04
gtk-v2/src/inventory.c: Fix bug 1528014 - when dropping all objects, display
isn't updated correctly. Remove checks for cpl.ob->inv - relying on
cpl.ob->inv_updated appears to work fine.
gtk-v2/src/keys.c: Fix bug 1527988 - message about unused keys isn't very
useful. Include meta and alt information about unused keys. Add
warning message to bind when trying to bind a key that may conflict
with an existing binding.
MSW 2006-09-04
- 2006-09-05 07:30 mwedel
- [r4886] gtk-v2/src/inventory.c: Fix bug 1528014 - when dropping all objects, display
isn't updated correctly. Remove checks for cpl.ob->inv - relying on
cpl.ob->inv_updated appears to work fine.
2006-09-04
- 2006-09-05 07:29 mwedel
- [r4885] gtk-v2/src/keys.c: Fix bug 1527988 - message about unused keys isn't very
useful. Include meta and alt information about unused keys. Add
warning message to bind when trying to bind a key that may conflict
with an existing binding.
MSW 2006-09-04
- 2006-09-05 07:03 mwedel
- [r4884] gtk-v2/src/map.c: Clear clipmask and clear window in draw_splash() so that
splash is correctly redrawn.
gtk-v2/src/metaserver.c: Add call to draw_map() in metaserver selection just
to make sure splash is drawn correctly.
MSW 2006-09-04
- 2006-09-04 22:22 mwedel
- [r4883] Add suggestion from bug 1528536 - some menu items should be disabled during
metaserver selection.
--
gtk-v2/gtk-v2.glade: Fix some incorrect name (meny vs menu)
gtk-v2/src/interface.c: Rebuilt
gtk-v2/src/menubar.c: Add enable_menu_items(), which enables/disables some
menu items.
gtk-v2/src/metaserver.c: Add calls to enable_menu_items() to disable
some menu items before metaserver selection, and to enable them after.
MSW 2006-09-04
gtk-v2/gtk-v2.glade: Add callback for pressed event on metaserver quit button -
allows alt-Q to work - fix for bug 1551373
gtk-v2/src/interface.c: Rebuilt
--
gtk-v2/server/metaserver.c: Make some changes related to bug 1548290 - cached
entries show 0 value in players. Add code to check list of servers from
metaserver - if we have a match in the cached server list, don't display
the cached entry - use the one from the metaserver instead. Also, add
logic to not display empty server if the default server is null.
--
gtk-v2/src/config.c: Make save_winpos() do actual saving, have
on_save_window_position_activate() call save_winpos() - fixes
bug 1551395 where savewinpos command does not work.
gtk-v2/src/main.c: Remove empty function save_winpos()
MSW 2006-09-04
- 2006-09-04 22:22 mwedel
- [r4882] Add suggestion from bug 1528536 - some menu items should be disabled during
metaserver selection.
--
gtk-v2/gtk-v2.glade: Fix some incorrect name (meny vs menu)
gtk-v2/src/interface.c: Rebuilt
gtk-v2/src/menubar.c: Add enable_menu_items(), which enables/disables some
menu items.
gtk-v2/src/metaserver.c: Add calls to enable_menu_items() to disable
some menu items before metaserver selection, and to enable them after.
MSW 2006-09-04
- 2006-09-04 22:06 mwedel
- [r4881] tk-v2/gtk-v2.glade: Add callback for pressed event on metaserver quit button -
allows alt-Q to work - fix for bug 1551373
gtk-v2/src/interface.c: Rebuilt
MSW 2006-09-04
- 2006-09-04 22:05 mwedel
- [r4880] gtk-v2/src/config.c: Make save_winpos() do actual saving, have
on_save_window_position_activate() call save_winpos() - fixes
bug 1551395 where savewinpos command does not work.
gtk-v2/src/main.c: Remove empty function save_winpos()
MSW 2006-09-04
- 2006-09-04 22:04 mwedel
- [r4879] server/metaserver.c: Make some changes related to bug 1548290 - cached entries
show 0 value in players. Add code to check list of servers from metaserver
- if we have a match in the cached server list, don't display the cached
entry - use the one from the metaserver instead. Also, add logic to not
display empty server if the default server is null.
MSW 2006-09-04
- 2006-09-04 07:52 mwedel
- [r4877] gtk-v2/src/stats.c: Remove extra Player: in the player name. Fixes bug
1528011. MSW 2006-09-03
- 2006-09-04 06:56 mwedel
- [r4875] Fix/improvement for last commit - don't create a new tag every time we
get an extended text info - instead, create unique names and try to
re-use them.
MSW 2006-09-03
- 2006-09-04 06:42 mwedel
- [r4874] 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
- 2006-09-03 15:24 ryo_saeba
- [r4872] Fix Win32 compilation
- 2006-09-03 15:22 ryo_saeba
- [r4871] Win32 snapshot & such
- 2006-08-22 07:23 mwedel
- [r4830] gtk-v2: Fix bug 1528540 - if metaserver window is closed, client is unusable.
Take suggested fix - if metaserver window is closed, exit client. Just
another hook to last commit.
gtk-v2/gtk-v2.glade: Add callback for destroy event on metaserver window.
gtk-v2/src/interface.c: rebuilt.
MSW 2006-08-21
- 2006-08-21 07:47 mwedel
- [r4823] gtk-v2: Fix bug 1530024 - errors when manually closing a window.
gtk-v2/gtk-v2.glade: Add callback for destroy event on main window.
gtk-v2/src/callbacks.h, gtk-v2/src/interface.c: Updated by glade with new
callback
gtk-v2/src/main.c: Code to handle callback
MSW 2006-08-20
- 2006-08-08 09:59 ryo_saeba
- [r4762] Hide input if asked for
- 2006-07-29 10:13 ryo_saeba
- [r4727] Add .cvsignore files, courtesy Rapha��l Quinet - quinet
- 2006-07-29 08:12 ryo_saeba
- [r4724] Add --enable-gtk2 to build gtk1 client with gtk2. Misc bugfixes.
- 2006-07-18 06:24 mwedel
- [r4690] 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
- 2006-07-18 06:24 mwedel
- [r4689] gtk-v2/src/inventory.c: Add another invisible column to inventory/look
lists for sorting based on name without nrof clogging results. Comment
out code that makes image fixed width.
MSW 2006-07-17
- 2006-07-16 14:35 akirschbaum
- [r4684] x11/xutil.c: Use snprintf() to avoid possible buffer overflows.
- 2006-07-16 13:52 akirschbaum
- [r4683] gtk/image.c gtk-v2/src/image.c gtk-v2/src/opengl.c: Remove superfluous casts.
- 2006-07-16 12:37 akirschbaum
- [r4682] gnome/gnome.c, gtk/gx11.c, x11/x11.c: Remove unused macros.
- 2006-07-16 12:32 akirschbaum
- [r4681] common/item.h: Remove unused macros.
- 2006-07-16 12:13 akirschbaum
- [r4680] Change "if(ptr) free(ptr)" into "free(ptr)".
- 2006-07-16 11:17 akirschbaum
- [r4679] common/commands.c: In DeleteInventory() do not crash if an invalid object tag
was received.
- 2006-07-16 11:09 akirschbaum
- [r4678] common/commands.c: Unify/fix calls to LOG().
- 2006-07-16 10:57 akirschbaum
- [r4677] common/commands.c: In DeleteItem() do not crash if an invalid object tag was
received.
- 2006-07-06 07:07 mwedel
- [r4670] 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
- 2006-07-06 06:16 mwedel
- [r4669] 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
- 2006-07-05 07:12 mwedel
- [r4665] 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
- 2006-07-05 05:21 mwedel
- [r4664] 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
- 2006-07-02 03:19 mwedel
- [r4660] 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
- 2006-07-02 03:10 mwedel
- [r4659] 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
- 2006-07-01 04:56 mwedel
- [r4658] gtk-v2/src/config.c: Fix bug resulting in a crash when opening the
configuration dialogue if you have an empty gdefaults2 file.
MSW 2006-06-30
- 2006-06-29 06:28 mwedel
- [r4654] Update for release 1.9.1
MSW 2006-06-28
- 2006-06-26 06:09 mwedel
- [r4648] sound-src/alsa9.c: Fix up sound for alsa9+. Not positive exact change that
fixed the problem, but following changes made: Add SOUND_DEBUG_WRITES to
separate the debug from writes vs all the other debug messags. If using
16 bit data, always use unsigned no matter wit the sign config option
says. In alsa_recover(), if error is EAGAIN, just do nothing and return.
In audio_play(), don't write more bytes than chunk size (basically
largest block that alsa wants at one time). In play_sound(), don't
decrease volume based on maximum number of sounds that may be played
at once - this makes things too quiet.
MSW 2006-06-25
- 2006-05-22 00:41 mwedel
- [r4595] gtk/gx11.c, gtk-v2/src/main.c: Add checks for csocket.fd==-1 after return
of DoClient. With change in DoClient to close the socket, the network
routines are not called again (like they used to be), and thus the
GUI was't really aware the socket was closed, and wouldn't prompt for
metaserver selection.
MSW 2006-05-21
- 2006-05-21 10:35 akirschbaum
- [r4577] Make socket handling more robust.
- 2006-05-20 09:56 ryo_saeba
- [r4570] Win32 snapshot
- 2006-05-20 09:53 ryo_saeba
- [r4569] Fix Win32 compilation
- 2006-05-17 17:58 ryo_saeba
- [r4567] Fix unitialized variable.
- 2006-05-15 05:57 mwedel
- [r4566] 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
- 2006-04-12 11:18 cavesomething
- [r4552] use the same image hashing algorithm that the server uses for archetypes, increase the table size to 8192 to reduce collisions.
- 2006-03-14 18:08 ryo_saeba
- [r4531] Fix memory leaks and uninitialized variable.
- 2006-03-11 08:42 mwedel
- [r4517] Yet more changes for gtkv2 clients, mostly aimed at making it usable on lower
resolution displays. Window can now be resized to 800x600, added save window
positions so it will remember where you moved the panes to (as well as root
window size). Unrelated change to this is that now the inventory list is
sortable like the metaserver and spell lists are - you can sort by name,
weight, or by item type (click on the icon for item type).
--
gtk-v2/gtk-v2.glade: Add new menu item for save window positions. Change
statbar area so there is a pane between stat bar and stat notebooks.
Change statbars so they resize smaller/larger.
gtk-v2/src/callbacks.h: callback for on_save_window_position_activate() added.
gtk-v2/src/config.c: Add on_save_window_position_activate() and
load_window_positions()
gtk-v2/src/interface.c: rebuilt.
gtk-v2/src/inventory.c: Add LIST_TYPE column for sorting. Change
table definitions so columns are sortable.
gtk-v2/src/main.c: Add code to allow resizing down to 800x600. Add
call to load_window_positions()
gtk-v2/src/map.c: Try to set map size based on window size - save
some memory.
---
MSW 2006-03-10
- 2006-03-07 11:33 elsbernd
- [r4511] sound-src/Makefile.in
- 2006-03-07 11:30 elsbernd
- [r4510] replaced SOUNDDIR with SOUND_DIR in sound-src/Makefile.in so that
--with-sound-dir=<dir> works now.
- 2006-03-04 16:20 akirschbaum
- [r4507] 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.
- 2006-03-04 15:56 akirschbaum
- [r4506] Fix bug #1442523 (Crash when pressing TAB during login). Also fix undefined
behavior due to overlapping strings passed to strncpy().
- 2006-02-28 08:09 mwedel
- [r4505] 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
- 2006-02-27 04:23 mwedel
- [r4501] Update crossfire-client.spec to include gtkv2 client, and so it actually
works with modern version of rpmbuild. Update for version 1.9.0
MSW 2006-02-26
- 2006-02-26 10:28 ryo_saeba
- [r4497] Apply patch #1424583 (IPv6 patch for client) courtesy Christoph Hohmann (reboot)
- 2006-02-26 10:09 ryo_saeba
- [r4496] Win32 1.9.0 release
- 2006-02-26 08:30 mwedel
- [r4495] Update for 1.9.0 release. Fix some makefiles so that make dist works.
MSW 2006-02-25
- 2006-02-25 13:55 ryo_saeba
- [r4493] Fix broken server cache
- 2006-02-23 20:18 akirschbaum
- [r4485] Apply patch #1433271 (code-cleanup) by Stefan Huehner: Add const and static,
remove unused variables
- 2006-02-23 08:30 mwedel
- [r4484] 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
- 2006-02-21 08:11 mwedel
- [r4482] 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
- 2006-02-20 23:00 cavesomething
- [r4477] make the spell list display generic as the skill if a spell doesn't use one
- 2006-02-20 07:22 mwedel
- [r4474] 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
- 2006-02-17 09:35 akirschbaum
- [r4460] 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.
- 2006-02-16 22:32 akirschbaum
- [r4458] Apply patch #1430279 (code-cleanup: const, static, etc) by Stefan Huehner.
- 2006-02-12 11:46 akirschbaum
- [r4447] Apply patch #1429975 (patch to support port numbers in metaserver host names)
by Marc Lehmann.
- 2006-02-12 09:23 akirschbaum
- [r4446] common/metaserver.c, common/metaserver.h: Make cached_servers_loaded static
since it is not used elsewhere.
- 2006-02-12 09:14 akirschbaum
- [r4445] General cleanup -- just whitespace changes; should not affect behavior.
- 2006-02-09 01:47 cavesomething
- [r4436] make the mesage displayed on trying to drop locked items more descriptive
- 2006-01-31 21:11 cavesomething
- [r4412] remove option to display resistances without a scrollbar
- 2006-01-31 14:22 cavesomething
- [r4411] remove coloured inventory and text options and support for black and white monitors, change cfclient to a grey colourscheme
- 2006-01-29 05:01 mwedel
- [r4409] gtk-v2/src/opengl.c: For opengl mode, create a subwindow of the map window
with the needed visual. On many systems, the visual that glXChooseVisual()
returns doesn't match the default visual of the system, thus resulting
in opengl not being able to create a context.
MSW 2006-01-28
- 2006-01-21 23:52 cavesomething
- [r4407] add a 'spell options' box to allow extra options to be passed to spells, make any mouse button change the spell description, not just the left one and reorder some gtk function calls to improve clarity
- 2006-01-19 21:50 ryo_saeba
- [r4404] Fix compilation for some compilers.
- 2006-01-19 18:02 cavesomething
- [r4403] fix bug with reading the wrong bytes on an updspell packet
- 2006-01-19 17:17 cavesomething
- [r4402] spell listing suppport for common and gcfclient
- 2006-01-17 01:13 cavesomething
- [r4401] make skills appear in a scroll pane, and show all known skills, not just those with exp
- 2006-01-16 02:02 cavesomething
- [r4400] make the Close button in gcfclient be greyed-out when there is no container open.
- 2006-01-13 21:37 akirschbaum
- [r4392] common/commands.c: In DeleteItem() properly handle more than one item.
- 2006-01-02 21:39 ryo_saeba
- [r4262] Commits files, just in case.
- 2006-01-02 07:04 mwedel
- [r4258] x11/png.c: Add same workaround from gtk/png.c to make it work on 64 bit
systems.
MSW 2006-01-01
- 2005-12-27 14:26 ryo_saeba
- [r4218] Make nrof uint32, like server-side. Fix a crash with get_number.
- 2005-12-12 02:54 mwedel
- [r4134] gtk-v2/src/image.c: Remove call to free fog pixels (SDL) - with call in place,
client crashes on double free in SDL mode after disconnecting from
server.
MSW 2005-12-11
- 2005-12-11 12:44 akirschbaum
- [r4129] gtk/{map.c,sdl.c}, x11/x11.c: General cleanup - just whitespace changes.
- 2005-11-16 10:25 gros
- [r4038] Enable per-server, per-character keybindings on both *nix and win32 systems.
Undefine MULTKEYS at the beginning of client.h to switch back to the old
behavior.
- 2005-11-12 13:58 ryo_saeba
- [r4032] Patch 1352490 (newpickup rings/amulets client side) courtesy anonymous
- 2005-11-02 20:00 akirschbaum
- [r3971] common/player.c: Properly ignore received comc commands with invalid length.
- 2005-11-02 19:56 akirschbaum
- [r3970] Remove syntax error.
- 2005-11-02 19:53 akirschbaum
- [r3969] gtk/gx11.c, gtk-v2/src/image.c: Initialize smooth_face field when allocating
pixmaps array.
- 2005-11-01 13:46 akirschbaum
- [r3964] Add support for newpickup PU_NOT_CURSED (ignore cursed items) flag.
- 2005-11-01 10:32 ryo_saeba
- [r3956] Fallback to PIXMAP mode when SDL is not built in.
- 2005-10-29 18:44 akirschbaum
- [r3945] Fix bug #1288647 (typing text in password mode). Now hidden input (for
password entry) is reliably turned off afterwards.
- 2005-10-29 10:48 akirschbaum
- [r3943] common/p_cmd.{c,h}: Remove superfluous "const" from get_num_commands() return
value.
- 2005-10-28 20:24 akirschbaum
- [r3940] gtk/text.c: Print MOTD into text window if using -nopopups mode. Previously it
was discarded in -nopopups mode.
- 2005-10-28 19:59 akirschbaum
- [r3939] Documentation/Scripting.html: Clarify the repeat parameter for the issue
command.
- 2005-10-28 19:36 akirschbaum
- [r3938] common/script.c: Make parameters passed to scripts work again.
- 2005-10-16 12:59 ryo_saeba
- [r3880] Fix Win32 not detecting end of script correctly.
- 2005-09-22 13:29 qal21
- [r3692] Avoid using c++ reserved words, in case one wants to link a c++ program to client.h
- 2005-09-22 04:57 cavesomething
- [r3691] Implement RFE 1090049 - add client message timestamp option
- 2005-09-21 13:06 qal21
- [r3687] Use #error directive, so certain C processing applications don't complain.
- 2005-09-21 05:14 cavesomething
- [r3681] copy part of gtk1 image.c to fix compile error on mac
- 2005-09-10 14:19 ryo_saeba
- [r3617] Clean compilation warnings.
- 2005-09-07 06:43 mwedel
- [r3606] Update makefile to link in X11 libraries
MSW 2005-09-06
- 2005-09-06 06:46 mwedel
- [r3604] configure, configure.in: Move check for X11 early in the process so that
gtk dependencies on them should be resolved.
MSW 2005-09-05
- 2005-09-05 20:16 ryo_saeba
- [r3603] Some speed tweaks.
- 2005-09-05 20:15 ryo_saeba
- [r3602] New file
- 2005-09-04 20:40 ryo_saeba
- [r3599] A few tweaks to gain a few ms execution time :p
- 2005-09-04 14:47 akirschbaum
- [r3594] x11/x11.c: Fix similar problem for x11 client: need_update needs to be cleared
too.
- 2005-09-04 14:04 ryo_saeba
- [r3593] Fix performance issue.
- 2005-09-03 15:20 tchize
- [r3589] added support for no-popups in signs and books management. Added one-key close on sign
popups too
- 2005-09-03 13:12 tchize
- [r3588] Fixed Makefile problem where soundsdef.h was not autobuild , breaking compilation
- 2005-09-03 12:50 akirschbaum
- [r3587] *Makefile.in, aclocal.m4, configure: Rebuilt.
- 2005-08-31 21:57 akirschbaum
- [r3582] Fix bug #1102991 (Duplicate grapical display of the same monster):
common/Makefile.am: Add new files mapdata.c and mapdata.h.
common/{client.c, commands.c}: Tell mapdata module the current display size.
common/commands.c: Remove functions to handle map updates. Rewrite
map1_common() to pass information into mapdata module.
common/init.c, gtk/gx11.c: Add new config options -mapscroll and -nomapscroll
to enable/disable scrolling the map view with bitmap operations.
common/mapdata.[ch]: Add new module to handle all updates to the_map.
gtk/gx11.c: Remove code for #if ALTERNATE_MAP_REDRAW. Initialize question mark
face for fog of war. Remove code to allocate the_map.
gtk/image.c: Do not clear the_map in reset_image_data() anymore.
gtk/map.c: Move code to update map data into mapdata module.
draw_pixmap(): New function to draw one face.
drawsmooth(): Check correct layer instead of fixed layer zero. Fix out of
bounds array access.
display_mapcell(): New function to draw one cell.
gtk_draw_map(): Move map drawing code into display_mapcell().
gtk/sdl.c: Basically the same changes as in gtk/map.c
gtk-v2/src/image.c: Basically the same changes as in gtk/gx11.c.
gtk-v2/src/main.c: Add config options -smooth/-nosmooth to enable/disable
smoothing. Remove code to allocate the_map.
gtk-v2/src/map.c: Basically the same changes as in gtk/map.c.
gtk-v2/src/opengl.c: Fix out of bounds array access. Initialize question mark
face for fog of war.
gtk-v2/src/sdl.c: Basically the same changes as in gtk/map.c.
x11/x11.c: Implement map scrolling by using XCopyArea(). Add config options
-mapscroll/-nomapscroll to enable/disable this. Remove code to allocate or
clear the_map. Add new function display_mapcell() to draw one cell. Move
map drawing code from display_map_doneupdate() into display_mapcell().
Remove two pixel border around map window; is was used inconsistently, and
the window size was four pixels too small.
x11/xutil.c: Move code to update map data into mapdata module.
- 2005-08-30 21:07 akirschbaum
- [r3578] Fix bug #1245535 (negative grace showss up as positive amount):
gtk-v2/src/stats.c: Clip negative stat values to zero.
- 2005-08-29 05:19 mwedel
- [r3572] Fix sound compilation so it only tries to compile alsa9 helper if we
in fact have alsa 9 libs.
*/Makefile.in: Rebuilt
configure.in, configure: Add ALSA9_TARGET, replacing SOUND_TARGETS which
was no longer being used.
sound-src/Makefile.am: add EXTRA_PROGRAMS line for cfsndserv_alsa9 so
don't get errors from automake, add @ALSA9_TARGET@ to bin_PROGRAMS.
MSW 2005-08-28
- 2005-08-21 01:43 cavesomething
- [r3561] Commit patch #1265199 from Kevin Rudat to fix client crash when using split window mode
- 2005-08-14 15:22 akirschbaum
- [r3544] common/misc.c, gtk/{gx11.c,sdl.c,text.c}, gtk-v2/src/sdl.c, x11/sound.c:
Fix non-Ansi C89 code: remove "inline" function specifier, replace "//"
comments.
- 2005-08-14 13:18 akirschbaum
- [r3543] Fix buffer overflow in metaserver_get_info().
- 2005-08-14 13:03 akirschbaum
- [r3542] x11/x11proto.h, x11/xutil.c: Use correct parameter type "uint16" for
addsmooth().
- 2005-08-12 07:09 mwedel
- [r3536] This commit adds full automake support for the client - previously, only the
gtk-v2 directory used automake, rest was Makefile.in - now everything is
automake - makes maintenance and distributions easier.
--
common/Makefile.am gtk/Makefile.am help/Makefile.am pixmaps/Makefile.am
sound-src/Makefile.am utils/Makefile.am x11/Makefile.am pixmaps/Makefile.in
utils/Makefile.in help/Makefile.in: New Makefiles
Makefile.am, Makefile.in: Removed unneeded rules, move pixmap, help, util
handling to makefiles in their own directories.
configure, configure.in: Update to include pixmap, help, util as
directories.
gtk-v2/Makefile.am, gtk-v2/Makefile.in: Clean up some rules in this makefile.
common/Makefile.in, gtk/Makefile.in, sound-src/Makefile.in, x11/Makefile.in:
Rebuilt as part of automake.
gtk-v2/src/Makefile.am, gtk-v2/src/Makefile.in: Add banner copyright, remove
uneeded rules.
MSW 2005-08-11
- 2005-08-11 08:16 ryo_saeba
- [r3527] 1.8.0 release
- 2005-08-11 06:51 mwedel
- [r3526] Makefile.am, Makefile.in: Add missing pixmaps, change CHANGES to ChangeLog,
update archive directive so it works.
aclocal.m4: updated
configure, configure.in: Updated for 1.8.0 release. Remove gnome/Makefile
from list of Makefiles to create.
gtk-v2/Makefile.am, gtk-v2/Makefile.in: Add archive directive.
gtk-v2/src/Makefile.{am|in}: Add missing soruces to list so that archive
works correctly. Add archive directive.
MSW 2005-08-10
- 2005-07-30 19:31 ryo_saeba
- [r3516] Fix text selection issue under Windows.
- 2005-07-30 16:53 ryo_saeba
- [r3514] Use GTK 2.6.x.
- 2005-07-29 21:31 ryo_saeba
- [r3510] Fix a crash if closing login window.
- 2005-07-21 07:20 akirschbaum
- [r3489] gtk/image.c: Remove stray '+' at beginning of line.
- 2005-07-18 20:29 akirschbaum
- [r3475] x11/x11.c: Fix crash if display cannot be opened.
- 2005-07-18 20:10 akirschbaum
- [r3474] common/script.c: Properly terminate string with '\0' in script_init().
- 2005-07-18 20:08 akirschbaum
- [r3473] Fix spelling error in error message.
- 2005-07-16 17:23 akirschbaum
- [r3449] gtk/sdl.c, gtk-v2/src/sdl.c: Fix printf like format specifiers.
- 2005-07-10 10:19 ryo_saeba
- [r3421] Win32 uses APPDATA for HOME
- 2005-07-04 22:42 mwedel
- [r3395] Bulk of this change is the addition of a pop up window in the gtk-v2
client for metaserver selection, as well as other updates. The files
to the common area was really to pull the metaserver defines and data
structures from the C file to a header file so that the gtk-v2 code
can access them:
--
AUTHORS: New file, required by automake, data pulled README file.
NEWS: New file, required by automake.
Makefile.in, aclocal.m4: Rebuilt
README: Remove author info from this file, move it to AUTHORS.
common/Makefile.in: add metaserver.h file
common/metaserver.h: New file containing metaserver defines and structures.
common/metaserver.c: Pull out defines/structures from this file, moved to
metaserver.h. Have it strip packets/byte count info from comment
section that metaserver reports.
gtk-v2/Makefile.in: Rebuilt.
gtk-v2/gtk-v2.glade: Added new metaserver window.
gtk-v2/src/Makefile.am: Add metaserver.c as a standalone file that gets
compiled
gtk-v2/src/Makefile.in: Rebuilt
gtk-v2/src/callbacks.h, gtk-v2/src/interface.c, gtk-v2/src/interface.h: Updated
by glade2
gtk-v2/src/main.c: Remove metaserver.c inclusion. Initialize
cached_server_file. Change metaserver selection/display code.
gtk-v2/src/metaserver.c: Lots of new code - have it display window,
handle selections, connect to server, etc.
MSW 2005-07-04
- 2005-06-30 06:58 mwedel
- [r3394] gtk-v2/src/keys.c: Move initialization of global widges to before loading
keybindings - otherwise, they can end up not being initialized.
MSW 2005-06-29
- 2005-06-30 06:46 mwedel
- [r3393] gtk-v2/src/info.c: Remove extra lines of code for scrolling. Have
newlines be inserted in the correct place for the color info tab.
MSW 2005-06-29
- 2005-06-30 06:37 mwedel
- [r3392] gtk-v2/src/inventory.c: Remove call to check to display object in inventory
tab for container objects - if we show the container object, so
all objects within the container (bug 1226968)
MSW 2005-06-29
- 2005-06-27 06:49 mwedel
- [r3391] Add inventory animation to the gtk2 client.
gtk2proto.h: rebuilt
inventory.c: Add new function that animates inventory. Have draw_table() take
a second param that determines if it is doing an animation run or just
a normal draw.
main.c: Move PACKAGE_DATA_DIR to be within WIN32 defines. Add call to
inventory_tick() in do_timeout()
MSW 2005-06-26
- 2005-06-25 08:26 ryo_saeba
- [r3390] Wrong number displayed for cached servers
- 2005-06-04 20:56 mwedel
- [r3359] configure.in, configure: Turn of the use of dmalloc as the default - if
dmalloc is disabled, it has to be intentionally set. gtkv2 client runs
dog slow if dmalloc is used, so that isn't a good default
common/item.c: Fix bug that resulted in the item names not being updated
properly - bug introduced in patch 1197437.
MSW 2005-06-04
- 2005-06-01 08:22 akirschbaum
- [r3352] crossfire-client.spec, gnome/Makefile.in, x11/Makefile.in: Patch from Kari
Pahula to fix manpage paths.
- 2005-06-01 06:19 akirschbaum
- [r3351] gtk/gx11.h: Patch from Kari Pahula to remove incorrect variable declaration.
- 2005-05-30 21:01 ryo_saeba
- [r3337] Patch #1197437 courtesy krudat - inventory-related
- 2005-05-29 16:42 ryo_saeba
- [r3335] Removed unused variables
- 2005-05-29 16:41 ryo_saeba
- [r3334] MIN already defined sometimes
- 2005-05-29 16:25 tchize
- [r3333] FIX: applied patch 1207603 and extended it to gtk1 client
reference: [ 1207603 ] libpng error: Invalid image width
http://sourceforge.net/tracker/index.php?func=detail&aid=1207603&group_id=13833&atid=313833
- 2005-05-29 15:34 tchize
- [r3331] Added support for news and rules in client.
- 2005-05-26 07:39 tchize
- [r3306] Fixed call to inexistant min() function.
min is windows(TM) specific Ryo!
- 2005-05-23 21:40 ryo_saeba
- [r3293] Add server cache, keep last 10 connected to servers.
- 2005-05-22 15:22 tchize
- [r3292] Fix: motd gets cleaned after disconnect from server (for compatibility with old servers)
Bug track Reference: 1197021
- 2005-05-21 17:41 tchize
- [r3283] Addon: signs display in a window when you read them
- 2005-05-12 18:04 ryo_saeba
- [r3253] Fix Windows-specific key behaviour broken by new login window
- 2005-05-12 16:29 tchize
- [r3252] Fixed error in playing state with new login windows.
Now it's possible to play without those annoying unknown state messages.
- 2005-05-07 21:01 ryo_saeba
- [r3251] Fix for Win32
- 2005-05-07 16:21 ryo_saeba
- [r3248] Fix potential issue
- 2005-05-06 20:32 ryo_saeba
- [r3244] Variables declared first, then function calls. Add missing header for Win32.
- 2005-05-06 19:59 tchize
- [r3243] Removed commented code
- 2005-05-06 19:55 tchize
- [r3242] Added support for upcoming extended text messages. No color support yet!
- 2005-04-21 18:31 ryo_saeba
- [r3224] Compilation fixes for Win32
- 2005-04-17 21:10 mwedel
- [r3219] Add newpickup support to the gtkv2 client. Didn't add old support (still
available by specific commands) as I think the interface gets confusing
to have them both - would be better to extend newpickup logic if necessary
to support anything old pickup does that newpickup doesn't.
--
gtk-v2/Makefile.in: Rebuilt
gtk-v2/gtk-v2.glade: Add menu options for newpickup
gtk-v2/src/Makefile.am, gtk-v2/src/Makefile.in: Add pickup.c file
gtk-v2/src/callbacks.h, gtk-v2/src/interface.c: Rebuilt by glade-2
gtk-v2/src/pickup.c: New file - handles pickup logic.
MSW 2005-04-17
- 2005-04-17 21:08 mwedel
- [r3217] Add some casts to fix some compiler warnings.
MSW 2005-04-17
- 2005-04-17 04:47 mwedel
- [r3215] gtk/image.c: Apply patch from bug 1120881 that fixes pointer operations
on netbsd/macppc. Changed code still works on linux/x86.
MSW 2005-04-16
- 2005-04-11 06:18 mwedel
- [r3195] Improve behaviour of information windows on gtkv2 client - before this patch,
they would always scroll to bottom when getting new output, making it
difficult to look at shop listings or other long listings that require
going back in the scroll buffer. With this change, if the buffer isn't
at the end, the scroll position isn't changed. IF it it at the end, it
keeps it at the end.
--
gtk-v2/gtk-v2.glade: Chane scrolledwindows used by the textbuffers to
have a meaningful name.
gtk-v2/src/info.c: Add code that gets position of scroll bar (adjustment)
and compares it with maximum, and if not at end, don't scroll window.
gtk-v2/src/interface.c: Rebuilt.
MSW 2005-04-11
- 2005-04-06 06:55 mwedel
- [r3187] Fix so that magic map works properly on the gtkv2 client.
gtk-v2/gtk-v2.glade: change name of map notebook to map_notebook. Add
signal to handle expose events of the magic map area.
gtk-v2/src/callbacks.h: Rebuilt with addition of expose callback.
gtk-v2/src/interface.c: Rebuilt with addition of expose, change of name.
gtk-v2/src/magicmap.c: Have magic map switch the notebook page to the
magic map page to ensure widget is realized - also good for expected
behaviour. Add some checks for null values so if user switches
before getting magic map data, doesn't crash. Add check in
magic_map_flash_pos() to see if still on the magic map notebook page.
Add expose callback.
gtk-v2/src/main.h: Add MAGIC_MAP_PAGE which defines which notebook page
is the magic map one.
gtk-v2/src/map.c: Have it look up the map_notebook widget.
MSW 2005-04-05
- 2005-03-28 06:44 mwedel
- [r3181] Various minor bugfixes:
configure.in, configure: Add warning message if we can't find gtk+ 2.0 or
later, but continue configure process instead of exiting.
common/misc.c: Fix code so that it compiles with older C compilers.
gtk-v2/src/map.c: Change code on need_recenter_map() - use MAX_MAP_OFFSET
instead of hard coded value of 2 - found a crash here when running
around the world map - could have been caused by a big image and/or
the fact my character moved 2 spaces in one tick. either way, this
change shouldn't impact things, as it is seldom the virtual map needs
to be recentered.
MSW 2005-03-27
- 2005-03-27 20:51 akirschbaum
- [r3180] This patch fixes a few memory leaks related to image caching in all clients.
common/image.c: Declare facetoname[] as static. Add all code accessing this
array. Print warning if image cannot be created.
gtk/gx11.c, gtk/image.c, gtk-v2/src/image.c, x11/x11.c, x11/xutil.c: Remove
code accessing facetoname[].
gtk/gx11.c, gtk-v2/src/main5H.c, x11/x11.c: Always call init_cache_data() to
initialize pixmaps[] array.
gtk/image.c, gtk-v2/src/image.c, x11/png.c: Reject invalid face
numbers and fix resource leak in create_and_rescale_image_from_data().
gtk/image.c, gtk-v2/src/image.c, get_map_image_size: Pretend invalid faces to
be of size 1x1 in get_map_image_size().
gtk-v2/src/image.c: Properly free opengl resources in free_pixmap(). Fix
resource leak when freeing old pixmaps in reset_image_data().
x11/png.c: Properly free resources if an error occurs.
x11/x11.c: Ignore invalid face numbers.
x11/x11.h Remove duplicate definition of MAXPIXMAPNUM and facetoname[].
x11/xutil.c: Initialize size of pixmaps[0].
- 2005-03-26 19:19 akirschbaum
- [r3179] gtk-v2/src/map.c: Fix typo to make it compile without opengl.
- 2005-03-23 22:19 tchize
- [r3174] Fixed smoothing on non floor layer.
- 2005-03-22 07:23 mwedel
- [r3167] Main change of this is addition of opengl drawing for the map in the gtk-v2
client. On my system, the opengl code is about 10 times faster than the
sdl code was, making it so I can turn on all the bells and whistles (smoothing,
best lighting) and still use less than 10% cpu time. As part of this, I
redid the smoothing logic, so the client now requires a new server for
smoothing to work (needs push logic, as client won't request smoothing
info as that adds a lot of complication). This change was done because
the old smoothing code wasn't that efficient - now, we store the smoothing
face along with the face it smooths, so finding the smoothing info is
much faster.
--
configure.in, configure: Add check for -lglut - indication we have opengl
libraries available.
common/client.h: Remove Smooths struct. Change CONFIG_SDL to
CONFIG_DISPLAY, and add CFG_DM_... to denote different display modes,
since there is more than just sdl and not sdl now.
common/commands.c: Don't have SmoothCmd try to update what spaces need
to be redrawn - for opengl, it doesn't care about that, and for
most other maps, it will figure it out when it needs to redraw
anyways.
common/config.h.in: Addition of HAVE_OPENGL line.
common/image.c: Remove getsmooth() - rely on push logic.
common/init.c: Update want_config[CONFIG_SDL] to
want_config[CONFIG_DISPLAYMODE]
gtk/config.c: Change access to CONFIG_DISPLAYMODE
gtk/gx11.c: Change access to CONFIG_DISPLAYMODE. Add -smooth command line
option.
gtk/gx11.h: Add smooth_face to PixmapInfo struct.
gtk/image.c: Change access to CONFIG_DISPLAYMODE. When getting new
PixmapInfo struct, use calloc so we are sure all fields are initialized
to zero. Add addsmooth().
gtk/map.c: Change access to CONFIG_DISPLAYMODE. Change how we access
smooth face info.
gtk/sdl.c: Change how we access smooth face info.
gtk-v2/src/Makefile.am, gtk-v2/src/Makefile.in: Add addition of OPENGL_LIBS
to link libs. Add opengl.c file.
gtk-v2/src/config.c: Add image.h include.
gtk-v2/src/gtk2proto.h: Rebuilt.
gtk-v2/src/image.c: Change access to CONFIG_DISPLAYMODE. Add hooks for
opengl image generation. Change call for pixmap creation from malloc
to calloc. Add addsmooth().
gtk-v2/src/image.h. If we have opengl, include GL/gl.h. Add fields
for opengl texture maps.
gtk-v2/src/info.c: Update so text line wraps if it is too long.
gtk-v2/src/inventory.c: Add checks to make sure object face is
valid before trying to draw. In icon mode, add code to cleanup
old fields (if you drop an item, it wouldn't erase the list item
in the list). Also, free callbacks, as they effectively stack,
and we were using incorrect object pointers (pointer from first
callback, which didn't match current one).
gtk-v2/src/keys.c: Add image.h to includes.
gtk-v2/src/main.c: Add image.h to includes. Change access to
CONFIG_DISPLAYMODE. Add -opengl command switch. Remove
+sdl and popups command line options. Relocate setup of
cache call setup to after we know all windows have been created.
gtk-v2/src/map.c: Change access to CONFIG_DISPLAYMODE. Add opengl
drawing hooks. Change access for smooth info. Implement
button press code for map window (basically grabbed from
gtk/map.c)
gtk-v2/src/opengl.c: New file containing opengl draw code.
gtk-v2/src/png.c: Remove some unused code resulting in compile warnings.
gtk-v2/src/sdl.c: Remove some commented out code. Change access method
for smoothing code.
x11/xutil.c: Change access to CONFIG_DISPLAYMODE. Add addsmooth()
function.
MSW 2005-03-20
- 2005-03-13 16:44 ryo_saeba
- [r3131] Add experimental W95/98 detection, with warning about client issues.
- 2005-03-13 15:18 ryo_saeba
- [r3126] Apply patch #1161817: magic devices pickup flag
- 2005-03-08 07:18 mwedel
- [r3106] More improvements for the gtkv2 client, mostly adding SDL support:
gtk-v2/TODO: updated
gtk-v2/src/logfile: Removed - don't need dmalloc logfile.
gtk-v2/src/Makefile.am, gtk-v2/src/Makefile.in: Change program name from
'gtk-v2' to 'gcfclient2'. Add sdl.c to list of files.
gtk-v2/src/gtk2proto.h: Rebuilt
gtk-v2/src/inventory.c: Fix bug in show_nonmagical() (which corresponds
to inventory tab) - was showing unpaid objects, not nonmagical objects.
gtk-v2/src/main.c: Remove time_map_redraw declaration from function, since
it is declared in map.c. Change map logic to draw when we finish processing
network data. Change client naem as it reports itself to server to GTK2
... Client.
gtk-v2/src/map.c: Add map_updated variable which is set by display_map_doneupdate -
used by map draw function to know if anything has changed. Clean up some
formatting, remove unused code.
gtk-v2/src/sdl.c: New file containing sdl support.
MSW 2005-03-07
- 2005-03-03 20:58 ryo_saeba
- [r3086] Windows 1.7.1 release
- 2005-03-03 08:09 mwedel
- [r3085] Add depcomp - needed by configure in conjunction with automake.
MSW 2005-03-02
- 2005-03-02 08:19 mwedel
- [r3084] Minor cleanup related to gtk-v2 commit - remove po/Makefile.in from configure,
change rcs_id stirngs in .h files to be commented out so they are not used -
otherwise, they appear in multiple files == errors.
MSW 2005-03-01
- 2005-03-02 07:52 mwedel
- [r3083] Commit for GTKv2 client - please read gtk-v2/README before using this client.
The bulk of the changes are limited to the gtk-v2 directory (addition),
but some changes elsewhere as related to using automake. You will need
to run configure for the gtk-v2 client to be built (it should be built
automatically if you have the needed libraries)
--
Changelog: Replaces CHANGES file to meet automake standards.
Makefile.am: New file for use with automake.
Makefile.in: rebult from Makefile.am
aclocal.m4: Updated with macros to check for gtk-v2.
configure.in: checks for gtk-v2 added. Chane SUBDIRS to CF_SUBDIRS as
using SUBDIRS causes conflicts.
utils/config.guess, utils/config.sub, utils/missing: Updated as part of
automake changes.
gtk-v2/*, gtk-v2/src/*: Files related to gtk-v2 client.
MSW 2005-03-01
- 2005-03-01 07:35 mwedel
- [r3082] crossfire-client.spec: Update for 1.7.1 release, make some other changes that
better match my system since I don't think anyone else is using it.
gtk/Makefile.in: Add crossfire-client.desktop to list of files to add
to distribution.
README.rpm: removed - had info that didn't really apply to me making RPM
files
MSW 2005-02-28
- 2005-03-01 06:57 mwedel
- [r3081] configure.in, configure: Add --disable-dmalloc option to configure.
MSW 2005-02-28
- 2005-02-28 07:31 mwedel
- [r3078] Changes for 1.7.1:
configure, configure.in: Rev for 1.7.1 release
sound-src/Makefile.in: Add files to EXTRA_DIST, fix typo so that make
arhive works.
MSW 2005-02-27
- 2005-02-27 06:06 mwedel
- [r3074] Add 'show' command back in to list of commands.
common/external.h: Change prototype of command_show() to match p_cmd.c
prototype.
common/p_cmd.c: Add 'show' to command dispatch table.
gtk/gtkproto.h: rebuilt
gtk/gx11.c: change declaration of command_show() to take const char *.
gtk/sdl.c: Make drawsmooth_sdl() static so it won't be put into gtkproto.h
file, which causes compilations to fail.
x11/x11.c: change declaration of command_show() to take const char *.
x11/x11proto.h: rebuilt
MSW 2005-02-26
- 2005-02-20 07:17 mwedel
- [r3068] common/metaserver.c: Once we have read in limit of number of
metaservers, don't do anymore processing - otherwise, client just
crashes.
MSW 2005-02-19
- 2005-02-14 05:42 mwedel
- [r3067] Sound cleanup and redo for ALSA9. The bulk of this is to break out the
alsa9 code from the cfsndser.c and compile its own seperate cfsndserv-alsa9
executable. Add options to config file/gtk client to support setting
which sound daemon to use. Note that ALSA9 sound now works all
properly - significant changes had to get made to the code for this
to happen.
--
configure, configure.in: The existence of ALSA9 sound does not preclude
compilation of OSS sound support (or others for that matter), so change
the logic accordingly to set variables only used for ALSA9. Add
SOUND_TARGETS that can be used by the makefile, change logic of
setting SUBDIRS so we don't put sound-src in multiple times.
common/client.c, common/client.h: Add sound_server variable.
gtk/config.c: Add support for loading/saving sound_server line in gdefaults
file.
gtk/gcfclient.man: Update about -sound_server option.
gtk/gx11.c: Update help and command line processing to support -sound_server
option.
gtk/sound.c: Change initialization of sound pipe to use sound_server variable
(set by options above) instead of hard coded cfsndserv. Path can be
either be absolute or relative to to bindir. Also change code so that
pipe is set for non blocking output, so if the sound daemon gets hung
up, won't effect rest of the client.
sound-src/Makefile.in: Redone to handle cfsnserv-alsa9 binary. uses
SOUND_TARGETS to know what to build.
sound-src/cfsndserv.c: Remove all ALSA9 code, since that is now in
alsa9.c file.
sound-src/alsa9.c, sound-src/common.c: Nwe files - alsa9.c contains
logic for playing sound. common.c is common routines. Idea being
that other code could get pulled from cfsndserv.c and use the common.c
routines for parsing sound file, etc.
MSW 2005-02-13
- 2005-02-12 22:05 ryo_saeba
- [r3065] Fix broken script. Make sure help works under W32.
- 2005-02-10 07:03 mwedel
- [r3063] Makefile.in, common/Makefile.in, gnome/Makefile.in, gtk/Makefile.in,
sound-src/Makefile.in, x11/Makefile.in: Add ${DESTDIR} prefix for
installation into other directories. Patch from sourcefore #1061895
MSW 2005-02-09
common/external.h, common/init.c, common/player.c, common/proto.h,
common/script.c, common/script.h, common/p_cmd.c (new file),
common/p_cmd.h (new file), gtk/gtkproto.h, gtk/gx11.c, gtk/help.c (new
file), gtk/keys.c, help/chelp.h, x11/x11.c, x11/x11proto.h, x11/xutil.c:
Install command table for client side commands - makes adding commands a
little easier, but also makes it easier to have better help. Bulk of the
changes are in p_cmd.c file, which pulled some code out of player.c.
Other source files modified to clean up function parameters (all now take
const char * as the command options). Patch from sourceforge 1022245,
with some work done by me. Addition fix in gtk/keys.c unbind - buffer
overflow would result if unbinding very long binding.
MSW 2005-02-09
- 2005-02-05 23:31 ryo_saeba
- [r3061] Fix a buffer overflow in unbind output. Make strings const when possible
- 2005-02-05 07:29 mwedel
- [r3060] Makefile.in: Fix up distclean directive to go into all directories.
configure.in, configure: Fix configure so the --enable-feature and
--disable-feature flags follow proper standard (from patch on
sourceforge). Add check for -lossaudio. Modify check for
-lSDL_image library - don't require it for SDL support (if we
have it, we'll use it, but for newer versions of SDL, it doesn't
seem to exist anymore)
common/client-types.h: Minor formatting change.
common/script.h: add defines for PF_LOCAL and AF_LOCAL if they are
missing.
gtk/Makefile.in: Install man page into section 6.
sound-src/Makefile.in: Fix up depend command - had wrong variable.
Fix up distclean to remove automatically generated files.
x11/Makefile.in: Install man page into section 6.
MSW 2005-02-04
- 2005-01-17 02:01 crowbert
- [r3049] fix script interface bugs
- 2005-01-17 01:52 crowbert
- [r3048] indentation fix--no impact on the binary
- 2005-01-08 21:22 ryo_saeba
- [r3039] Point to Gaim's GTK package instead of dead Dropline one.
- 2005-01-07 21:02 ryo_saeba
- [r3035] Stupid newline issues...
- 2005-01-07 20:56 ryo_saeba
- [r3034] Password fix
- 2005-01-07 20:47 ryo_saeba
- [r3033] Fix party password prompt being blank
- 2005-01-07 19:45 ryo_saeba
- [r3031] Fix password dialog bug under WinXP-GTK2.4 (or other configs)
- 2004-12-21 22:36 ryo_saeba
- [r3015] Fix bug 1061908 (missing include for NetBSD)
- 2004-12-21 20:20 ryo_saeba
- [r3014] Fix bug #1085729 ; Win32 macro fix
- 2004-10-09 15:55 akirschbaum
- [r2940] Fix typo.
- 2004-09-19 16:19 akirschbaum
- [r2921] gtk/win32/config.h: Add parentheses around arguments of sleep and usleep
macros.
- 2004-08-30 18:31 tchize
- [r2899] scripting: added script command 'localcmd <command> [<params>]' to call commands handled only by client.
The list of those commands and their help are available thru the help command (or the script command 'localcmd help' ;).
e.g. scripts can now issue keybindings, show the last magicmap and so on.
- 2004-08-16 09:09 ryo_saeba
- [r2882] Apply patch #1001086, say something when script fails (Unix)
- 2004-05-28 20:11 akirschbaum
- [r2807] gnome/gnome.c, gtk/gx11.c: Fix improper access to history buffer variable.
- 2004-05-22 15:51 tchize
- [r2790] Updated The SDL best per pixel lightning code and changed color -> gray algorithm
Now less artefacts, still some time around fog of war.
However looks better than before. Use bilinear interpolation.
Perhaps should switch to bicubic some time later :)
I changed the fog of war picture generation to create a gray
value based on luminescence (More accurate gray, as if picture was
take from a gray old camera).
- 2004-05-16 06:09 mwedel
- [r2780] gtk/gx11.c: Comment out printing of size when we receive config event.
gtk/image.c: Remove some superfluos LIL_ENDIAN code that would never
be used because it was already in an #ifdef LIL_ENDIAN/#else block.
Fix up freeing of data - need to free the pixel info before freeing
the surface, don't free the fog pixels since SDL will do that for us.
MSW 2004-05-15
- 2004-05-12 06:43 mwedel
- [r2766] gtk/image.c: Patch from bug list to fix compilation on big endian
machines.
MSW 2004-05-11
- 2004-05-09 07:56 mwedel
- [r2761] gtk/gx11.c: Fix configure_event() to only allocate new data structures if
the size of the map area has in fact change. This fixes a major memory
leak, as it seems gtk erroneously generates configure events.
gtk/map.c: Clean out some commented out code, clean up the formatting of the
draw_map function - no actual code change.
MSW 2004-05-08
- 2004-05-03 03:22 tanner
- [r2750] Given that Redhat 9 was deprecated on 04/30/2004 and the consumer version of
Redhat linux no longer exists, I've switched to Debian and will no longer be
maintaining the .spec file and RPMS for Redhat/Fedora Linux.
I posted to crossfire-devel asking for someone to take over.
- 2004-04-25 08:28 ryo_saeba
- [r2742] Windows 1.7.0 release
- 2004-04-19 06:35 mwedel
- [r2736] Various updates for 1.7.0 release - bump version number. Some file names
renamed/removed/mistypes in the Makefiles - fix those up. Update the
CHANGES file.
MSW 2004-04-18
- 2004-04-19 05:14 mwedel
- [r2735] Minor changes to clean up some compiler warnings.
MSW 2004-04-18
- 2004-04-11 09:48 ryo_saeba
- [r2724] Tweaked SDL sound support for Windows
- 2004-04-11 08:36 ryo_saeba
- [r2723] Sound for Windows w/o SDL
- 2004-04-06 21:32 ryo_saeba
- [r2712] Windows now has script support
- 2004-04-04 10:07 ryo_saeba
- [r2707] Fix Win32 scripting
- 2004-03-12 18:49 ryo_saeba
- [r2677] Fixes related to failure to connect to server/metaserver
- 2004-03-07 16:56 ryo_saeba
- [r2673] Cleaned installer script, tweaked installed files, updated .txt files
- 2004-03-04 22:46 ryo_saeba
- [r2667] Added installer script & basic instructions.
- 2004-03-04 22:31 ryo_saeba
- [r2666] Key loading issue for Windows
- 2004-02-06 07:27 mwedel
- [r2605] configure.in: Remove checks for gnome libraries, since we no longer use
gnome/build a gnome client.
aclocal.m4: downgrade requirement for needed autoconf version.
MSW 2004-02-05
- 2004-02-01 09:41 ryo_saeba
- [r2576] Getting ready for 1.6.1 release.
- 2004-02-01 09:31 ryo_saeba
- [r2575] Win32 printf => LOG
- 2004-01-31 20:13 tchize
- [r2574] fixed a bug in save_individual_key in which a buf was overflowed when
a binded command has a size approaching the maximum length (sizeof(bind_buf)).
Also fixed a potential problem which could arise when loading a keybinds file where
some commands exceeded maximum command length.
- 2004-01-31 16:19 tchize
- [r2573] Added a warning message when keybinding is trucated becasue too long
Also fixed a bug in rebinding of command/fire/run and other system binding
- 2004-01-31 10:37 ryo_saeba
- [r2570] Added 'gtk/sound.c'
- 2004-01-31 10:11 tchize
- [r2569] fixed a bug in scripting leading to deferencing of null pointer when
script was asked watching all command (empty watch parameter)
- 2004-01-30 22:03 ryo_saeba
- [r2568] Win32 fixes
- 2004-01-30 18:59 tchize
- [r2567] Documented recent changes concerning LOG() and Documentation
- 2004-01-30 18:43 tchize
- [r2566] Logging of source files version on client. Removed need for scripting in Makefile
Better used way which didn't use Makefile and a script. Simply ask each .c file
to create a char * rcsid_directory_file_c and collected them as an array in main()
- 2004-01-30 13:30 tchize
- [r2565] LOG cleanup, source version infos in logs
Cleanup some printf remaining in x11. Also changed x11/sound.c to use raiseChild and so
have messages from child showed thru log. Modified root Makefile.in to include bugreport.h.
Modified common/Makefile.in, gtk/Makefile.in and x11/Makefile.in so they generate
a rcs-id.h file in their respective directory. This file has info on cvs version
of .c files used at compile time. Usefull to track bug in outdated client and check
they are corrected. Modified gtk/x11 clients so they show those informations at startup.
- 2004-01-29 22:06 tchize
- [r2564] First documentation on scripting interface
- 2004-01-29 21:32 ryo_saeba
- [r2563] Win32 fixes
- 2004-01-29 21:28 ryo_saeba
- [r2562] Win32 fixes
- 2004-01-29 18:50 tchize
- [r2560] did put some code in a function before declaring variable, compiled, but was
dangerous. fixed
- 2004-01-29 11:04 tchize
- [r2559] Changed a bit configure.in, somme calls in it were deprecated and version was incorrect.
Also rerun aclocal,autoconf and autoheader.
Couldn't run automake since makefile.am missing
- 2004-01-29 11:02 tchize
- [r2558] Fixed a bug in child handling. Chained lsit corrupted when cleaning dead childs
- 2004-01-28 22:16 tchize
- [r2557] Added generic support to instanciate child process and get redirected I/O.
Added generic support so you can create a child executing a command (like
does the sound server communications). All I/O (stdin,stdout,stderr) can be
redirected and handled by the logging facilites (stdout/stderr) and the stdin
can be used to give orders to the child. Clients are supposed to call
monitorChilds() on a regular basis to purge the communications queues handled
by logging facilities. Killed child are automatically removed from Logging and
an INFO log entry is generated.
Exemple log of gtk client invoking the cfsndserver:
[ INFO ] (Child17575::/usr/local/develop/cf/tosmooth//bin/cfsndserv::2) Settings: bits: 8, unsigned, mono, frequency: 11025, device: /dev/dsp
[ INFO ] (Child17575::/usr/local/develop/cf/tosmooth//bin/cfsndserv::2) Couldn't set audio format
[ INFO ] (Child17575::/usr/local/develop/cf/tosmooth//bin/cfsndserv::2) bits: 16, signed, stereo, freq: 11025, smpl_size: 4, 0level: 0
[ INFO ] (Child17575::/usr/local/develop/cf/tosmooth//bin/cfsndserv::2) Unable to open /home/tchize/.crossfire/sounds - will use built in defaults
- 2004-01-28 09:26 tchize
- [r2556] Added logging support and bug report help
Remove lots of printf to stderr and replaced them with a LOG call. LOG
also keep in memory the message, so the client can ask them to help bug
reporting. If you use the gtk client and click on help -> Report a Bug
you will see the list of error message in a textarea so you can cut and
paste in bug tracker.
Also modified the LOG prototype so it accepts as parameters a loglevel,
a location (most of time send <partofclient::functionname> in it), a
format string and parameters used in printf functions.
Here is a typical log after connecting to a server:
MESSAGES TRACK:
[ INFO ] (Client Version) GTK Unix Client 1.6.0
[ INFO ] (gtk::init_cache_data) Init Cache
[ ERROR ] (Library::Gtk-CRITICAL) file gtkbox.c: line 332 (gtk_box_pack_start): assertion `child->parent == NULL' failed.
[WARNING ] (common::VersionCmd) Differing C->S version numbers (1022,1023)
[ INFO ] (common::VersionCmd) Playing on server type Crossfire Server
[WARNING ] (common::SetupCmd) Server returned FALSE on setup command sexp
[ INFO ] (commands.c) addme_success received.
[ ERROR ] (Library::Gtk-CRITICAL) file gtkbox.c: line 332 (gtk_box_pack_start): assertion `child->parent == NULL' failed.
You may notice the gtk / gdk errors are send to the Logging facilities as well.
I plan to add additionnal of [INFO] in code so in case of bug we may have useful
informations like server connected to, server protocol, and config of client.
- 2004-01-27 20:04 ryo_saeba
- [r2553] Win32-specific fixes
- 2004-01-27 19:58 ryo_saeba
- [r2552] Win32 fixes
- 2004-01-27 19:56 ryo_saeba
- [r2551] Win32 fixes, explicit cast for meta_sort
- 2004-01-27 08:25 tchize
- [r2550] Ooops. SOUND_DEBUG was activated in last commit. Commented it in source.
- 2004-01-26 23:12 ryo_saeba
- [r2547] Tweaked browse info settings
- 2004-01-26 23:00 ryo_saeba
- [r2546] Added const where needed, changed int to char for match
- 2004-01-26 22:56 ryo_saeba
- [r2545] Fixed Windows definition, and added function prototypes
- 2004-01-26 22:52 ryo_saeba
- [r2544] Fixed Windows-newlines to Linux ones.
- 2004-01-26 19:40 tchize
- [r2543] Clean exit
Added window closed events checks so the client exits when a window is closed.
Works with cfclient and gtkclient. In normal mode, when main window is closed,
exit the client. In split mode, closing any window will exit the program. This
behaviour is much better than a pack of assert error or a program still working
without any window to manage.
- 2004-01-26 16:54 tchize
- [r2542] Building disappear bug fix
Fixed a bug of buildings disappearing when moving from west to east or
north to south in cities where building are made of a bigimage,
covering multisquares. This was because every square entering the map
view after a scroll was forced to empty, waiting for info from server.
But bigimage buildings are sended by server before they enter map. Added the flag
to ask no reset of the bigimage during the erasing of squares and setting flag to
true for squares entering the map.
- 2004-01-26 15:19 tchize
- [r2541] fixed incomplete ALSA9 support and changed sounds.dist to use .raw
The ALSA9 support was in configure but the code part wasn't in the cfsndserv.c
Applied the patch from Tim Hentenaar submitted on mailing list in march 2003 to
correct this.
Also changed the default sound file so it uses .raw files and not .au because
CVS sounds are now .raw.
- 2004-01-25 16:10 ryo_saeba
- [r2534] Added NULL argument check
- 2004-01-25 14:05 ryo_saeba
- [r2533] Added icon from Somebody's version
- 2004-01-21 10:24 tchize
- [r2529] Just cleaned some commented code from a cut and paste
- 2004-01-21 10:22 tchize
- [r2528] Smoothing. Support in gtk-sdl mode and excluded smoothlevel 0
Added support for smoothing in the sdl rendering routines of gtk client. Support
works good with fog of war and lightning.
Also excluded the smoothlevel 0 of rendering routine. This mean a face having a
smoothlevel of zero will not be put underneath the one with smoothlevel 1 or higher.
This also mean a face with smoothlevel 1 will never go on top of another but
may be partially hidden by other faces with smoothlevel 2 or higher.
Best way to check those changes is too look at the earth (having smoothlevel 0) in
the HallOfSelection
- 2004-01-12 07:23 onefang
- [r2510] Bind commands longer than the bind buffer no longer crash.
DVS 2004-01-12
- 2003-12-07 11:49 ryo_saeba
- [r2484] Added script files
- 2003-11-29 05:41 mwedel
- [r2475] Commit this file also.
MSW 2003-11-28
- 2003-11-29 05:40 mwedel
- [r2474] gtk/map.c, gnome/map.c: Apply patch by kirschbaum@myrealbox.com which fixes
improper coordinate comparision.
gtk/gx11.c: Remove some unused declarations.
gtk/map.c: always set the cleared flag as spaces come into view.
MSW 2003-11-28
- 2003-11-22 17:13 ryo_saeba
- [r2468] Fixed skill level display in stats for Win32
- 2003-11-16 08:17 mwedel
- [r2462] Store away image data as passed in - needed to fix problem resulting
from recent change to image.c - SDL mode needs a copy
of this data to work.
MSW 2003-11-16
- 2003-11-13 18:22 gros
- [r2457] Corrected memory leaks (PNG structures not being properly freed)
- 2003-11-11 08:00 mwedel
- [r2454] Fix problem with 64 bit values not getting decoded properly - only
happened if the value more than could be held in 32 bits - we weren't
treating the sign bit properly for the MSB of the 4 byte int.
MSW 2003-11-10
- 2003-11-10 20:24 ryo_saeba
- [r2451] Fixed Win32 compilation. Scripting is disabled (dummy empty functions).
- 2003-11-10 15:11 crowbert
- [r2450] add scripting interface
- 2003-10-27 07:08 mwedel
- [r2429] x11/x11.c: Fix button pressing in the game window so it properly deals with
non standard size maps.
MSW 2003-10-26
- 2003-10-26 11:43 ryo_saeba
- [r2419] Fix for Windows-specific compilation issues. GTK client should now compile ok.
- 2003-10-26 03:53 mwedel
- [r2415] common/client.h, common/newsocket.c: Remove 'extern in errno' lines -
errno.h is included, which takes care of the problem.
MSW 2003-10-25
- 2003-10-21 08:29 elsbernd
- [r2408] get_map_image_size: access of width/height when pixmaps[face]==NULL
results in coredump on IRIX (pixmaps[0] == NULL)
- 2003-10-10 06:33 mwedel
- [r2390] Update for 1.6.0 release.
MSW 2003-10-09
- 2003-10-10 06:18 mwedel
- [r2389] common/commands.c: Clean up some formatting.
common/item.c: Add num_free_items() to try and help see some memory
laakage.
common/player.c: Add num_free_items command which calls above routine.
gtk/gx11.c: Fix movement/firing by using mouse pointer. Map size was
hard coded in, so didn't work correct if non standard map size was used.
MSW 2003-10-09
- 2003-10-09 06:40 mwedel
- [r2387] Add an option to the gtk client which controls what happens when you use apply
to cycle through containers. It used to be closed->applied->open->applied.
Now, if you select the config option, it goes closed->applied->open->close->..
common/client.h: Add new config variable.
common/commands.c: Remove some dead commented out code.
common/init.c: Update save name for config value.
gtk/config.c: Update to have menu option in config window.
gtk/gx11.c: Change close_container() to send/not send apply based on setting.
Add close_container_callback() which is used for the 'close' button,
which has to always send the apply command.
MSW 2003-10-08
- 2003-10-08 07:15 mwedel
- [r2384] common/commands.c: improve expand_face() - there was the problem if multipart
object that overlapped not always being drawn properly. This is because
expand_face would basicaly put the first one it received on the lower
stack - this is fine if you came from above, but was incorrect if you
approached from the south. expand_face() now checks to see which one
should overlap the other, based on where the coordinates would put it.
MSW 2003-10-07
- 2003-10-06 07:04 mwedel
- [r2380] Bulk of this commit is to fix big image support for the X11 client.
common/client.h: Add a couple new defines to denote how big the largest
image may be, minimum reasonable map size for the_map structure,
and how far off the map a head could be.
x11/png.c: Remove hard coded values of images being 32 pixels wide/high.
Also, store away actual size of images, needed for big image stuff
to get filled in properly.
x11/x11.c: Add an error handler to make it easier to catch bugs
(gets real stack trace instead of the program exiting). Fix
up the gen_draw_face to properly draw big images, change
call to allocate map to pass in new larger values.
x11/x11.h: Add width, height values to Pixmap data structure.
x11/xutil.c: Change the routine to recenter virtual map some - we need
to take into account that there can be big images, so include that
value in when seeing if we are too close to the map edge.
MSW 2003-10-05
- 2003-10-02 06:53 mwedel
- [r2365] Put in proper code for alsa9 support.
Patch by common/loader.l, applied by MSW 2003-10-01
- 2003-09-13 05:25 mwedel
- [r2318] common/commands.c: Add call to reset_player_data() - necessarily for
data to be sanely displayed for next time player logs in.
common/init.c: add reset_player_data - clears out skill data.
gtk/gx11.c: Add code to erase skills that current player doesn't know.
Some alternative map drawing code also in place, but disabled.
gtk/gx11.h: Add ALTERNATE_MAP_REDRAW define.
gtk/sdl.c: Add check for ALTERNATE_MAP_REDRAW.
MSW 2003-09-12
- 2003-09-12 16:12 crowbert
- [r2313] remove unused tmp_exceptions and add missing file close
- 2003-09-12 16:04 crowbert
- [r2312] remove unused tmp_exceptions and add missing file close
- 2003-09-11 20:12 crowbert
- [r2310] add SDL prototypes to avoid warnings
- 2003-09-11 17:12 crowbert
- [r2309] remove some compiler warnings; no binary changes
- 2003-08-08 17:06 tchize
- [r2282] Fixed a bug in gtk client which cleared multipart object when tail was
scrolling in the map.
- 2003-07-16 17:29 tchize
- [r2252] Fixed a slight bug with animation borders. Now lava, sea, etc have their smooth border animated in
sync with the mapfaces.
- 2003-07-16 12:36 tchize
- [r2251] Corrected a small bug which implied redrawing the whole map instead of changed parts.
Increases redraw performances a lot.
- 2003-07-15 14:49 tchize
- [r2241] Little performances upgrade in smoothing code.
improves include:
- don't try to draw if weight is 0 (empty border or empty corner)
- suppressed a useless gdk_gc_set_clip_mask
- more intelligent need_resmooth flag.
- 2003-07-11 11:46 tchize
- [r2225] Fixed a bug implying a client crash if smoothing was activated but not
images cache.
- 2003-07-08 12:52 tchize
- [r2211] Updated smoothing code. Now uses the 32 transitions way instead of the
first try 8 way.
- 2003-06-25 17:13 crowbert
- [r2199] add config option for controling generation of the splash screen
- 2003-06-19 12:23 tchize
- [r2195] Added support for smoothing
common part: added protocol modification + structures add-ons
gtk part: updated non SDL drawing routines to draw smoothing (SDL still
to be done)
Client have been test with older servers to ensure backward
compatibility.
- 2003-05-25 23:37 mwedel
- [r2158] gtk/gx11.c: Change skill experience display - instead of skill
name and exp/level being the same string and same table element,
add additional columns, so the skill name is in one, the exp/level
in another. IMO, this makes for cleaner display, as the exp
totals for the different skills then line up better. Also, fix
some display bug when new skills need to be displayed.
x11/x11.c: Fix bug where stipple patterns where being improperly
displayed/retained in fog of war and darkness modes.
x11/xutil.c: always set cleared and need_update flag for map scrolls -
fixes bug of big objects (griffons for example) not being drawn
properly.
MSW 2003-05-25
- 2003-05-24 13:58 jbontje
- [r2143] Fixed typo (thanks buzzsaw)
mids 2003-05-25
- 2003-05-19 03:24 mwedel
- [r2131] x11/x11.c: Add darkness and fog of war tiling stipling, so it is now
clearer what spaces are dark and which spaces are fog of war
spaces. Add -fogofwar and -nofogofwar command line options.
MSW 2003-05-18
- 2003-05-18 05:59 mwedel
- [r2128] Bulk of this change is to support the upcoming split skill experience system.
skill names are now sent to the client. Backwards compatibility with older
servers is in place - however, the client will now only show those skills
which the player has a non zero exp total in the stat window.
--
configure, configure.in: Add checks for size of long and long long - needed to
have 64 bit types.
common/Makefile.in: modify proto to define CPROTO so we can avoid including
proto.h when cproto runs.
common/client-types.h: Add checks to define uint64/sint64 types.
common/client.c: Modify setup command to send 'exp64' request. Change
definition of skill_names.
common/client.h: Make MAX skilled tied in with CS_NUM_SKILLS. update exp and
skill_exp to 64 bit types. Don't include proto.h if CPROTO is defined.
common/commands.c: Add get_skill_info() which gets skill number->name mapping.
Add code to handle exp64 setup request/failure. Update StatsCmd to support
64 bit exp for new skill mapping, as well as 64 bit overall exp for player.
common/config.h.in: Add SIZEOF_LONG and SIZEOF_LONG_LONG for autoconf.
common/external.h: Add menu_clear() protoype.
common/init.c: Add code to init skill values/names.
common/newclient.h: Resync from server code.
common/newsocket.c: Add GetInt64_String() function.
common/proto.h: rebuilt.
gtk/gx11.c: always include errno.h. Modify layout of skill exp table
(properly set up rows/columns). Add some padding to the entries, and don't
pre-set the names. Modify draw logic to handle 64 bit values. Modify draw
to only draw skills which player has exp in.
x11/x11.c: update draw logic to handle 64 bit exp values, only draw
skill exp when player has exp in the category.
MSW 2003-05-17
- 2003-03-24 08:03 mwedel
- [r2075] common/client.c: Add some usleeps() in negotiate_connection() - this reduces
cpu load when negotiating the connection (given 10 ms for data to actually
come in before checking for new data). Also, add a count and if we don't
get a response back from the server in the time frame, bail out.
MSW 2003-03-24
- 2003-03-24 06:01 mwedel
- [r2073] 276 draw_info(" savewinpos - save window positions - ", NDI_BLACK);
277 draw_info(" split windows mode only", NDI_BLACK);
278 draw_info(" savedefaults save various defaults into", NDI_BLACK);
279 draw_info(" ~/.crossfire/defaults", NDI_BLACK);
280 draw_info(" show - determine what type of items", NDI_BLACK);
281 draw_info(" to show in inventory", NDI_BLACK);
317 void command_take (const char *command, char *cpnext)
318 {
319 /* If the player has specified optional data, or the player
320 * does not have a container open, just issue the command
321 * as normal
322 */
323 if (cpnext || cpl.container == NULL)
324 send_command(command, cpl.count, 0);
325 else {
326 if (cpl.container->inv == NULL)
327 draw_info("There is nothing in the container to move", NDI_BLACK);
328 else
329 cs_print_string(csocket.fd,"move %d %d %d", cpl.ob->tag,
330 cpl.container->inv->tag, cpl.count);
331 }
332 }
333
334
335 /* This is an extended command (ie, 'who, 'whatever, etc). In general,
336 * we just send the command to the server, but there are a few that
337 * we care about (bind, unbind)
338 *
339 * The command past to us can not be modified - if it is a keybinding,
340 * we get passed the string that is that binding - modifying it effectively
341 * changes the binding.
342 */
343
344 void extended_command(const char *ocommand) {
345 const char *cp = ocommand;
346 char *cpnext, command[MAX_BUF];
347
348 if ((cpnext = strchr(cp, ' '))!=NULL) {
349 int len = cpnext - ocommand;
350 if (len > (MAX_BUF -1 )) len = MAX_BUF-1;
351
352 strncpy(command, ocommand, len);
353 command[len] = '\0';
354 cp = command;
355 while (*cpnext == ' ')
356 cpnext++;
357 if (*cpnext == 0)
358 cpnext = NULL;
359 }
360
361 /* cp now contains the command (everything before first space),
362 * and cpnext contains everything after that first space. cpnext
363 * could be NULL.
364 */
365
366 /* I alphabetized the list of commands below to make it easier to
367 * find/see what the extended commands are and what they do.
368 */
369 if (!strcmp(cp,"autorepeat")) set_autorepeat(cpnext);
370 else if (!strcmp(cp, "bind")) bind_key(cpnext);
336 * we just send the command to the server, but there are a few that
337 * we care about (bind, unbind)
338 *
339 * The command past to us can not be modified - if it is a keybinding,
340 * we get passed the string that is that binding - modifying it effectively
341 * changes the binding.
342 */
343
344 void extended_command(const char *ocommand) {
345 const char *cp = ocommand;
346 char *cpnext, command[MAX_BUF];
347
348 if ((cpnext = strchr(cp, ' '))!=NULL) {
349 int len = cpnext - ocommand;
350 if (len > (MAX_BUF -1 )) len = MAX_BUF-1;
351
352 strncpy(command, ocommand, len);
353 command[len] = '\0';
354 cp = command;
355 while (*cpnext == ' ')
356 cpnext++;
357 if (*cpnext == 0)
358 cpnext = NULL;
359 }
360
361 /* cp now contains the command (everything before first space),
362 * and cpnext contains everything after that first space. cpnext
363 * could be NULL.
364 */
365
366 /* I alphabetized the list of commands below to make it easier to
367 * find/see what the extended commands are and what they do.
368 */
369 if (!strcmp(cp,"autorepeat")) set_autorepeat(cpnext);
370 else if (!strcmp(cp, "bind")) bind_key(cpnext);
371 else if (!strcmp(cp,"cwindow")) set_command_window(cpnext);
Jove (C) [image.c:3] "common/player.c" - /export/home/crossfire/client-CVS (23:25)
[hugin:/export/home/crossfire/client-CVS] (137) % l
CHANGES Makefile.in aclocal.m4 config.status* gmon.out macros/ x11/
COPYING NOTES autom4te-2.53.cache/ configure* gnome/ pixmaps/
CVS/ README autom4te.cache/ configure.in gtk/ sdl/
License README.rpm common/ crossfire-client.spec help/ sound-src/
Makefile TODO config.log cscope.out logfile utils/
[hugin:/export/home/crossfire/client-CVS] (138) % more README
Install Steps:
0) Prerequisites:
You will need the XPM library to compile the client.
If you want to run the gtk client, you will need to install the gtk
libraries.
If you want png support, you will need to install the png
library.
If you want sdl support ( recommended) you will need both gtk and png
as well as the main SDL library and the SDL_image library, both of
which can be found at http://www.libsdl.org if not already installed
on your system.
1) type './configure' to configure for your OS/system. Most options
normally understood by configure should be available.
The configure script will try to make all the right decisions. It will
search for the needed libraries and headers. You may need to give
hints on the locations of some files (png library, gtk library).
If configure finds gtk libraries, it will build the gcfclient in addition
to the cfclient. If you don't want this (only cfclient), use the
--disable-gtk (there is no way to disable the cfclient at this time -
if you are able to compile the gtk client, you also have all the tools for
for the cfclient).
If SDL libraries are found on your system, SDL support is automatically
compiled it (Note: only the gcfclient supports sdl). Use --disable-sdl
if you don't want this.
The system will use the new sound system if available (this is a seperate
sound daemon). If you want to use the builtin sound system, use
the --enable-old-sound. See sound notes further down.
To specify additional places to find header files, use the
--with-includes=value - this includes any -I or other options to provide
the compiler. Example:
./configure --with-includes="-I/usr/local/include -I/opt/xpm/include"
Similarly, there is a --with-ldflags option. Example:
./configure --with-ldflags="-L/usr/local/lib -R/usr/local/lib"
-R is used on many systems to specify run location for libraries so
you don't need to set LD_LIBRARY_PATH.
Generally, if you are setting --with-includes, your probably need to
set --with-ldflags, as if one is not in a standard place, the other
probably is not either.
The client works with the 0.5 version of the ALSA sound system.
If you are using a newer version and are having troubles compiling,
try running configure with the '--disable-alsa' option.
2) Type 'make depend; make' to compile the client. If you get link errors,
it may be because you have an older version of the gtk libraries. If
you get errors like 'can't find target client.c', your make program
isn't very good and use should get/use gnu make instead.
3) Type 'make install' to install the binaries.
4) The client can be run by typing 'cfclient' for the X11 version, gcfclient
for the gtk client, gcfclient -sdl for the SDL version.
------------------------------------------------------------------------------
Converting keybindings from old save files for use with the client:
1) You will need to get a copy of your character file.
2) Type "mkdir ~/.crossfire". This will automatically be done the first
time you run the client.
3) Type awk 'BEGIN {ORS=" "} /^key /
{for (i=2; i<=NF; i++) print $i;printf "\n"}'
infile > ~/.crossfire/keys
(Note that this should all be entered on one line, but is broken up
here to be more readable.)
'infile' is the name of the character file.
Note that the client use global keybindings, and not per character. This
means that the same keybindings will be for all characters you play with the
client.
The gtk client and x11 client both use the same keybindings file.
------------------------------------------------------------------------------
Sound support:
If you wnat sound support (only useful if you have a system that has good
sound hardware), you will also need to get some sounds for the program.
You will need the raw sound files - the .au files no longer work with the
client.
The sounds file determines what file is played for what sound. The default
location for the sound files is <prefix>/share/cfclient/sounds. <prefix>
is the -prefix= option given when running configure, default of /usr/local.
You can set this to another directory at the configure stage by using
--with-sound-dir=/some/directory. This file is only used for compiled in
defaults. If you have a ~/.crossfire/sounds file (some format), that file
will be used instead of the built in defaults.
Sound are now played by separate process invoked from crossfire client.
The process - called sound server - adjusts sounds' volume according to
relative position of player and sound source on map and mixes the sounds
together, so many sounds can be played simultaneously.
CONFIG FILE
The config file ~/.crossfire/sndconfig contains some configurable settings. If
there is no such file, one with default settings will be created.
The file contains following fields:
stereo: 1 means stereo sound, 0 - mono
bits: bitrate of generated sound - 8 or 16
16 means better quality, especially when more sounds
are to be played simultaneously, but takes more memory
signed: if we should sent signed data to the soundcard. 1 means yes.
frequency: speed of playing data. This should be 11025, or sound pitch
will change
buffers: how many buffers to allocate
buflen: how big the buffers should be. buffers*buflen shouldn't be
smaller than the longest sound to be played.
simultaneously: home many sound can be played at the same time. When this
setting is bigger, each sound volume will decrease.
HOW DOES IT WORK?
The sound server gets information about sounds to be played on standard input.
The information is a line:
<sound number> <sound type> <relative x> <relative y>
All those numbers are hex.
The file ~/.crossfire/sounds contains description of sound numbers and types.
For example:
3 0 5 0
Means that normal sound SOUND_FUMBLE spell should be played as it's source was
5 units to the right of player.
Sounds are mixed in special buffers, which are in fact one buffer, which should
be big enough for the biggest sound to be played.
The buffers, if contain anything, are sent one by one to the sound device.
Each buffer is cleaned after playing.
Sounds data is multiplied by some ratio (<1) evaluated from it's position and
volume and added to the buffers, starting from the next after the one being
played.
So bigger buffer means bigger delay, before th sound is actually played, but
the smaller buffer is, the bigger is possibility, we won't succeed filling the
next buffer, before last is played.
------------------------------------------------------------------------------
IMAGES
The client will get any images that it is missing from the server. This
can include the entire image set.
To decrease bandwidth used when actually playing the sounds, it is suggested
you download the image archive and install it. The default location
for the archive is <prefix>/share/cfclient/, where <prefix> is deteremined
by the -prefix= option given when running configure.
The mechanism the client uses to find a matching image file when the
server tells it an image name is thus:
1) Look in ~/.crossfire/gfx. If an image is found here, irrespective of the
set and checksum of the image on the server, it will be used. The only
way images are placed into the gfx directory is by the user actually
copying them to that directory. The gfx directory allows a user to override
images with versions he prefers.
2) Look in ~/.crossfire/crossfire-images then <prefix>/share/cfclient/crossfire-images.
If the checksum matches the image from the
respective directory is used. Note that if the checksums match, it really doesn't
matter what image location we use, as it is the same image.
4) Get the image from the server. If -cache is set, a copy of it is put into
~/.crossfire/crossfire-images.
------------------------------------------------------------------------------
Authors of the client:
Mark Wedel (mwedel@sonic.net) - general client source and Xlib client
David Sundqvist (azzie@netpolicy.com) - GTK+ port
Raphael Quinet (Raphael.Quinet@eed.ericsson.se) - Configure scripts and
graphics
Jacek Konieczny <jajcus@zeus.polsl.gliwice.pl> - New Sound System support.
Eric Anderson did a lot of initial work on the client.
Scott MacFiggen (smurf@CSUA.Berkeley.EDU) - SDL support
[hugin:/export/home/crossfire/client-CVS] (139) %
[hugin:/export/home/crossfire/client-CVS] (139) % ls
CHANGES Makefile.in aclocal.m4 config.status gmon.out macros x11
COPYING NOTES autom4te-2.53.cache configure gnome pixmaps
CVS README autom4te.cache configure.in gtk sdl
License README.rpm common crossfire-client.spec help sound-src
Makefile TODO config.log cscope.out logfile utils
[hugin:/export/home/crossfire/client-CVS] (140) % cvs update -dP
Warning: Remote host denied X11 forwarding.
? autom4te-2.53.cache
? autom4te.cache
? cscope.out
? gmon.out
? logfile
*/
dark0 = the_map.cells[mx][my].darkness;
if (y-1 < 0 || !the_map.cells[mx][my-1].have_darkness) dark1 = dark0;
else dark1 = the_map.cells[mx][my-1].darkness;
if (x+1 >= use_config[CONFIG_MAPWIDTH] || !the_map.cells[mx+1][my].have_darkness) dark2 =!
else dark2 = the_map.cells[mx+1][my].darkness;
if (y+1 >= use_config[CONFIG_MAPHEIGHT] || !the_map.cells[mx][my+1].have_darkness) dark3 !
else dark3 = the_map.cells[mx][my+1].darkness;
if (x-1 < 0 || !the_map.cells[mx-1][my].have_darkness) dark4 = dark0;
else dark4 = the_map.cells[mx-1][my].darkness;
/* If they are all the same, processing is easy */
if (dark0 == dark1 && dark0 == dark2 && dark0 == dark3 && dark0 == dark4) {
dst.x = x * map_image_size;
dst.y = y * map_image_size;
dst.w = map_image_size;
dst.h = map_image_size;
if (dark0 == 255) {
SDL_FillRect(mapsurface,&dst, SDL_MapRGB(mapsurface->format, 0, 0, 0));
} else if (the_map.cells[mx][my].darkness != 0) {
SDL_FillRect(lightmap,NULL, SDL_MapRGBA(lightmap->format, 0, 0, 0, the_map.cells[!
SDL_BlitSurface(lightmap, NULL, mapsurface, &dst);
}
return;
}
if (use_config[CONFIG_LIGHTING] == CFG_LT_PIXEL ) {
/* This almost works as well as the per pixel code below, but does have some various
* artifacts in the drawing. It uses the same logic as the per pixel code below,
* bit since SDL does the blit, the alpha handling ends up being different
Jove (C) [sdl.c:3] "sdl.c" - /export/home/crossfire/client-CVS/gtk (23:34)
[hugin:/export/home/crossfire/client-CVS/gtk] (145) %
[hugin:/export/home/crossfire/client-CVS/gtk] (145) % l
CVS/ config.o gcfclient.man gx11.h keys.c png.c sound.c
Makefile crossfire-client.desktop gtkproto.h gx11.o keys.o png.o sound.o
Makefile.in cscope.out gx11.c image.c map.c sdl.c
config.c gcfclient* gx11.c~ image.o map.o sdl.o
[hugin:/export/home/crossfire/client-CVS/gtk] (146) % l *.h
gtkproto.h gx11.h
[hugin:/export/home/crossfire/client-CVS/gtk] (147) % more gx11.h
/*
* static char *rcsid_gx11_h =
* "$Id: gx11.h,v 1.6 2002/05/22 04:58:26 mwedel Exp $";
*/
/*
Crossfire client, a client program for the crossfire program.
Copyright (C) 2001 Mark Wedel & Crossfire Development Team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
The author can be reached via e-mail to crossfire-devel@real-time.com
*/
#ifndef GX11_H
#define GX11_H
#include "client-types.h"
#include "item.h"
extern int map_size, image_size, map_image_size, map_image_half_size;
extern uint8 map_did_scroll;
extern uint8 updatekeycodes, time_map_redraw,redraw_needed;
extern int updatelock;
/* Pixmap data. This is abstracted in the sense that the
/* Pixmap data. This is abstracted in the sense that the
* code here does not care what the data points to (hence the
* void). The module using this data should know whether it
* is these point to png data or image data of whatever form.
* The module is not required to use all these fileds -
* as png data includes transperancy, it will generally not
* use the mask fields and instead just put its data into the
* appropiate image fields.
*
* As images can now be of variable size (and potentially re-sized),
* the size information is stored here.
*/
#define DEFAULT_IMAGE_SIZE 32
#define MAXPIXMAPNUM 10000
typedef struct {
void *icon_mask, *icon_image;
uint16 icon_width, icon_height;
void *map_mask, *map_image;
uint16 map_width, map_height;
void *fog_mask, *fog_image;
} PixmapInfo;
extern PixmapInfo *pixmaps[MAXPIXMAPNUM];
/* Some global widgetws */
extern GtkWidget *gtkwin_root,*drawingarea,*run_label,*fire_label;
extern GtkWidget *gtkwin_info, *gtkwin_stats, *gtkwin_message;
extern GtkWidget *gtkwin_look, *gtkwin_inv, *gtkwin_config;
extern GtkWidget *entrytext, *counttext;
extern GdkPixmap *mapwindow,*dark;
extern GdkBitmap *dark1, *dark2, *dark3;
extern GdkGC *mapgc;
extern GtkWidget *ckentrytext, *ckeyentrytext, *cmodentrytext,*cnumentrytext, *cclist;
extern GtkTooltips *tooltips;
#define TYPE_LISTS 9
Jove (C) [gx11.h:3] "gx11.h" - /export/home/crossfire/client-CVS/gtk (23:39)
...skipping...
/* Pixmap data. This is abstracted in the sense that the
* code here does not care what the data points to (hence the
* void). The module using this data should know whether it
* is these point to png data or image data of whatever form.
* The module is not required to use all these fileds -
* as png data includes transperancy, it will generally not
* use the mask fields and instead just put its data into the
* appropiate image fields.
*
* As images can now be of variable size (and potentially re-sized),
* the size information is stored here.
*/
#define DEFAULT_IMAGE_SIZE 32
#define MAXPIXMAPNUM 10000
typedef struct {
void *icon_mask, *icon_image;
uint16 icon_width, icon_height;
void *map_mask, *map_image;
uint16 map_width, map_height;
void *fog_mask, *fog_image;
} PixmapInfo;
extern PixmapInfo *pixmaps[MAXPIXMAPNUM];
/* Some global widgetws */
extern GtkWidget *gtkwin_root,*drawingarea,*run_label,*fire_label;
extern GtkWidget *gtkwin_info, *gtkwin_stats, *gtkwin_message;
extern GtkWidget *gtkwin_look, *gtkwin_inv, *gtkwin_config;
extern GtkWidget *entrytext, *counttext;
extern GdkPixmap *mapwindow,*dark;
extern GdkBitmap *dark1, *dark2, *dark3;
extern GdkGC *mapgc;
extern GtkWidget *ckentrytext, *ckeyentrytext, *cmodentrytext,*cnumentrytext, *cclist;
extern GtkTooltips *tooltips;
#define TYPE_LISTS 9
/*
[hugin:/export/home/crossfire/client-CVS/gtk] (148) % man printf
<standard input>:45: a newline character is not allowed in an escape name
<standard input>:48: a newline character is not allowed in an escape name
<standard input>:57: cannot use newline as a starting delimiter
<standard input>:60: warning: numeric expression expected (got `N')
PRINTF(1) FSF PRINTF(1)
NAME
printf - format and print data
SYNOPSIS
printf FORMAT [ARGUMENT]...
printf OPTION
DESCRIPTION
Print ARGUMENT(s) according to FORMAT.
--help display this help and exit
--version
output version information and exit
FORMAT controls the output as in C printf. Interpreted sequences are:
double quote
NNN character with octal value NNN (0 to 3 digits)
b backslash
a
c.... alert (BEL)
k
s.TP produce no further output
p
a
form feed
e
new line
carriage return
horizontal tab
vertical tab
N character with hexadecimal value NNN (1 to 3 digits)
%% a single %
%b ARGUMENT as a string with `<B4> escapes interpreted
and all C format specifications ending with one of diouxXfeEgGcs, with ARGU<AD>
MENTs converted to proper type first. Variable widths are handled.
REPORTING BUGS
Report bugs to <bug-sh-utils@gnu.org>.
SEE ALSO
The full documentation for printf is maintained as a Texinfo manual. If the
info and printf programs are properly installed at your site, the command
info printf
should give you access to the complete manual.
COPYRIGHT
Copyright <A9> 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU sh-utils 2.0 July 2000 PRINTF(1)
PRINTF(3) Linux Programmer's Manual PRINTF(3)
NAME
printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, vsnprintf -
formatted output conversion
SYNOPSIS
#include <stdio.h>
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
int sprintf(char *str, const char *format, ...);
int snprintf(char *str, size_t size, const char *format, ...);
#include <stdarg.h>
int vprintf(const char *format, va_list ap);
int vfprintf(FILE *stream, const char *format, va_list ap);
int vsprintf(char *str, const char *format, va_list ap);
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
DESCRIPTION
The functions in the printf family produce output according to a format as
described below. The functions printf and vprintf write output to stdout, the
standard output stream; fprintf and vfprintf write output to the given output
stream; sprintf, snprintf, vsprintf and vsnprintf write to the character
string str.
The functions vprintf, vfprintf, vsprintf, vsnprintf are equivalent to the
functions printf, fprintf, sprintf, snprintf, respectively, except that they
are called with a va_list instead of a variable number of arguments. These
functions do not call the va_end macro. Consequently, the value of ap is unde<AD>
fined after the call. The application should call va_end(ap) itself after<AD>
wards.
These eight functions write the output under the control of a format string
that specifies how subsequent arguments (or arguments accessed via the vari<AD>
able-length argument facilities of stdarg(3)) are converted for output.
Return value
These functions return the number of characters printed (not including the
trailing '\0' used to end output to strings). The functions snprintf and
vsnprintf do not write more than size bytes (including the trailing '\0'). If
the output was truncated due to this limit then the return value is the number
of characters (not including the trailing '\0') which would have been written
to the final string if enough space had been available. Thus, a return value
of size or more means that the output was truncated. (See also below under
NOTES.)
Format of the format string
The format string is a character string, beginning and ending in its initial
shift state, if any. The format string is composed of zero or more direc<AD>
tives: ordinary characters (not %), which are copied unchanged to the output
stream; and conversion specifications, each of which results in fetching zero
or more subsequent arguments. Each conversion specification is introduced by
the character %, and ends with a conversion specifier. In between there may
be (in this order) zero or more flags, an optional minimum field width, an
optional precision and an optional length modifier.
The arguments must correspond properly (after type promotion) with the conver<AD>
sion specifier. By default, the arguments are used in the order given, where
each `*' and each conversion specifier asks for the next argument (and it is
an error if insufficiently many arguments are given). One can also specify
explicitly which argument is taken, at each place where an argument is
required, by writing `%m$' instead of `%' and `*m$' instead of `*', where the
decimal integer m denotes the position in the argument list of the desired
argument, indexed starting from 1. Thus,
printf("%*d", width, num);
and
printf("%2$*1$d", width, num);
are equivalent. The second style allows repeated references to the same argu<AD>
ment. The C99 standard does not include the style using `$', which comes from
the Single Unix Specification. If the style using `$' is used, it must be
used throughout for all conversions taking an argument and all width and pre<AD>
cision arguments, but it may be mixed with `%%' formats which do not consume
an argument. There may be no gaps in the numbers of arguments specified using
`$'; for example, if arguments 1 and 3 are specified, argument 2 must also be
specified somewhere in the format string.
For some numeric conversions a radix character (`decimal point') or thousands'
grouping character is used. The actual character used depends on the
LC_NUMERIC part of the locale. The POSIX locale uses `.' as radix character,
and does not have a grouping character. Thus,
printf("%'.2f", 1234567.89);
results in `1234567.89' in the POSIX locale, in `1234567,89' in the nl_NL
locale, and in `1.234.567,89' in the da_DK locale.
The flag characters
The character % is followed by zero or more of the following flags:
# The value should be converted to an ``alternate form''. For o conver<AD>
sions, the first character of the output string is made zero (by pre<AD>
fixing a 0 if it was not zero already). For x and X conversions, a
non-zero result has the string `0x' (or `0X' for X conversions)
prepended to it. For a, A, e, E, f, F, g, and G conversions, the
result will always contain a decimal point, even if no digits follow it
(normally, a decimal point appears in the results of those conversions
only if a digit follows). For g and G conversions, trailing zeros are
not removed from the result as they would otherwise be. For other con<AD>
versions, the result is undefined.
0 The value should be zero padded. For d, i, o, u, x, X, a, A, e, E, f,
F, g, and G conversions, the converted value is padded on the left with
zeros rather than blanks. If the 0 and - flags both appear, the 0 flag
is ignored. If a precision is given with a numeric conversion (d, i,
o, u, x, and X), the 0 flag is ignored. For other conversions, the
behavior is undefined.
- The converted value is to be left adjusted on the field boundary. (The
default is right justification.) Except for n conversions, the con<AD>
verted value is padded on the right with blanks, rather than on the
left with blanks or zeros. A - overrides a 0 if both are given.
' ' (a space) A blank should be left before a positive number (or empty
string) produced by a signed conversion.
+ A sign (+ or -) always be placed before a number produced by a signed
conversion. By default a sign is used only for negative numbers. A +
overrides a space if both are used.
The five flag characters above are defined in the C standard. The SUSv2 spec<AD>
ifies one further flag character.
' For decimal conversion (i, d, u, f, F, g, G) the output is to be
grouped with thousands' grouping characters if the locale information
indicates any. Note that many versions of gcc cannot parse this option
and will issue a warning. SUSv2 does not include %'F.
glibc 2.2 adds one further flag character.
I For decimal integer conversion (i, d, u) the output uses the locale's
alternative output digits, if any (for example, Arabic digits). How<AD>
ever, it does not include any locale definitions with such outdigits
defined.
The field width
An optional decimal digit string (with nonzero first digit) specifying a mini<AD>
mum field width. If the converted value has fewer characters than the field
width, it will be padded with spaces on the left (or right, if the left-
adjustment flag has been given). Instead of a decimal digit string one may
write `*' or `*m$' (for some decimal integer m) to specify that the field
width is given in the next argument, or in the m-th argument, respectively,
which must be of type int. A negative field width is taken as a `-' flag fol<AD>
lowed by a positive field width. In no case does a non-existent or small
field width cause truncation of a field; if the result of a conversion is
wider than the field width, the field is expanded to contain the conversion
result.
The precision
An optional precision, in the form of a period (`.') followed by an optional
decimal digit string. Instead of a decimal digit string one may write `*' or
`*m$' (for some decimal integer m) to specify that the precision is given in
the next argument, or in the m-th argument, respectively, which must be of
type int. If the precision is given as just `.', or the precision is nega<AD>
tive, the precision is taken to be zero. This gives the minimum number of
digits to appear for d, i, o, u, x, and X conversions, the number of digits to
appear after the radix character for a, A, e, E, f, and F conversions, the
maximum number of significant digits for g and G conversions, or the maximum
number of characters to be printed from a string for s and S conversions.
The length modifier
Here, `integer conversion' stands for d, i, o, u, x, or X conversion.
hh A following integer conversion corresponds to a signed char or unsigned
char argument, or a following n conversion corresponds to a pointer to
a signed char argument.
h A following integer conversion corresponds to a short int or unsigned
short int argument, or a following n conversion corresponds to a
pointer to a short int argument.
l (ell) A following integer conversion corresponds to a long int or
unsigned long int argument, or a following n conversion corresponds to
a pointer to a long int argument, or a following c conversion corre<AD>
sponds to a wint_t argument, or a following s conversion corresponds to
a pointer to wchar_t argument.
ll (ell-ell). A following integer conversion corresponds to a long long
int or unsigned long long int argument, or a following n conversion
corresponds to a pointer to a long long int argument.
L A following a, A, e, E, f, F, g, or G conversion corresponds to a long
double argument. (C99 allows %LF, but SUSv2 does not.)
q (`quad'. BSD 4.4 and Linux libc5 only. Don't use.) This is a synonym
for ll.
"$Id: CHANGES,v 1.97 2003/02/25 07:52:21 mwedel Exp $"
Top of CVS tree:
------------------------------------------------------------------------------
configure.in, configure: checks added for alsa9 sound - update for cfsndserv.c
should come shortly.
common/client.c: Fix setup problem - it was using FOGWAR setting when
determining if client wanted darkness - should have been using darkness
setting. This was resulting in darkness not being used if fog of war was
turned off.
x11/x11.c: Modify handling of mouse button press logic - rather than only
modifier being shift, do appropriate logic if the shift mask is set,
but does not have to be only modifier set.
--
The following bits changes how fog of war looks in SDL mode. Now, fog of
war spaces are drawn in greyscale, instead of half darkness. This makes
it clearer what the status of the space is (fog of war/darkness). This change
probably uses less cpu to draw, but uses more memory for the images (as it
now has to store a rendered greyscale image). If not using SDL, you'll still
have the old behaviour (dimmed spaces for fog of war), and no significant
amount of extra memory will be used.
--
gtk/gx11.h: Add fog_image pointer to PixmapInfo structure.
gtk/image.c: Add code to render greyscale image. Also add code to free
greyscale image.
gtk/sdl.c: Modify map draw code to use grey fog image if space is fog of
war space. Disable dimming of fog spaces - no longer necessary as
space now looks different.
MSW 2003-03-24
- 2003-02-27 04:20 tanner
- [r2047] * Wed Feb 26 2003 Bob Tanner <tanner@real-time.com>
+ crossfire-client-1.5.0-1.realtime
- new release 1.5.0
- 2003-02-25 07:52 mwedel
- [r2044] Update for 1.5.0 release.
MSW 2003-02-24
- 2003-02-21 17:26 crowbert
- [r2035] display pickup mode code with setting new pickup mode
- 2003-02-21 17:15 crowbert
- [r2034] add "clearinfo" command for gtk client
- 2003-02-20 07:55 mwedel
- [r2030] gtk/png.c, x11/png.c: Fix bug in rescale_rgba_data() that was potentially
causing a 1 byte overrun of malloc'd data, that could result
in crashes or other odd problems.
MSW 2003-02-19
- 2003-02-10 03:31 crowbert
- [r2009] fix stupid mistake
- 2003-02-05 08:13 mwedel
- [r2002] common/init.c: Make sure we initalize all the config values.
gtk/gx11.c: fix foodbeep - now only beep when food is low, and continue
to beep when food reaches 0.
sound-src/Makefile.in: Remove gx11.c in depend statement.
MSW 2003-02-04
- 2003-01-30 15:55 crowbert
- [r1986] fix savewinpos for windowmanagers like twm
- 2003-01-23 08:17 mwedel
- [r1967] gtk/config.c, gtk/gx11.c: remove including some files which we don't need included.
gtk/keys.c: Modify to not use X11 for keybinding - instead, uses gdk
functionality - this should make it more portable.
MSW 2003-01-22
- 2003-01-13 07:23 mwedel
- [r1945] Patch by scachi@gmx.de to add different display options for the players
resistances.
common/client.h: increase CONFIG_NUMS and add CONFIG_RESISTS
common/init.c: extend resists_table, initialize resist value to proper
value.
gtk/config.c: Add config option for selecting different options for
resistance displays. Add comment about radio button usage. Increase
size of config window.
gtk/gtkproto.h: rebuilt.
gtk/gx11.c: Update get_message_display to support different resistance
display options. Add resisze_resistance_table function. Disable
code the causes the message window to get relocated next to the
stats display on wide displays.
MSW 2003-01-12
- 2003-01-13 04:54 mwedel
- [r1941] Add proper checking of socket fd after call do DoClient in negotiate connection.
MSW 2003-01-12
- 2003-01-04 01:00 mwedel
- [r1914] x11/x11.c: Patch by Jochen Suckfuell that fixes problem of lines
printed out while entering extended commands causes the extended command
line to get overwritten - the extended command line is now copied to the
next line.
common/client.c: Add handling of client if it loses its connection to
server during setup phase.
common/newsocket.c: Have SockList_ReadPacket return -1 if it gets
a real error on read - in this way, callers can tell if error is
terminal or retryable (return code 0)
MSW 2003-01-03
- 2002-12-01 03:52 mwedel
- [r1858] common/player.c: Break out some of the extended commands into there
own function to make the extended_command function more readable.
Alphabetize strcmps in extended_command. Add special processing
for the 'take' command so that it handles open containers properly.
gtk/gx11.c: Add version information to the About dialogue box.
gtk/key.c: Fix bug in that extended commands (') didn't work right and
would crash the client if not entered in info window. Entering
these now works properly, and crashes are removed. Clean up formatting
of affected function keyfunc().
help/about.h: Add extra newline to text to make it look better with
the version string above.
MSW 2002-11-30
- 2002-10-04 06:19 mwedel
- [r1745] tk/gx11.c: Add patch by jshelley@ictransnet.com that fixes save window
positions. MSW 2002-10-03
- 2002-09-15 04:40 mwedel
- [r1724] common/image.c: Fix bug of not fulling clearing the cache entry
data after allocation. This resulted in various random crashes
when using cached image mode.
x11/x11.c: Add note about -facset.
CHANGES, Makefile.in, configure, configure.in: Update for 1.4 release
MSW 2002-09-14
- 2002-08-22 12:36 jbontje
- [r1685] Pickups: created submenus and added pickups for spellbooks,skillscrols,normal book/scroll. Patch created by Aprogas
mids 2002/08/22
- 2002-08-14 04:37 mwedel
- [r1680] common/item.c: Update comment about possible sorting improvements.
gtk/gx11.c: Add missing foodbeep functionality to GTK client.
MSW 2002-08-13
- 2002-07-26 05:39 mwedel
- [r1671] gtk/config.c: Fix crash when trying to apply config changes when compiled
with SDL support but user is not using it. Fix bug where settings
were not being properly updated.
gtk/sound.c: initialize sound_pipe to NULL, and have init_sounds close
the sound pipe if there is currently one open - fixes bug when switching
sound control many times in that multiple cfsndserv processes could get
started.
MSW 2002-07-25
- 2002-07-26 04:46 tanner
- [r1669] * Wed Jul 25 2002 Bob Tanner <tanner@real-time.com>
+ crossfire-client-1.3.1-realtime.4
- fixed crossfire-client.desktop entry
- 2002-07-11 04:21 mwedel
- [r1655] Makefile.in: if no makedepend, don't run make depend directive.
README: Add not about ALSA revisions and possible problems compiling.
MSW 2002-07-10
- 2002-07-10 18:38 tanner
- [r1654] * Wed Jul 10 2002 Bob Tanner <tanner@real-time.com>
+ crossfire-client-1.3.1-realtime.3
- fixed location of sound files [kbulgrien@worldnet.att.net]
- 2002-07-10 18:35 tanner
- [r1653] Added SF Notes file.
- 2002-07-10 01:11 tanner
- [r1652] New .spec file to support KDE icons.
- 2002-07-10 00:55 tanner
- [r1651] *** empty log message ***
- 2002-07-10 00:54 tanner
- [r1650] Renamed file
- 2002-07-10 00:28 tanner
- [r1649] * Wed Jul 02 2002 Bob Tanner <tanner@real-time.com>
+ crossfire-client-1.3.1-realtime.2
- added 16x16, 32x32, 48x48 icons for proper KDE support
- 2002-07-07 19:53 tanner
- [r1647] * Wed Jul 02 2002 Bob Tanner <tanner@real-time.com>
+ crossfire-client-1.3.1-realtime.1
- released 1.3.1 client
- BUG Fix
http://mailman.real-time.com/pipermail/crossfire-devel/2002-July/003273.html
- Enhancement
http://www.geocrawler.com/lists/3/SourceForge/7318/0/9103079/
http://www.geocrawler.com/lists/3/SourceForge/7318/0/9093313/
- 2002-07-05 03:25 mwedel
- [r1644] This commit adds graduated colored statbars to the gtk client. What
this means is that the color of the statbar goes smoothly from red to yellow
to green depending on what percentage of your hp/sp/grace/food is compared
to your maximum. To use this, you need to go to the config pane and hit
the 'gradually change stat bar color' button.
common/client.h: Add CONFIG_ value for this, increase CONFIG_NUMS.
common/init.c: Add "grad_color_bars" to config_names array.
gtk/config.c: Add button to select this behaviour. Move all the
special config checks to beyond the for loop that checks the values
in apply_config(). There is no need to check all the values on each
loop.
gtk/gtkproto.h: Rebuilt for inclusion of reset_stat_bars()
gtk/gx11.c: Add two styles to the Vitals (stat bar) structure so we can
alternate between them. Default is to initialize one for green and the
other for red (in non graduated color mode). This should be more efficient
then allocating a new one each time we need to change the value. add
reset_stat_bars() to reset the colors of the styles to red and green -
needed because the graduated color code will change the colors of these.
Remove code that freed these styles. Modify draw_stat_bar() to draw them
in color or simple mode, in simple mode, we now just need to use the
appropriate style and not allocated a new one. Modify
draw_message_window() to pass bar values greater than 1 to the
draw_stat_bar() function - in graduated color mode, we draw such values
with a blue tinting (more blue the more over it is). draw_stat_bar() knows
how to properly deal with these higher values.
MSW 2002-07-04
- 2002-07-03 21:10 mwedel
- [r1643] gtk/config.c: Fix setting of radio button set state - it was always setting
the same (last) radio button as the active button, which did not match
state - now it sets the proper button active - this is for the lighting
control toggle.
gtk/map.c: Add/subtract 2 to the need_recenter_map function - in this
way, code that checks known display position +/-1 will still be within
map array.
gtk/sdl.c: Fix per pixel (fastest and best) lighting code - this got
broken quite a while - it was looking to see if the coordinates for the
map structure where within range, and not the real coordinates. Since
the map coordinates would almost never be within range, the effect was
that the per pixel effects more ore less looked like the per tile
effects.
MSW 2002-07-03
- 2002-07-03 07:41 tanner
- [r1642] Rolled new rpm release.
- 2002-07-01 23:54 mwedel
- [r1640] Update for 1.3.0 release.
MSW 2002-07-01
- 2002-07-01 23:35 mwedel
- [r1639] If passed face to get_map_image_size is face 0, return default size
values. Sometimes needed for the caching logic.
MSW 2002-07-01
- 2002-05-31 07:26 mwedel
- [r1609] Fix last checkin - new code didn't really do anything, as was missing
the else clause.
MSW 2002-05-30
- 2002-05-31 06:38 mwedel
- [r1607] config.c: when user is switching download all images, have it update
the use_config field immediately.
image.c: if image 0 is passed to get_map_image_size, just set the
values to 1.
MSW 2002-05-30
- 2002-05-31 03:44 mwedel
- [r1603] Add support for the 'item2' command. This lets us get the item type
from the server so that we don't need to figure it out for ourselves.
Also, remove support for the 'item' command - that has long since
been obseleted by the 'item1' command.
--
common/client.c: Remove 'item' from dispatch table, add 'item2'.
Add 'itemcmd 2' as part of setup command we send to server.
common/commands.c: Add handling for response of 'itemcmd' setup command from
server. Remove ItemCmd() function. Add type to calls to update_item().
Change Item1Cmd() function to be called common_item_command() since both
item1 and item2 use almost exactly the same logic. Add Item1Cmd() and
Item2Cmd() which just call common_item_command()
common/item.c: Init item types to 'NO_ITEM_TYPE'. Remove get_nrof() as it was
no longer being used. Add type argument to set_item_values() and
update_item(). Simplify code in case of name handling, since we know that
we will be using at least the 'itemcmd'. Don't worry about getting proper
nrof for the player object - its nrof isn't really meaningful anyways.
common/item.h: Add #define NO_ITEM_TYPE. Update type field in item
to be 16 bits.
common/proto.h: rebuilt.
MSW 2002-05-30
- 2002-05-22 04:58 mwedel
- [r1597] The bulk of this checkin adds support in the client for the map1a protocol
command and the display of big images properly in the map window. A lot
of code cleanup was also done however, including removal for the support
of the 'map' (original) command. The map1 has been in the server code for
quite a while.
TODO: Update what needs to be done for the x11 client.
common/client.c: Remove map command, add map1a command to dispatch table.
Modify setup we send to server to always try to use the map1a command -
there is no reason not to use it.
common/client.h: Change some of the CONFIG_ values - basically, change it
so that there is just one entry for lighting configuration, but it can
have any number of values. Modify MapCell so that instead of having
multiple arrays for the different values (faces, sizes), add a MapCellLayer
structure that contains the specific face information for that layer.
Move the PlayerPosition struct and value to this function so that more
of the map decompress logic can be handled in the common code.
Remove count value from MapCell since it wasn't really being used.
common/commands.c: Add code to set the use_config[CONFIG_CACHE] value based on
what we get back from the server. Add code to check the setup response for
the for the map1a and map1 options. Add code to deal with expanding big
images into appropriate spaces. Move some functions from the gui portion to
(display_map_clearcell, set_map_face). Add code for map1_common function to
deal with map1a extensions.
common/external.h: Remove display_map_clearcell and set_map_face from list of
external functions. Add get_map_image_size function.
common/init.c: change some values of the config values. Update initialization
of config values for lighting.
common/proto.h: rebuilt.
gtk/config.c: Add new button for lighting - best per pixel. Modify code
to properly deal with how lighting preference is now stored. Add legacy
support for loading of per_tile_lighting and per_pixel_lighting values
from config file. Add diagnostic of bad value if selected map/width
is out of range.
gtk/gtkproto.h: rebuilt.
gtk/gx11.c: Change formatting of draw_list. Modify it so that it adjusts
the column/row width based on the largest image it needs to display - In
this way, if a player stands on a big building, the entire building is
displayed in the look list. add row_height and column_width values so we
only need to call the function to change them if they are in fact different.
Add +sdl command line option to disable sdl code. Modify gtk_draw_map to
include redraw parameter.
gtk/gx11.h: remove PlayerPosition structure. add row_height, column_width
elements to itemlist structure.
gtk/image.c: Add table that is used to determine the scaling used for big
images in the look list - in this way, big images still appear big, but not
necessary 2 or 3 times bigger. Modify create_and_rescale_image_from_data to
use this logic. Add get_map_image_size which the common code uses to
determine the number of spaces an image may be.
gtk/map.c: remove display_map_clearcell and set_map_face functions - now in
common code. Modify the dump map/darkness routines to use the new format of
the MapCell structure. Modify set_darkness to only set adjoining spaces for
needing an update if lighting type is set that needs this. Remove
display_map_addbelow - only used for 'map' command. Modify logic of
fog of war code to have it done all at display time - not when setting/clearing
a cells contents. Modify gtk_draw_map - this basically follows the same
logic of sdl_draw_map - it is now better optimized to only draw the spaces
that have changed, and not the entire map - this should improve performance
considerably.
gtk/sdl.c: Remove #if 0 around putpixel - used for best lighting. Change
indention of init_SDL - modify it so that if just_lightmap is true,
that really is the only thing that is changed. Modify per_pixel_light
code to use both methods of per pixel lighting depending on player prefernce.
Modify sdl_gen_map to properly handle draw portion of big images.
x11/png.c: Add get_map_image_size function.
x11/x11.c: modify display_mapcell_pixmap to use new format of MapCell
structure. Remove reference to count in MapCell structure.
x11/x11.h: Remove PlayerPosition information - now in common code.
x11/x11proto.h: rebuilt.
x11/xutil.c: Remove display_map_clearcell and set_map_face functions. Modify dump map
code for new MapCell structure layout. Remove display_map_addbelow funtion.
MSW 2002-05-21
- 2002-05-07 07:07 tanner
- [r1588] Removed the hard coded crosssfire-image from the system-wide default image cache
location. This will allow people to --datadir define where they want the files.
- 2002-05-03 23:21 reeve
- [r1586] Adjusted width/height limits to better allow WM decorations.
- 2002-04-29 04:18 mwedel
- [r1583] Changes for 1.2.1:
Makefile.in: Add pixmaps/question.sdl to archive list.
configure, configure.in: Update for 1.2.1 release.
MSW 2002-04-28
- 2002-04-29 03:18 mwedel
- [r1581] gtk/config.c: Allocate string data for want_faceset - data returned by
gtk_entry_get_text is non persistent. MSW 2002-04-28
- 2002-04-20 05:13 mwedel
- [r1576] gtk/gx11.c: Fix bug in that the wrong variable was being passed to
negotiate_connection, resulting in the sound not being properly
communicated to the client. MSW 2002-04-19
- 2002-04-03 07:46 mwedel
- [r1572] Main change is to make all the configuration options now available in the
configure window in the gtk client. The way all the various values was
stored was changed around, so it is now pretty trivial to add any future
options. For the most part, most of the logic of the other code is
unchanged - one thing that is different is that the clients use the larger
virtual maps that are normally used for fog of map - this means that fog
of war can be turned on and off.
There are probably some bugs in this, but it seems to basically work -
no horrendous bugs that I noticed that prevent it from working at all.
-
common/client.c: replaced config values with new system. Always
send setup mapredraw 1 to server to make toggling for fog of war easier,
and it doesn't use any significant bandwidth.
common/client.h: Add new value configuration system/defines. remove
the old values.
common/commands.c, common/image.c,common/metaserver.c,common/player.c
: update for new configuration value system
common/init.c: Add config_names which is used for the load/save logic.
update the init and clear functions to set up new values.
gtk/Makefile.in: add config.c file.
gtk/gtkproto.h: rebuilt.
gtk/config.c: New file - holds the config creating code, as well as the
load and save for the gdefaults file.
gtk/gx11.c: Remove some widgets now in config.c, move itemlist to
gx11.h, remove some other values that are in the new configuration
scheme.
gtk/gx11.h: Moved several structures and externs from gx11.c to gx11.h
so they are available to config.c. Remove several values that
are done with the new config arrays.
gtk/image.c, gtk/keys.c, gtk/sdl.c, gtk/sound.c:
: update for new configuration value system
gtk/map.c: update for new configuration value system, modified so that
fog of war map logic is used all the time. Change allocate_map to
no longer refer to map_size global - use the x and y values in the
map structure.
x11/x11.c: update for new configuration value system - the x11 portion
still uses the old load/save method - this should get converted.
Many of the options available in the gtk client have no corresponding
use in the x11 client.
x11/x11.h: update for new configuration value system
x11/xutil.c: update for new configuration value system. Most of the map
logic is now synced up with the gtk/map.c
MSW 2002-04-03
- 2002-04-01 05:08 mwedel
- [r1571] configure.in, configure: Fix the --disable-sound configure option (when used,
it won't look for sound support, and will not build the sound-src directory).
Likewise, if that option is not used but configure does not find any supported
sound systems, it also will not build the sound-src directory. MSW 2002-03-31
- 2002-03-29 06:47 mwedel
- [r1570] Fix copying wrong variable to basename. MSW 2002-03-28
- 2002-03-29 06:00 mwedel
- [r1569] Fix improper ANSI C construct of declaring variables in mid code.
MSW 2002-03-28
- 2002-03-29 05:55 mwedel
- [r1568] Add missing file. MSW 2002-03-28
- 2002-03-27 07:56 mwedel
- [r1567] Various fixes/enhancements:
1) For the files stored in the players cache, include the image set suffix
(eg, base, clsc) when saving the file.
2) Add a gui update element to the gtk client when running with -download_all_faces.
For the cfclient, print the updates to the window.
3) Apply patch by 'Alfie' that shows skill experience in the cfclientp
4) Fix caching bugs with the cfclient that caused it to not work right.
common/client.c: Add callbacks to image_update_download_status from the
download all image routine. It is this callback that provides whatever
update mechanism for the player.
common/external.h: add image_update_download_status
common/image.c: Modify display_newpng to put in the image set name of the
saved cache files if that information is available.
gtk/gtkproto.h: rebuilt.
gtk/gx11.c: Make get_window_coord non static so other files can use it.
gtk/image.c: Add image_update_download_status that draws a progress bar.
Convenient side effect is that other GUI elements are now updated
as part of this, so player can access other menu items.
x11/png.c: Fix some bugs when using cached images - rgba_to_xpixmap was
using initialized bpp value - we now know this is always 4.
create_and_rescale_image_from_data did not match the parameters
as the common routines use. Also missing some logic for
allocating the data and linking it back to the cache entry.
x11/x11.c: Add display for skill experience. This necessitated making
some of the windows bigger.
x11/x11.h: Remove now unused fields from PixmapInfo structure (fg, bg,
bitmap)
x11/x11proto.h: rebuilt
x11/xutil.c: Remove code that was storing data into the unusued
fields in the PixmapInfo structure. Add missing call to
init_common_cache_data. Add image_update_download_status
function that just does a draw info.
MSW 2002-03-26
- 2002-03-26 08:15 mwedel
- [r1566] Many changes to image handling. The most noteworthy are:
1) Ability to use different image sets.
2) Ability to get checksums of all images and download missing images
before play starts.
3) Storing cache information for images in a bmaps.client file so that
it can know if it has a match without needing to load the image
and checksum it.
4) Can use crossfire-image archives to bootstrap the client with a large
number of images to save the time of downloading them later.
README: Update some out of data information about sounds, add section
describing the image handling.
configure,configure.in: Make the SOUNDDIR be based and datadir and not
an absolute path - this means using a different -prefix changes
the location of where it will find the sound file. Moved some
of the defines into the config.h file so that we don't need to pass
them as -D compiler options. Add code to properly substitute
DATADIR and BINDIR values.
common/Makefile.in: Add image.c to list of files. Fix depend
directive.
common/cconfig.h: Remove some options that no longer did anything.
common/client.c: clean up some unused global variables, add a few new ones.
and support for replyinfo protocol command. Modify negotiate connection
to issue requestinfo requests, set up face set to use, use
setup command to set caching behaviour, and support for it to download
all image sums and missing images before play starts.
common/client.h: Update VERSION_SC to 1027. Remove some unused
global externs. Add FaceSets structure, Face_Information structure,
the later which holds some user preferences. Add Cache_Entry
structure, as well as some state when negotiating the connection.
common/commands.c: Add ReplyInfoCmd function. Move FaceCmd
to common/image.c. Add handling of received setup command for
faceache and faceset information. Remove some dead code.
common/config.h.in: Add BINDIR and DATADIR defines so we don't need to
pass them on the command line.
common/external.h: Add some more functions that are called back from the
common area.
common/image.c: New file - cache logic, png image load code, and protocol
image related commands in this file. This removes some of the code
that was previously in the GUI area of the client into a common area.
common/init.c: Add TEST_FREE_AND_CLEAR macro. Add code to clear
some of the newly added structures.
common/proto.h: rebuilt.
gnome/gnome-cf.h: remove cache_images extern.
gtk/gcfclient.man: Update man page for new options (-download_all_faces,
-faceset)
gtk/gtkproto.h: rebuilt.
gtk/gx11.c: add redraw_needed flag so the map window is properly redrawn
when caching images and new images show up. Change some other
variables to deal with new image code. pixmaps changed to a pointer
so that a copy can be held in the common cache structure. Add support
for new options. Remove some code that is now in the common/image.c
file.
gtk/gx11.h: Remove keepcache, change cache_images, add redraw_needed,
and change type of pixmaps to be a pointer.
gtk/image.c: Move requestface to the common/image.c, change pixmaps
to pointer type. remove finish_face_cmd and ReadImages command.
gtk/map.c: Change pixmaps to pointer types.
gtk/sdl.c: add redraw paramter to sdl_gen_map. change pixmaps type
to pointer.
gtk/sound.c: Add missing / when running cfsndserv.
x11/png.c: Remove gdk related code from the file. Add rgba_to_xpixmap
data so tha the common area can load the png file.
x11/sound.c: Add missing / when running cfsndserv.
x11/x11.c: change pixmap type to pointer. Add new options (-faceset and
-download_all_faces). Remove -keepcache option. change
cache_images to face_info.cache_images. Change how the
pixmaps are generated
x11/x11.h: remove keepcache and cache_images variables. Change
pixmaps to pointer type.
x11/x11proto.h: rebuilt.
x11/xutil.c: remove keepcache option. Change pixmap type to pointer.
Move requestface and finish_face_cmd to common/image.c
MSW 2002-03-25
- 2002-03-20 07:01 mwedel
- [r1562] Makefile.in: add missing pixmaps file for archive.
crossfire-client.spec, configure.in: Update for 1.2.0 release.
MSW 2002-03-19
- 2002-02-15 22:23 tanner
- [r1535] New release for Con of the North gaming convention.
Updated desktop entry for GNOME and Ximian GNOME installs.
Using latest snapshop from CVS.
- 2002-01-16 01:25 jbontje
- [r1509] gx11.c: Fix for error with Count when nopopups is enabled.
After picking up with Count the label Count wasn't resetted to 0 but
cpl.count is. After dropping with Count both the label and cpl.count are
resetted to 0. Now it is always made 0 after pickup/drop, just like with
cfclient.
mids 2002-01-16
- 2002-01-15 07:33 mwedel
- [r1508] Most of the changes are by Edgar Toernig - I've just applied them and
checked them in. The stripping out of the display_mode variable is
my doing however.
configure.in, configure: Add check for zlib before png lib check, as on
some systems, png requires -lz.
common/client-types.h: Add #ifdef check for SOL_TCP
common/client.c: Add fast_tcp_send variable, comment out printing of error
from socket EOF. Use TCP_NODELAY for sending data to the server
if TCP_NODELAY is available. cs_write_string modified to use
cs_print_string.
common/client.h: Remove display_mode enum, add fast_tcp_send extern.
common/commands.c, common/init.c,gtk/image.c, gtk/map.c
cs_write_sting modified to use cs_print_string
common/external.h: set_autorepeat extern added.
common/newsocket.c: Modified to be better optimized for using TCP_NODELAY -
cs_print_string function added.
common/player.c: modified to use cs_print_string , autorepeat client side
command added.
common/proto.h, gtk/gtkproto.h: updated with new functions
gnome/gnome.c: display_mode variable removed, cs_write_string
replaced with cs_print_string
gtk/gx11.c: display_mode variable removed, cs_write_string replaced with
cs_print_string, -nofog option added
pixmaps/question.111: Resized to be 32x32
pixmaps/*.xbm - used for inventory icons in X11 client, replacing xpm
files
sound-src/cfsndserv.c: Better error handling, include time.h
x11/cfclient.man: -font and -noautorepeat options added.
x11/png.c: better error checking for rescaling images
x11/x11.c: noautorepeat variable added, display_mode removed, image icon
functionality re-enabled, images now created from xbm files,
set_autorepeat function added, add ability to set font, add mouse
wheel support
x11/x11.h: remove screen_num extern.
x11/x11proto.h: Updated with new functions.
x11/xutil.c: Modified to use image_size instead of hardcoded 24x24 value
for the status icons. cs_write_replaced with cs_print_string, no
auto repeat functionality added.
MSW 2001-01-14
- 2002-01-01 05:10 tanner
- [r1492] - Fixed typo in install target for x11 client.
- Make all clients Provide: crossfire-client
- Make sounds dependent on crossfire-client.
- 2001-12-31 09:42 tanner
- [r1490] Changed to build 1.1.0 client.
- 2001-12-31 09:02 tanner
- [r1489] Typo in install: target.
Was installing x11/cfclient as gcfclient.
- 2001-12-29 01:41 mwedel
- [r1486] Add banner line for 1.1.0 changes. MSW 2001-12-28
- 2001-12-28 08:56 mwedel
- [r1485] README: Update notes on needing png (and not xpm) library. Update mailing
alias.
configure.in, configure: As the seperate sound program (cfsndserv) is the
only supported sound configuration, remove new_sound_system defines
and ability to use the old (now non existant) sound system.
Have configure exit with error message if png library is not found,
as it is critical to the build process. Change it so that
gnome/Makefile is always built so that making of releases works.
gnome/gnome-cfclient.man, help/about.h, x11/cfclient.man: Update mail address.
gtk/gtkproto.h, x11/x11proto.h: Rebuilt, prototypes for some changed for
signed to unsigned characters.
gtk/gx11.c, gtk/png.c, pixmaps/stipple.111, x11/png.c, x11/x11.c, x11/xutil.c,
pixmaps/stipple.111 pixmaps/stipple.112:
Mostly changes to fix compile warnings and make sure we are passing the
right types to the various image creation functions (8 bit data).
sound-src/Makefile.in: Add soundsdef.h to list of things to build.
x11/x11.h: Remove extra semicolon.
MSW 2001-12-28
- 2001-12-28 03:40 mwedel
- [r1481] Include errno.h in some files. MSW 2001-12-27
- 2001-12-04 02:39 reeve
- [r1446] Scott Barnes: Another modification to the window sizing code, now it will not set
the window's default size larger than the display.
- 2001-11-26 02:21 mwedel
- [r1439] common/config.h, gnome/gnome-cfclient.soundlist, sound-src/sounds,
sound-src/soundsdef.h: Remove from CVS as it gets automatically generated
as part of configure/build process.
common/player.c, gtk/keys.c: Send valid count values when sending a fire
command. Some spells use the count value (eg dimension door).
gtk/gx11.c: Minor change to the trim_info_window code - still causes
periodic crashes in the gtk code however. Modify style code so that
if we don't get a valid style, we don't crash the client.
MSW 2001-11-25
- 2001-11-21 16:00 reeve
- [r1437] Scott Barnes: Changed the inventory lists to respect the user's GTK font
settings, and made the window and display sizes judged by the font size.
- 2001-11-06 00:14 mwedel
- [r1384] onfigure.in, configure: Modified so that if not compiling the
gnome client, we don't create the gnome Makefile. MSW 2001-11-05
- 2001-11-05 08:09 mwedel
- [r1382] gtk/gcfclient.man: Add -timemapredraw documentation to man page.
gtk/gx11.c: Update size of buffers to 100k, instead of 10k. Add some
debugging information to when info window is trimmed. Add -timemapredraw
command instead of it being a compile time option.
gtk/gx11.h: Add extern for time_map_redraw.
gtk/map.c,gtk/sdl.c: use time_map_redraw variable instead of define option.
MSW 2001-11-04
- 2001-11-04 06:49 mwedel
- [r1376] gtk/gcfclient.man: Update man page to include all options supported
by gtk client.
gtk/gx11.c: remove some unused #defines. add -trim_info_window option which
takes place of compile time option. Re-order command line switches to
be in alphabetical order. Add support for client to load/save most all
new options to the gdefaults file.
gtk/map.c: Some refinements to fog of war so if a space is empty, don't
mark it as a fog space to improve performance. Modify gdk draw routine
so that it also supports fog of war. There is still some problem in
that the client will really bog down in some circumstances when
drawing the map.
x11/Makefile.in: Add cfclient.man to list of files.
MSW 2001-11-03
- 2001-11-04 03:58 mwedel
- [r1375] Test for updated cvs log_accum.
- 2001-11-04 03:57 mwedel
- [r1374] Update e-mail address. MSW 2001-11-03
- 2001-11-04 03:31 mwedel
- [r1373] More fixes to headers for the various files - MSW 2001-11-03
- 2001-11-04 03:25 mwedel
- [r1372] Add copyright comment. MSW 2001-11-03
- 2001-11-04 03:18 mwedel
- [r1371] More comment/banner fixing, also modify gnome/Makefile.in to
put a - in front of the echo. MSW 2001-11-03
- 2001-11-04 02:53 mwedel
- [r1370] Clean up/add copyright/contact information to the files. Other
than some minor typos, no real code changes.
MSW 2001-11-03
- 2001-11-02 20:42 gros
- [r1368] Minor corrections allowing the client to be compiled without SDL - Chechkoff Y. 11/02/01
- 2001-11-02 08:22 mwedel
- [r1365] Remove sounds file - MSW 2001-11-01
- 2001-11-02 08:22 mwedel
- [r1364] Complete client re-org. Create common, gtk, gnome, sounds, and x11 subdirs.
Gtk client: only image support is png. Also add resizing options for
the images (-mapscale/-iconscale), remove pngximage, update sdl
image and normal draw image to support arbitrary image sizes.
sound: Only support new sound system.
MSW 2001-11-01
- 2001-11-02 07:32 mwedel
- [r1363] Remove sound file - part of client re-org - also looks like this file was
not used anymore. MSW 2001-11-01
- 2001-08-29 07:15 mwedel
- [r1265] gx11.c: Modified to know about new pickup mode (frontend - most all the
work is still done on the server). Patch by Nils Lohner.
MSW 2001-08-28
- 2001-08-13 06:44 mwedel
- [r1258] Add reset_map_function into xutil.c that gets called after we lose a
connection to the server. This fixes a problem of some leftover images
from the previous session appearing in the map windows. MSW 2001-08-12
client.c: add call to reset_map_data
proto.h: rebuilt
xutil.c: Add reset_map_function (mostly a copy of reset_map), make some
other functions 'static' so they don't show up in proto.h
- 2001-08-05 06:03 mwedel
- [r1253] Add -fog support for pngximage mode. Performance on it is not very
good however - if your going to use -fog, you should really use
sdl mode if possible. MSW 2001-08-04
- 2001-07-24 23:40 smacfiggen
- [r1242] Fixed bug in sdl client where scrolling in the left-right direction
while using a non rectangular view caused redraw problems. I was
making a bad assumption about how the scanlines in the SDL surface
were being padded. This fix should be tested more on non 32bit
displays though.
SMACFIGGEN 2001-07-24
- 2001-07-24 15:26 reeve
- [r1241] Scott Barnes: Removed some unused variables to eliminate warnings.
- 2001-07-23 21:52 smacfiggen
- [r1240] Bug fix for fog of war code. Only affected client when using
the map1cmd. Tiles that went out of view then came back into
view weren't always marked as cleared so stale map layer data
could appear on the screen.
SMACFIGGEN 2001-07-23
- 2001-07-22 18:44 smacfiggen
- [r1238] Added fog of war code. A fairly complex checkin so I suspect I may have
broken something. Note, this code only works in conjunction with the
SDL client for now. The infrastructure is all there for the other
blitters to take advantage of it though. This code also requires the
cooperation of the server, a new protocol command was added 'newmap' to
let the client know when to reset the state of the map (which should
happen every time the player enters a new map with the exception of
tiled maps). To use, give the -fog command line option along with
-sdl.
- 2001-06-24 02:13 smacfiggen
- [r1220] Speed optimization to the SDL rendering code. sdl_add_png_face
now exits when all 5 dark[] array values are set to full bright.
gx11.c: Added a line in the per_pixel lighting section that exits
right away if all darkness values are set to 255.
SMACFIGGEN 2001-06-23
- 2001-06-20 06:07 smacfiggen
- [r1216] Quick fix to the get_metaserver function. It was originally calling
gtk_main_interation() in a while loop. This is really really really
slooooow. I replaced it with a call to gtk_main(). gtk_main_quit
for this invocation of gtk_main is called in enter_callback() when
the user types in the metaserver he wants to play on. This is WAY
faster then the old method.
gx11.c: Changed get_main_interation to gtk_main in get_metaserver.
Added call to gtk_main_quit() in enter_callback() when
state changes from Metaserver_Select to Playing.
SMACFIGGEN 2001-06-19
- 2001-06-20 04:37 smacfiggen
- [r1213] Added notes on what is needed for SDL support.
- 2001-06-20 04:29 smacfiggen
- [r1212] Fixed bug in both sdl and pngximage versions of the gtk client where
mapscrolls would be redrawn incorrectly on servers using the old map
command. Basically new tiles coming onto the map would be draw with old
information if they were now blank. Whatever was on that view tile before
the scroll would be redrawn again.
xutil.c: Modifed display_mapscroll so that new cells just coming onto
the screen would be marked as the_map.cells[ax][ay].need_update= 1.
For cells that are already on screen and just moving, we still leave
need_update= 0.
- 2001-06-18 23:30 reeve
- [r1211] Scott Barnes: Changed the gnome-config test from -n to -z so that it actually
works :)
- 2001-06-18 04:40 smacfiggen
- [r1208] Changed no_sdl = yes to no_sdl=yes. Configure thought it meant
yes as in the shell command.
- 2001-06-18 04:17 smacfiggen
- [r1207] This checkin adds two speed optimizations to the SDL code in the
Gtk client. The mapscrolling now does a memcpy of the pixels instead
of regenerating the whole image and the sdl_add_png_face function
now starts blitting at the top most fully opaque tile.
It also fixes a minor bug in the grid overlay code, it wasn't
drawing the bottom and rightmost grid border on the edge of the screen.
gx11.c: Holds the sdl_add_png_face function
xutil.c: In display_mapscroll, added code to memcpy SDL pixel data
- 2001-06-17 23:00 mwedel
- [r1206] Fix some compiler warnings in this file. MSW 2001-06-17
- 2001-06-17 22:28 mwedel
- [r1205] Fix error in script preventing it from running. MSW 2001-06-17
- 2001-06-17 07:09 mwedel
- [r1203] This checkin puts Scott MacFiggen's SDL support into the gtk client.
I've made some enhancements to the code - it can now co-exist with
the other image formats (so if all the libraries are available, you can
choose from -xpm, vanilla -png, -png -pngximage or -sdl (which also
forces -png).
aclocal.m4, configure, configure.in: Add checks for SDL.
client.man: Update with -sdl option.
config.h, config.h.in: Add HAVE_SDL define
gx11.c, xutil.c: Support for SDL drawing. A lot of the code in
xutil.c is command with that of pngximage. gx11.c adds some additional
options beyond just the drawing - per tile darkness and gridline options
available under the client config window.
MSW 2001-06-17
- 2001-06-17 04:34 mwedel
- [r1201] client.c,client.h: Add want_darkness global variable, include when in setup
command we send server.
client.man,gx11.c,x11.c: Update to include -darkness/-nodarkness command
line options
commands.c: Change handling of negative results from server on setup
command.
MSW 2001-06-16
- 2001-06-13 07:01 mwedel
- [r1187] The main thing this fixes is a major memory corruption problem when using
-pngximage with the client. Better darkness display is also when
using -pngximage, but it depends on a server change (the change basically
lets the client do blending from completely dark spaces.
++
cconfig.h: add METASERVER define option which determines if client should
try to contact metaserver or not (useful to turn off if behind a firewall
so you don't have to wait for the timeout)
client.c: add metaserver_on, map1cmd to global variables
commands.c: divide by mapy value instead of 11 when using old map
command - needed if playing with smaller maps. set map1cmd
value on/off depending on type of map command we receive from server.
gx11.c: Add BPP define for internal testing to see if using 4 bytes/pixel
gives any speed of 3 (answer is performance is the same or slightly
worse with 4bpp). when run with mapsize with x>15, create windows
with bigmap outlook (message & stats above map, and not above/below).
Fix bug in -mapsize processing which would set invalid sizes.
Various cleanups to use image_size instead of 32. Changes in
drawing to also use BPP define value instead of 3 is various
areas. Optimizations for darkness rendering. Use map1cmd global
variable to know the packing form instead of looking at map size.
Improved darkness handling to know if adjoining spaces have valid
darkness information instead of looking at number of tiles.
metaserver.c: if metaserver_on isn't set, don't try to get metaserver
information.
png.c: remove end_ptr processing - wasn't getting used, so not allocating/
freeing it should improve performance a little. Also, move
png_set_filler call to before calling png_read_update_info - this
fixes a memory corruption problem.
x11.c: use map1cmd for determine packing information in map,
fix bug in -mapsize command processing which could result in invalid
values being used.
xutil.c: add have_darkness value to mapcell structure. Set
value when we have valid darkness information for this space. This
allows the client to use darkness for blocked spaces if the server
provides it. update to use BPP instead of 3 for copies of image
data.
MSW 2001-06-12
- 2001-06-07 23:20 mwedel
- [r1176] Put proper check in for gnome-config using appropriate macros.
method which was done (using which) results in false positives at least
on solaris systems, and probably many other systems.
MSW 2001-06-07
- 2001-06-07 20:13 reeve
- [r1175] Scott Barnes: Adjusted configure.in so now ./configure tells you if it didn't find Gnome.
- 2001-06-07 20:03 reeve
- [r1174] Scott Barnes: Made ./configure not fail if it can't find Gnome.
- 2001-06-07 19:21 reeve
- [r1173] Scott Barnes: Fixed the problem of not creating the install directories and also fixed a problem with loading the user's preferences.
- 2001-06-05 21:48 reeve
- [r1171] Added support to the Gnome client for larger viewable maps.
- 2001-06-05 16:59 reeve
- [r1170] More fixes to sync up with the other clients.
- 2001-06-05 16:23 reeve
- [r1169] Fixed display_map_doneupdate for the new proto.h
- 2001-06-05 06:57 mwedel
- [r1168] Fix for lighting code with pngximage. Wasn't working properly before
as you moved around because not all the spaces would get their lighting
updated. MSW 2001-06-04
- 2001-06-05 06:24 mwedel
- [r1167] This is actually a fairly big checkin:
1) add large map support into the client (use -mapsize option)
2) using GdkRgb structure for drawing the map. This prevents some more
advanced map handling functions (like true alpha) as well as much
better darkness support (use -pngximage option)
cconfig.h: add TIME_MAP_REDRAW define. I originally used this to benchmark
my improvements with the gdkrgb code, but throught it may be useful to
others
client.c: add map sizing global variables. Add map1 protocol pointer.
request different mapsize of server.
client.h: add map sizing variables to extern declarations.
client.man: add description of -mapsize and -pngximage
commands.c: Make it more forgiving about extra spaces in setu command.
and support for mapsize option of setup command. Add option
to map_doneupdate which controls if we want a full redraw or not.
Add Map1Cmd command which handles map1 protocol command.
gx11.c: Add support for big maps as well as gdkrgb backing images.
Add support for -mapsize and -pngximage command line options. Lots
of new image drawing code for pngximage. Add resize_map_window
function which is called when new map size is negotiated with server -
depending on new and old values, re-arrange some windows.
png.c: add png_to_data function which takes the png image and and returns
rgba data. used by pngximage code.
x11.c Add big map support (-mapsize option). It otherewise lacks many
of the other features I added to gx11.c
xutil.c: add png_data to image structure, and have data put here when
using pngximage mode. Move some of the basic map handling functions
here - not the stuff that draws the map, but what sets up the
server idea of wha the map looks like in terms of spaces.
MSW 2001-06-04
- 2001-06-05 03:01 reeve
- [r1166] *** empty log message ***
- 2001-06-05 02:57 reeve
- [r1165] Intital Gnome client checkin.
- 2001-06-05 02:52 reeve
- [r1164] Initial Gnome client checkin.
- 2001-05-29 04:17 mwedel
- [r1156] The three main things this checkin does:
Ability to save relative sizes of gtk subwindows, and have those restored
when re-running the client.
Use of the setup protocol command to set configuration values.
Receipt of skill experience information, and display of that in the
gtk client.
++
Makefile.in: Remove Protocol entry
Protocol: Removed - now located in server/doc directory.
client.c: Add value to determine if we want this option, initialize global
array that maps the number to skill names. Add support for 'setup'
protocol command. Send sound selection using new setup command.
client.h: add MAX_SKILL to no max number of skills. And skill experience
and level total to Stats structure, put extern for skill_names
array and want_skill_exp value.
commands.c: Add SetupCmd function which handles processing of
'setup' protocol command. If sound setting fails with setup command,
fall back to old method. In StatsCmd, add code to get skill
experience and level totals.
gx11.c: Add ability to save window size and relative pane positions
in non split mode, as well as loading and setting of those
values (required moving pane information widgets from create_windows
to global values) - while at it, renamed this to be more descriptive.
Have client now display skill experience totals in stats window.
metaserver.c: Make meta_sort a static function so that it does not
get put into proto files. Its only used within the metaserver.c
file in any case.
newclient.h: Add CS_STAT_SKILL* values (to keep in sync with server
version of this file)
proto.h: automatic rebuild needed for SetupCmd function.
MSW 2001-05-28
- 2001-05-26 07:35 mwedel
- [r1155] gx11.c: remove some unused code. Add color for cursed/magic items in
the unlocked inventory pain (makes it easier to sort items picked up)
Add support for trimming the info window buffers - now gtk just has
to be fixed. Have the second information window do the seem freeze
logic as the first. Fix problem of trying to access to many resistance
labels (may fix some reliability problems). Remove -scrolllines command
line option since the client does not use it.
xutil.c: Don't load/save scrolllines line in config file when included
with gx11.c - gtk client has no use for it. At newline to error
message about lines in default file we did not process.
MSW 2001-05-25
- 2001-05-18 05:54 mwedel
- [r1138] Merge post-1-0 release into main branch. MSW 2001-05-17
- 2001-05-14 07:43 tanner
- [r1125] Added sample files for sounds location.
- 2001-05-14 07:29 tanner
- [r1124] Small hack to spec file to prevent the name collision between sound files.
- 2001-05-14 07:06 tanner
- [r1123] 1.0.0 release!
I changed the revision markers in the .spec file.
- 2001-05-13 22:02 mwedel
- [r1120] Commit for 1.0.0 release. msw 2001-05-13
- 2001-05-11 06:08 mwedel
- [r1105] Add call to gtk_timeout_remove. Call was missing, not sure of
ramifications of that fact. MSW 2001-05-10
- 2001-05-11 05:24 mwedel
- [r1104] Fix bug introduced that prevents local commands from working. This
patch should now have the desired effect to prevent client crashes and
still have everything work. MSW 2001-05-10
- 2001-05-10 06:12 mwedel
- [r1100] player.c: Fix for client crashes if player enters really long commands
(like say .....). MSW 2001-05-08
- 2001-05-05 07:26 mwedel
- [r1076] gx11.c,command.c: Remove some debug statements which really should not be
there for 1.0, and which are not really useful anyways.
items_types, item_types.h: Varioius minor updates.
MSW 2001-05-04
- 2001-05-03 05:29 mwedel
- [r1067] gx11.c: Fix bug that causes gtk client not to update weapon speed.
metaserver.c: Have the listing get sorted by hostname to make it easier to
find the host the user may want.
MSW 2001-05-02
- 2001-04-18 00:39 mwedel
- [r987] configure out of date with respect to configure.in - this
puts them back in sync. MSW 2001-04-17
- 2001-04-14 23:41 mwedel
- [r973] Remove extra colon from sound.o directive - was causing compiles to fail.
MSW 2001-04-14
- 2001-04-10 23:45 tanner
- [r963] Added changelog to spec file.
- 2001-04-10 23:42 tanner
- [r962] 0.98.0 rpm release.
- 2001-04-10 16:50 elsbernd
- [r959] sound.o and cfsndserv depend on soundsdef.h and should be compiled,
if the definitions changed
- 2001-04-10 16:48 elsbernd
- [r958] Call cfsndserv with prefix/bin=bindir so bindir need not to be in PATH
- 2001-04-08 05:21 mwedel
- [r947] Updates for 0.98.0 release. MSW 2001-04-07
- 2001-04-07 05:34 mwedel
- [r938] item_types,item_types.h: Change matching for sword - hopefully this should
fix problems with dancing sword spellbooks. MSW 2001/04/06
- 2001-03-31 18:49 anonymous
- [r919] This was the other test.
- 2001-03-31 18:47 anonymous
- [r918] This is another test.
- 2001-03-31 18:44 anonymous
- [r917] This was the test.
- 2001-03-31 18:42 anonymous
- [r916] This is a test.
- 2001-03-29 07:25 mwedel
- [r901] gx11.c, item.c: move animations of the look window to the client. All
the necessary was already being sent to the client - it was just needed
for the client to use this information. Also remove some
#if 0 code from gx11.c. MSW 2001/03/28
- 2001-03-23 20:32 mwedel
- [r896] item.c: set_item_values - only resort items based on name if the name
has changed. This fixes a problem with items moving around in the
inventory if you lock/apply/unapply/unlock them. MSW 2001/03/23
- 2001-03-23 10:53 rower
- [r892] Small patch for those with dmalloc dated 15May2000-13Sep2000 (e.g. debian 'sid')
- 2001-03-20 05:58 mwedel
- [r881] Minor changes/updates for 0.97.0 release.
MSW 2001-03-19
- 2001-03-20 05:33 mwedel
- [r879] Commit of changes by Klaus Elsbernd - adds a few items and fixes
a few others up. Commited by mark wedel, 2001-03-19
- 2001-03-19 07:52 mwedel
- [r874] MSW 2001/03/18
Change so that containers on the ground still keep proper contents even if the
map space itself changes (spells or other objects going onto the space). This
is done by using the cpl.container pointer and when getting an updated map
space, seeing if one of the map space object tags match that.
commands.c: update the cpl.container tags when opening/closing containers.
item.c: Have locate_object see if the container matches the tag. Don't have
remove_item remove the object contents of other attributes if it is the
container, but still remove it from the list it is on.
item.h: remove function prototypes - these are in proto.h
- 2001-03-14 07:38 mwedel
- [r864] MSW 2001/03/13:
png.c: New png -> X11 (or gdk) creation routines that are much faster. This
should make a noticable difference in performance. Note that the X11
and gdk implementations are very different now - the gdk implementation
lets the gdk library do most of the work.
gx11.c: remove some dead code, add call to gdk_rgb_init() if using
png images - needed by new png loader.
x11.c: Add call to init_pngx_loader if running in png mode. Also pass colormap
by pointer so png_to_xpixmap can modify it.
xutil.c: pass colormap by pointer to init_pngx_loader (same reason as above)
- 2001-03-10 23:00 rower
- [r844] Added --disable-alsa option. Also some rearrange/prettyprint stuff
- 2001-03-07 06:58 mwedel
- [r838] MSW 2001/03/06:
Makefile.in: Add DMALLOC_LIB definition instead of it going in with the
the default libraries. cfsndserv will now get properly linked with
dmalloc.
configure.in, configure: add --disable-sound option, and make relevant
changes to use that option (which basically amounts to not checking
for any of the sound systems). Add check for dmalloc.h. change
substitution for -ldmalloc.
- 2001-03-05 02:11 mwedel
- [r837] cfsndserv.c: Modified so it now compiles with the modern ALSA sound system.
No idea if it actually works. MSW 2001/03/04
- 2001-03-02 05:58 mwedel
- [r832] metaserver.c: Modified so it uses the value of -port if that command
line option is given by a user. MSW 2001/03/01
- 2001-03-01 08:03 mwedel
- [r831] x11.c: Fixes for info window resizing. This should fix some crashes
and the code is a bit simpler now. MSW 2001/02/28
- 2001-02-23 05:16 mwedel
- [r816] Makefile.in: Modify so that it installs the target (cfclient, gcfclient,
cfsndserv) one at a time so it works with the install script.
item.c: add insert_item_before_item function. Modify the sorting function
so it first sorts by type, then by locked/unlocked status, and then
by alphabetical order (not including the number prefix).
item_types, item_types.h: More updates of missing objects or ones that
need more specific matching rules.
x11.c: Remove a lot of duplicate code that was in place for metaserver
support - instead, just add checks to the existing X event handling
code to know not to do some things if we're in metaserver selection
mode. This fixes a bug in that resize events would not be handled
if in metaserver selection mode.
MSW 2001-02-22
- 2001-02-15 03:51 cvs
- [r807] Remove -image from the list of possible options. MSW 2001-02-14
- 2001-02-13 07:11 tanner
- [r805] Added Changelog entried to spec file.
- 2001-02-13 06:56 tanner
- [r802] Notes for sourceforge posting.
Changes for 0.96.0 release.
- 2001-02-13 05:57 cvs
- [r796] CHANGES, configure configure.in crossfire-client.spec: Update for 0.96.0
release
item_types item_types.h: Add some additional items.
MSW 2001-02-12
- 2001-02-13 05:50 cvs
- [r795] If compiled with dmalloc, add 'dmalloc command that verifies the
heap. Makes checking for memory corruption easier. MSW 2001-01-12
- 2001-02-03 05:25 cvs
- [r777] MSW 2001/02/02:
Protocol: Update with new face1 command that includes checksum.
client.c: add face1 protocol command.
client.h: Update version_sc to 1026.
commands.c: Move FaceCmd from gx11.c/x11.c to this file, since it
now only does decoding of data and passes rendering off to appropriate
file. Also add Face1Cmd function that deals with checksum. Both
of these functions pass off the rendering to the same function.
gx11.c: add keepcache variable, re-do facing loading/caching - if
we have local version of face, generate checksum of it and compare
to that against what server has. finish_face_command added to
do this - called by the face functions in commands.c. Add
-keepcache command line option which will have it not request
images from server if checksum is different. Add usleep
in metserver selection area to prevent client from hogging all the cpu
time.
item.c: Add support for ^ in items file to say only match at start of
line. Useful for 'bolt' - doing substring also matched against firebolt.
item_types, item_types.h: make bolt ^bolt, add Head and hauberk to matching
criteria.
proto.h: automatic regen.
x11.c: As gx11.c above, plus: Use one font for all windows - reduces
complexity. Add easy selection of font to use with -font command
line option.
xutil.c: As gx11.c for relevant functions that are located in this file
and not x11.c
End of MSW 2001/02/02 checkin.
- 2001-02-01 06:31 cvs
- [r766] MSW 2001/01/31:
client.c: Clear player inventory and look windows after disconnection
from server. Prevents client crashes.
gx11.c: various fixes - window placement no longer always centered on screen
(very obnoxious if running xinerama), various prototypes fixed up,
clear map data after clearing image data.
player.c: Add suport for 'mapredraw' command. Not that this should ever
really be needed, but the server supports it, so its nice to be able to
use it.
x11.c: Fixes prototype/casting problems when clearing pixmaps. Like gx11.c,
clear map data.
xutil.c: add better description to the unbind command.
- 2001-01-15 12:58 mids
- [r708] Fixed a typo in the configure explanation
- 2001-01-14 05:00 cvs
- [r703] MSW 2000/1/13 (except as mentioned, all changes by MSW):
Makefile.in: Create destination dirs, remove extra tab. Patch also by Dave.
Protocol: typo fixed.
config.h, config.h.in: Add HVAE_DMALLOC_H #ifdefs. Checks currently
disable in configure.in, as with it, the sound won't like properly since
it needs -ldmalloc, and I haven't bothered investing that much time
into fixing the Makefile.
gx11.c: Patches by Dave Peticolas - mostly code cleanup, but one new feature is
support of wheel mice to move the scrollbars.
png.c: No real code change, just adjustments in some ordering which I think
makes the code appear a little simpler.
x11.c: Minor code cleanups, some formatting changes, some to make better
error messages.
End of MSW 2000/1/13 checkin.
- 2001-01-13 23:25 cvs
- [r702] Minor change to prevent compiler warnings. MSW 2000-1-13
- 2001-01-09 07:46 tanner
- [r666] Bundled in the client 16 bit change.
Added NOTES files so I can easily keep it up to date rather then edit on
sourceforge.
- 2001-01-09 06:51 cvs
- [r665] MSW 2001/1/8:
client.h: Change damage type to be 16 bits.
- 2001-01-05 02:50 tanner
- [r648] First "official" RPM spec file.
- 2001-01-04 02:52 tanner
- [r647] Getting things ready for a 0.95.8 GNOME aware client release.
- 2000-12-24 09:46 cvs
- [r635] MSW 2000/12/24:
png.c: Fix a major memory corruption issue - the png function
was re-allocing for a larger hunk of data, but did not update the
pointer and was still using the pointer to the smaller hunk.
Severity of this bug depended on luck - if the first png downloaded
happened to have the full 4 bytes/pixel, it never needed to do a realloc
so would work fine. Otherwise, a matter of luck what data got stomped
over. Also, modified the main function in this file so that it
you can compile against it and it now works with the new in memory
data read.
- 2000-12-24 00:05 cvs
- [r632] Update to use crossfire.real-time.com at metaserver.
MSW 2000-12-23
- 2000-12-20 07:03 cvs
- [r625] MSW 2000/12/19:
Metaserver update. Most files updated. This change has the client
connect the metaserver and lets the user choose which server to connect
to. Also, if the client loses a connection (either because the player
has quit playing or the server died), the client will no longer exit and
instead go back to the server selection screen.
A few unrelated changes (cfclient): when running cache, non downloaded
images should look better. Also, client starts up with larger window in
Png mode to take into account the extra space png images takes up in the
game window.
Changes by file:
Makefile.in: Add metaserver.c file.
cconfig.h: Add metaserver configuration information.
client.c: Add meta_ variables, move resists_name to this file, no longer
have DoClient exit if it gets an error on the socket (instead
mark the fd as -1 and return), change main loop such that if
connection to server has been lost, go through loop to establish
a new connection.
client.h: Add Metaserver_Select input state. Change resists_name from
a static to extern.
gx11.c: Remove some unused code, various code cleanups, and additions to
support the metaserver connection process.
init.c: Add reset_client_vars - call it between connections to servers.
proto.h: rebuilt for new functions.
x11.c: Update for metaserver connection status. If running Png mode,
have windows created larger.
xutil.c: When creating default images for cache, create 32x32 images for
png mode, not 24x24 images.
metaserver.c: New file for metaserver code.
End MSW 2000/12/19 checkin.
- 2000-12-19 04:30 cvs
- [r623] Update magicmap command to describe the bitmasks for the high
nibble. MSW 2000/12/18
- 2000-12-11 10:43 pjka
- [r580] cfsndserv didn't compile on sgi
- 2000-12-11 09:40 pjka
- [r579] removed a bogus file, so make archive works
- 2000-12-11 07:32 cvs
- [r577] MSW 2000/12/10:
png.c, gx11.c, x11.c, xutil.c: modified to use in memory loading of
png's. This means that if not caching images, we don't need to write it out
to a temp file. This should result in a minor performance gain, but
also remove the need of using tmpnam. Also, modified gx11.c so that
it uses same logic as the x11 client for extended command key (').
Before gx11.c client would use both ' and ", and there was no way to unbind
the later - since one can always bind the command key, I found that a bit
annoying.
- 2000-12-03 22:28 cvs
- [r551] Updated to display resistance values in the message window. Except for
armour, this is only displayed when running against serves with PR
code. Change for both cfclient and gcfclient. Files affected:
Protocol client.h commands.c gx11.c newclient.h player.c
sounds soundsdef.h x11.c
MSW 12-3-2000
- 2000-11-29 06:20 cvs
- [r548] Update version numbers for 0.95.8 release.
MSW 2000-11-28
- 2000-11-08 07:22 cvs
- [r476] Checkin on 2000-11-7 by MSW:
item.h: Update NAME_LEN to 128, as the server may send us names that
long. Also, terminate the name after we copy it.
- 2000-11-04 05:17 cvs
- [r471] Checking on 11/3 by MSW:
Remove remaining font support for x11 client.
Allow setting default display mode and server to connect to in the
cconfig.h file.
Files affected: CHANGES, cconfig.h, client.c, client.h, gx11.c, x11.c,
xutil.c
- 2000-09-21 05:45 cvs
- [r379] Makefile.in: Update to include png.c when packing up distributions.
- 2000-09-21 05:41 cvs
- [r378] Update for 0.95.7 release. MSW 9/20/2000
- 2000-08-28 08:02 cvs
- [r377] Fixed a client crashing bug.
<= used on an array: indexes start from 0! sizeof counts from 1.
PeterM
- 2000-08-25 05:57 cvs
- [r375] configure.in, configure: Move check for -lm before png check, and
libpng on sparc/solaris systems require math library for proper linking.
Also, change the -with-xpm* to -with-ldflags and -with-includes to be
more general since extra values may be needed for more than just xpm
library.
client.man: Updated for information about png images and
cwindow command.
README: Updated with changes mentioned above with the --with-png options.
gx11.c: Remove all support for pixmap images. They didn't work anyways,
but you could specify -pix on the command line and get no images -
now it will at least result in an error message. Also, savedefaults
will now save png status properly.
xutil.c: Modified so that it will save png status when savedefaults
is issued.
MSW 8/24/2000
- 2000-08-14 04:42 cvs
- [r372] The following change removes imlib as are png loading/rendering library -
instead, we use our own local function located in png.c. libpng is
still needed, but it removes the dependancy on imlib. Also, my home
spun function renders all the png images crossfire uses correctly, while
imlib had several it did not do properly. MSW 8/13/2000
Files affected:
config.h, config.h.in: Change HAVE_IMLIB_H to HAVE_LIBPNG
configure, configure.in: Change check from imlib to libpng.
gx11.c,x11.c,xutil.c: Changed to use our functions and not imlib.
png.c: new file that has our png support in it.
- 2000-08-11 03:57 cvs
- [r371] cfsndserv.c: Make some changes so that sound on ultrasparc systems is played
properly. Missing FD_SET call to re-add the soundfd, as well as a missing
wrap check for first_free_buffer. MSW 8/10/2000
- 2000-08-07 05:27 cvs
- [r367] The following matches a change made to the server which includes two
piece item names to make the item names in the client appear more perfect.
Protocol: Updated to document the new item name transmission method.
client.h: Update SC version to 1024.
item.h: Remove name and o_name from item structure, instead there is now
d_name, s_name, and p_name, representing the display name, singular name,
and plural name. display name is derived from the s/p names plus nrof value.
commands.c: Chance strncpy to memcpy, as a null character is used to seperate
the two name values. UpdateItemCmd is also modified to supply an empty
string to set_item_values instead of the same name if the name is unchanged.
gx11.c, player.c, x11.c: use d_name instead of name to correspond with
changes to item.h
item.c: Update item initialization and clearing functions with new name
elements. Update set_item_values with new two piece name support.
remove adding 'a' and 'an' prefix to singular objects, as it generally
doesn't look good in the look window and isn't all that useful in the
inventory window either.
Mark Wedel 8/6/2000
- 2000-07-20 06:49 cvs
- [r361] item_types, item_types.h: Update with new item types - MSW 7/19/2000
player.c: Comment out command buffering output - MSW 7/19/2000
- 2000-06-21 04:45 cvs
- [r345] configure.in: Update for 0.95.6 release.
x11.c: Change MAX_BUF definition in to match that in config.h
Update README for necessary libraries.
- 2000-06-17 06:28 cvs
- [r328] Update README for necessary libraries.
configure.in, configure: Re-order testing of Xext, Imlib where we still
have the any special link flags set. Also, when finding these, explicity
set them in the X_LIBS variable and not the default, since they are only
needed for the X11 client. MSW 6/16/2000
- 2000-06-03 07:20 cvs
- [r288] Protocol: Update for png information - addition of image command.
client.c: Add support for image command. Change initializing so we get
the protocol from the server early on - we need to know it before
we tell it what facemode we want, as it may not support png
images. do protocol version check and if the server does not
support it and the user request png, fail out.
client.h: Increase versions of protocol. Add Png_Display to possible display
modes.
command.c: Add ImageCmd function which processes the image command
(used for receipt of png images). the use of the image command
can be abstracted in the future for other image formats quite easily.
config.h.in (& config.h): Add HAVE_IMLIB_H define which lets us know if
the imlib is available.
configure.in (& configure): Add detection for imlib and set the appropriate
variables so that they get linked properly. Also add check
for Imlib.h
gx11.c: Update for png support - add display_newpng command, change
XPM_SIZE to image_size and make it a variable and not a define.
Pull in appropriate imlib support, as well as rendering of
png data. Some dead code removed. display_usepng,
display_usxpm, and display_newpng functions added.
newclient.h: Add CF_FACE_PNG constant for CS communication.
proto.h: Updated for new png functions.
x11.c: Many of the same changes as gx11.c above. More work was done here
as the 24 image size was hardcoded into this file - it is
now a variable also, so supporting other image sizes in the future
should also be quite easy. Once the Png's are rendered, they are
drawn the same was as the Xpm's are, so many checks for
display_mode==Xpm_Display also check for Png_Display.
xutil.c: Support for PNG images added. Changes are mostly related to
caching code.
Changes by Mark Wedel, 6/2/2000
- 2000-05-30 05:07 cvs
- [r283] Makfile.in: Have cfsndserv.o removed when make clean is done.
Also add a 'distclean' directive which removes the config.cache/log/status
files as well as the executables. MSW 5/29/2000
- 2000-05-25 16:44 cvsread
- [r268] Changed mark's email address.
- 2000-05-08 03:12 cvs
- [r239] Update for x11.c, xutil.c changes - msw 5/8/2000
- 2000-05-08 03:11 cvs
- [r238] x11.c: Fix bug introduced in 4/20 update which would cause xpm display
mode to fail with no such face warnings - code check was in the
wrong place - MSW 5/7/2000
- 2000-05-08 03:10 cvs
- [r237] xutil.c: Improve logic for built in keybindings - if the
def_keys specifies a unique keycode, we don't update the keycode - this
is necessary for some keyboards to have working keybindings (for example,
sun Type 5 keyboards use the Up keysym for both the arrows and the keypad,
so we can't get the keycode for both with the XKeysymToKeycode file -
MSW 5/7/2000
- 2000-04-22 07:08 cvs
- [r228] Add key ring to item_types and item_types.h file in the container
category. MSW 4/21/2000
- 2000-04-22 07:00 cvs
- [r227] Change Makefile.in to use perl that configure has found when
running items.pl script - MSW 4/21/2000
- 2000-04-21 07:01 cvs
- [r225] License: Add license file for the client - MSW 4/20/2000
- 2000-04-21 06:58 cvs
- [r224] Many updates - MSW 4/20/2000
- 2000-04-21 06:58 cvs
- [r223] config.h, config.h.in: Add WORDS_BIGENDIAN define to file. MSW 4/20/2000
- 2000-04-21 06:57 cvs
- [r222] gx11.c: Update so that it
has the same set of command line options that x11.c does (-nocache, -nosound)
Only update keycodes for the
local keyboard for standard keybindings. Custom keybindings will keep their
old/original keycodes, which is often needed. Add -updatekeycodes option so
have it update all keycodes. MSW 4/20/2000
- 2000-04-21 06:50 cvs
- [r221] x11.c, xutil.c, client.h, client.man: Only update keycodes for the local
keyboard for standard keybindings. Custom keybindings will keep their
old/original keycodes, which is often needed. Add -updatekeycodes option so
have it update all keycodes. client.man updated to describe the
-updatekeycodes command. MSW 4/20/2000
- 2000-04-21 06:47 cvs
- [r220] cfsndserv.c: Various changes
1) Add support for sound on Sun (solaris) systems - another init_audio
function added.
2) If in SOUND_DEBUG mode, also print out the audio device we would try to
use. Also, add x,y coordinates when printing debug information when
playing a sound.
3) Add various casts to reduce compiler warnings on going from
signed char to unsigned char data types.
4) For 16 bit output, big endian (sparc) should now work - have two
sections when packing the sound information to pack it the write direction
depending on endianess of the machine.
5) Ignore the device entry in the .crossfire/sndstat file - using that
resulted in incompatibilities between system types. If player needs
to use a specific audio device, the AUDIODEV environmental variable
can be used.
--MSW 4/20/2000
- 2000-04-21 06:40 cvs
- [r219] configure.in (and configure): Many fixes:
1) On solaris, add -R flag to linker options if --with-xpm-lib=dir is
used - needed to run the client when dynamic linking is used.
2) Add AC_C_BIGENDIAN check - we need to know the byte order for sound
to work on both sparc and other systems properly. NOTE - when running
autoconf, you will get a warning about that line.
3) Add detecition for solaris audio include, and add appropriate declarations
to use it.
4) Fix for xpm check - if X11 includes are in a nonstandard place,
it would fail to find xpm.h since that includes some standard X11 files.
Add X_CFLAGS which includes any necessary -I options for this to work.
--MSW 4/20/2000
- 2000-04-21 06:29 cvs
- [r218] x11.c, xutil.c, client.h: Only update keycodes for the local keyboard
for standard keybindings. Custom keybindings will keep their old/original
keycodes, which is often needed. Add -updatekeycodes option so have
it update all keycodes. MSW 4/20/2000
- 2000-04-21 04:38 cvs
- [r217] add closing comment - the missing close comment was just resulting
in warnings of 'comment detected inside comment' - the change does not
affect the execution of the code. MSW 4/20/2000
- 2000-04-19 06:20 cvs
- [r215] Remove extra semicolor that was resulting in compiler warnings.
Update mail address/copyright date.
Mark Wedel 4/18/2000
- 2000-04-13 07:09 cvs
- [r202] update fiel for animation update, x11.c and removal of some files.
Mark Wedel 4/12/2000
- 2000-04-13 07:09 cvs
- [r201] x11.c: Add code into gen_draw_face so if a request to draw a nonexistant face
is performed, it will handle the problem gracefully. Mark Wedel, 4/12/2000
- 2000-04-13 07:08 cvs
- [r200] commands.c, client.h: Change animation code to dynamically allocate space
needed for animations instead of using a statically defined/sized array to
contain the face information. This fixes a bug with icors causing the client
to crash (it had more animations than the static array had), and this method
is just generally a good idea. Mark Wedel, 4/12/2000
- 2000-04-13 07:07 cvs
- [r199] Makefile, config.cache, config.status: Removed from CVS tree it should not be
distributed - rather each person should generate it on their own by using the
configure script. One advantage of removing these is that a 'cvs diff'
of the directory won't show the diffs of these automatically generated
files. Mark Wedel, 4/12/2000
- 2000-04-13 07:04 cvs
- [r198] Removing Makefile - it should not be distributed - rather each person
should generate it on their own by using the configure script.
Mark Wedel, 4/12/2000
- 1999-12-01 04:55 cvs
- [r157] Updated Makefile.in to that it uses the perl that is found as part of the
configure process when running the utils/deftoheader.pl line. MSW
- 1999-07-12 06:08 cvs
- [r48] Global commit to sync up my private and the cvs revisions for 0.95.4
release.
- 1999-07-12 06:05 cvs
- [r47] remove logfile - this just contains malloc debugging as is not needed
in the cvs tree.
- 1999-07-12 06:05 cvs
- [r46] remove automatically generated log that isn't needed.
- 1999-07-12 05:54 cvs
- [r45] Removing executable files since they are not needed/desirable.
- 1999-06-14 00:00 cvs
- [r34] Add checks to xutil.c to verify we have a valid keysym before trying
to convert it to a string and print it out. Before, this could result
in trying to print null strings, which would cause a crash - msw.
- 1999-06-13 22:37 cvs
- [r33] fix unbind and bind in xutil.c so they properly skip over leading spaces
- msw.
fix Makefile.in so make depend will pick up x11.c dependencies - msw.
- 1999-06-13 22:19 cvs
- [r32] Fix 'help command so that the draw info commands are formatted to fit
on the default window width (player.c - msw).
Fix so that cwindow without options results in a message that an option
is needed instead of causing the program to crash (player.c - msw)
- 1999-06-02 07:10 cvs
- [r24] Update Makefile.in so that make install works again - msw
- 1999-05-17 14:21 hfukui
- [r22] Fix Segmentation fault Bug, when cwindow command is used without arguments.
- 1999-05-08 09:32 azzie
- [r20] Updated changes file with gx11.c changes.
/David
- 1999-05-08 09:28 azzie
- [r19] Major updates, first checkin in a long time. Improvements include major
performance increases during text updates and speedups during drawing.
Also prepared for 32x32 graphics (change the XPM_SIZE define).
/David
- 1999-05-08 09:23 azzie
- [r18] Fixed client side buffering bug. It should never happen anyway since the client
is unlikely to reach a buffering state, but it might as well be fixed.
/David
- 1999-04-29 04:04 cvs
- [r10] Adding missing newclient.h file in.
- 1999-03-29 05:13 uid200
- [r4] Initial revision