Question for map directory structure

Locked
Wishful Thinking!
Posts: 27
Joined: Sun Jan 15, 2012 1:19 pm

Question for map directory structure

Post by Wishful Thinking! »

This is a question about map directory layout, Is it possible to have sub-directories of maps, and the game can still read it all as if it was all in one folder?

Example:

Maps for defrag would go
/baseq3/maps/defrag

Maps for CTF would go
/baseq3/maps/ctf

Maps for DM would go
/baseq3/maps/dm

so when you want to choose from a map, but not sure if it's a CTF or DM map, admin could list "/rcon dir maps/ctf" to get a list of all available CTF maps on the server, instead of listing "/rcon dir maps" where it's hard to determine which is ctf, dm, or even defrag.

I have tried myself doing it this way, Yes it lists the maps correctly, but no it can't load them, because it says it cannot find it.

Cheers (:
ts3.wishfulthinkings.net
DTS
Posts: 2879
Joined: Thu Jul 13, 2000 7:00 am

Re: Question for map directory structure

Post by DTS »

No but the alternative is to unpack the pk3 files and repack them in grouped pk3 files. Pk3 files are just renamed zip files.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Question for map directory structure

Post by Eraser »

And destroy any means of playing online at the same time. Quake 3 servers can and mostly will run in pure mode, which means a client can only load .pk3 files that are also present on the server. If you put your maps in custom pk3 files, no server will allow you to load it.
Wishful Thinking!
Posts: 27
Joined: Sun Jan 15, 2012 1:19 pm

Re: Question for map directory structure

Post by Wishful Thinking! »

Alright, what about "viewing" a text/config file within console that contains a list?. For example, If I had all of the maps in the one directory (/baseq3), and a text/config file that I could open and list the names of CTF maps, Defrag maps, and so on, and then within Quake 3 do something like "/rcon exec maplist.cfg"?... could it show all the maps I have, as I have manually put the names into a config file?.

I have done some experiments like this in the past for other Q3 scripting tests, obviously using SAY would list it to the public, since we don't want to do this, I would need to use ECHO, but it only seems to ECHO into the server console, not into the clients/red console. There should be a "/rcon view filename.cfg" to view the contents of a configuration file.

Cheers,
~Wishful Thinking!
ts3.wishfulthinkings.net
DTS
Posts: 2879
Joined: Thu Jul 13, 2000 7:00 am

Re: Question for map directory structure

Post by DTS »

Doesn't CPMA do something like this? I've been on servers that only list the available maps by /maplist that are available for the game mode that is currently running (1v1, TDM, FFA).
Wishful Thinking!
Posts: 27
Joined: Sun Jan 15, 2012 1:19 pm

Re: Question for map directory structure

Post by Wishful Thinking! »

I'm not sure as I don't play CPMA, I might download it and see if it's got it... no use to me though even if it did. but it's nice to know that some programmer out there has made it possible.
ts3.wishfulthinkings.net
Locked