Merge lp:~widelands-dev/widelands/bug1480928 into lp:widelands

Proposed by Jens Beyer
Status: Rejected
Rejected by: Jens Beyer
Proposed branch: lp:~widelands-dev/widelands/bug1480928
Merge into: lp:widelands
Diff against target: 64 lines (+5/-5)
5 files modified
tribes/atlanteans/woodcutter/conf (+1/-1)
tribes/barbarians/lumberjack/conf (+1/-1)
tribes/empire/lumberjack/conf (+1/-1)
world/immovables/trees/aspen/init.lua (+1/-1)
world/immovables/trees/oak/init.lua (+1/-1)
To merge this branch: bzr merge lp:~widelands-dev/widelands/bug1480928
Reviewer Review Type Date Requested Status
Jens Beyer Needs Resubmitting
Review via email: mp+270540@code.launchpad.net

Description of the change

Animation seems to loop to the first picture again.

Easy fix - remove 1ms of the animation ;-)

I believe it would not be good to remove the looping from animation in general. Other way would probably be tinkering with the fps, but I don't know if it takes fraction values like 10.001 or something.

To post a comment you must log in.
Revision history for this message
GunChleoc (gunchleoc) wrote :

I just tested it, and the oak is still getting up. Maybe we do need a switch in the animation after all to make sure that this is always clean (loop = true/false). I think we will need a second version of NumberGlob in graphics/animation.cc for this.

Revision history for this message
SirVer (sirver) wrote :

or a better timing information: "animate=falling once" or so.

Revision history for this message
Jens Beyer (qcumber-some) wrote :

Or, by cutting the animation one whole picture (=0.1s) earlier and making the lumberjacks idle more the same amount of time to prevent changing balancing.

Please test again if this is feasible approach. I have tested with different game FPS settings (99, 60, 25, 8) and I don't see the issue anymore.

I guess setting the animation duration just as long as there are images would be a practical approach of "once".

Revision history for this message
Jens Beyer (qcumber-some) :
review: Needs Resubmitting
Revision history for this message
GunChleoc (gunchleoc) wrote :

The trees are still getting up for me :(

Revision history for this message
TiborB (tiborb95) wrote :

Hey, I have created new branch https://code.launchpad.net/~widelands-dev/widelands/animation_loop , I am trying to address this from within C++ code, see there

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tribes/atlanteans/woodcutter/conf'
--- tribes/atlanteans/woodcutter/conf 2014-03-17 17:23:26 +0000
+++ tribes/atlanteans/woodcutter/conf 2015-09-10 13:51:19 +0000
@@ -11,7 +11,7 @@
112=playFX ../../../sound/sawmill/sawmill 230112=playFX ../../../sound/sawmill/sawmill 230
123=animation sawing 10000123=animation sawing 10000
134=object fall134=object fall
145=animation idle 2000145=animation idle 2100
156=createware log156=createware log
167=return167=return
1717
1818
=== modified file 'tribes/barbarians/lumberjack/conf'
--- tribes/barbarians/lumberjack/conf 2014-03-17 17:23:26 +0000
+++ tribes/barbarians/lumberjack/conf 2015-09-10 13:51:19 +0000
@@ -12,7 +12,7 @@
123=animation hacking 10000123=animation hacking 10000
134=playFX ../../../sound/spoken/timber 192134=playFX ../../../sound/spoken/timber 192
145=object fall145=object fall
156=animation idle 2000156=animation idle 2100
167=createware log167=createware log
178=return178=return
1818
1919
=== modified file 'tribes/empire/lumberjack/conf'
--- tribes/empire/lumberjack/conf 2014-03-17 17:23:26 +0000
+++ tribes/empire/lumberjack/conf 2015-09-10 13:51:19 +0000
@@ -12,7 +12,7 @@
123=animation hacking 10000123=animation hacking 10000
134=playFX ../../../sound/spoken/timber 156134=playFX ../../../sound/spoken/timber 156
145=object fall145=object fall
156=animation idle 2000156=animation idle 2100
167=createware log167=createware log
178=return178=return
1818
1919
=== modified file 'world/immovables/trees/aspen/init.lua'
--- world/immovables/trees/aspen/init.lua 2015-08-13 18:30:36 +0000
+++ world/immovables/trees/aspen/init.lua 2015-09-10 13:51:19 +0000
@@ -93,7 +93,7 @@
93 "seed=aspen_summer_sapling",93 "seed=aspen_summer_sapling",
94 },94 },
95 fall = {95 fall = {
96 "animate=falling 1200",96 "animate=falling 1100",
97 "transform=fallentree",97 "transform=fallentree",
98 },98 },
99 },99 },
100100
=== modified file 'world/immovables/trees/oak/init.lua'
--- world/immovables/trees/oak/init.lua 2015-08-13 18:30:36 +0000
+++ world/immovables/trees/oak/init.lua 2015-09-10 13:51:19 +0000
@@ -90,7 +90,7 @@
90 "seed=oak_summer_sapling",90 "seed=oak_summer_sapling",
91 },91 },
92 fall = {92 fall = {
93 "animate=falling 1200",93 "animate=falling 1100",
94 "transform=fallentree",94 "transform=fallentree",
95 },95 },
96 },96 },

Subscribers

People subscribed via source and target branches

to status/vote changes: