Currently Online

Latest Posts

Topic: Disable fog of war for testing

ChemBro
Joined: 2009-05-30, 12:09
Posts: 53
Ranking
Likes to be here
Posted at: 2011-05-13, 15:26

Hi.

I don't know how I disable "fog of war" in widelands for testing purposes. As far as I know, it is possible with debug-enabled, but I don't know how. Could someone help me with this? Thank you.

Edit: aber helped me with "wl.Game().players[1].see_all = true". That is, what I was looking for.

Edited: 2011-05-13, 15:36
Top Quote
Thorian
Avatar
Joined: 2011-08-25, 12:20
Posts: 4
Ranking
Just found this site
Location: Ratisbona / Germany
Posted at: 2011-08-27, 19:45

Hello ChemBro,

i've applied the same as you.

"wl.Game().players[1].see_all = true"

Where I have to enter it? In which file?

Thanks for the help!

Edited: 2011-08-27, 19:46
Top Quote
hjd
Joined: 2011-06-12, 20:24
Posts: 164
Ranking
At home in WL-forums
Location: bugs.launchpad.net/widelands
Posted at: 2011-08-27, 19:58

Hello Thorian, and welcome to the forum!

If you are running a debug build, you can press f6 to open the debug console and enter it there.

However, a new win condition which turns off the fog of war was recently added to the development version, which makes this kind of testing a lot easier. For details, see https://bugs.launchpad.net/widelands/+bug/830412 . If you are not running a development version, you may try adding the win condition from http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/5944 , which I believe should work.

Edited: 2011-08-27, 20:11

Ships!

Top Quote
Thorian
Avatar
Joined: 2011-08-25, 12:20
Posts: 4
Ranking
Just found this site
Location: Ratisbona / Germany
Posted at: 2011-08-27, 21:01

Hello hjd,

i don`t run a devolopment version. How can i running a debug build? I use the ppa:timo-wingender/ppa WL Build 16.

If you are not running a development version, you may try adding the win condition from http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/5944 , which I believe should work.

Yes, it work. Thank you for your help!


Top Quote
hjd
Joined: 2011-06-12, 20:24
Posts: 164
Ranking
At home in WL-forums
Location: bugs.launchpad.net/widelands
Posted at: 2011-08-29, 21:18

We have another PPA for the development version, so the easiest option would probably be to use this. Be warned though, that the development version is mainly targeting testers and developers so it will be less stable than the regular builds and may even break from time to time. If you are ok with this, take a look at DownloadPage unde the heading "Unofficial development builds".

Alternatively, you can look at BuildingWidelands for how to compile Widelands yourself. It may sound hard, but it is actually quite straight-forward as long as you follow the instructions.


Ships!

Top Quote