Map naming conventions

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Map naming conventions

Postby Dokujisan » Sun Feb 25, 2007 8:21 pm

I have recently been searching for maps for setting up another Nexuiz server. I posted on another thread about the difficulty of finding maps. Part of that difficulty comes from naming the conventions of maps. Right now it's difficult to know whether a map is setup for CTF or DM by the name. Some of them use the convention of ctf_*. But I know of some maps that are CTF that do not use that, such as eggasandbacon and capturecity.

Your thoughts?
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby divVerent » Sun Feb 25, 2007 8:28 pm

Many maps are for more than one game mode... so that is in fact a bit hard to do.

And renaming existing maps would be a bad idea as people would then need to redownload them.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Dokujisan » Sun Feb 25, 2007 8:36 pm

Understood about renaming existing maps.

What about a naming convention that shows which game modes that map supports?

name_ctf_dm.pk3

I dunno, just throwing out ideas.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby KadaverJack » Sun Feb 25, 2007 8:43 pm

That could lead to ridiculously long filenames like foobar_dm_dom_ctf_tdm_rune_lms_arena.pk3. That's not a good solution imho...
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Dokujisan » Sun Feb 25, 2007 8:45 pm

Is there any difference betwen DM and most of those other game modes? With CTF, I know the map changes considerably and requires a special map design, but what about the other modes? It seems like they are just branches of DM.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby KadaverJack » Sun Feb 25, 2007 8:55 pm

Dokujisan wrote:Is there any difference betwen DM and most of those other game modes? With CTF, I know the map changes considerably and requires a special map design, but what about the other modes? It seems like they are just branches of DM.

Domination & runematch require special entities (both modes work without them by using player spawnpoints, but that's not really fun on most maps).
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Bnonn » Mon Feb 26, 2007 3:26 am

Obviously the solution is boolean flags along the lines of chmod numbers :D
Bnonn
Advanced member
 
Posts: 73
Joined: Mon Feb 12, 2007 11:28 pm
Location: New Zealand

Postby tZork » Mon Feb 26, 2007 11:34 am

Imo a single .mapcfg would be the best way, its just a bit trixy to do in qc atm (or so im told.)

Fileflags or bsp naming conventions are not a good way since they dont provide nuff info and requiers you to change/rename the actual bsp file. With a configuration file you cam make sure that even if/tho the bsp filename changes the end user see the same name in the menus and so on.

Code: Select all
[general]
author:budda
descipt:....
...
[dm]
fraglimit:20
timelimit:15
image:mymap_dm.jpg
[ctf]
.....
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Postby divVerent » Mon Feb 26, 2007 11:50 am

Well, a good idea may be a Perl or shell script that we supply with Nexuiz that analyzes a PK3 and tells you in machine readable format what's in it...

that is, the names of the mapcfg files, the map title, image and game modes supported.

Similar to:

Code: Select all
$ lsmaps basement.pk3
basement.pk3:dm_basement:Basement:dm:maps/basement.jpg
basement.pk3:lms_basement:Basement:lms:maps/basement.jpg


That format would be well parsable by anything, even a shell script (using tools like cut or the "IFS=: read -r PK3 MAPCFG TITLE MODE IMAGE" loop)

Actually, I quite like the idea of adding something like that to Nexuiz... and if the script is readable enough, it can later be adapted to convert the existing mapcfg system to something new.

It MAY also output XML, but I am quite opposed to that as XML is to hard to parse using simple tools like shell scripts or Perl. XML output can of course be optional and more detailed, like, it could also include map descriptions.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby tZork » Mon Feb 26, 2007 12:11 pm

Interesting idea. Then we could perhaps add shell like commands to the console too.. so we finally can do some smart aliases :D
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron