ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_object.C
Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun Sep 30 20:22:21 2007 UTC (16 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_3
Changes since 1.58: +0 -76 lines
Diff to previous 1.58
- clean up message system, combine all boxes into one.
- suppress too long messages (we need a more robust solution to this problem).
- get rid of INS_MAP_LOAD, leading to slightly cleaner/faster code
  and certainly one special case less.
- insert objects manually at load time, this is both faster and also more
  correct, as loading a map is never supposed to trigger anything (and
  also for symmetry to the save code).

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Wed Jul 4 04:15:29 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
CVS Tags: rel-2_2
Changes since 1.57: +1 -1 lines
Diff to previous 1.57
*** empty log message ***

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 05:00:19 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
Changes since 1.56: +10 -11 lines
Diff to previous 1.56
- upgrade crossfire trt to the GPL version 3 (hopefully correctly).
- add a single file covered by the GNU Affero General Public License
  (which is not yet released, so I used the current draft, which is
  legally a bit wavy, but its likely better than nothing as it expresses
  direct intent by the authors, and we can upgrade as soon as it has been
  released).
  * this should ensure availability of source code for the server at least
    and hopefully also archetypes and maps even when modified versions
    are not being distributed, in accordance of section 13 of the agplv3.

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Tue Jun 5 13:05:02 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.55: +0 -2 lines
Diff to previous 1.55
- improve observe
- remove more cruft code
- archetype loading almost works again, reloading probbaly still borked.

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Mon May 28 21:28:35 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.54: +17 -18 lines
Diff to previous 1.54
update copyrights in server/*.C

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Thu May 17 20:27:01 2007 UTC (17 years ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.53: +4 -2 lines
Diff to previous 1.53
- more rewrite:
  change_skill now only changes the chosen_skill, nothing else.
  new flag to suppress skill tool behaviour of readying the skill
  when applying the tool, for use in find_skill.

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Thu May 17 14:14:55 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.52: +0 -12 lines
Diff to previous 1.52
remove superfluous/broken settings and related code

- COZY_SERVER:
  enabled most msall adjustments, changed digestion formula to the original one,
  party member treament w.r.t. pets enforced.
- PROHIBIT_PLAYERKILL: default
- real_wiz: removed and enforced
- create_home_portals: removed and enforced
- casting_time: removed and forced to be off (was crashing anyways)
- was_wiz flag removed and treated as off usually unless it was used
  in place of flag_wiz.
- do not save or restore wiz, wizcast and wizpass flags.

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Sat May 12 20:21:54 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.51: +10 -4 lines
Diff to previous 1.51
fix weapon speed to be more in line with documentation

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Sat May 12 16:06:42 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.50: +10 -17 lines
Diff to previous 1.50
almost works

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Mon May 7 07:47:33 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.49: +0 -1 lines
Diff to previous 1.49
- rework body locations to give betetr feedback and
  make use of combat and shield slots.

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Mon May 7 06:01:48 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.48: +1 -1 lines
Diff to previous 1.48
do not output archetypes with names starting with type_ or class_, a bit of a hack

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Mon May 7 03:05:58 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47
- add two new slots for shields and combat weapons
- make slots into bitfields, they are not too speed-critical and this
  saves 16 bytes in the object structure.
- add accessors to body lcoation names etc. to perl
- use those in the body command

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Thu May 3 04:50:27 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.46: +3 -0 lines
Diff to previous 1.46
- skill system is looking as if it were going somewhere, slowly.
- support a regex argument to who to limit user reports.

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 16:30:29 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45
need to learn c properly

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 16:19:29 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44
why oh why those stupid bugs again and again

Revision 1.44 - (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.43: +1 -1 lines
Diff to previous 1.43
- 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.43 - (view) (download) (annotate) - [select for diffs]
Mon Apr 23 18:21:54 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.42: +0 -1 lines
Diff to previous 1.42
use g_slice for dynbufs

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Mon Apr 23 18:09:57 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.41: +112 -123 lines
Diff to previous 1.41
- add format utility function.
- split dynbuf into dynbuf and dynbuf_text.
- use dynbuf_text for examine strings instead of
  outputting each line seperately. tried to use stringstreams
  but they add insane overheads (as does std::string, but less so).

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Sun Mar 18 03:05:40 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.40: +9 -8 lines
Diff to previous 1.40
- reduce default output-sync to less than a second
- output-sync command now uses seconds as unit, not
  something users cannot even know.
- lots of useless const adjustments.

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Fri Mar 2 12:14:57 2007 UTC (17 years, 2 months ago) by pippijn
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.39: +0 -41 lines
Diff to previous 1.39
- run, fire, mark in perl
- no more NewServerCommands

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Sat Feb 10 21:01:10 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.38: +30 -31 lines
Diff to previous 1.38
- avoid floorbox updates when client has container open, this
  completely confused gcfclient, although completely valid by
  the protocol (and of course, cfplus didn't even notice it).

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Wed Feb 7 23:50:01 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.37: +2 -0 lines
Diff to previous 1.37
interim check-in for server upgrade

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

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Tue Jan 9 21:32:42 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.35: +1 -1 lines
Diff to previous 1.35
- added $cf::WAIT_FOR_TICK*
- tuned map-scheduler and player-scheduler
- added $op->inv_recursive
- added objects_size/objects($index) and actives_size/actives($index)
  for access to the object and actives vector.
- more robust player loader
- removed _perl_data attribute support
- SIGINT/TERM/HUP are now safe as they are handled synchronously.
- replaced LOOK_OBJ by client_visible
- cleanups

Revision 1.35 - (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.34: +7 -9 lines
Diff to previous 1.34
""

Revision 1.34 - (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.33: +1 -0 lines
Diff to previous 1.33
added some copyrights

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Tue Jan 2 11:08:36 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.32: +0 -16 lines
Diff to previous 1.32
add some robustness checks, add map find/load locking

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Tue Dec 26 08:54:59 2006 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.31: +1 -3 lines
Diff to previous 1.31
replace update_ob_speed by ->set_speed

Revision 1.31 - (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.30: +6 -6 lines
Diff to previous 1.30
- 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.30 - (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.29: +3 -3 lines
Diff to previous 1.29
- 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.29 - (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.28: +2 -2 lines
Diff to previous 1.28
- minor cleanups
- minor optimisations (in_player vs. is_player_inv)
- added P_PLAYER map flag
- some (dead) concept code

Revision 1.28 - (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.27: +6 -3 lines
Diff to previous 1.27
- hide floorbox implementation details
- use meaning (hopefully) names

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 04:30:32 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26
- rewrote most of the socket loop code
- moved connection accept into tcp.ext
- no evil socket copying anymore,
  needs more cleanups

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 01:39:32 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.25: +9 -29 lines
Diff to previous 1.25
no generation counters anymore

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 21:39:57 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.24: +3 -6 lines
Diff to previous 1.24
- more ooficiation
- removed now superfluous remove calls

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 20:53:03 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.23: +8 -8 lines
Diff to previous 1.23
replace some function- by method-calls

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Dec 11 23:35:37 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22
reduced dependencies on old plug-in api, fixed some bugs and renamed
some methods while I was at it.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Sun Dec 3 00:59:58 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.21: +5 -2 lines
Diff to previous 1.21
updated and applied newpickup flesh patch by benoƮt <bencha1969@yahoo.fr>

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sun Oct 15 02:16:35 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.20: +6 -9 lines
Diff to previous 1.20
more now invalid tag_t uses replaced by refcounting. reduced codesize quite a bit.

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Wed Sep 20 21:53:50 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.19: +11 -9 lines
Diff to previous 1.19
added many accessors and mutators to struct player, including *title* and (hint, hint) *own_title*

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sat Sep 16 22:24:13 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.18: +1 -1 lines
Diff to previous 1.18
mapstruct => maptile
removed many ytypedefs in favor of structure tags

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 23:13:49 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.17: +31 -22 lines
Diff to previous 1.17
replace was_destroyed by much simpler and less expensive ->destroyed,
which is valid, as objetc pointers are now reliable.

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 22:34:03 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16
indent

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 19:08:39 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.15: +0 -191 lines
Diff to previous 1.15
remove rename command and implement lots of extra perl support

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Tue Sep 12 19:20:08 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.14: +124 -134 lines
Diff to previous 1.14
- improve assign to prepend "..."
- make more use of assign
- implement op->debug_desc() and make some more use of it

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sun Sep 10 15:59:57 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.13: +1274 -1062 lines
Diff to previous 1.13
indent

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Sep 7 10:01:57 2006 UTC (17 years, 8 months ago) by pippijn
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12
Some cleanups.

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 00:18:42 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.11: +12 -14 lines
Diff to previous 1.11
THIS CODE WILL NOT COMPILE
use the STABLE tag instead.

- major changes in object lifetime and memory management
- replaced manual refcounting by shstr class
- removed quest system
- many optimisations
- major changes

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 10:51:43 2006 UTC (17 years, 8 months ago) by elmex
Branch: MAIN
Changes since 1.10: +3 -8 lines
Diff to previous 1.10
removed all the broken SHOP_FLOOR checks and replaced them with the is_in_shop ()
check function.

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 08:01:37 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.9: +423 -423 lines
Diff to previous 1.9
expand initial tabs to spaces

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 07:34:00 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.8: +4 -19 lines
Diff to previous 1.8
nuke transports

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Mon Aug 28 07:07:42 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7
better but more wasteful serialisation support, perl can invoke events, fixes

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Aug 27 15:24:22 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.6: +3 -4 lines
Diff to previous 1.6
further refinements

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sat Aug 26 23:36:33 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.5: +1 -316 lines
Diff to previous 1.5
intermediate check-in, per-object events work

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun Aug 20 21:26:03 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Changes since 1.4: +4 -5 lines
Diff to previous 1.4
for EVENT_DROP iterate through all objects on the space now.

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Thu Aug 17 08:07:38 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Changes since 1.3: +6 -1 lines
Diff to previous 1.3
preventing renaming of unpaid items.

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Tue Aug 15 06:23:45 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Changes since 1.2: +1 -3 lines
Diff to previous 1.2
removed debugging output

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Aug 14 04:22:05 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Changes since 1.1: +84 -81 lines
Diff to previous 1.1
fixed bug in cf.pm when unloading extensions.
added EVENT_DROP_ON for the trade shops and made query_cost using double

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 13 17:16:04 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Made server compile with C++.
Removed cfanim plugin and crossedit.
C++ here we come.

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to rel-2_3: (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