[Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread GunChleoc
The proposal to merge lp:~widelands-dev/widelands/toggle_immovables into lp:widelands has been updated. Commit Message changed to: Make display of bobs and immovables toggable. Hotkeys are CTRL-<1-4>. For more details, see:

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread GunChleoc
I removed a blank line - xgettext can only pick up comments that are immediately above the gettext invocation, so a blank space might keep it from picking up the comment. Code still LGTM, will do a bit of testing once the compiler is finished. --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-986611-cppcheck-uninitialized-variables into lp:widelands

2017-08-15 Thread GunChleoc
Review: Resubmit I have now gone through the code base and removed all empty string initializations. I also found a few more uninitialized variables in MapTriangleRegion. If you agree with these changes, the branch will be ready. --

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-986611-cppcheck-uninitialized-variables into lp:widelands

2017-08-15 Thread GunChleoc
The proposal to merge lp:~widelands-dev/widelands/bug-986611-cppcheck-uninitialized-variables into lp:widelands has been updated. Commit Message changed to: Initialize a bunch of uninitialized member variables, adding constructors where necessary. Turned some enums into enum classes. Removed

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash into lp:widelands

2017-08-15 Thread GunChleoc
@bunnybot merge -- https://code.launchpad.net/~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash/+merge/318986 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash.

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash into lp:widelands

2017-08-15 Thread GunChleoc
Thanks for the review :) Kaputtnik has already tested this branch, so I'll merge trunk and then get this in. Diff comments: > > === modified file 'src/logic/map_objects/tribes/ship.cc' > --- src/logic/map_objects/tribes/ship.cc 2017-07-05 19:21:57 + > +++

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread kaputtnik
Thanks for clarification :-) -- https://code.launchpad.net/~widelands-dev/widelands/toggle_immovables/+merge/328977 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/toggle_resources. ___ Mailing list:

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread SirVer
> Didn't test it yet, but i think the order should be the same as we have icons > in the tools menu? true that. done. > If the hotkey for buildhelp is changed in editor, will it still be 'space' > for playing games? It is not changed. It is duplicated - space still works. But for symmetry I

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
OK, the branch reworked, not there are two distinct switches. Also thanks for the wiki page, I will insert there some info... -- https://code.launchpad.net/~widelands-dev/widelands/ai_training_switch/+merge/329008 Your team Widelands Developers is requested to review the proposed merge of

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread kaputtnik
Ah, forgotton: If the hotkey for buildhelp is changed in editor, will it still be 'space' for playing games? -- https://code.launchpad.net/~widelands-dev/widelands/toggle_immovables/+merge/328977 Your team Widelands Developers is subscribed to branch

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread kaputtnik
Didn't test it yet, but i think the order should be the same as we have icons in the tools menu? That is from left to right: - .. - Immovables (here: 3), suggestion: 2 - Animals (here: 4), suggestion: 3 - Resources (here: 2), suggestion: 4 - .. So there a little dependency with the visual

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread SirVer
I changed the hotkeys to use CTRL 1 to 4, doubling CTRL 1 with SPACE (which is a slight ward). But CTRL 1-4 for the layers feels really good and quick. What do you think? -- https://code.launchpad.net/~widelands-dev/widelands/toggle_immovables/+merge/328977 Your team Widelands Developers is

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread SirVer
The proposal to merge lp:~widelands-dev/widelands/toggle_immovables into lp:widelands has been updated. Commit Message changed to: Make display of bobs and immovables toggable. Hotkeys are CTRL-<1-3>. For more details, see:

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_resources into lp:widelands

2017-08-15 Thread noreply
The proposal to merge lp:~widelands-dev/widelands/toggle_resources into lp:widelands has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~widelands-dev/widelands/toggle_resources/+merge/328958 -- Your team Widelands Developers is subscribed to

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
Most people dont investigate content of .widelands folder... I dont know if this can be done and how complex would be -- https://code.launchpad.net/~widelands-dev/widelands/ai_training_switch/+merge/329008 Your team Widelands Developers is requested to review the proposed merge of

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread kaputtnik
Done: https://wl.widelands.org/wiki/Ai%20Training/ > This is very uncommon to have such explanatory files in home folder. I just hate empty folders in my home directory... ;) -- https://code.launchpad.net/~widelands-dev/widelands/ai_training_switch/+merge/329008 Your team Widelands Developers

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
This is very uncommon to have such explanatory files in home folder. But wai files could contain a comment with the wiki link Wiki is good idea I can do it, but somebody could create empty wiki page for this topic, I am not that familiar with our wiki to do it myself... --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread kaputtnik
I want to mention my suggestion from the forum: > Maybe adding a text file in there (in the folder ai), describing > what this folder is used for. Something like: > "This folder is used when using the command line switch > 'aitrainingmode'. If you are interested in training the ai, > see the

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash into lp:widelands

2017-08-15 Thread Klaus Halfmann
Will try that one now: https://ci.appveyor.com/api/buildjobs/qsar8xtu6u7jsjjv/artifacts/Widelands-_widelands_dev_widelands_bug_1664052_expedition_shipwindow_crash-1872-Debug-x64.exe -- https://code.launchpad.net/~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash/+merge/318986 Your

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash into lp:widelands

