Author |
Message |
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun May 30, 2004 2:39 pm Post subject: Another cfg2conf convertor |
|
|
|
|
This program will generate an arena.conf (for asss) based on a server.conf. It does not generate separate settings files to go in conf/<setting name of your choice>/ like explody's. It does however set the flag spawn to minimumvirtual and scan for needed modules.
Usage: ./cfg2conf <server.cfg> [<mapname.lvl>]
Update Jan 9 2005: download links
http://toktok.sscentral.com/files/cfg2conf-1.5.tar.gz linux
http://toktok.sscentral.com/files/cfg2conf-1.5.zip windows
Last edited by Smong on Mon Jan 09, 2006 5:00 am, edited 1 time in total |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Sun May 30, 2004 2:51 pm Post subject: |
|
|
|
|
Good job. I havent gotten to play with it but, what do you have as the output file? just the same name as the CFG file? And is there source so we can play around with the scanning and how it moves things around? _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun May 30, 2004 3:04 pm Post subject: |
|
|
|
|
sample arena.conf wrote: | ;;put this file and blah.cfg in arenas/<arenanameofyourchoice>
#include blah.cfg
[General]
Map = blah.lvl
[Modules]
AttachModules = \
fm_normal \
points_kill \
points_flag \
points_goal \
points_periodic \
koth
Flag:GameType = $FLAGGAME_TURF
Soccer:SpawnRadius = 64
; changed settings:
|
|
|
Back to top |
|
|
SuSE Me measures good
Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Sun May 30, 2004 3:35 pm Post subject: |
|
|
|
|
666 posts :/
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
Posted: Sun May 30, 2004 4:51 pm Post subject: |
|
|
|
|
No doubt cypher and cyan will also add some useless comments.
Incase my last post wasn't clear. The output is arena.conf. I've put windows, cygwin and linux binaries along with the source into one archive. If someone could add the windows file open dialog like buildlevel and release it without requiring .net, that would be nice.
http://toktok.sscentral.com/files/cfg2conf.zip
Note: the cygwin version doesn't have the soccer spawn radius, I'll fix that later.
|
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun May 30, 2004 6:17 pm Post subject: |
|
|
|
|
XD useless comments
Luckily, I don't use ASSS... so reviewing will have to be done at a later time. _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun May 30, 2004 7:25 pm Post subject: |
|
|
|
|
Untested, build w/ VC++ 6.0
Build w/ VC++ 6.0
cfg2conf (vcpp6.0).zip - 17.26 KB
File downloaded or viewed 56 time(s)
|
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon May 31, 2004 12:13 am Post subject: |
|
|
|
|
Smong already included a Windows compile, though, cyph.
Anyway, here's one with the open file dialog. Needs comdlg32.dll, but that's it.
Haha my uselessness is defeated... temporarily. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
cfg2conf.zip - 4.62 KB
File downloaded or viewed 49 time(s)
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
Posted: Mon May 31, 2004 5:14 am Post subject: |
|
|
|
|
I updated the archive to include the new source and windows binary linked to comdlg32.dll. Version is now 1.1 (only change is on windows version though).
|
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Mon May 31, 2004 1:59 pm Post subject: |
|
|
|
|
Quote: | and release it without requiring .net |
is all I had caught... :shrug:
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
Posted: Tue Jun 01, 2004 6:42 am Post subject: |
|
|
|
|
I guess that sentence was rather vague. I assumed you needed MSVC so you can access the C++ class that does the open file dialog, and since a lot of recent MSVC compiled programs required .NET I thought I'd state my preference.
All my own binaries do not require .net (I can't afford to buy MSVC anyway).
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Tue Jun 01, 2004 11:18 am Post subject: |
|
|
|
|
You don't need a C++ class to access the file open dialog. Don't you realize all the stuff in MFC and .NET are just wrappers for the Win32 API? _________________ 4,691 irradiated haggis!
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
Posted: Tue Jun 01, 2004 6:32 pm Post subject: |
|
|
|
|
I searched for code examples on how to use the open dialog, but only found some special case mods on some c++ classes (like how to customise it). I do know mfc/.net are wrappers, but I didn't see any sources saying how to do it by hand.
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Wed Jun 02, 2004 1:20 pm Post subject: |
|
|
|
|
MFC is stupid because it transparently wraps the raw Win32 API. All the same functions exist. Nothing is simplified. It's just another layer of function calls. And a "hello world" app goes from 16K to 200K.
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
|
Back to top |
|
|
|