How to put an era on the server?

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Marcus
Posts: 27
Joined: April 14th, 2005, 6:26 pm
Contact:

How to put an era on the server?

Post by Marcus »

Hi to all!

I have created an new era,(I'll post the description) but I don't know how to put it on the server... Please help me.

Thanks
scott
Posts: 5248
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

The easiest thing to do is to download someone else's era, change those files by copying your own data into them, creating a new .pbl file, and uploading it.

The whole publishing process is easy once you understand what's going on, but trying to explain it succinctly is tough. Here is a wiki link for you to read, but if you don't understand just post again with a specific question.

http://www.wesnoth.org/wiki/BuildingFactions
Hope springs eternal.
Wesnoth acronym guide.
Marcus
Posts: 27
Joined: April 14th, 2005, 6:26 pm
Contact:

Post by Marcus »

My era is already creates. But I do not know how to put it on the server, so that everyone can download it.

I do not know where to go on this website to put my era on the server. I have visited the wiki, but I did not find what I'm looking for. They explain how to create an era but not how to put it on the server...
scott
Posts: 5248
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

Maybe this will be a simple fix.

1. Create a .pbl file. If you don't know what that is, follow the above link. It's just a text file that resides in the same directory as the config file and folder.

2. Start the game. Go to the campaign server by selecting "Campaigns" then "Get more campaigns" from the bottom of the list.

3. You will see a list of available campaigns. If everything is properly set up, then at the bottom of this list there will be a new option: "Publish eraname". If you don't see the new option, then something is not formatted properly.
Hope springs eternal.
Wesnoth acronym guide.
Marcus
Posts: 27
Joined: April 14th, 2005, 6:26 pm
Contact:

Post by Marcus »

Maybe this will be a simple fix.

1. Create a .pbl file. If you don't know what that is, follow the above link
Thanks for the information. But... How can I create a «.pbl» file? :roll:
scott
Posts: 5248
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

A .pbl file is the same as a text file, except the extension is .pbl instead of .txt. Start your text editor, add the information you need to put in there, and save it as myera.pbl (where myera is the name of the era you used for the config file and directory).

So, the campaigns directory should have three things:
myera.cfg
myera/ (a subdirectory)
myera.pbl
Hope springs eternal.
Wesnoth acronym guide.
Marcus
Posts: 27
Joined: April 14th, 2005, 6:26 pm
Contact:

Post by Marcus »

Yes, but...
What I want to say is: «What is the role of the .pbl?» (an example of a .pbl will be welcomed)
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

Marcus wrote:Yes, but...
What I want to say is: «What is the role of the .pbl?» (an example of a .pbl will be welcomed)
It's just to tell the campaign data all the imformation.

Read this page.
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
User avatar
Ranger M
Art Contributor
Posts: 1965
Joined: December 8th, 2005, 9:13 pm
Location: England

Post by Ranger M »

the pbl file is what tells the campaign server that it's a new campaign (or you are the author of a current campaign, and want to update it) without it you wont get the option to upload it to the server.

example (IoA file, without the passkey, you'll need to include your own, or let the campaign server generate one for you. Don't try changing the passkey, without it you won't be recognised as the author anymore, and so can't update it) you'll need to edit it (and the file name) to suit your era, but this will do.

Code: Select all

author="Ranger M"
title="Invasion of Arendia"
icon="neutral-ranger.png"
version="0.0.3 (wesnoth version 1.1)"
description="has 15 complete levels."
passphrase=""
Marcus
Posts: 27
Joined: April 14th, 2005, 6:26 pm
Contact:

Post by Marcus »

Thanks to all! :D

You will probably be able to download «The white plans Dwarves» era. :wink:

(on the 1.1.2 version of Wesnoth)
User avatar
JW
Posts: 5047
Joined: November 10th, 2005, 7:06 am
Location: Chicago-ish, Illinois

Post by JW »

I must be having a format problem because I can't get my campaign on the server. There is no upload option. If it matters, I'm on Windows and BFW 1.1.4.

file names (all in \userdata\data\campaigns):

Era_of_Myths - folder
Era_of_Myths.cfg - the era.cfg
Era_of_Myths.pbl - the .pbl (a .txt file)

Contents of the .pbl:

Code: Select all

author="JW, Jester, EP, Cuyo, and many others I'll list later"
title="The Era of Myths"
icon="units/undead-necromancers/adept-ranged-7.png"
version="Alpha 3"
description="This is a custom era with many contributors."
passphrase="" ---REMOVED
help?
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

Looks correct... make sure there's no (possibly hidden) .txt extension on the end of any of the filenames. That's all I can think of. :?
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
Soliton
Site Administrator
Posts: 1733
Joined: April 5th, 2005, 3:25 pm
Location: #wesnoth-mp

Post by Soliton »

JW wrote:

Code: Select all

version="Alpha 3"
I suggest making the version a date in the form 20060607 or similar. (You could still append whatever you want after that.)
I wonder why not more campaign developers do that since this would make sorting via the version field a viable solution to find recently modified campaigns.
We do have a sorting mechanism in the in-game download dialog just no 'last modified' field after all.
"If gameplay requires it, they can be made to live on Venus." -- scott
User avatar
JW
Posts: 5047
Joined: November 10th, 2005, 7:06 am
Location: Chicago-ish, Illinois

Post by JW »

Okay, can any Windows users tell me what program they use to create the .pbl file? I think when I save it from notepad it's saving as a .txt and simply adding ".pbl" t the end of the filename. "Era_of_Myths.pbl".txt.

Either that, or a really kind gesture would be uploading a working .pbl (edited to remove the passcode) that I could simply edit.
Anyar
Posts: 191
Joined: July 25th, 2005, 9:18 pm
Location: MI

Post by Anyar »

Even as the fingers of the two hands are equal, so are human beings equal to one another. No one has any right, nor any preference to claim over another. You are brothers. - Muhammed
Post Reply