Author |
Message |
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Sun Jun 26, 2005 8:55 pm Post subject: Simple CFG->SET and SET->CFG |
|
|
|
|
Is there any program that is simple enough to be able to convert CFG to SET, and SET to CFG?
I've tried FACTS, and all I can do is Check CFG files with it. If I try to convert it'll give me this error message:
..then crash. |
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Jun 26, 2005 11:55 pm Post subject: |
|
|
|
|
need to download it offline and install it in your X:\Windows\System32
If you're on Win98 you may need to do:
start->run->"regsvr32 X:\Windows\System32\MXFlxGrd.ocx" _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Thu Jun 30, 2005 4:56 pm Post subject: |
|
|
|
|
Sorry for late reply.
Downloading MSFLXGRD.OCX did not fix the problem, nor did using regsvr32 for WindowsXP Pro. I had to download a library pack which included it and some other things that I might aswell have installed - this fixed it. Thanks! =) |
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Fri Jul 01, 2005 2:15 am Post subject: |
|
|
|
|
This little python script converts .set to .cfg:
#!/usr/bin/env python
import sys
data = {}
for l in sys.stdin.readlines():
f = l.strip().split(':', 5)
while len(f) < 6:
f.append('')
sec, key, val, min, max, desc = f
data.setdefault(sec, {})[key] = val
for sec, vals in data.items():
print '[%s]' % sec
for key, val in vals.items():
print '%s=%s' % (key, val)
print
|
.cfg to .set is a little harder, because you need to use template.sss as a reference. |
|
Back to top |
|
|
|