Create an account


Poll: Good idea?
You do not have permission to vote in this poll.
Yes.
45.45%
5 45.45%
No.
54.55%
6 54.55%
Total 11 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SUGGESTION] Map naming convention

#1
To encourage consistency, let's have a map naming convention.
<mapname>_v<version>r<revision>_<- separated gamemodes>
In use:
dance_v2r5_ctf-dm-dom
such map names could even be autogenerated in part (the last part is recorded in a file, no?). Also, automatching and easier categorization of maps. Here's a regex:
[a-z0-9_\-/]+_v[0-9]+r[0-9]+_[a-fhk-ors-u-]+
I think that's the optimal way to do it, though I may be wrong. Also, the last part will have to be updated depending on gamemode naming conventions (I abbreviated assault as "as").

What do you think?
Reply

#2
map names would be so long with that convention.
agressor_tdm_dm_dom_rune_race

It just doesn't make sense to put the gamemode there. just having mapname_vr is fine
EDIT: also i believe there is reason it is done v1r2, so that the code can read the most recent map.pk3 without a problem.
Reply

#3
I don't know much about Quake mapping, but I'd wonder if you couldn't store all of that info in metadata and give a name for the player?
eg:

File:
mapname_v1-1-2_ctf_dm_race.mapfiletype (I don't know what it is)

Metadata: (adjust for schema)
VERSION=1.1.2;
GAMEMODES=ctf,dm,race;
MAPNAME="Map Name";

On screen:
Map Name
v1.1.2
For CTF, DM, Race
Parents of young organic life forms are warned that towels can be harmful, if swallowed in large quantities.
Reply

#4
Too long map names due to gamemodes.. also the gamemodes ARE already specified inside the .mapinfo files. The server will only "use" it for the current mode if the map can handle it.
The version number however should be in the mapname as the automatic download CAN'T use the info from the mapinfo file.. So its already quite ok how things are done right now..
Real signature is still in production!
Reply

#5
Yes, but the way things are done now lacks a common syntax. The naming is segmented. I see how gamemodes might make it longer, so we should scratch that. But a unified syntax for name and version would not be hard to do and would make voting maps easier ("is it fighter_bay? or is it fighter-bay? or maybe fighterbay?").
Reply

#6
There is a unified syntax for naming maps. If mappers don't follow it then its their own fault. If for instance I have fighterbay_v1r3 and fighterbay_v1r5 on my server and I vcall chmap fighterbay, it will automatically take me to the latest revision (fighterbay_v1r5). You can't really control how other mappers name their maps
EDIT: _ should be used for spaces but like I said mappers don't really follow a convention.
Reply

#7
The convention is:

[mapname]_[version][revision].pk3 with correct .mapinfo inside. Gamemodes are listed inside .mapinfo so that we don't need to download any more files in addition to pk3. When maps are moved out of dlcache, they are classified according to their inside .mapinfo files.

You can use whatever naming scheme you like, but your map won't be accepted until you've fixed it. I don't remember mapinfo syntax right now, but somebody could post it here anyway.
Reply

#8
there is also "lsmaps" iirc which shows a list of maps on the server.. and i think the reworked voting system actually can SHOW the maps grapihcally
Real signature is still in production!
Reply

#9
In addition: http://alienTRAP.org/forum/viewtopic.php...beb#p27330
Reply

#10
At the moment I use mapname_vxry and it seems to work out well enough. Adding the game modes on the end would just be silly since the map will appear in game for the game modes and in the mapinfo.
Reply

#11
map naming convention? sure thats a good idea, anything that encourages professionalism and good practice is generally good, however this is not the optimum solution.


[Image: sig2.png]
Check out my site: www.alisdairrankine.com!
Reply

#12
But please avoid using _ inside the name part.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [SUGGESTION] Naming the LG s1lence 15 11,409 03-12-2012, 10:48 PM
Last Post: RuckaRuckaAli
  [SUGGESTION] Ability to vote map, gametype and mutators after each map Exitium 13 21,587 04-28-2011, 02:45 PM
Last Post: The mysterious Mr. 4m

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-