problem with cards ON SALE

Discussion of the Generic Collectible Card Game engine created by Tommi "wigy" Ronkainen and mantained nowadays by Kodi
Post Reply
User avatar
fisilva1
Council Member
Posts: 15
Joined: Tue Mar 06, 2012 10:05 pm

Hi:

I need some help from the administrators of GCCG... when I try to buy some cards, the whole system falls appart, specially with some "infected" accounts. The cards seems to be no longer on sale, but the systems fails to notice it, and crumble....

It's possible to clean the file with the cards on sale (just delete all of them)??
then, the active users could put again the real cards on sale, and fix the problem.


PLEAS HELP :)

Felipe, from Santiago, Chile
emux
Posts: 25
Joined: Mon Nov 05, 2012 6:56 pm

Yes, thats the most easy way to fix that problem. Deleting the "prices" file from server would help on preventing server crashes.
anonycat
Posts: 12
Joined: Thu Jun 14, 2012 8:25 pm

This looks interesting. Surely it's worth a try:

Code: Select all

#
# RemoveObsoletePrices() - Helper function to be called once after
#   transition from older server to the caching server. Using God
#    account, this can be done by issuing /debug RemoveObsoletePrices().
#
def RemoveObsoletePrices
{
  for(s)(set.data)
  {
    Reply("Removing obsolete prices from "+s[1][0]+"...");
    Reply("Found "+remove_obsolete_prices(seq(s[1][1],s[1][2]))+" entries.");
  }
  return("done");
}
emux
Posts: 25
Joined: Mon Nov 05, 2012 6:56 pm

Marcos tried that function using user "god" some weeks ago but the server crashed too. :-(
anonycat wrote:This looks interesting. Surely it's worth a try:

Code: Select all

#
# RemoveObsoletePrices() - Helper function to be called once after
#   transition from older server to the caching server. Using God
#    account, this can be done by issuing /debug RemoveObsoletePrices().
#
def RemoveObsoletePrices
{
  for(s)(set.data)
  {
    Reply("Removing obsolete prices from "+s[1][0]+"...");
    Reply("Found "+remove_obsolete_prices(seq(s[1][1],s[1][2]))+" entries.");
  }
  return("done");
}
Post Reply

Return to “GCCG”