Author |
Message |
-Smong- Guest
Offline
|
Posted: Fri Sep 10, 2004 9:29 am Post subject: conf cleaner (asss) |
|
|
|
|
When you change settings in asss through the game it just appends them to the end of the conf file. This program will try and group all the settings into sections and discard old duplicates.
Since it is fairly dumb any preprocessor directives in your conf file may get screwed up.
Also I notice this program isn't case-insensitive, so any lazy people doing ?seta misc:sheepmessage=baah may find that it appears before [Misc] SheepMessage (so you need to go in and fix this yourself).
Ok so there are at least two glitches as mentioned above, but it will save you loads of time cleaning up your arena.conf's.
win/linux binaries
confclean-0.1.0.zip - 10.86 KB
File downloaded or viewed 36 time(s)
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Fri Sep 10, 2004 1:11 pm Post subject: |
|
|
|
|
how about some source code to go with those binaries? we can't work on fixing those glitches without it.
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
Posted: Fri Sep 10, 2004 3:19 pm Post subject: |
|
|
|
|
Always nice to know someone is at least trying to fix ones own problems.
Edit by CypherJF (by request): "there should be 'afree(map);' after line 106; I added prototypes in after uploading (good job I double checked)." - Smong
makefile + devcpp project
confclean-0.1.0-src.zip - 8.85 KB
File downloaded or viewed 36 time(s)
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sat Sep 11, 2004 3:39 am Post subject: |
|
|
|
|
if you check the util.c/h in cvs, you'll find a nifty LLSort function for sorting linked lists. it uses a merge sort. you might also want to use RemoveCRLF.
my best advice, though, would be to write this sort of thing in python. it's much much easier to use than C for string manipulation, has built-in dictionaries and lists, automatic memory management, etc.
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sat Sep 11, 2004 3:56 pm Post subject: |
|
|
|
|
I'll take a look at those two things you mentioned. As for the Python thing, I'm not sure if windows users will have it installed and I don't really know python.
I hoped you would be releasing a conf cleaning script at some point but I have been waiting a while so I wrote my own (I just spent about 5min looking for the thread where it was brought up before).
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sat Sep 11, 2004 4:57 pm Post subject: |
|
|
|
|
the next windows package will include python, so hopefully that's not an issue. i would like to try it myself at some point, but i'm not sure when that'll be.
|
|
Back to top |
|
|
|