by divVerent » Fri Feb 13, 2009 4:22 pm
Part of that convention is unenforcable (like the pk3 name prefix).
As for the bsp file names - that's unenforcable too. People just WANT to be able to install Q3A pk3 files without changing anything inside, and Q3A mappers ARE retards who prefer cryptic names. Forget it.
By the way, repacking maps without adding value (a "REPACKED BY THE GREAT NINJAZ" note is NO added value) is disrespectful towards their authors. If you add value (and be it just fix an ACTUAL bug in the map, like the floating items on flipzone and tripzone), go ahead. If you just want to spread your name by doing it, forget it, you're ripping off the work of others. Out of respect, I add NO such stuff and, if anything, JUST an extra radar image. No glory for it should go to me, as all I did was running "sv_cmd radarmap --loop" with all the maps loaded.
BTW, I disagree with the map- prefix for all map pk3s. It's redundant, as MOST pk3s are maps. Unneeded clutter. What I would agree with is coming up with new file extensions for different types of packs, and making the engine treat them all as if they were pk3s (at least for now, later it can be used for advanced functionality).
.nxw = Nexuiz "worldmodel"
.nxm = Nexuiz model zip/pk3
.nxs = Nexuiz "server package"
.nxc = Nexuiz "client package"
.nxp = Nexuiz "generic package"
As for advanced functionality that could be added later:
NXW files (world models) could get not loaded on startup, but loaded when a BSP file of the same name is requested, and unloaded when unloading the map. That way, map packs won't interfere with each other.
NXM and NXS files could get automatically added to sv_curl_serverpackages. As a special rule, if a NXM misses a txt file in the root directory, it'd use the first model file in models/player.
NXC files could get ignored by the dedicated server, and only loaded by clients. Would e.g. be nice for texture packs (like, Nexuiz could come with the data pk3 split up into client and server part, so dedicated servers don't need to load textures and sounds).
NXP files would behave just like PK3s do now.
Of course, PK3 would stay supported, but have none of this "smart" behaviour.
The exact file extensions of this don't matter - what matters is that that info is stored IN the file extension, as that's the "standard" (as set by Microsoft, and commonly followed on *x systems) for specifying the purpose of a file and how it is treated. Treating pk3s specially by file name PREFIX is something LordHavoc will never allow into his engine - for good reasons.
Anyway, the issue isn't pk3 or bsp names with missing or weird versioning. That's no problem. The issue is cryptic bsp names. And for this no technical means is possible. Out of respect to the original mapper, I'd not rename bsp files of others - but I'd not encourage playing such maps by showing a "nicer" name, but rather tell the original mapper to use descriptive names in the future (and only with his permission, I'd do that then). There is no need, and no desire, to waste lines of code on this.
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.