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
Simple CFG->SET and SET->CFG

 
Post new topic   Reply to topic Printable version
 View previous topic  dusted 0.3.3 (win/linux) Post :: Post Settings editor for subgame 1.34.14  View next topic  
Author Message
L.C.
Server Help Squatter


Age:33
Gender:Gender:Male
Joined: Jan 03 2003
Posts: 574
Location: Missouri, US
Offline

PostPosted: Sun Jun 26, 2005 8:55 pm    Post subject: Simple CFG->SET and SET->CFG Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Jun 26, 2005 11:55 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
L.C.
Server Help Squatter


Age:33
Gender:Gender:Male
Joined: Jan 03 2003
Posts: 574
Location: Missouri, US
Offline

PostPosted: Thu Jun 30, 2005 4:56 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Fri Jul 01, 2005 2:15 am    Post subject: Reply to topic Reply with quote

This little python script converts .set to .cfg:
Code: Show/Hide
#!/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
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Misc User Apps 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: 646 page(s) served in previous 5 minutes.

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