Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-999262_part2 into lp:widelands

2014-07-19 Thread wl-zocker
I currently do not have much time to play, but here is my appraisal:
Mines, fishers, quarries: Leave them as they currently are.
Hunters: After thinking about is, you can add them to the list. Animal 
recovering is quite slow, so it is not really worth having many hunters.
Wells: Never send a message about them.
Lumberjacks: I think the current logic sends the message as soon as the worker 
does not find the needed resource for the first time (e.g. when all stones are 
gone and the stonemason wants to cut the next stone). This would mean that the 
player gets informed after every tree the lumberjack cuts down. Since I usually 
do not watch my lumberjacks, I do not know how often this happens. Is it 
possible [*] to send a message when no tree has been cut for x minutes? (For 
simplicity, you can take the time currently used for the other messages.) 
Otherwise, just implement it. I (or other players) will complain if I am/they 
are unsatisfied.

[*] When I write of possible is such suggestions, I mean "technically possible 
and feasible by humans with an adequate amount of work/time without cluttering 
the code too much or feasible via script written in an adequate amount of time 
that does the work in not too much time".
-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-999262_part2/+merge/227348
Your team Widelands Developers is requested to review the proposed merge of 
lp:~widelands-dev/widelands/bug-999262_part2 into lp:widelands.

___
Mailing list: https://launchpad.net/~widelands-dev
Post to : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp


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

2014-07-19 Thread Hans Joachim Desserud


Diff comments:

> === modified file 'compile.sh'
> --- compile.sh2014-06-18 17:11:08 +
> +++ compile.sh2014-07-19 14:18:30 +
> @@ -26,15 +26,14 @@
>  # TODO  user interaction and functions for installation including a check
>  # TODO  whether the selected directories are writeable and a password check
>  # TODO  to become root / Administrator if the dirs are not writeable.
> +# TODO(code review): probably no longer needed?
>  
>  
>  
>  ##
>  # Definition of some local variables #
>  ##
> -var_build=0 # 0 == debug(default), 1 == release
> -var_build_lang=0 # 0 = false 
> -var_updater=0 # 0 = false
> +buildtool="" #Use ninja by default, fall back to make if that is not 
> available.
>  ##
>  
>  
> @@ -49,94 +48,51 @@
>echo "  source code."
>exit 1
>  fi
> +#TODO(code review): Are these returns in various methods necessary?
> +#It doesn't seem like anything ever checks the return, and in case
> +#of something bad, it just calls exit anyways (see above)
>  return 0
>}
>  
> -  # Ask the user what parts and how Widelands should be build.
> -  # And save the values
> -  user_interaction () {
> -local_var_ready=0
> -while [ $local_var_ready -eq 0 ]
> -do
> -  echo " "
> -  echo "  Should Widelands be build in [r]elease or [d]ebug mode?"
> -  echo " "
> -  read local_var_choice
> -  echo " "
> -  case $local_var_choice in
> -r) echo "  -> Release mode selected" ; var_build=1 ; 
> local_var_ready=1 ;;
> -d) echo "  -> Debug mode selected" ; var_build=0 ; local_var_ready=1 
> ;;
> -*) echo "  -> Bad choice. Please try again!" ;;
> -  esac
> -done
> -local_var_ready=0
> -if [ $var_build -eq 0 ] ; then
> -  while [ $local_var_ready -eq 0 ]
> -  do
> -echo " "
> -echo "  Should translations be build [y]/[n]?"
> -echo " "
> -read local_var_choice
> -echo " "
> -case $local_var_choice in
> -  y) echo "  -> Translations will be build" ; var_build_lang=1 ; 
> local_var_ready=1 ;;
> -  n) echo "  -> Translations will not be build" ; var_build_lang=0 ; 
> local_var_ready=1 ;;
> -  *) echo "  -> Bad choice. Please try again!" ;;
> -esac
> -  done
> +  set_buildtool () {
> +#Defaults to ninja, but if that is not found, we use make instead
> +if [ `command -v ninja` ] ; then
> +  buildtool="ninja"
> +#On some systems (most notably Fedora), the binary is called ninja-build
> +elif [ `command -v ninja-build` ] ; then
> +  buildtool="ninja-build"
> +else
> +  buildtool="make"
>  fi
> -return 0
>}
>  
># Check if directories / links already exists and create / update them if 
> needed.
>prepare_directories_and_links () {
> -# remove build/compile directory (this is the old location)
> -if [ -e build/compile ] ; then
> -  echo " "
> -  echo "  The build directory has changed"
> -  echo "  from ./build/compile to ./build."
> -  echo "  The old directory ./build/compile can be removed."
> -  echo "  Please backup any files you might not want to lose."
> -  echo "  Most users can safely say yes here."
> -  echo "  Do you want to remove the directory ./build/compile? 
> [y]es/[n]o"
> -  echo " "
> -  read local_var_choice
> -  echo " "
> -  case $local_var_choice in
> -y) echo "  -> Removing directory ./build/compile. This may take a 
> while..."
> -rm locale
> -rm -r build/compile || true
> -if [ -e build/compile ] ; then
> - echo "  -> Directory could not be removed. This is not fatal, 
> continuing."
> -else
> - echo "  -> Directory removed."
> -fi ;;
> -n) echo "  -> Left the directory untouched." ;;
> -*) echo "  -> Bad choice. Please try again!" ;;
> -  esac
> -fi
> -
> -test -d build || mkdir -p build
>  test -d build/locale || mkdir -p build/locale
>  test -e locale || ln -s build/locale
>  
> -cd build
> -
>  return 0
>}
>  
># Compile Widelands
>compile_widelands () {
> -var_build_type=""
> -if [ $var_build -eq 0 ] ; then
> -  var_build_type="Debug"
> +echo "Builds a debug build by default. If you want a Release build, "
> +echo "you will need to build it manually passing the"
> +echo "option -DCMAKE_BUILD_TYPE=\"Release\" to cmake"
> +
> +#TODO(code review): WL_PORTABLE might be going away, see 
> https://bugs.launchpad.net/widelands/+bug/1342228
> +
> +if [ $buildtool = "ninja" ] || [ $buildtool = "ninja-build" ] ; then
> +  cmake -G Ninja -DWL_PORTABLE=true .. -DCMAKE_BUILD_TYPE="Debug"
>  else
> -  var_build_type="Release"
> +  cmake -DWL_PORTABLE=true .. -DCMAKE_BUILD_TYPE="Debug"
>  fi
>  
> -echo " 

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-999262_part2 into lp:widelands

2014-07-19 Thread GunChleoc
Well, it's completely configurable and I'm open to suggestions. We could also 
make the frequency of messages configurable, so lumberjacks and hunters will 
only pop up once in a while.

Since I don't play often, I'm happy to hear from code illiterates as to what 
would be appropriate :)
-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-999262_part2/+merge/227348
Your team Widelands Developers is requested to review the proposed merge of 
lp:~widelands-dev/widelands/bug-999262_part2 into lp:widelands.

___
Mailing list: https://launchpad.net/~widelands-dev
Post to : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp