SCENARIO editor for ALL platforms

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

kanza=?``?``
Posts: 2
Joined: August 17th, 2006, 11:16 am

Post by kanza=?``?`` »

allefant wrote:
kanza=?``?`` wrote:To create a map, click on "Edit Map". This will open the built in Wesnoth Map Editorâ„¢

If i try to make new map it wont open!
You need to fill in the path to the wesnoth-editor.exe in the preferences for now, until I find out how to auto-detect it. [Anyone knows if Wesnoth will write a registry entry or something when installed under Windows?]

If you fill in the path there (and also the other pathes), then it should work. The pathes might be something like:

C:\Program Files\Wesnoth\images
C:\Program Files\Wesnoth\data
C:\Program Files\Wesnoth\userdata\data
C:\Program Files\Wesnoth\editor.exe

If it still won't work, please post the file stderr.txt which gets created whenever you run CampGen, it will contain the error message telling why the editor couldn't be run.
The problem was because Wesnoth files were in my desktop.

You shold uptate ''First unit'' deta in tutorial (online).Because there is v19 deta not v20 deta.
rooster600500
Posts: 39
Joined: September 2nd, 2006, 7:07 pm
Location: Mars

Post by rooster600500 »

whenever i make a unit with it i go to anim and it crashes
Dennis Finch wrote:"Ive just remembered something. Your boring,and my legs work."
Samuco
Posts: 38
Joined: September 24th, 2006, 10:19 am

Post by Samuco »

allefant wrote:
kanza=?``?`` wrote:To create a map, click on "Edit Map". This will open the built in Wesnoth Map Editorâ„¢

If i try to make new map it wont open!
You need to fill in the path to the wesnoth-editor.exe in the preferences for now, until I find out how to auto-detect it. [Anyone knows if Wesnoth will write a registry entry or something when installed under Windows?]

If you fill in the path there (and also the other pathes), then it should work. The pathes might be something like:

C:\Program Files\Wesnoth\images
C:\Program Files\Wesnoth\data
C:\Program Files\Wesnoth\userdata\data
C:\Program Files\Wesnoth\editor.exe

If it still won't work, please post the file stderr.txt which gets created whenever you run CampGen, it will contain the error message telling why the editor couldn't be run.
any ideas for the mac paths?

Ive got it working however what is the command thingy?
When i click edit map it doesnt work also.

any ideas?
Knight the

Script Master
User avatar
allefant
Units Database Administrator
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Post by allefant »

To use the Wesnoth editor, you have to fill in it's location under preferences. Campgen then will simply start it up. Alternatively, you can edit your map in the Wesnoth editor and only import it to Campgen (by selecting the map file you saved).

If you want to use the builtin map events editor (which also allows editing the map itself in a crude way), you can do that from the events dialog, just edit an event which opens the map placer (e.g. "start" or "prestart" or any "move to" event).

Hm, and I'm wondering now what updates this will need for the new terrain system - especially, will I have to make campgen incompatible with 1.2?
Emasher
Posts: 16
Joined: January 13th, 2007, 5:53 pm

Post by Emasher »

how do i download campgen for the mac

i can download the python thing but the actual .zip containing the application is missing is there a site where i can get it.
User avatar
allefant
Units Database Administrator
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Post by allefant »

Maybe this will help: http://www.wesnoth.org/wiki/CampGenOnMacOSX

If I had a Mac myself, I would create a "ready to click" .dmg like the windows .exe, but for now, installing wxpython is required.
Emasher
Posts: 16
Joined: January 13th, 2007, 5:53 pm

Post by Emasher »

i can esily download python but if i try to download the actual campgen it says file not found.

my question is: is there a site that i can download campgen from
User avatar
allefant
Units Database Administrator
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Post by allefant »

my question is: is there a site that i can download campgen from
Yes, of course, the OSX package is here: http://download.gna.org/campgen/campgen-0.25-OSX.zip

And just the python scripts are here: http://download.gna.org/campgen/campgen-0.25.tar.gz

I must admit, I don't know what is really different in the first one, neither of them contains python nor wxpython in any case.

[edit:]
Or get it directly from SVN: svn co svn://svn.gna.org/svn/campgen campgen
gyel
Posts: 4
Joined: January 25th, 2007, 10:37 pm

