Adding Custom Maps to the available maps on my server

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Adding Custom Maps to the available maps on my server

Postby 7echno7im » Wed Jun 27, 2007 5:54 pm

Hello. 1st Nexuiz is great. 2ndly, i have been hosting the server "www.techtronic.us" and I want to add more custom maps. I have downloaded a fan map pack from fileplanet and would like to start running them. Couple questions.

1) Shoudl my server.cfg file reside in the root or in the \data folder?
2) Where should i extact the map pack to? \data?
3) How do i confugre my server.cfg to include these new maps? (under the g_maplist?)
a) if that is how, do i remove the comment whacks? \\
i) can you give an example of the syntax?
b) why aren't the maps listed in g_maplist anywhere to be found? (eg. dm_aggressr)
4) If i do include new maps, will the players who don't have these maps d/l them from me?
a) If so can i limit this bandwidth?

thank you very much in advace. I tried following the server guide and google'ing these question before i posted, but the server guide was for an older verion and now I am seeing lost of references to maps.cfg, which is not mentioned in the server.cfg anywhere.
7echno7im
Member
 
Posts: 30
Joined: Wed Jun 27, 2007 5:43 pm

Postby tChr » Wed Jun 27, 2007 6:27 pm

1. The data folder
2. and 3b. All nexuiz content is in a tree, where the maps are in data/maps/something, however, the shipped data is contained in the dataxxxxxx.pk3 file. the .pk3 file is just a renamed zip file, so you shuld be able to easily expore iit.

the maps in the list (ie dm_warfare) reffers to the dm_warfare.mapcfg file, with is a control file for stargin the map warfare in DM mode. expore the dm_warfare.mapcfg file (indside the data pk3) and you will understand.

4: Yes, if you put them available on an ftp or http server and reflect this location in your server config, any mechanismis in your http or FTP server of choice can be used to limit bandwith, iff needed. the server itself (nexuiz server) does not push the content, it only refferst the client to a http/ftp download
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Re: Adding Custom Maps to the available maps on my server

Postby KadaverJack » Wed Jun 27, 2007 6:46 pm

7echno7im wrote:Hello. 1st Nexuiz is great. 2ndly, i have been hosting the server "www.techtronic.us" and I want to add more custom maps. I have downloaded a fan map pack from fileplanet and would like to start running them.

the mappack on fileplanet is probably outdated. If you use it, make shure you also get the bug fixes from http://sourceforge.net/project/showfile ... _id=214938 ( zzz-nexmappack_r1_to_r2.pk3 is what you need)

1) Shoudl my server.cfg file reside in the root or in the \data folder?

in data (pretty much any custom stuff goes there)

2) Where should i extact the map pack to? \data?

data

3) How do i confugre my server.cfg to include these new maps? (under the g_maplist?)

yes, put them in g_maplist (if you're unshure what to put there, open the pk3 file with a zip programm (it's just a renamed zip file) and look in maps/ for *.mapcfg files)

a) if that is how, do i remove the comment whacks? \\

uhm, not shure what you mean... just remove anything from // to the end of the line

i) can you give an example of the syntax?

<variable> <value>
<another_variable> "<some value that contains spaces>"
// the rest of this line is a comment (warning: don't use ; in comments)

b) why aren't the maps listed in g_maplist anywhere to be found? (eg. dm_aggressr)

they are inside data<somedate>.pk3 (see 3))

4) If i do include new maps, will the players who don't have these maps d/l them from me?

Yes, they need to download the maps, but not necessarily from you. Maps are downloaded from web- or ftp-servers, not from the nexuiz server itself. See Docs/mapdownload.txt for detailed instructions on how to setup mapdownload or just download http://141.2.16.3:7780/nex/maps/curl_urls.txt.cgi and save it as data/curl_urls.txt

a) If so can i limit this bandwidth?

