1

Topic: [GT] Racesow

Hey mates,

I started refactoring the whole race gametype script and already got some nice stuff done. here is all information about it:

Project goals:

    - no use of external services, instead effectively (!) based on files
    - bring the race community together <3 (!!!!)
    - coding for fun while learning a lot
    - contribute to warsow

Sources:

    - development trunk: http://svn.warsow-race.net/racesow0.5/trunk/

    - latest stable gametypescript: http://svn.warsow-race.net/racesow0.5/t … gametypes/
    - latest win32 game module: http://svn.warsow-race.net/racesow0.5/t … me_x86.dll

game cVars

    g_logRaces 1|0, default 0, log all races to a file
    g_freestyle 1|0, default 0, enables freestyle mode (not implemented yet)

game commands:
   
    racerestart go back to the start-area whenever you want
    register <name> <email> <password> <password confirmation>
    auth <name> <password>
    admin <command params>
        admin map <map name>
        admin kick <playerNum>
        admin help
    help, shows the help

    you can add this to your autoexec.cfg to auto-login when connecting to a racesow server
        setu auth_login "name"
        setu auth_pass "password"

Racenet/Racesow Team:

    core team
        FoV: development (racesow), takes gameserver costs <3
        soh-zolex: project founder, management, public relations, lead coder, server costs

    inactive:
        weqo: development (racenet)

    ppl currently getting into
        R2: development (racesow)
        valliko: development (racesow)
        Zaran: development (racenet)

    ppl who contributed before 0.5
        imhotep
        Jezus
        joko

    special thanks to
        jal
        learn_more
        vic

    are you missing in this list? tell me...

    we're still searching for people interested in helping with racesow or contributing their own race modifications.
    join us in IRC #racenet@quakenet

Changelog: (items with a § require the modded game module)

        2009-09-25 / racesow 0.5.1d
        - added removal of old session files
        - added creation of shadow files for registered players
        - removed goal not to use a modded game module
        - changed session to use the clients ip as filename

    2009-09-23 / racesow 0.5.1c
        - extracted auth plugin from player model
        - added very nice nickname protection!
        - removed own md5 sources as they are in qcommon
        - changed makefile and vcproject for md5 stuff
        - changed console command workflows

    2009-09-22 / racesow 0.5.1b
        - added fix for memory management by vic, thanks to jal §
        - added md5 encryption for passwords §
        - added g_secureAuth 0 to disable md5 encryption
        - added help command
        - changed authorization to create some subfolders
        - changed authentication to create subfolders
        - changed commands racesow_register and racesow_auth to register and auth
        - changed all files to lowercase for linux
        - fixed possible authentication exploit

    2009-09-21 / racesow 0.5.1b
        - added race-overtime feature
        - added idle detection when in overtime
        - added an abstract interface for handling race highscores
        - added basic authentication
        - added authorization
        - added admin command "map"
        - added logging of races

    2009-09-19 / racesow 0.5.1a
        - refactored whole race gameytpe (better OOP)
        - changed racerestart command so it can be used at any time
        - changed awards for checkpoints and races
        - fixed autorespawn bug when finishing a race

Roadmap: (items with a § require the modded game module, or wait for stuff be added to basewsw game module)
   
        - movement types like b1shop's mod (planned: vq3-like, cpm-like, basewsw, racesow)
        - optionally force movement type serverside
        - weapondefs, depending on movement type §
        - let player choose to shoot weak or strong ammo
        - defrag like race-ghost for own, best and server best §
        - protect admins from beeing kicked and callvoted etc...

--

this was the initial thread topic:
Currently I got a problem with the race standard statistics which get stored in simple file. Saving and loading is not the problem, it seems like when a better race is done and other records getting moved down in the hiscores list i have messed up some references or something or maybe even angelscript has a bad management for this as in the highscores-list the player's nicknames sometimes become texts from award texts or texts which have been printed to console etc. At least it seems to be random content from the memory -.-

this is propably fixed by vic for warsow 0.51

Last edited by zolex (2009-09-25 09:51)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

2

Re: [GT] Racesow

It's most likely because a bug in memory management of string object handles which are never released. This bug is fixed for 0.51.

EDIT: This wasn't neccesary, tbh: gametype.setAuthor( "not b1shop" );

No pigs were harmed in the making of this game.

¡Puxa Sporting!

3

Re: [GT] Racesow

- fixed autorespawn bug when finishing a race

What bug is this?

No pigs were harmed in the making of this game.

¡Puxa Sporting!

4

Re: [GT] Racesow

it was already handeled when a player is in race he won't be respawned by the thinker, but when he respawned by himself and has not yet crossed the startTrigger he will be respawned again. alot racers are used to gain some speed before starting the race.

Last edited by zolex (2009-09-20 16:05)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

5

Re: [GT] Racesow

jal wrote:

It's most likely because a bug in memory management of string object handles which are never released. This bug is fixed for 0.51.

wth, I spent hours trying to find my fault big_smile (why is it working in the default race gametype then?)

jal wrote:

