campaign stub: Campaign-How-To (A Simple Campaign)

Discussion and development of scenarios and campaigns for the game.

Moderators: Forum Moderators, Developers

campaign stub: Campaign-How-To (A Simple Campaign)

Postby Anonymissimus » October 22nd, 2008, 4:02 pm

(This post was added to this thread, original opening post is below)
A simple campaing is a minimum singleplayer campaign aimed at wml beginners because it's always easier to start by modifying something that is already working. Download from the add-ons server (1.11.x/1.12.x). It may be called "Campaign-How-To" in the addons list.
Any other information is in the add-on itsself. There is/was also a wiki site related to this add-on but I tend to not maintain it. ;)
Last edited by Anonymissimus on March 22nd, 2011, 11:13 pm, edited 5 times in total.
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
Anonymissimus
Developer
 
Posts: 2458
Joined: August 15th, 2008, 8:46 pm
Location: Germany

A Simple Campaign, version 0.1.0 [2]

Postby opensourcejunkie » October 22nd, 2008, 4:02 pm

Hey all, I'm starting a new campaign called..."A Simple Campaign" Inspired by the wiki's example (of the same name), I am setting out to write a skeleton campaign that new users can build off of. Well, to be completely honest, it's already pretty much finished (it's been a side project of mine for a while); I'm just advertising it now.

The sad thing is, today as I was reading through the wiki, I noticed that xer has already written a skeleton campaign! (jerk! ;-) But, since I've already written the campaign, I figured I'd post it anyway.

In addition to ASC, however, I also plan to write a step by step tutorial on how to edit ASC such that it can be morphed into a real campaign. The wiki campaign instructions as-is don't seem very newbie-friendly; as Marionette said, "There exists a large amount of information there, (but) much of it is heavily scattered or appears to be incomplete."

So, when Sceptre of Life gets me down, I'll work on this campaign tutorial. Hopefully it'll become something useful. As for ASC, I'll attach the campaign here, and link to it in the wiki.

cheers!
--OSJ
what if the Bible's claims about Christ depicted accurate, verifiable history? given some research, you might be surprised at the evidence...
opensourcejunkie
 
Posts: 547
Joined: August 11th, 2008, 3:19 pm

Re: A Simple Campaign, version 0.1.0

Postby woodmouse » October 22nd, 2008, 4:31 pm

Xer made a campaign skeleton
Check out my sprites!
User avatar
woodmouse
 
Posts: 1435
Joined: August 9th, 2008, 6:26 pm
Location: Finland

Re: A Simple Campaign, version 0.1.0

Postby opensourcejunkie » October 22nd, 2008, 4:51 pm

yeah, I acknowledged that in the post above (*offers his reading glasses :-) I created ASC before I found xer's. So, more or less, I've duplicated effort, but hey, it's no big deal. Besides, I like mine better - it has prettier comments :-).

The thing is, however, I don't think a campaign skeleton is enough. There are a lot of strange things that go on in between [campaign] and [/campaign], and in my short time here this has been the most frequent topic I see people confused about. So, the important thing is not ASC, but rather the tutorial that will accompany ASC.

Speaking of which, here's a link to it; I haven't developed much, but it's a start.
what if the Bible's claims about Christ depicted accurate, verifiable history? given some research, you might be surprised at the evidence...
opensourcejunkie
 
Posts: 547
Joined: August 11th, 2008, 3:19 pm

Re: A Simple Campaign, version 0.1.0

Postby Crushmaster » October 26th, 2008, 7:24 pm

I've played around with it some, and I like it. :) I'm looking forward to your additions to it.
God bless,
Crushmaster.
Godspeed, random person!
NeedGod
User avatar
Crushmaster
 
Posts: 378
Joined: August 9th, 2008, 3:38 pm
Location: United States

Re: A Simple Campaign, version 0.1.0

Postby opensourcejunkie » October 27th, 2008, 7:34 am

cool, tx :-)
what if the Bible's claims about Christ depicted accurate, verifiable history? given some research, you might be surprised at the evidence...
opensourcejunkie
 
Posts: 547
Joined: August 11th, 2008, 3:19 pm

Re: A Simple Campaign, version 0.1.0

Postby Bill_the_Cat » December 2nd, 2008, 9:38 pm

Ok. I've downloaded the file and moved it into the library/preferences/wesnoth/userdata/data/campaigns directory, but it refuses to show up on the campaign selection list, and I have no idea why. The only thing is that I had to create the userdata file, since there wasn't already one present. I don't know if that has to do with anything...
/noob

I'm running OSX 10.4.11.
Bill_the_Cat
 
Posts: 11
Joined: November 30th, 2008, 12:18 am

Re: A Simple Campaign, version 0.1.0

Postby Turuk » December 3rd, 2008, 12:13 am

Bill_the_Cat, this is not a campaign to play, but a template for creating your own campaign. You cannot access it as a playable campaign in game, but can look at the files in the folder in order to get an outline of how to set up your own campaign if you were writing one.
Currently traveling until 9/29.

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
Turuk
Sithslayer
 