the maximum download speed is limited by the client, not the server. but as stated above, you can use an offsite mirror for map downloads (e.g. you could upload your maps to http://www.fsphost.com/ ). If you still want to setup a download server on your machine: ftp servers usually support bandwidth limits per user.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby 7echno7im » Wed Jun 27, 2007 9:19 pm

NICE! thank you(s). Ok for the curls.txt, do i have have to organize my map structure they same way listed there or will it seach that url when they are requesting a map they do not have locally?

Do i have to state anywhere in my server.cfg to use the curl.txt?

Do i have to remove the "//" in front of g_maplist then list all of my maps?

What if my maps are /data/maps/unofficial would my g_lmaplist read to reflect the location too?

eg.
g_maplist
'/maps/unofficial/70mm13_01' '/maps/unofficial/70mm13_02' etc....

or is there some way i can state to use all maps found in /data/maps/* ?

can someone give an example of their g_mapplist lines?


PS this is one of the best forum support i have recieved on the web yet. You guys are right up there with the ubuntu forums
7echno7im
Member
 
Posts: 30
Joined: Wed Jun 27, 2007 5:43 pm

Postby KadaverJack » Wed Jun 27, 2007 9:52 pm

7echno7im wrote:NICE! thank you(s). Ok for the curls.txt, do i have have to organize my map structure they same way listed there or will it seach that url when they are requesting a map they do not have locally?

All pk3s need to be in data/ (directly, not in a subdirectory). If a client requests a map, the server will check from which pk3 the map was loaded and check curl_urls.txt if the pk3 is listed there. If it is, it will append the pk3 name to the url listed there and send that to the client.
e.g.: the current map is chess. The server knows it was loaded from chess.pk3. When a client connect, who doesn't have the map, the server will see if chess.pk3 is listed in curl_urls.txt. assuming it finds the line
Code: Select all
chess.pk3                          http://141.2.16.3:7780/nex/maps/inofficial/
it will send http://141.2.16.3:7780/nex/maps/inofficial/chess.pk3 as download url to the client.

You can also use * as wildcard, so if you have all 70mm13 on the same sever, you can just add
Code: Select all
70mm13*        http://example.com/maps/


Do i have to state anywhere in my server.cfg to use the curl.txt?

no, it'll work automagically. just make shure it's named curl_urls.txt and directly in data/

What if my maps are /data/maps/unofficial would my g_lmaplist read to reflect the location too?

That won't work. The engine just looks for data/*.pk3, it won't search in any subdirectories for pk3 files.

can someone give an example of their g_mapplist lines?

Code: Select all
g_maplist "dm_chess ctf_capturecity dm_70mm13_04 dm_augenkrebs"
(it doesn't matter whether you use "map1 map2" or "'map1''map2'")
again: you have to list the names of the .mapcfg files found inside the pk3 archives (rename them to .zip if you have trouble with opening them) here, not the names of the pk3 files itself.

Edit: you can also use
Code: Select all
ls maps/*.mapcfg
in the server console, to check which maps/gamemodes are available, so you don't have to search all pk3s manually. If that command lists "maps/dm_soylent.mapcfg" for example, "dm_soylent" would be a valid entry in g_maplist.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby 7echno7im » Thu Jun 28, 2007 1:40 am

ok last question, I have asked this a few times but I am not sure if I was understood.

One my g_maplist line in server.cfg shoudl it look like

//g_maplist " 'map1' 'map2' 'map3'"

or
g_maplist "map1" map2" map3"

I guess i am curious about the // in front of g_map list and then what surrounds the map names.


Does anyone have a g_maplist line they can post on here with all available maps?

Thanks
7echno7im
Member
 
Posts: 30
Joined: Wed Jun 27, 2007 5:43 pm

Postby tChr » Thu Jun 28, 2007 6:13 am

7echno7im wrote:I guess i am curious about the // in front of g_map list and then what surrounds the map names.


The // disables the entire line, this is useful for making examples. For the line to work, you'll have to remove the // in the front

// is for comment lines :)
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Postby 7echno7im » Thu Jun 28, 2007 1:59 pm

got it my g_maplist line looks like this now

Code: Select all
g_maplist 'dm_70mm13_01''dm_70mm13_02''dm_70mm13_03''dm_70mm13_04''dm_70mm13_05''dm_70mm13_06''dm_70mm13_07''dm_70mm13_08''dm_70mm13_10''dm_70mm13_10ctf''dm_70mm13_11''sm_70mm13_12''dm_70mm13_9''dm_70mm13dm1''dm_79drdm5_beta2_nex''dm_79drgc2_nex''dm_acid3dm5_nex''dm_af3hex_nex''dm_ame7q3dm3_nex''dm_ame7q3tny1_nex''dm_apocalyptica_nex''dm_augenkrebs_alpha4''dm_bal3dm3_nex''dm_bal3dm5_nex''dm_batcula_nex''dm_bloodprisonctf-1.0''dm_blueamuse81''dm_capturecity-v2r1' 'dm_cb_ctf4_BETA01_hotfixed''dm_chronic_nex''dm_closedm01_b1''dm_CMP1-dm6_nex''dm_common-spog''dm_controlfactor_v2r3''dm_crossover-1.0''dm_ctf_darkzone''dm_ctf_darkzoneBETA2''dm_ctf_darkzoneBETA3''dm_ctf_darkzoneBETA3a''dm_ctf_medival''dm_cttourney1_nex''dm_cubedm1''dm_Darkzonectf''dm_data20070531''dm_deathbox''dm_digdigdig''dm_distonic_nex''dm_castle''dm_evilminsta''dm_lastmanstanding''dm_nexdm3''dm_spacestation''dm_dmtower''dm_dubneoc_nex''dm_dusty''dm_eggandbacon''dm_farewell-laserfun''m_filsomni-0.2''dm_flipzone''dm_fragcity-nex2''dm_geo-core_nex''dm_hal_palindrome_nex''dm_HandsOfGod_nex''dm_hourglass''dm_hydronexb3''dm_ikzdm1_nex''dm_irenav2''dm_jaxtourney2_nex''dm_kaznexctf1''dm_kaznexdm1''dm_kaznexdom1''dm_klzegypt_nex''dm_ktsdm4_nex''dm_lavaflag-20070428''dm_loof_v2''dm_map-cb_ctf4_BETA02''dm_map-cbctf1''dm_map-ctf_facing_worlds_nex2''dm_map-ctf_greatwall_reloaded3''dm_map-darkcityb1''dm_map-dntfsanta''dm_map-gleeb_geocomp3_nex''dm_map-rocketarena_nex_2_1-nex2''dm_map-weird_towers''dm_mappack''dm_medley''dm_mentalspace''dm_mIKEctf2_nex''dm_minimanq3-nex''dm_minimanq3-nex_r2''dm_minstarena''dm_mishnexdm1''dm_mojoctf_v2b1''dm_monolith_nex''dm_Mortarfun''dm_necchesu-v1''dm_nexdmlc1''dm_nexdmlc2''dm_nexm''dm_o-fun''dm_p-fun''dm_pukka3dm2_nex''dm_puma3tourney4_nex''dm_pushme''dm_pushmoddm1''dm_pyramid_fight_beta1''dm_q3skoredm1_nex''dm_qbeast_nex''dm_qdolphin_nex''dm_quimera_nex''dm_quintdm3_nex''dm_redm04_nex''dm_reservoir-nex_b3''dm_reservoir_nex_b2''dm_revctf2_spawnfix''dm_revdm1''dm_revdm3''dm_revdm5''dm_revdm8b1''dm_shdwdm1''dm_sierpinski_beta2''dm_space-fun-nex2''dm_spyglass-nex''dm_storm3dm3_nex''dm_straledm5_nex''dm_subhumandm1''dm_succer_socks_r3''dm_suicidebooth-0.1''dm_towers''dm_trans''dm_transz''dm_transzctf''dm_tripzone''dm_tznex03rc2''dm_tznex07''dm_tznexdm01''dm_vitamea-v2''dm_wacka-wacka''dm_wacka-wacka_r2''dm_zpdm01_nex''dm_zzz-nexmappack_r1_to_r2'


Ithere aren't any errors when starting, and when i run the ls command to list maps it shows all of them, but that just references every *.mapcfg so i don't really know if i have all of the dm_ maps's syntax right and they are really loading, is there a way for my to query all dm_ maps on the server that i specified in my config?

Because I am running a dm server, i just want to query the server on the dm maps i made available..

thanks again for everything, i knew the // were comment lines, i was just getting confused becuase i am not sure what the defaults are if it is commeneted out, unless the commenet out part is still what the default really is.
7echno7im
Member
 
Posts: 30
Joined: Wed Jun 27, 2007 5:43 pm

Postby esteel » Fri Jun 29, 2007 12:38 am

Hmm does this whole thread mean my comments in Nexuiz/Docs/server/ readme.txt and server.cfg were not clear enough? Hmm or maybe i have to update the server thread ( http://forums.alientrap.local/viewtopic.php?t=18 ) once more, it could be a bit outdated by now.
If there are problems in understand any of those it might be nice if you could suggest improvements for them.. Sometimes its easier to NOT know stuff and bump into problems that people like me might just take a granted and forget to mention in those readmes or threads.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron