paradox460 / p-g-qvm

Automatically exported from code.google.com/p/p-g-qvm
Other
0 stars 0 forks source link

Allstats #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
attached is my allstats patch for TW-QVM2 based on latikus latest

it should apply if not its an easy port
this is the FIRST public release
google and critux has helped it depends om mystats

Controled by g_allstats {0|1|2} 1 being team only and 2 being serverwide
and g_allstatstime {int in seconds} being how often it can be used.

i hope you can add it and enjoy it

Original issue reported on code.google.com by SlackerL...@gmail.com on 24 Jun 2008 at 4:36

Attachments:

GoogleCodeExporter commented 9 years ago
If someone could clean the code and make sure it applies to the latest svn, 
that 
would be great

Original comment by Paradox460 on 24 Jun 2008 at 7:42

GoogleCodeExporter commented 9 years ago
Ported it for you also removed some stuff only used on tw#1 we have commented 
out
stats reset and was checking 4 specs that had stats information in mode 2

so cleaned up a lil and ported give that a try para

Original comment by SlackerL...@gmail.com on 26 Jun 2008 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
applied it to a brand new co and it applys fine

heres a log
Checked out revision 73.
bash-3.1$ cd p-g-qvm-read-only/
bash-3.1$ ls
CC  COPYING  ChangeLog  GPL  Makefile  attachment.htm  cross-make-mingw.sh  src
bash-3.1$ mc

bash-3.1$ patch -p0 < a
allstats-p-gqvm-1.patch  attachment.htm
bash-3.1$ patch -p0 < allstats-p-gqvm-1.patch
patching file src/game/g_local.h
Hunk #1 succeeded at 348 (offset 3 lines).
Hunk #2 succeeded at 1439 (offset 3 lines).
patching file src/game/g_main.c
patching file src/game/g_cmds.c
bash-3.1$ make
make[1]: Entering directory `/home/shawnking/Dev/p-g-qvm-read-only'
make -C src/tools/lcc install
make[2]: Entering directory 
`/home/shawnking/Dev/p-g-qvm-read-only/src/tools/lcc'
took out misc tools crap
install -s -m 0755 q3asm ../
make[2]: Leaving directory `/home/shawnking/Dev/p-g-qvm-read-only/src/tools/asm'

Building Tremulous in build/release-linux-x86:
  CC: cc

  CFLAGS:
    -Wall
    -fno-strict-aliasing
    -Wimplicit
    -Wstrict-prototypes
    -pipe
    -DUSE_OPENAL=1
    -DUSE_CURL=1
    -DUSE_CURL_DLOPEN=1
    -DUSE_SDL_VIDEO=1
    -DUSE_SDL_SOUND=1
    -I/usr/include/SDL
    -D_GNU_SOURCE=1
    -D_REENTRANT
    -m32
    -DUSE_LOCAL_HEADERS=1
    -MMD
    -DSVN_VERSION="1.1.0_SVN73M"
    -DNDEBUG
    -O3
    -march=i586
    -fomit-frame-pointer
    -ffast-math
    -funroll-loops
    -falign-loops=2
    -falign-jumps=2
    -falign-functions=2
    -fstrength-reduce

  Output:
    build/release-linux-x86/base/vm/game.qvm

make[2]: Entering directory `/home/shawnking/Dev/p-g-qvm-read-only'
Q3LCC src/game/g_main.c
Q3LCC src/game/bg_misc.c
Q3LCC src/game/bg_pmove.c
Q3LCC src/game/bg_slidemove.c
Q3LCC src/game/g_mem.c
Q3LCC src/game/g_active.c
Q3LCC src/game/g_client.c
Q3LCC src/game/g_cmds.c
Q3LCC src/game/g_combat.c
Q3LCC src/game/g_physics.c
Q3LCC src/game/g_buildable.c
Q3LCC src/game/g_misc.c
Q3LCC src/game/g_missile.c
Q3LCC src/game/g_mover.c
Q3LCC src/game/g_session.c
Q3LCC src/game/g_spawn.c
Q3LCC src/game/g_svcmds.c
Q3LCC src/game/g_target.c
Q3LCC src/game/g_team.c
Q3LCC src/game/g_trigger.c
Q3LCC src/game/g_utils.c
Q3LCC src/game/g_maprotation.c
Q3LCC src/game/g_ptr.c
Q3LCC src/game/g_weapon.c
Q3LCC src/game/g_admin.c
Q3LCC src/qcommon/q_math.c
Q3LCC src/qcommon/q_shared.c
Q3LCC src/game/bg_lib.c
Q3ASM build/release-linux-x86/base/vm/game.qvm
make[2]: Leaving directory `/home/shawnking/Dev/p-g-qvm-read-only'
make[1]: Leaving directory `/home/shawnking/Dev/p-g-qvm-read-only'

applys fine heres a new svn diff seeing as theres a tiny bit of fuzz

Original comment by SlackerL...@gmail.com on 27 Jun 2008 at 1:37

Attachments:

GoogleCodeExporter commented 9 years ago
Added to r74

Original comment by Paradox460 on 27 Jun 2008 at 6:01