How to upload my maps to multiplayer server ?

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderator: Forum Moderators

User avatar
Divine Crusader
Posts: 57
Joined: September 13th, 2008, 10:49 am

How to upload my maps to multiplayer server ?

Post by Divine Crusader »

Well,i am new to this things.
I got a few maps to upload.I created those my maps but how to upload now ?
Please,you have to explain in an easy way.
Those pbl-file or whatever,i still can't understand the thing.
Help me,i really want to upload it.
You will never escape from justice if you committed a sin that many won't forgive.
Hide all you want but you can't escape from me.
~Divine Crusader~
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: How to upload my maps to multiplayer server ?

Post by Turuk »

It's not that hard. Put your maps in a folder entitled with whatever you want to call them. Put the pbl file into it, as in _server.pbl. If you have set the pbl up correctly (following the examples given below) you will see an option when you open the add-on server in game to publish your content.

http://www.wesnoth.org/forum/viewtopic.php?f=15&t=25595
Distributing Content
Pbl File
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
Divine Crusader
Posts: 57
Joined: September 13th, 2008, 10:49 am

Re: How to upload my maps to multiplayer server ?

Post by Divine Crusader »

How to make pbl and cfg file ?
I don't know how to make one even after reading the guide.
Do i need a program ?
You will never escape from justice if you committed a sin that many won't forgive.
Hide all you want but you can't escape from me.
~Divine Crusader~
voris
Posts: 68
Joined: August 27th, 2008, 5:42 pm

Re: How to upload my maps to multiplayer server ?

Post by voris »

Divine Crusader wrote:How to make pbl and cfg file ?
I don't know how to make one even after reading the guide.
Do i need a program ?
Yes.
Velensk
Multiplayer Contributor
Posts: 4002
Joined: January 24th, 2007, 12:56 am

Re: How to upload my maps to multiplayer server ?

Post by Velensk »

Any simple text editer would do.
"There are two kinds of old men in the world. The kind who didn't go to war and who say that they should have lived fast died young and left a handsome corpse and the old men who did go to war and who say that there is no such thing as a handsome corpse."
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to upload my maps to multiplayer server ?

Post by Pentarctagon »

is there a certain location that the folder needs to be in for the upload option to appear?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: How to upload my maps to multiplayer server ?

Post by Turuk »

Well, it should be in your userdata where the other add-ons you have downloaded go.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
Divine Crusader
Posts: 57
Joined: September 13th, 2008, 10:49 am

Re: How to upload my maps to multiplayer server ?

Post by Divine Crusader »

I see.By simple text editor like notepad ?
Also,to make one,just use this program and add cfg and pbl behind a title of the document.
Am I right ?
You will never escape from justice if you committed a sin that many won't forgive.
Hide all you want but you can't escape from me.
~Divine Crusader~
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: How to upload my maps to multiplayer server ?

Post by Turuk »

Divine Crusader wrote:Also,to make one,just use this program and add cfg and pbl behind a title of the document.
Right, you use .cfg, except for the _server.pbl. That is obviously .pbl.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to upload my maps to multiplayer server ?

Post by Pentarctagon »

the first picture is a screenshot of where i have the map data saved, the highlighted file is the add-on that I want to publish. the second screenshot is of the files that i have in that folder.
author="Pentarctagon and ParadiseCity"
title="cave mp"
icon="path.png"
version="0.4"
description="feedback wanted"
type="map pack"
passphrase="dangit"
email="*insert email here*"
this is what i have in the _server.pbl folder
[multiplayer]
id=multiplayer_Cave
name= _ "4p - Cave"
map_data="{maps/multiplayer/4p_Cave}"
description= _ "most of the terrain is cave path, which has the same stats as grassland."

{DEFAULT_SCHEDULE}

[side]
side=1
canrecruit=yes
controller=human
team_name=1
[/side]
[side]
side=2
canrecruit=yes
controller=human
team_name=2
[/side]
[side]
side=3
canrecruit=yes
controller=human
team_name=3
[/side]
[side]
side=4
canrecruit=yes
controller=human
team_name=4
[/side]

[/multiplayer]
and this is what i have for the _main.cfg for the Cave map. i know that i probably have to make a _main.cfg file for the second map, but i just manted to check and make sure that this was done right so far. i did get the publich action though, so thats i good sign i think :)
Attachments
Slide1.PNG
Slide2.PNG
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: How to upload my maps to multiplayer server ?

Post by Turuk »

Pentarctagon wrote:but i just manted to check and make sure that this was done right so far. i did get the publich action though, so thats i good sign i think
If you got the publish action then you did it right. Though you may want to change your passphrase if that is really the one you are using... ;)
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to upload my maps to multiplayer server ?

Post by Pentarctagon »

ohyeah...forgot to change that lol.

EDIT: ok, last question. I put the code for the 'Cave' map in _main.cfg and I got the publish action. however, since i have 2 maps, do i put the code for both maps in the same _main.cfg file?

like this?:
[multiplayer]
id=multiplayer_Cave
name= _ "4p - Cave"
map_data="{maps/multiplayer/4p_Cave}"
description= _ "Most of the terrain is cave path, which has the same stats as grassland. recommend 2 gold per village, meant as a free for all map."

{DEFAULT_SCHEDULE}

[side]
side=1
canrecruit=yes
controller=human
team_name=1
[/side]
[side]
side=2
canrecruit=yes
controller=human
team_name=2
[/side]
[side]
side=3
canrecruit=yes
controller=human
team_name=3
[/side]
[side]
side=4
canrecruit=yes
controller=human
team_name=4
[/side]

[/multiplayer]

[multiplayer]
id=multiplayer_Cave_Skirmish
name= _ "4p - Cave_Skirmish"
map_data="{maps/multiplayer/4p_Cave_Skirmish}"
description= _ "Much of the terrain is cave path, which has the same stats as grassland, recommend 2gold pr village. can be played as a 2v2 team match."

{DEFAULT_SCHEDULE}

[side]
side=1
canrecruit=yes
controller=human
team_name=1
[/side]
[side]
side=2
canrecruit=yes
controller=human
team_name=2
[/side]
[side]
side=3
canrecruit=yes
controller=human
team_name=3
[/side]
[side]
side=4
canrecruit=yes
controller=human
team_name=4
[/side]

[/multiplayer]
i get the publish action both with and without the code for the second map, so wasnt sure what to do.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: How to upload my maps to multiplayer server ?

Post by Turuk »

Pentarctagon wrote:i get the publish action both with and without the code for the second map, so wasnt sure what to do.
To support self-discovery I will let you figure it out. Are you able to play those maps in game with the code for the second map both in and out of the .cfg? The .pbl is only affected by if you set that itself up right, it does not check your code before you publish to the server.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to upload my maps to multiplayer server ?

Post by Pentarctagon »

tested it and it turns out that i cant play it ingame either way. whenever i tried to start a game, it would say that it couldnt find the map. the size was also said that the map size was 0x0 so that would be why i guess.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: How to upload my maps to multiplayer server ?

Post by Turuk »

Pentarctagon wrote:tested it and it turns out that i cant play it ingame either way. whenever i tried to start a game, it would say that it couldnt find the map. the size was also said that the map size was 0x0 so that would be why i guess.
Perhaps:

map_data="{maps/multiplayer/4p_Cave}"

to

map_data="{maps/multiplayer/4p_Cave.map}"
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Post Reply