Posts: 5241
Joined: February 28th, 2007, 8:58 pm

Re: A Simple Campaign, version 0.1.0

Postby Bill_the_Cat » December 3rd, 2008, 9:10 am

Turuk wrote:Bill_the_Cat, this is not a campaign to play, but a template for creating your own campaign. You cannot access it as a playable campaign in game, but can look at the files in the folder in order to get an outline of how to set up your own campaign if you were writing one.


I'm aware of that. I was simply following the instructions in the BuildingCampaignTutorial. I assumed from what it says there that there is enough data in the file to run the campaign and load the one scenario included therein. Is this not the case?
Bill_the_Cat
 
Posts: 11
Joined: November 30th, 2008, 12:18 am

Re: A Simple Campaign, version 0.1.0

Postby zookeeper » December 3rd, 2008, 12:09 pm

Bill_the_Cat wrote:Ok. I've downloaded the file and moved it into the library/preferences/wesnoth/userdata/data/campaigns directory, but it refuses to show up on the campaign selection list, and I have no idea why. The only thing is that I had to create the userdata file, since there wasn't already one present.

library/preferences/wesnoth/ is the userdata dir.
User avatar
zookeeper
WML Wizard
 
Posts: 9604
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: A Simple Campaign, version 0.1.0

Postby Bill_the_Cat » December 3rd, 2008, 5:54 pm

If I left click on the _main.cfg file for the campaign and open it with wesnoth I get the following message:
Picture 5.png

Even after I click "go on install" and the game loads I still don't have the campaign on the list.

Moving the data file outside of the userdata file makes no difference, either.

Sorry to be a pain in the ass. I'm keen to start learning to build scenarios, but the fact that I don't even know if I can test them is a bit frustrating.
Bill_the_Cat
 
Posts: 11
Joined: November 30th, 2008, 12:18 am

Re: A Simple Campaign, version 0.1.0

Postby Turuk » December 3rd, 2008, 6:13 pm

Bill_the_Cat, the _main.cfg is not something that can be played, it's part of the group of files that make up the campaign folder.

They tend to look like this:
…/simple_campaign/_main.cfg -- main file of the campaign
…/simple_campaign/scenarios/ -- directory for campaign scenario files
…/simple_campaign/maps/ -- directory for of maps
…/simple_campaign/units/ -- directory for of WML for campaign-specific units
…/simple_campaign/images/ -- directory for portraits, unit animation sprites, etc
…/simple_campaign/sounds/ -- directory for sound effects and music, if any
…/simple_campaign/utils/ -- directory for campaign-specific macros
…/simple_campaign/_server.pbl -- PBL file top be used for server uploads

I think that you are under the impression that if you run the campaign, it will launch the scenario and teach you how to write one? I am a bit confused on what you are looking for.

If you open OSJ's files, like _main.cfg in something like notepad or textedit, it will outline what has to go where in order to make a scenario. The other files do the same, providing the necessary setup and structure for each file and the overall folder itself in order to be able to write/publish a campaign.
Currently traveling until 9/29.

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
Turuk
Sithslayer
 
Posts: 5241
Joined: February 28th, 2007, 8:58 pm

Re: A Simple Campaign, version 0.1.0

Postby Bill_the_Cat » December 3rd, 2008, 7:30 pm

I'm not trying to play it. I'm just trying to get it to appear on my campaigns menu so that when I do build and add scenarios to it I can play and test them. I've opened the files in textedit and from what I saw it seemed like everything that the main program needs to recognize it as a valid campaign is there, and my question is why isn't it recognizing it and/or adding it to the campaign menu?
Bill_the_Cat
 
Posts: 11
Joined: November 30th, 2008, 12:18 am

Re: A Simple Campaign, version 0.1.0

Postby Turuk » December 3rd, 2008, 7:36 pm

It says above that you created a userdata file? You do not have to.

This is where you should insert the A Simple Campaign folder.

library/preferences/wesnoth/data/campaigns

Just open up the campaign folder and put it in there. It should then appear in your campaign list.
Currently traveling until 9/29.

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
Turuk
Sithslayer
 
Posts: 5241
Joined: February 28th, 2007, 8:58 pm

Re: A Simple Campaign, version 0.1.0

Postby Bill_the_Cat » December 3rd, 2008, 8:19 pm

Turuk wrote:It says above that you created a userdata file? You do not have to.

This is where you should insert the A Simple Campaign folder.

library/preferences/wesnoth/data/campaigns

Just open up the campaign folder and put it in there. It should then appear in your campaign list.


I tried that when it was suggested before and it still didn't work.
Bill_the_Cat
 
Posts: 11
Joined: November 30th, 2008, 12:18 am

Next

Return to Scenario & Campaign Development

Who is online

Users browsing this forum: Crazy_Kingcaillou and 3 guests