ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/client.h
Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 02:43:04 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.49: +0 -38 lines
Diff to previous 1.49
very very aggressive tcp keepalive - tghis might time out connections in 4 seconds

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Wed Apr 25 18:47:50 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.48: +21 -12 lines
Diff to previous 1.48
rewrote output buffer handling. the new system:
- outputs messages immediately.
- suppresses following duplicates.
- enforces a minimum setting.
- is, as usual, faster and leaner.

the only problem is that the code worked out of the box, which is not reassuring.

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 00:42:02 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47
- implement a rudimentary framework for a "msg" command that
  replaces drawinfo and drawextinfo and allows for simpler usage
  in simple cases and extensibility for the less complex uses.
- moved the character race choosing logic into perl, making use
  of the new msg command if the client supports it.

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Wed Apr 18 09:38:58 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.46: +1 -1 lines
Diff to previous 1.46
store and transfer the player objetc count not uuid in the extmap protocol, we cannot reasonably hope to get rid of the count anyway

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Tue Apr 10 09:35:23 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.45: +1 -0 lines
Diff to previous 1.45
- implement smoothing in the fxix (or better: fxixsx) protocol.
- this *enforces* that smoothing is *per face* and not *per archetype*.
- no extra bandwidth is needed for map information (unlike in the
  crossfire 1.x protocol, where smoothlevels are per-mapspace
  and take up a lot of bandwidth).
- no extra storage is required on the client-side (although smoothing
  for cached map data is then only available for tiles that have been seen).
- temporarily supply empty_S.x11 smoothfaces again, as this hack is required
  because there is no way to specify a smoothlevel but no smoothface
  otherwise. this should be optimised away at a future point, but this
  will break gcfclient (but disabling smoothing for that might be a good
  compromise).

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Apr 3 00:21:37 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.44: +7 -1 lines
Diff to previous 1.44
- fix ber encoding
- reduce image checksum length to 6 bytes (from 16)
- implement fx packet, which reduces
  face overhead to amortised 10/12 bytes per face instead of
  21/32 bytes and allows an unlimited number of faces
  instead of 2**16.

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Mon Apr 2 19:56:11 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.43: +2 -0 lines
Diff to previous 1.43
add untested ber integer encoding function

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Mon Apr 2 18:54:00 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.42: +1 -0 lines
Diff to previous 1.42
find mss value for future use

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Mon Apr 2 18:04:46 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.41: +7 -6 lines
Diff to previous 1.41
moved setup to perlspace to facilitate easier extensions and some cleanups. feels more secure, too

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Fri Mar 16 02:37:54 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.40: +1 -0 lines
Diff to previous 1.40
- implement yet another bug workaround for gcfclient. its rather sad.

when bg scrubbing, the server sends images in advance, about twice per second.

then receiving a new image, gcfclient destroys the imventory and rebuilds it
(the widgets). this makes using it rather hard, as twice per seconds all widgets
go away and are replaced by new ones, so mouse clicks, if not fast enough, will
be ignored, making the client rather hard to use.

soo.... only to background sending for cfplus, which needs it least.

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Thu Mar 15 16:25:45 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.39: +9 -7 lines
Diff to previous 1.39
implement another bug workaround for clients

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Thu Mar 15 03:30:37 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.38: +4 -0 lines
Diff to previous 1.38
- background scrub the client face cache:
  - on the first image request, start sending out
    all faces in order (one face per tick) when
    there is no other image sending activity.
  - send out one image every BG_SCRUB_RATE max.
    if there is no other image sending activity.
  - by default this sends roughly 2 images to the client
    per second, and 8 face indications if the faces
    are already known to the client.

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 15:44:47 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.37: +7 -2 lines
Diff to previous 1.37
- make face caching mandatory, and pester users to enable it
- implement rate-limiting, for images only right now
- implement and document output-rate command to set rate limit.
- default 1mbit.

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 04:12:28 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36
- rewrote more face handling code
- automatically send smooth faces, as the client will need them anyways
  and it makes little sense to wait for the client to axk for it. of course,
  gcfclient suffers from weird ordering problems again.
- UP_OBJ_FACE was often abused in situations where other things changed,
  updated lots of spaces, probably more to be done.
