Commit graph

2063 commits

Author SHA1 Message Date
Adam Olsen
5c299b0b85 - fix a missing space in net_packetlog's output for svc_qwsound
- make entity remapping for baseline entities permanent.  (atleast for
  0 through 255.  don't want to make ALL mappings permanent)
2001-12-21 18:22:56 +00:00
Adam Olsen
417bf41353 - whoops, forgot to add this file. kinda important :) 2001-12-21 14:09:34 +00:00
Adam Olsen
4e45592439 - remove an extra NET_Init prototype
- add MAX_NET_EDICTS and MAX_NET_EDICTS_MASK defines, which are 512
  and 511 respectively
- change baselines to access the array directly, rather than through
  the entity's "data" field
- cleanup SV_ReliableSVC_Emit
- add entity remapping.  the entity number used internally in the
  server no longer matches the number sent to the client, and it
  releases the mapping after 10 seconds of inuse, so there's no
  "512 entity limit" anymore.  Still the MAX_EDICTS limit though,
  which is currently 768, but it can probably be defined to something
  much higher without any trouble.
2001-12-21 07:39:49 +00:00
Adam Olsen
a7687a7fda - tweak the description string for cl_timeframes
- when getting a new connection request and searching for matching
  connections, treat cs_zombie the same as cs_free (ignore it), so
  that we don't attempt to drop it twice.
2001-12-12 13:31:04 +00:00
Adam Olsen
93bd170770 - add some comments to SV_ReliableSVC_Emit
- don't push back the backbuffer if it's got max buffers already
2001-12-09 09:40:53 +00:00
Adam Olsen
f9171ca275 - ahh, much better :) 2001-12-06 12:03:13 +00:00
Adam Olsen
24529530f3 - fix printing of Host_NetError message
- fix downloading of files >65535 in size
2001-12-06 08:51:17 +00:00
Adam Olsen
8fd46ab578 - parse A2A_ACK in with normal connectionless packets
- only parse A2A_ACK packets missing the connectionless prefix if the
  packet is 1 or 2 bytes long.  if longer it gets treated as a normal
  sequenced packet

The packetloss on localhost bug (except during connect) is now gone. :)
2001-12-06 07:20:32 +00:00
Adam Olsen
12cb517f84 - change the pr_gc_interval default to 600, which at 20fps
(serverside) is 30 seconds
2001-12-05 20:03:52 +00:00
Adam Olsen
3fdad3ce45 - make SV_ReliableSVC_Emit mark overflowed clients as such, and die if
we ever giet a NET_ERROR
- fix the baselines so all entities have the QSG2 extensions (alpha,
  scale, etc) inited, instead of just the entities that the map
  started with
- make the server not include empty deltas in a
  svc_deltapacketentities for updated entities
- change a silly for (; foo;) to while (foo)
2001-12-05 15:41:25 +00:00
Adam Olsen
f646786bf5 oops, should be calling NET_CLC_Emit for clc_delta, not NET_SVC_Emit.
Misty, this could be a big factor in your packet loss issues, since it
prevented any deltas from happening.
2001-12-05 10:54:59 +00:00
Adam Olsen
15f7173ddd buf[sizeof(buf)] = 0; is bad. buf[sizeof(buf) - 1] = 0; is good.
(this is in net_svc too)
2001-12-05 09:25:17 +00:00
Adam Olsen
6b10cb7c4b - revert the early-out "optimizations", since they were found to not
actually work.
2001-12-05 08:03:50 +00:00
Adam Olsen
2ac69ccae0 - revert the cast, since I didn't do it properly, and taniwha seems
intent on removing the check anyway.
2001-11-29 07:12:03 +00:00
Adam Olsen
0688e3a197 - cast cls.qport to (unsigned short) when passing to networking, so it
doesn't trigger PARANOID in msg.c
2001-11-29 06:54:38 +00:00
Adam Olsen
74e074bbef - fix the broken failsafe in CL_EntityState_Copy 2001-11-29 00:23:33 +00:00
Adam Olsen
01e6e14230 - add some early-out optimizations 2001-11-29 00:01:50 +00:00
Adam Olsen
980fd84300 - make NET_SVC_Delta_* static inline
- fix handling of sv_maxrate > 10000
- make SV_ExtractFromUserInfo only update netchan.rate when the rate
  is changed
- make SV_ExtractFromUserInfo use if (*val) instead of if
  (strlen(val))
2001-11-28 21:33:41 +00:00
Adam Olsen
7f10b0f237 - split net_clc.h into net_clc.h and net_clc_qw.h
- move clc_t into net_clc.h from net_protocol.h
- split packet processing stuff from net.h into net_packet.h
- add a is_server arg to Log_{Incoming,Outgoing}_Packet, so libs/net is
  oblivious to if we're running a server or not (except with the arg,
  obviously)
- remove the long obsolete (even in original quake) svc_spawnbinary
  stuff