2017-08-15 Thread Klaus Halfmann
Review: Approve review, compile What I get is that you moved around some code from ::init to the CTor for that shipwindow. See som inline comments. I see no obvious Problems in that code, no let mey try to download it from appvoyer ors such. Diff comments: > > === modified file

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
First of all, wai files are not merge-able. So your results can not be combined with training results of someone else done concurrently. The training was explained on the forum, but shortly, you need to pick generated wai of some good AI performer and put it into 4 source wai files. And go on

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash into lp:widelands

2017-08-15 Thread Klaus Halfmann
Mhh, this looks familiar, we had a similar Issue where some Notfication was caught by some other ship. Ill try to have a lok tonight. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1664052-expedition-shipwindow-crash/+merge/318986 Your team Widelands Developers is subscribed to

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
This is good comment, what about two switches: --ai_training --auto_speed -- https://code.launchpad.net/~widelands-dev/widelands/ai_training_switch/+merge/329008 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/ai_training_switch into

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread GunChleoc
I just gave it a quick spin, the switch is working :) I have just been thinking of another use case: What if players want to train the AI while playing the game? The autospeed would be a problem then. If you think this use case won't happen, the branch can go in after the nits have been fixed.

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
Diff comments: > > === modified file 'src/ai/defaultai.cc' > --- src/ai/defaultai.cc 2017-08-01 12:03:03 + > +++ src/ai/defaultai.cc 2017-08-15 08:22:00 + > @@ -482,10 +482,15 @@ > void DefaultAI::late_initialization() { > player_ =

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-986611-cppcheck-uninitialized-variables into lp:widelands

2017-08-15 Thread GunChleoc
I am currently running the report, which will probably take all day. I'll then run it again without the string init to see if it makes a difference. I'll then revert any changes in this branch that won't fix the report. --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread GunChleoc
Diff comments: > > === modified file 'src/ai/defaultai.cc' > --- src/ai/defaultai.cc 2017-08-01 12:03:03 + > +++ src/ai/defaultai.cc 2017-08-15 08:22:00 + > @@ -482,10 +482,15 @@ > void DefaultAI::late_initialization() { > player_ =

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_resources into lp:widelands

2017-08-15 Thread GunChleoc
OK, let's leave this as it is then. -- https://code.launchpad.net/~widelands-dev/widelands/toggle_resources/+merge/328958 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/buildhelp_overlay. ___ Mailing list:

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread TiborB
I left a comment for you in the diff to one of your comments Diff comments: > > === modified file 'src/ai/defaultai.cc' > --- src/ai/defaultai.cc 2017-08-01 12:03:03 + > +++ src/ai/defaultai.cc 2017-08-15 08:22:00 + > @@ -482,10 +482,15 @@ > void

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_resources into lp:widelands

2017-08-15 Thread SirVer
@bunnybot merge -- https://code.launchpad.net/~widelands-dev/widelands/toggle_resources/+merge/328958 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/buildhelp_overlay. ___ Mailing list:

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-986611-cppcheck-uninitialized-variables into lp:widelands

2017-08-15 Thread SirVer
> Well, it's just the same as initializing numbers to 0 - cppcheck is > complaining, so I'm trying to get rid of that noise in the report. That would be wrong though - plain old datatypes (POD) are not initialized in cpp, so numbers are indeed a random value if not properly initialized.

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-986611-cppcheck-uninitialized-variables into lp:widelands

2017-08-15 Thread GunChleoc
Well, it's just the same as initializing numbers to 0 - cppcheck is complaining, so I'm trying to get rid of that noise in the report. The actual error message is: src/game_io/game_preload_packet.h:38: (style) The struct 'GamePreloadPacket' does not have a constructor although it has private

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/ai_training_switch into lp:widelands

2017-08-15 Thread GunChleoc
I have added some comments to the code and gotten rid of a duplicate dynamic cast in interactive base. -- https://code.launchpad.net/~widelands-dev/widelands/ai_training_switch/+merge/329008 Your team Widelands Developers is requested to review the proposed merge of

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_resources into lp:widelands

2017-08-15 Thread GunChleoc
Testing works. I'll leave it up to you if you want to real with the auto-switchon in this merge request or in the follow-up branch. -- https://code.launchpad.net/~widelands-dev/widelands/toggle_resources/+merge/328958 Your team Widelands Developers is subscribed to branch

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_immovables into lp:widelands

2017-08-15 Thread GunChleoc
Review: Approve Code LTGM. Let's wait with merging until we have decided on the hotkeys. -- https://code.launchpad.net/~widelands-dev/widelands/toggle_immovables/+merge/328977 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/toggle_resources.

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/toggle_resources into lp:widelands

2017-08-15 Thread GunChleoc
Review: Approve > OverlayLevel is part of the public API of this class and kLevelForBuildHelp > should never be used when 'register_overlay' is called. I therefore opted to > not make it part of the enum class to make misuse harder. This has convinced me, plus that we really don't want to use

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/buildhelp_overlay into lp:widelands

2017-08-15 Thread noreply
The proposal to merge lp:~widelands-dev/widelands/buildhelp_overlay into lp:widelands has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~widelands-dev/widelands/buildhelp_overlay/+merge/328956 -- Your team Widelands Developers is subscribed

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/buildhelp_overlay into lp:widelands

2017-08-15 Thread GunChleoc
Review: Approve Yes, this is ready :) @bunnybot merge -- https://code.launchpad.net/~widelands-dev/widelands/buildhelp_overlay/+merge/328956 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/buildhelp_overlay. ___