Uploading to Addon Server

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

Moderator: Forum Moderators

Post Reply
User avatar
Gwledig
Posts: 598
Joined: March 30th, 2009, 5:10 pm
Location: UK

Uploading to Addon Server

Post by Gwledig »

Hi I made some maps and want to put them up on addon server, I've searched everywhere how to do it, but no ideas beyond some posts about running some command lines in Python (ye....) any ideas appreciated !
Maintainer of Conquest (Original Gameplay), Conquest+, Conquest+ Space/Ranged, Chaoz Battle of the Wizards, Lazersquad (squad game), WesCraft (building MP game)
User avatar
Pentarctagon
Project Manager
Posts: 5732
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Uploading to Addon Server

Post by Pentarctagon »

well...
1. you need to make scenarios for them, look through the Create link if you haven't already.
2. to upload, you need to make a pbl file, then go to where you would normally download add-ons and scroll all the way to the bottom, where there should be an option to upload the addon to the server.
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
Gwledig
Posts: 598
Joined: March 30th, 2009, 5:10 pm
Location: UK

Re: Uploading to Addon Server

Post by Gwledig »

Thanks, I figured it out, apparently my map names and scenario names were not the same, by making them the same map1.map map1.cfg it worked and I got the publish button appear at the bottom of the list in the addon server.

but when I try to upload I get 'network communication error' so maybe try later...
Maintainer of Conquest (Original Gameplay), Conquest+, Conquest+ Space/Ranged, Chaoz Battle of the Wizards, Lazersquad (squad game), WesCraft (building MP game)
Carda
Posts: 11
Joined: December 21st, 2010, 2:20 pm

Re: Uploading to Addon Server

Post by Carda »

I searched the forum for 'network error' and this post was the closest I could find.

I am working on a RPG multiplayer map and I'm trying to upload it towards the Wesnoth Server so others can download it as well. But so far I only get 'Network Communication Error' as result.

1) I found out I needed to write a .pbl file. So I called it _server.pbl and put that into my scenario folder

title="Journey_of_Trials"
type="MP Scenario"
icon="units/human-loyalists/lieutenant.png"
version="RPG 0.5beta"
author="Carda"
passphrase="fakedpw"
description="Face trials in Bob's Era RPG settings."

2) My folder is called Journey_Of_Trials and it's inside mydocuments->....->add-ons. My main config file is Journey_of_Trials.cfg. My map is inside the folder called 'map' and the map itself is called Journey_0f_Trials_Map. I also used a folder 'script' where there is misc.cfg

3) Its no problem hosting multiplayer games playing my own map Journey_of_Trials. The main .cfg calls to misc.cfg and the location of the map and everything works like a charm.

4) But uploading to wesnoth addon server results in 'Network Communication Error'. I'm behind a router yes, but again: hosting my own map behind the same router in Wesnoth is NO problem.

Looking for a more detailed error solving then 'Network Communication Error',
Thank you,
Carda
10 FOR X = 0 TO 15
20 POKE 53280,X ; PRINT " Hello World"
30 NEXT X
40 GOTO 10
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Uploading to Addon Server

Post by Anonymissimus »

Version, type and image path you quoted are invalid. Don't make up stuff, follow strictly what's said in the wiki.
At least type and version are explicitely stated to need to be in another form.

Code: Select all

email="iwontrevealit@here.com"
icon="data/core/images/units/unknown-unit.png"
passphrase="sampleofapassphrase"
title="Campaign-How-To (A Simple Campaign)"
translate="false"
type="campaign"
version="0.2.4"
description="This is a stub of a campaign, intended to make life easier in creating a campaign. Contains about the bare minimum that's needed for a campaign and some helpful comments."
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Carda
Posts: 11
Joined: December 21st, 2010, 2:20 pm

Re: Uploading to Addon Server

Post by Carda »

Thanks for having taken a look at it. I translated your example + the consulted wiki about .pbl into the following and going to try it right away

email="myemailinreal@hotmail.com"
icon="units/elves-wood/captain.png"
passphrase="fakedpwforexample"
title="Journey_of_Trials"
translate="false"
type="scenario_mp"
version="0.5.7"
description="Face trials in Bob's Era RPG settings."

Also tried:

icon="data/core/images/units/elves-wood/captain.png"

But still I have no luck. Running against that Network Communication Error still.

Edited:

It's all so hard when trying something for the first time. Wiki tells me:

You need:
1. A folder, for example MyCampaign
2. A .cfg file MyCampaign/_main.cfg
3. A .pbl file MyCampaign.pbl or MyCampaign/_server.pbl

So I add a _main.cfg then? Clicked on the button 'search' in the Wiki and entered searchphrase _main.cfg. Then I get 400 results back that include the word 'main'. Then I tried searchphrase "_main.cfg" between brackets but the same results come back to me.... I have no clue what I should write into a _main.cfg

When I examined all this before I found an example and so added the next file as _main.cfg into my folder.

[binary_path]
path=data/add-ons/Journey_of_Trials
[/binary_path]

#ifdef MULTIPLAYER
{~add-ons/Journey_of_Trials}
#endif

Now with the file added, going to try it again
Carda

Another epic fail... and my map disappeared out of the list of hostable games as well (so I removed the file _main.cfg again).

Edited thursday's progression

I thought having found the answer into renaming my Journey_of_Trials.cfg into _main.cfg and try uploading it. Again without any good results :geek:

He who doesn't give up will succeed!
Carda
10 FOR X = 0 TO 15
20 POKE 53280,X ; PRINT " Hello World"
30 NEXT X
40 GOTO 10
Post Reply