Putting up add-ons on 1.9

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Velensk
Multiplayer Contributor
Posts: 4005
Joined: January 24th, 2007, 12:56 am

Putting up add-ons on 1.9

Post by Velensk »

When I attempt to add one of my add-ons to 1.9 the game crashes much as it does if you try to get to the multiplayer server through the direct link. I can see that there are add-ons on the server so it must be possible to do and I was wondering if there was any special requirement to get add-ons onto it.

Incase it helps, I am using a mac and the .pbl was simply copied from the 1.8 version of the add-on.
"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
Iris
Site Administrator
Posts: 6800
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Putting up add-ons on 1.9

Post by Iris »

AFAIK what's recommended for now is to use the wesnoth_addon_manager script instead of the built-in game client, but since it's rather complicated for non-Linux/pure BSD users, you may want to avoid wasting efforts in 1.9 until the next version.

Either that, or learn how to use wesnoth_addon_manager, which even beats me sometimes. :P

EDIT: actually, the aforementioned recommendation is in the Wesnoth 1.9.0 release announcement, under Known Bugs.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Exasperation
Posts: 462
Joined: June 8th, 2006, 3:25 am

Re: Putting up add-ons on 1.9

Post by Exasperation »

If you decide to try to use the wesnoth_addon_manager script, the necessary command to upload to the 1.9.x add-on server (or at least the one that I got to work under windows) is

Code: Select all

<full path to python.exe> <full path to wesnoth_addon_manager> -p 1.9.x -u <full path to your add-on>
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Putting up add-ons on 1.9

Post by Anonymissimus »

Exasperation wrote:If you decide to try to use the wesnoth_addon_manager script, the necessary command to upload to the 1.9.x add-on server (or at least the one that I got to work under windows) is

Code: Select all

<full path to python.exe> <full path to wesnoth_addon_manager> -p 1.9.x -u <full path to your add-on>
OK, how many of the authors who have their add-ons on the 1.9 server were doing this from a windows machine ? I've downloaded ATBX and your init-icon.png is a corrupted file, the same happened with my image files. So the uploading of binary files doesn't seem to work. Text-only files like .cfg and .lua work however, so in the case of ATBX it's (almost) sufficient.
I don't feel like trying to fix it since the addon_manager is usually pretty unimportant.
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
Exasperation
Posts: 462
Joined: June 8th, 2006, 3:25 am

Re: Putting up add-ons on 1.9

Post by Exasperation »

Well, since init-icon.png is both unfinished and unused (I had forgotten about moving it into the ATBX directory for testing purposes before the last time I uploaded), it doesn't matter in this instance, but I think you should probably file a bug report anyway.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Putting up add-ons on 1.9

Post by Anonymissimus »

I've uploaded from my ubuntu dual boot and unsurprisingly it worked, although the files are exactly the same. (a separate BfW installation isn't needed). A bug report isn't going to be of much use however since the seemingly only one who's capable of fixing it (esr) is never going to test on windows.
https://gna.org/bugs/?16649
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
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: Putting up add-ons on 1.9

Post by Max »

any chance it's caused by this line (data\tools\wesnoth\campaignserver_client.py):
z = gzip.GzipFile(mode = "w", fileobj = io)
(shouldn't it be set to wb?)

how do those files differ?
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Putting up add-ons on 1.9

Post by Anonymissimus »

Thx but silene "fixed" it. Uploading campaigns with the syntax described by Exasperation above should work now. I couldn't figure out how to do it with the "other" syntax however which you get informed about when running with -h option, but it seems relevant only for the old-style campaign syntax with the external .cfg file instead of _main.cfg.
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
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Re: Putting up add-ons on 1.9

Post by sur.nhm »

Not Completely Off-Topic
I know for sure that at least one add-on maintener (I8) is waiting for 1.9.1 before moving the add-on to 1.9 because of the uploading mechanics.
I'm not really around any more, but you can find me in TvTropes.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Putting up add-ons on 1.9

Post by Anonymissimus »

Replacing data/tools/campaignserver_client.py with the version from the source repository
http://svn.gna.org/viewcvs/wesnoth/trun ... y?view=log
should do the trick. Anyone able to handle wmllint should be able to handle the addon manager too.
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
User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Re: Putting up add-ons on 1.9

Post by Sapient »

I just used my 1.8 client and uploaded it to addons.wesnoth.org:15002

As a Windows user, that will probably be faster and easier for you than the python options.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."
User avatar
Alarantalara
Art Contributor
Posts: 789
Joined: April 23rd, 2010, 8:17 pm
Location: Canada

Re: Putting up add-ons on 1.9

Post by Alarantalara »

There still seems to be some problems in 1.9.1
While the addon manager works fine, I am told that my passphrase is incorrect for the addon when using Wesnoth itself.
User avatar
Astoria
Inactive Developer
Posts: 1007
Joined: March 20th, 2008, 5:54 pm
Location: Netherlands

Re: Putting up add-ons on 1.9

Post by Astoria »

Alarantalara wrote:There still seems to be some problems in 1.9.1
While the addon manager works fine, I am told that my passphrase is incorrect for the addon when using Wesnoth itself.
Never happened to me...
Formerly known as the creator of Era of Chaos and maintainer of The Aragwaithi and the Era of Myths.
Post Reply