SCENARIO editor for ALL platforms
Moderator: Forum Moderators
SCENARIO editor for ALL platforms
There is a campaign/scenario editor in the works, but it is not finished yet. The purpose of this sticky is to let players know about it.
The wiki page is here: http://www.wesnoth.org/wiki/CampGen
The forum topic is here: http://www.wesnoth.org/forum/viewtopic.php?t=6925
If you are able to help with the project, it would be appreciated. It would be nice to eventually unite the editor with the official map editor.
The wiki page is here: http://www.wesnoth.org/wiki/CampGen
The forum topic is here: http://www.wesnoth.org/forum/viewtopic.php?t=6925
If you are able to help with the project, it would be appreciated. It would be nice to eventually unite the editor with the official map editor.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
Re: SCENARIO editor for ALL platforms
Campgen is written in python and the map editor in C++. It will not be so easy. Maybe a wesnoth library and an API to access to some game resources could be helpful.scott wrote:It would be nice to eventually unite the editor with the official map editor.
It will have to be completely rewritten. However, it has already been done once. Making a GUI with text and label elements isn't the hard part (well it is if you don't know how, which is most of us). Making a powerful but intuitive interface is just as much of a challenge. And, in the interim campgen will be usable.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
Yes, as I understand, the plan is to provide the necessary GUI elements to Wesnoth so it can be re-created. Probably not 1:1, e.g. things from wx like the layout algorithm or auto-scrolling for small windows might not be feasible.
But much of the GUI design can hopefully re-used, which should save a lot of work. The easiest part of the python version was in the beginning, when I just drew the 3 main dialogs in wxglade accoding to scott's IDL screenshots
Apart from that, the coding part shouldn't be much, most of the campgen code is auto-generated by wxglade, and the rest is lots and lots of event handlers for GUI elements. (Plus things already existing in Wesnoth, like WML parsing, map editor, campaign server.) The only really new code might be the story editor.
But much of the GUI design can hopefully re-used, which should save a lot of work. The easiest part of the python version was in the beginning, when I just drew the 3 main dialogs in wxglade accoding to scott's IDL screenshots

Apart from that, the coding part shouldn't be much, most of the campgen code is auto-generated by wxglade, and the rest is lots and lots of event handlers for GUI elements. (Plus things already existing in Wesnoth, like WML parsing, map editor, campaign server.) The only really new code might be the story editor.
CampGen
hey its just a suggestion but why dont u use visual basic its a much easier and manageable program. n e way i was also wondering if you could tell me how to export the completed scenario from the editor that is inside the game in the edit/launch menu thanks Alien



Last edited by alien on October 14th, 2005, 4:34 pm, edited 1 time in total.
Re: CampGen
Visual basic is not portable.alien wrote:hey its just a suggestion but why dont u use visual basic its a much easier and manageable program. n e way i was also wondering if you could tell me how to export the completed scenario from the editor that is inside the game in the edit/launch menu thanks Alien![]()
Re: CampGen
Nor is it easier, nor more manageable. Quite the opposite, in fact.lwa wrote:Visual basic is not portable.alien wrote:hey its just a suggestion but why dont u use visual basic its a much easier and manageable program. n e way i was also wondering if you could tell me how to export the completed scenario from the editor that is inside the game in the edit/launch menu thanks Alien![]()


It is, howevr, much less flexible, much less powerful, much less elegant, much less intuitive, much more error-prone, much harder to debug and infinitely more expensive. It would, however, open us up to contributions from hordes of really inferior, third-rate "programmers", and would only drive away the good (or halfway good) ones--and who cares about them, anyway?

"When a man is tired of Ankh-Morpork, he is tired of ankle-deep slurry" -- Catroaster
Legal, free live music: Surf Coasters at Double Down Saloon, Las Vegas on 2005-03-06. Tight, high-energy Japanese Surf-Rock.
Legal, free live music: Surf Coasters at Double Down Saloon, Las Vegas on 2005-03-06. Tight, high-energy Japanese Surf-Rock.
IMHO,
- using Python with wxWindows is a great architecture decision for the campaign editor. Keep at it.
- don't worry about 'integrating' the map editor and campaign editor too much. You can have a way to invoke the map editor from within the campaign editor, but I think that's all you really need. We can provide a few more command line options to the map editor to make it easy to use.
- Rewriting the campaign editor using the Wesnoth GUI and C++ would not be a good idea at all IMHO. The campaign editor is a GUI-intensive app, and the GUI tools available within Wesnoth are nowhere near up to the task. You want a real GUI library such as wxWindows (QT would also be fine).
- Great work! Please keep development of it.
David
- using Python with wxWindows is a great architecture decision for the campaign editor. Keep at it.
- don't worry about 'integrating' the map editor and campaign editor too much. You can have a way to invoke the map editor from within the campaign editor, but I think that's all you really need. We can provide a few more command line options to the map editor to make it easy to use.
- Rewriting the campaign editor using the Wesnoth GUI and C++ would not be a good idea at all IMHO. The campaign editor is a GUI-intensive app, and the GUI tools available within Wesnoth are nowhere near up to the task. You want a real GUI library such as wxWindows (QT would also be fine).
- Great work! Please keep development of it.
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Well, It's not implemented yet.I have some problems including my custom units to use in the editr. How can I do it?
But, you could manually add a [+units] section to a saved campaign, then re-open in CampGen, and it should parse them. Besides that, it already is on the todo list.
Any suggestion how to best implement it? My first idea would be an "import units" menu command, which opens a multi-selection file dialog, where you select all the unit .cfg files - on saving a campaign, they would be copied over to a "units" subfolder in the campaign dir and a [+units] section added to the campaign .cfg.
Ah, good. That was the original idea anyway.Good tool.... even as my campaign uses too many macros, I created a dummy campaign to help me with the level design
Thanks! And yes, I will continue it.. the main reason I started it was so I could make a campaign myself (which is somehow weird - I had to learn all the WML now anyway- using Python with wxWindows is a great architecture decision for the campaign editor. Keep at it.
- don't worry about 'integrating' the map editor and campaign editor too much. You can have a way to invoke the map editor from within the campaign editor, but I think that's all you really need. We can provide a few more command line options to the map editor to make it easy to use.
- Rewriting the campaign editor using the Wesnoth GUI and C++ would not be a good idea at all IMHO. The campaign editor is a GUI-intensive app, and the GUI tools available within Wesnoth are nowhere near up to the task. You want a real GUI library such as wxWindows (QT would also be fine).
- Great work! Please keep development of it.


About the integrated wesnoth GUI, it needs improvement in any case I think, even just for existing dialogs in the game (tree-display and multiple selection and a delete button for savegames comes to mind) and map editor - even if it won't get all features of campgen.
-
- Posts: 9
- Joined: October 5th, 2005, 4:31 pm
- Location: Great White North
I would love to use campgen, even if it isn't finished :) Unfortunatly I'm a little lost on how to install it. I've downloaded and intalled the latest version of Python, the campgen files (campgen.py .pyw and setup.py) all have the python icon now, but none of them work beyond flashing a command prompt breifly :P Any tips?