- update_smooth became so small that inlining it actually clarified
  the code. similar for update_space, which is not inlined for other reasons.
- faces were not initialised properly
- add versioncheck for face data
- rewrite invisibility handling a bit: god finger etc. now makes you blink,
  blinking routine has changed to be less annoying and more useful while
  still indicating invisibleness.

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 01:19:09 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.35: +5 -11 lines
Diff to previous 1.35
- send smooth faces automatically with their base face, anything else
  just complictaes everything and clients who want smoothing would
  requets the face anyways.
- this reduces the size of struct client considerably, from 300k to
  about 300k (whoops).

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 00:04:58 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.34: +6 -0 lines
Diff to previous 1.34
- rewrote smooth face handling, as a side-effect, smoothing seems to work
  again and smooth faces can be reloaded.
- the server now sends the full animation for an object the first time
  it is seen, this uses slightly more bandwidth initially, but avoids
  the flickering for objects change their face later.

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Mon Mar 12 23:45:10 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.33: +2 -0 lines
Diff to previous 1.33
- gcfclient compares against the server-provided image checksum but
  stores its own checksum in the database. needless to say, they differed.
  needless to say, we now have to provide a dummy superfluous gcfclient checksum
  for gcfclient only.
- add various bug workaround flags to enbale gcfclient to cache imges again.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Mon Mar 12 01:13:10 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.32: +3 -10 lines
Diff to previous 1.32
- remove faces form each mapspace, as they were stored and calculated
  *solely* for magicmap. sic.
- as update_ is a major bottleneck, this will certainly help load, too.
- semantics have changed: objects with blank faces are now transfered,
  but i assume this is rare (and might give a nice hint about invisible stuff :)

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sun Mar 11 02:12:44 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.31: +3 -5 lines
Diff to previous 1.31
- MAJOR CHANGE
- you now need to use cfutil to install arches.
- former bigfaces are broken in the server
- bigfaces are no longer supported. at all.
- use face numbers instead of pointers
  * saves lotsa space
  * saves lotsa indirections
  * saves lots(?) cpu cycles
- completely rewrote face handling
- faces can now be added at runtime
- reload will add new faces
- this does not apply to animations
- use a hastable instead of binary search (faster) for faces
- face caching is broken
- facesets are gone
- server always reports MAX_FACES to any client who asks

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Sat Mar 10 19:48:16 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30
- improve image_sums
- DOWNGRADE server protocol version to 1026.
  * this disables requestinfo image_sums and image_info in gcfclient,
    allowing us to use up to 10000 faces dynamically
    (right now, we already sue up to 7500 faces, but the 10000 face limit
    is, of coruse, hardcoded into gcfclient))

--
A student, in hopes of understanding the Lambda-nature, came to
Greenblatt.  As they spoke a Multics system hacker walked by.  "Is it
true", asked the student, "that PL-1 has many of the same data types as
Lisp".  Almost before the student had finshed his question, Greenblatt
shouted, "FOO!", and hit the student with a stick.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Thu Mar 1 12:28:16 2007 UTC (17 years, 2 months ago) by pippijn
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.29: +2 -2 lines
Diff to previous 1.29
nano-cleanups

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Thu Feb 15 04:04:22 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.28: +1 -0 lines
Diff to previous 1.28
- tell player about each region as she enters.
- region longnames no longer are prefixed with in, change accordingly.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Sun Feb 4 21:02:54 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.27: +4 -2 lines
Diff to previous 1.27
make a horrendous hack to enable say and chat to be executed almost anytime

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sun Feb 4 00:39:32 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26
*** empty log message ***

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Jan 15 21:06:18 2007 UTC (17 years, 4 months ago) by pippijn
Branch: MAIN
Changes since 1.25: +22 -22 lines
Diff to previous 1.25
comments

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Mon Jan 8 18:18:35 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.24: +15 -1 lines
Diff to previous 1.24
- move most last_* values into socket, where they belong
- this actually saved a lot of space in the text segment,
  which might mean less complicated pointer accesses, because
  the data is no where it belongs, mostly.

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Sun Jan 7 02:39:14 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.23: +7 -2 lines
Diff to previous 1.23
""

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Sat Jan 6 14:42:30 2007 UTC (17 years, 4 months ago) by pippijn
Branch: MAIN
Changes since 1.22: +1 -0 lines
Diff to previous 1.22
added some copyrights

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Tue Dec 26 05:44:14 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.21: +12 -10 lines
Diff to previous 1.21
formatting

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Mon Dec 25 11:25:49 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20
- small, but subtle, rewrite of object management
- perl will now keep attachable objects alive
- objects are now refcounted
- refcouts need to be tested explicitly (refcnt_chk)
- explicit destroy is required current
- explicit destroy asks "nicely" for the object to self destruct, if possible
- refcounts will be used during mortal killing
- minor bugfixes, optimisations etc.
- some former hacks removed.

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sat Dec 23 15:49:40 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19
- implement (mostly untested) array member support for genacc
- make some arrays and other members available to perl
- redefined meaning of NUM_FLAGS (really meaning number of flags now,
  as the code assumed anyway).
