Server Help

Misc User Apps - Another cfg2conf convertor

Smong - 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
ExplodyThingy - 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?
Smong - 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:


SuSE - Sun May 30, 2004 3:35 pm
Post subject:
666 posts :/
Anonymous - 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.
CypherJF - Sun May 30, 2004 6:17 pm
Post subject:
XD useless comments icon_wink.gif

Luckily, I don't use ASSS... so reviewing will have to be done at a later time.
CypherJF - Sun May 30, 2004 7:25 pm
Post subject:
Untested, build w/ VC++ 6.0
Cyan~Fire - 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.
Anonymous - 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).
CypherJF - Mon May 31, 2004 1:59 pm
Post subject:
Quote:
and release it without requiring .net

is all I had caught... :shrug:
Anonymous - 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).
Mr Ekted - 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?
Anonymous - 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.
Mr Ekted - Tue Jun 01, 2004 8:51 pm
Post subject:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/CommonDialogBoxLibrary/CommonDialogBoxReference/CommonDialogBoxFunctions/GetOpenFileName.asp
Cyan~Fire - Tue Jun 01, 2004 10:01 pm
Post subject:
You don't need VC to even program for MFC. Just link to mfc*.dll.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_MFC_CFileDialog.asp

I would never use MFC again after my bad first experiences with it though.
Mr Ekted - 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. icon_smile.gif
Anonymous - Fri Feb 18, 2005 7:36 pm
Post subject:
Ok I was going to log in to do this, but just haven't got round to it.

Version 1.3 is out, basically the only change is it now adds fg_wz or fg_turf to attach modules depending on the subgame settings.

http://toktok.sscentral.com/files/cfg2conf-1.3.zip
http://toktok.sscentral.com/files/cfg2conf-1.3.tar.gz
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group