This wasn't neccesary, tbh: gametype.setAuthor( "not b1shop" );

idd, i'll remove it...

Last edited by zolex (2009-09-20 16:14)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

6

Re: [GT] Racesow

zolex wrote:
jal wrote:

It's most likely because a bug in memory management of string object handles which are never released. This bug is fixed for 0.51.

wth, I spent hours trying to find my fault big_smile (why is it working in the default race gametype then?)

Are you sure it is working in the default gametype? I think it should be failing too.

No pigs were harmed in the making of this game.

¡Puxa Sporting!

7

Re: [GT] Racesow

jal wrote:

Are you sure it is working in the default gametype? I think it should be failing too.

oh you're right. my fault, but for my pleasure in the end ^^

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

8

Re: [GT] Racesow

w00t i just can't sleep, all the time i think of realizing a very high level stats system using only files 8)
btw i changed the topic to [GT]Racesow

Last edited by zolex (2009-09-21 04:09)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

9

Re: [GT] Racesow

The memory assigned to AS, and more specifically to the string loading from files, is limited. Don't think too big, or at least, don't think in too big txt files tongue

EDIT: I'm not saying it will fail. Probably not (when the current bug is fixed), but that data will have to be written/readen carefully.

No pigs were harmed in the making of this game.

¡Puxa Sporting!

10

Re: [GT] Racesow

jal wrote:

The memory assigned to AS, and more specifically to the string loading from files, is limited. Don't think too big tongue

yes i think very big, but everything separated into many files and most data will only be written for usage outside the game (ie. website) but it'll remember this, ty
how many bytes can be read from a file?

Last edited by zolex (2009-09-21 08:20)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

11

Re: [GT] Racesow

good stuff, waiting for this smile

Re: [GT] Racesow

sqlite tbfh,
it can save a database in one file,

so make one database for each day so data don't get too massive smile

=c2c=

13

Re: [GT] Racesow

does angelscript has native sqlite support?
but well, i gonna finish it with file-based stats first. it won't be a problem to change to another system as i already implemented an abstract adapter pattern to store the stats.
another argument for doing sqlite later is that you will need another app which has sqlite compiled in to read the stats and use them for other purposes like web-stats.

Last edited by zolex (2009-09-21 13:06)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

14

Re: [GT] Racesow

zolex wrote:

does angelscript has native sqlite support?

no, of course not. AS is a language, not a library

`36: stop making me feel retarded

15

Re: [GT] Racesow

i don't understand lerno's comment then...

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

16

Re: [GT] Racesow

zolex. I would like to ask you to not change the way that checkpoints are shown. Iv already did with learn more dll files wich allow us to save cps on screen. Also we vgot angle meter, accelmeter and jumpmeter. The last thing wich we are working on is a dot strafe thingy.

Atm my hud dont work perfectly on b1shop server cuz he changed the way how cps are shown....

trx:gumka

freestyle forever

17

Re: [GT] Racesow

reed wrote:

I would like to ask you to not change the way that checkpoints are shown.

be more specific please!
have you tested your hud on 0.5.1b?

EDIT: what values concerning the checkpoints do you need in the hud excactly?

Last edited by zolex (2009-09-21 17:42)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

Re: [GT] Racesow

zolex wrote:
reed wrote:

I would like to ask you to not change the way that checkpoints are shown.

be more specific please!
have you tested your hud on 0.5.1b?

EDIT: what values concerning the checkpoints do you need in the hud excactly?

the centerprint string, with Current:
and a \n

=c2c=

19

Re: [GT] Racesow

i only changed that the checkpoint delta (diff to best race after the \n) is not shown when there is no best race. does this still fit your needs?

Last edited by zolex (2009-09-21 19:02)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

Re: [GT] Racesow

zolex wrote:

i only changed that the checkpoint delta (diff to best race after the \n) is not shown when there is no best race. does this still fit your needs?

i shall add an exception for that smile

=c2c=

21

Re: [GT] Racesow

2009-09-22 / racesow 0.5.1b
    - added fix for memory management by vic, thanks to jal (only when using modded game module)
    - changed authorization to create some subfolders
    - added md5 encryption for passwords (requires modded game module)
    - added g_secureAuth 0 to disable hashing of passwords

we also got a new contributor: FoV smile

Last edited by zolex (2009-09-22 20:05)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

22

Re: [GT] Racesow

2009-09-23 / racesow 0.5.1c
        - extracted auth plugin from player model
        - added very nice nickname protection!
        - removed own md5 sources as they are in qcommon
        - changed makefile and vcproject for md5 stuff
        - changed console command workflows

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

Re: [GT] Racesow

- extracted auth plugin from player model
what do you mean with that?

=c2c=

24

Re: [GT] Racesow

extracting in OOP means taking stuff out of one class and make a new one, mostly a subclass.

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de

25

Re: [GT] Racesow

sorry for doublepost but, ANGELSCRIPT IS SO FUCKING AWESOME 8D

btw, added project goals.

Last edited by zolex (2009-09-23 02:12)

The Warsow Racenet www.warsow-race.net
New Project: inWarsow.de