News:

Come Chat with us live! Learn how HERE!

Main Menu

Persistance

Started by Conzul, April 19, 2010, 02:15:02 PM

Conzul

Hey I'm wondering if tremulous has the capability (right now) to do something like add an EVO to a player's wallet at the start of a new game, based on something that happened in a previous match. (for example)

David

You'd have to do it the same way as admins and bans etc, write a file at the end of the map and read it again at the start.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Conzul

Quote from: David on April 19, 2010, 02:18:18 PM
You'd have to do it the same way as admins and bans etc, write a file at the end of the map and read it again at the start.


Thanks, could you point me to a good place to start looking 4 info about this?

F50

You'll want to look in game/g_admin.c, but I don't know of any place that would give you the info in a particularly nice manner.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


A Spork

I think X has a !bank function or something, which does that..
Don't shoot friend :basilisk:! Friend :basilisk: only wants to give you hugz and to be your hat

Proud Member of the S.O.B.F.O.B.S.A.D: The Society Of Basilisks For Other Basilisks Safety and Dominance
:basilisk:    :basilisk:    :basilisk:

F50

http://xserverx.com/forum/viewtopic.php?f=17&t=2443

As I understand it the A qvm doesn't have quite all of the gameplay changes that X does, so it should be easier to go through. Also apparently they do it using a mysql database.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


SlackerLinux

Quote from: F50 on April 19, 2010, 08:26:39 PM
http://xserverx.com/forum/viewtopic.php?f=17&t=2443

As I understand it the A qvm doesn't have quite all of the gameplay changes that X does, so it should be easier to go through. Also apparently they do it using a mysql database.

yeh they used an old version my concept code for implementing a mysql db connection to tremulous for a while i think they are not using it now because of lag(i could be wrong and they are still using it or they could have stopped using it for another reason dunno) which i kinda expected it might lag with alot of ppl was only a well lets write something simple and see how well it worked

anyway best way would be to store it in a file atleast untill someone bothers to make a less laggy db connection code
Slackware64 13.1
SlackersQVM/

Liskey

Not sure why one DB call at shutdown and another at startup would cause lag, but if you have to store and retrieve stuff during the game, a transactional database is ridiculous overkill when a keyed record manager (sleepycat) would do.

lucifer666s8n

Quote from: A Spork on April 19, 2010, 07:03:29 PM
I think X has a !bank function or something, which does that..

Close lol... It is server A that has this function, and it involves storing credits/evos so you can store them and collect more (get more than the max displayed in your hud...
Quote from: F50 on April 19, 2010, 08:26:39 PM
http://xserverx.com/forum/viewtopic.php?f=17&t=2443

As I understand it the A qvm doesn't have quite all of the gameplay changes that X does, so it should be easier to go through. Also apparently they do it using a mysql database.

A does have a lot of changes, but not in the gameplay area. They have all of the added commands like !rtd !bank !w etc for use during gameplay... But the play itself is vanilla (from what I understand..)

SlackerLinux

Quote from: lucifer666s8n on April 21, 2010, 03:20:30 AM
Quote from: F50 on April 19, 2010, 08:26:39 PM
http://xserverx.com/forum/viewtopic.php?f=17&t=2443

As I understand it the A qvm doesn't have quite all of the gameplay changes that X does, so it should be easier to go through. Also apparently they do it using a mysql database.

A does have a lot of changes, but not in the gameplay area. They have all of the added commands like !rtd !bank !w etc for use during gameplay... But the play itself is vanilla (from what I understand..)

ok seems like we have different definitions of gameplay changing commands/patches
Slackware64 13.1
SlackersQVM/

Enshoku

Quote from: lucifer666s8n on April 21, 2010, 03:20:30 AM
Quote from: A Spork on April 19, 2010, 07:03:29 PM
I think X has a !bank function or something, which does that..

Close lol... It is server A that has this function, and it involves storing credits/evos so you can store them and collect more (get more than the max displayed in your hud...
Quote from: F50 on April 19, 2010, 08:26:39 PM
http://xserverx.com/forum/viewtopic.php?f=17&t=2443

As I understand it the A qvm doesn't have quite all of the gameplay changes that X does, so it should be easier to go through. Also apparently they do it using a mysql database.

A does have a lot of changes, but not in the gameplay area. They have all of the added commands like !rtd !bank !w etc for use during gameplay... But the play itself is vanilla (from what I understand..)

Only so far as the damage/evos/hp/weapons/speed goes, even even that isnt true anymore, what with the last qvm bumping the luci/blaster/pulse damage by 33%, making the lucisuits godawful to dance with as a goon, because splash alone can kill you...The most major gameplay change is the !rtd though, as it throws random luck and a useful yet inconsistent stream of evos at SD into the mix. Its a modded server, all of the vanilla game play characteristics are there, but the !rtd, bank and 200 bp really change it up.

Conzul

Just wanted to know if the capability was in easy reach (sounds like it). TY 4 RE's