- make nq use QF/net_svc.h
- make nq link to libQFnet too
- make qw's cl_parse.c use net_svc_qw_any_t instead of net_svc_any_t
2001-11-18 11:39:12 +00:00
Adam Olsen
2994824bc6 - convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
  same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw.  fun enum
  that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
  (renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
  preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
  instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
Bill Currie
edb540cd6e This completes the move of the networking code to its own branch allowing
two conflicting developement tracks to better co-exist. To work on this brance,
use "cvs up -r net_svc" and then update and commit as normal: committing to
the branche will be automatic once the branch is checked out.

Again: cvs up -r net_svc
2001-11-07 08:31:04 +00:00
Bill Currie
c5aec15569 This prepares for moving the net_svc code to a branch allowing both network
code cleanups and general performance work to be developed in relative peace.
While cleaning up the networking code /is/ important, fixing QF's perfomance
issues is of much higher priority.
2001-11-07 08:24:56 +00:00
Ragnvald Maartmann-Moe IV
f60c39e0bc Whitespace. 2001-11-07 06:59:10 +00:00
Ragnvald Maartmann-Moe IV
14aa428871 Switch to dot texture for sparks, and drop particle size. A little less cartoony effect. 2001-11-07 06:57:34 +00:00
Ragnvald Maartmann-Moe IV
158717a56a Add skyboxlist support to nq. 2001-11-07 06:56:05 +00:00
Ragnvald Maartmann-Moe IV
6740adb6fe Note that we really ought to support .lit file downloading. 2001-11-07 06:54:59 +00:00
Bill Currie
643aa795d6 fill the bsb and brush menus with a "dunno" filler that just, er, selects
"undo" for now. This is so Controller.m compiles on my system (using gcc 3)
2001-11-07 02:50:54 +00:00
Bill Currie
ae8c255eb0 re-anable the sorting. I guess snax was testing other things and forgot about
it.
2001-11-06 21:37:33 +00:00
Bill Currie
f3fcfea62a fully specify the type for the comparison opcodes 2001-11-06 21:29:53 +00:00
Ragnvald Maartmann-Moe IV
f2f8513141 Reduce number of rand() calls in teleport and lava splash effects. Also preserves entropy, and we all know how important that is! 2001-11-06 21:02:18 +00:00
Bill Currie
cb4ce6a634 remove the default label from the switch label table while fetching it. 2001-11-06 20:39:42 +00:00
Bill Currie
469fd1b023 more mathlib usage 2001-11-06 20:36:20 +00:00
Bill Currie
93366d7c6c more 0.5 cvar/cmd docs 2001-11-06 20:30:16 +00:00
Jeff Teunissen
5876ba1aba Forge Updates. Menus mostly filled out now, the .gorm file inits the
controller.
2001-11-06 13:20:23 +00:00
Bill Currie
de059239fa several fixes to cmd.php and cvar.php
rewrite documentation.php (I'll have to rethink it due to the slow rendering
in netscape)
add a link to the docs form the 0.5 section of files.php
2001-11-06 09:43:55 +00:00
Brian Koropoff
ccd665e80c This commit removes maplist.c and replaces it with filelist.c, which
contains general functions for creating lists of a type of file and
provides the commands maplist, skinlist, skyboxlist, and demolist.
2001-11-06 07:14:29 +00:00
Ragnvald Maartmann-Moe IV
ceb307aead Cleanups, whitespace, convert some ints to unsigned int. Whee! 2001-11-06 05:06:37 +00:00
Bill Currie
42f8b98f27 win32 compile fix 2001-11-06 04:44:26 +00:00
Ragnvald Maartmann-Moe IV
1c5701f51f Fix a few minor quirks with particle trails. 2001-11-06 04:42:17 +00:00
Bill Currie
15b381909e move maplist from quakefs.c to console/maplist.c. Unfortunatly, until the
client console plugin is usable, this means the clients link maplist.o
directly.
2001-11-05 22:24:16 +00:00
Bill Currie
460b53e9ee rework the maplist code to use Con_DisplayList. this results in both
prettier code and prettier output.
2001-11-05 21:30:53 +00:00
Adam Olsen
e0dfa2b453 - convert ALL the remaining svc's on the client. woot, hehe 2001-11-05 20:13:27 +00:00
Jeff Teunissen
1b834ba52e Whoops. Fix the principal class. 2001-11-05 20:05:02 +00:00
Jeff Teunissen
5ff1de398e Okay, tiny skeleton for Forge. It will be cleaner and probably faster to
treat Forge like an entirely new program, and not as a port. I'll still
be using many of the ideas from QuakeEd (and from my old Forge work),
but there's no promise that it'll be a duplicate, or even similar.
2001-11-05 19:58:25 +00:00
Jeff Teunissen
51a17f280b Forge: more files history 2001-11-05 19:47:05 +00:00
Jeff Teunissen
2ab7a09812 Forge: More stuff gets the axe. 2001-11-05 19:45:09 +00:00
Jeff Teunissen
02dd74b2f7 Buh-bye headers. 2001-11-05 19:40:34 +00:00
Jeff Teunissen
2fbdbd5522 Forge: Committing the stuff I _was_ working on. These will all go away
in a few minutes.
2001-11-05 19:36:04 +00:00
Bill Currie
ccbb1c3f04 document all those weird opcodes :) 2001-11-05 19:32:50 +00:00
Bill Currie
13a177f217 use 'b' (bind) instead of '=' (assign) for switch's test temp def so simple
expressions (ie, just a def) don't generated wasted assignments and clean up
switch's debug info so you get the switch line rather than the line for the
closing }
2001-11-05 19:12:33 +00:00