- moved afk flag to client, where it belongs (make sno sense to save it,
  is also true for wiz &c).
- updated extensions to reflect all that (Jewler.pm should be tested w.r.t.
  resistances)

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sat Dec 23 09:41:55 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.18: +0 -1 lines
Diff to previous 1.18
- reorder stuff so that the endlessly sucky gcfclient doesn't get confused

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sat Dec 23 06:21:02 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
- improved login code
- removed some cruft code and (finally), the player_pod hack

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sat Dec 23 00:14:29 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.16: +0 -2 lines
Diff to previous 1.16
*** empty log message ***

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Fri Dec 22 16:34:00 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.15: +1 -6 lines
Diff to previous 1.15
- preliminary check in, stuff is rudimentarily working
- moved most of the player creation process into a perl coroutine
- changed internal design of player management to not reuse
  and morph the object in funny ways. should be safer and much
  nicer to handle.
- got rid of some annoying hacks, such as clear()
  (TODO: get rid of player_pod and other stuff now unnecessary?)

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 23:37:05 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.14: +21 -2 lines
Diff to previous 1.14
- made state a per-client variable
  (that does not magically make state a per-client thing!)
- rename player->socket to player->ns. its not a good name for "client",
  but it is an historical artifact, and better than "socket".

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 06:12:36 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.13: +11 -11 lines
Diff to previous 1.13
- made client a first-class crossfire-perl object
  (its attachable), but perl support is missing.
- added some client events
- fixed reply not working after logout

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Wed Dec 20 09:14:22 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.12: +25 -4 lines
Diff to previous 1.12
- minor cleanups
- minor optimisations (in_player vs. is_player_inv)
- added P_PLAYER map flag
- some (dead) concept code

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Wed Dec 20 01:19:11 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.11: +20 -1 lines
Diff to previous 1.11
some source simplification

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Tue Dec 19 05:41:21 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
goofing around in vain, trying to find a generalisation for esrv*item

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Dec 19 05:12:52 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.9: +34 -30 lines
Diff to previous 1.9
- hide floorbox implementation details
- use meaning (hopefully) names

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Dec 19 04:58:04 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.8: +2 -3 lines
Diff to previous 1.8
- separate all comamnds into immediate/socket-level and queued/player-level
- clean up player command handling, handle up to 8 commands/tick

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Dec 17 23:10:35 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7
another bug, do some adjustments to coredumping 'algorithm'

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 21:40:26 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.6: +14 -11 lines
Diff to previous 1.6
- clean up some code
- fix some possible (minor) bugs
- use a bitset for anims_sent
- fix a memory leak
- removed dead code

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 18:39:26 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
fix memory leak in player command queue.

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 03:21:08 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4
- limit command backlog to two seconds

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 03:08:26 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.3: +48 -16 lines
Diff to previous 1.3
- socket i/o is completely asynchronous now
- some command sare handled immediately
- others (most palying related commands) are queued
  for later (as of now synchronous) processing
- specifying a max queue length (in seconds) is possible, but disabled
- also add some syntax sugar for network code

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 20:08:45 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2
I goofed.

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 20:07:02 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1
more slight copyright adjustments

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 19:59:19 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
the rename for sanity campaign hits
you died
- renamed stuff
- partially updated copyrights
- some cleanups

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to rel-2_1: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a