Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Deleting old cfg values

 
Post new topic   Reply to topic Printable version
 View previous topic  python reload config after config chan... Post :: Post Someone collect and orginze all the mo...  View next topic  
Author Message
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Thu Jul 13, 2006 10:53 am    Post subject: Deleting old cfg values Reply to topic Reply with quote

I write my rank/money/exp values with the I_CONFIG interface. When I use SetInt it makes a new Int like it's supose to. But when it is used again it creates a new one. So you see something like this multiple times:

Code: Show/Hide

Rank:BDwinsAlt=1
Rank:BDwinsAlt=2


How can I make it just change the value of the first one or make it delete the first one?

Btw this does not interfere with how the modules work. It uses the final data. I just don't want the files to keep growing and growing everytime a players leaves and enters the arena.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Jul 13, 2006 11:01 am    Post subject: Reply to topic Reply with quote

As far as I know, there is no way to change this behavior without rewriting parts of the config module.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Thu Jul 13, 2006 12:20 pm    Post subject: Reply to topic Reply with quote

Can't you just search individually by char for the final value and then just change that, then write it to the file?
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu Jul 13, 2006 1:36 pm    Post subject: Reply to topic Reply with quote

You can roll your own format for storing ranks. Or if you are only concerned about the rank of players currently logged in you can use the persist module.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Thu Jul 13, 2006 1:38 pm    Post subject: Reply to topic Reply with quote

Alright I'll give it a try. Thanks.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 27 page(s) served in previous 5 minutes.

phpBB Created this page in 0.419227 seconds : 29 queries executed (93.6%): GZIP compression disabled