Post by gyel »

hi im not vary used to macs (i just got one) and i try to instal the campgen and it doesnt work...can somone help me? :roll: :?
User avatar
irrevenant
Moderator Emeritus
Posts: 3692
Joined: August 15th, 2005, 7:57 am
Location: I'm all around you.

Post by irrevenant »

I notice that Campgen appears to embed the map in the scenario. This means that:

(a) If I edit the map separately in the map editor, the scenario is updated.
(b) If I launch the map editor from Campgen, the original map isn't updated (I think).

Is it possible for Campgen to save the scenario so it loads the map dynamically?
User avatar
allefant
Units Database Administrator
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Post by allefant »

If you launch the map editor from Campgen, it exports the map data to a temporary file, passes its filename as a program option, and when the map editor exits, it imports the changed map.

So there *should* be no problems, if it doesn't work like that, file a bug report.

Wesnoth itself does not support external maps for scenarios, and as Campgen uses WML as source format, it would be rather tricky changing that. Basically, it's a WML limitation. If there is a scenario .cfg file which has something like

map_data="{filename}"

, then the preprocessor simply cuts and pastes the contents of filename there inside the string. A much better way would of course would be something like:

map_file="filename"

Now, I could in WML (after the preprocessor is done) read the name of the map file, and load from/save to that file. (In fact, I would be for removing the preprocessor completely, have functions instead of #define, and a proper importing mechanisms instead of {}..)

What I can easily add though is a way to export and import maps, I think that even was in an earlier version - would that help?
tw
Posts: 47
Joined: March 30th, 2007, 12:19 pm

Post by tw »

Campgen is generally good, but a few comments:

I get crashes and hangs when I set turns to -1 (meaning no limit).
Is it possible to stop it from expanding {PREPROCESSOR} stuff that it finds in a file?
Is it possible to stop it from stripping # comments?
I can't seem to move objects on the story dialogues, attempting to click and drag just places new ones.

But overall, it's a very good tool. Some stuff is best done in raw WML, but some best in CampGen.
My campaign, Town vs Gown, under development:
http://www.wesnoth.org/forum/viewtopic.php?t=15822
User avatar
Vendanna
Posts: 626
Joined: September 16th, 2006, 10:07 pm
Location: Spain

Post by Vendanna »

Hello, I tried to use the Campgen, but I don't managed to make it work and I think I'm doing something wrong.

I downloaded and installed Python 2.5 and Wxpython 2.8.3.0

Path C:\Javier\Games\python

I installed Campgen on C:\Javier\Games\python\Campgen and tried to run it (it gave me this error)
Traceback (most recent call last):
File "campgen.py", line 26, in <module>
File "zipextimporter.pyo", line 78, in load_module
File "gui_main.pyo", line 32, in <module>
File "zipextimporter.pyo", line 78, in load_module
File "wx\__init__.pyo", line 45, in <module>
File "zipextimporter.pyo", line 78, in load_module
File "wx\_core.pyo", line 4, in <module>
File "zipextimporter.pyo", line 91, in load_module
ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd
I suppose because wx\_core_.pyd was missing so I copied the python folder wx inside my campgen folder and tried to run it again and then I got this error

Runtime error

C:\Javier\Games\Campgen\Campgen.exe

This application has requested the runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

My system is windows ME (millenium)

Any help will be apreciated. thank you for your time.
"Mysteries are revealed in the light of reason."
User avatar
allefant
Units Database Administrator
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Post by allefant »

It seems, also from some other reports, that the .exe version only works under XP and Vista. For win98 and winME double-click the campgen.py (or campgen.pyw) file instead. I don't have ready access to Windows myself, so can't really say much more - any hints how to fix this would be appreciated.
User avatar
Vendanna
Posts: 626
Joined: September 16th, 2006, 10:07 pm
Location: Spain

Post by Vendanna »

Thank you for your reply!

Where I can get the Campgen.py (or Campgen.pyw) file, because I don't have it. It didn't came with the Campgen installer and I don't know how to obtain/download it.

Thank you for your time.
"Mysteries are revealed in the light of reason."
Post Reply