Latest Posts

Topic: Mapeditor and the new version

MegaMatze

Topic Opener
Joined: 2009-06-20, 16:06
Posts: 33
Ranking
Pry about Widelands
Location: Germany
Posted at: 2009-06-24, 10:52

Hi,

when I build a map now, will it still be openable with the comming build 14?

And another question: I can not use all of the triggers in the editor. Are some of them not implemented yet? For example, the Military-Influence-Trigger can not be selected.

Thanks in advance, MegaMatze


Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-06-24, 17:30

Hi MegaMatze ;),

when I build a map now, will it still be openable with the comming build 14?

Yes

I can not use all of the triggers in the editor. Are some of them not implemented yet? For example, the Military-Influence-Trigger can not be selected.

they are implemented, but they have no user interface yet. If you want to add these triggers, unfortunally you have to edit the event/trigger files manually. More information can be found here

Hope I was able to help you :)!

Cheers Nasenbaer


Top Quote
MegaMatze

Topic Opener
Joined: 2009-06-20, 16:06
Posts: 33
Ranking
Pry about Widelands
Location: Germany
Posted at: 2009-06-24, 21:31

Ah, yes that helped, thank's!

I will try my best with the manual editing of the triggers/events.

But do you know, if the dialogs for event/trigger-making will work in the upcoming build 14?


Top Quote
MegaMatze

Topic Opener
Joined: 2009-06-20, 16:06
Posts: 33
Ranking
Pry about Widelands
Location: Germany
Posted at: 2009-06-24, 22:07

I tried editing them manually. But I faild before even beginning.

I added "nozip=true" to the config-file. And now the editor saves in wmf-folders. I did not do anything with the map-folder. I just tried to start it in the game. And I got this error: http://i40.tinypic.com/263gg35.jpg

When it was saved as one single file, the error did not occur. And I didn't change anything in the files manually, so I guess there must be something wrong with the saving-routine.

I wanted to build my own little campain, but I think I'll just wait for the build 14 now. Maybe it will work there.

When I play my map after saving it in one single file, the triggers/events do not work. But when I look in the folder-saved versions trigger- event- and eventchain-file, all of my triggers/events are there. So it should work! Now I'm compleatly confused.

Here is my trigger, the simplest you could imagine. It should just pop up a message after 20 secounds.

--- trigger file ---

[after 20 sec]

type="time"

version="1"

wait_time="20"

last_start_time="0"

--- events file ---

[Message: Build fishers]

type="message_box"

version="2"

text="We are running out of food. Build 3 fisher huts."

window_title="Build 3 fisher"

is_modal="true"

width="400"

height="300"

button_00="Weiter"

--- event-chain file ---

[activate task: fisher]

repeating="false"

conditional_element_00="trigger"

conditional_element_00_data="after 20 sec"

event_00="Message: Build fishers"

current_event="0"

state="init"


Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-06-25, 07:07

MegaMatze wrote: I tried editing them manually. But I faild before even beginning. I added "nozip=true" to the config-file. And now the editor saves in wmf-folders. I did not do anything with the map-folder. I just tried to start it in the game. And I got this error: http://i40.tinypic.com/263gg35.jpg

ah yes I forgot about that bug. The filesystem was not properly handled in build13. There are some ways to workaround that issue, but as i see you are using windows, the easiest solution is surely that you download and install the feature freeze version for Build14

When I play my map after saving it in one single file, the triggers/events do not work. But when I look in the folder-saved versions trigger- event- and eventchain-file, all of my triggers/events are there. So it should work! Now I'm compleatly confused.

Did you check the "load map as scenario" box in the upper right of the map selection menu? From a quick look at your files the trigger should work just fine. face-smile.png

Cheers

Nasenbaer


Top Quote
MegaMatze

Topic Opener
Joined: 2009-06-20, 16:06
Posts: 33
Ranking
Pry about Widelands
Location: Germany
Posted at: 2009-06-25, 09:58

Wonderfull! That solved all of my problems. I've just overseen this button.


Top Quote
MegaMatze

Topic Opener
Joined: 2009-06-20, 16:06
Posts: 33
Ranking
Pry about Widelands
Location: Germany
Posted at: 2009-06-25, 18:31

But another problem occured face-sad.png

I installed the "feature freeze version for Build14" and the editor crashes, when I load my mao, that I have created unter the build 13 editor.

Is that because it is not the real build 14 but only a feature freeze version?

Sorry I get on your nerves. I'm just afraid, that all of my work is lost.


Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-06-25, 19:26

Well... I cannot reproduce the problem, that Widelands crashes when loading a map - however many strange things are happening face-grin.png the objects on a map get completely mxed up and opening the player menu let Widelands crash.

So what errormessages are printed into stderr.txt and stdout.txt when you load that map and widelands crashes?


Top Quote
MegaMatze

Topic Opener
Joined: 2009-06-20, 16:06
Posts: 33
Ranking
Pry about Widelands
Location: Germany
Posted at: 2009-06-25, 20:03

It seams to be something with the triggers. But that's a version, I didn't manually edit. And it is openable in the build 13-editor.


The stderr.txt says:

Caught exception (of type '11_wexception') in outermost handler!

The exception said: [../../../src/map_io/widelands_map_trigger_data_packet.cc:78] Triggers: [../../../src/profile/profile.cc:738] [] Section [after 20 sec], key 'last_start_time' not used (did you spell the name correctly?)

This should not happen. Please file a bug report on version svn4311(inoffical). and remember to specify your operating system.


The stdout.txt says:

Adding directory:.\/.\

Adding directory:.

No version file found

Adding directory: D:\Widelands

No version file found

Set home directory: C:\Dokumente und Einstellungen\Matze/.widelands

No version file found

SDL_VIDEODRIVER=&

Graphics: Trying Video driver: 0 windib SDL_VIDEODRIVER=windib

Graphics: Trying FULLSCREEN

Graphics: FULLSCREEN ENABLED

* GRAPHICS REPORT *

VIDEO DRIVER windib

hw surface possible 0

window manager available 1

blitz_hw 0

blitz_hw_CC 0

blitz_hw_A 0

blitz_sw 0

blitz_sw_CC 0

blitz_sw_A 0

blitz_fill 0

video_mem 0

vfmt 0xf3de20

size 1024 768

* END GRAPHICS REPORT *

hw avail:0Graphics: flags: a0000000

[] Section [global], key 'EXENAME' not used (did you spell the name correctly?)

No version file found

Parsing world bobs...

Parsing global bobs in world...

No version file found

Parsing world bobs...

Parsing global bobs in world...

Reading Elemental Data ... done!

Reading Player Names And Tribe Data ... done!

Reading Heights Data ... done!

Reading Terrain Data ... done!

Reading Map Objects ... done

Reading Player Start Position Data ... done!

Reading Bob Data ... done!

Reading Resources Data ... done!

Reading Map Extra Data ... done!

Reading Trigger Data ... Object_Manager: ouch! remaining objects lastserial: 101

WARNING: Hardware shutting down although graphics system is still alive!

Edited: 2009-06-25, 20:06

Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-06-25, 20:12

Ahh okay I think the version of that trigger is outdated. Best remove that trigger (either with the editor of build13 or with a texteditor directly in the files (all events that use the trigger must be changed as well)) save it and than reload it with the feature freeze version.

The best way of course would be to port the trigger to the new version (see the trigger reference for new style of that trigger).

Or you further work on your map with build13 and try to port it when the editor is more stable again (seems a bit broken at the moment face-confused.png )

Which way you choose - the map should (with some smaller fixes) work on build14 face-smile.png


Top Quote