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

2019-09-15 Thread GunChleoc
The proposal to merge lp:~widelands-dev/widelands/ferry into lp:widelands has been updated. Status: Needs review => Work in progress For more details, see: https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 -- Your team Widelands Developers is subscribed to branch lp:~

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

2019-09-08 Thread bunnybot
Continuous integration builds have changed state: Travis build 5418. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/582382256. Appveyor build 5188. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5188

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

2019-09-07 Thread bunnybot
Continuous integration builds have changed state: Travis build 5408. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/582051006. Appveyor build 5178. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5178.

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

2019-09-07 Thread Benedikt Straub
Pushed a fix for worker creation. As soon as you now trigger an economy update (e.g. by building a flag), the necessary tools are transported from the HQ to the warehouse and there turned into workers. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands

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

2019-09-06 Thread GunChleoc
Hm, at this point I'm wondering whether it might be easier to allow ferries to carry workers and have them waiting for it at the nearest flag. Then we would not need the separate economies. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers

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

2019-09-06 Thread Benedikt Straub
No, the workshop just skips everything because no tools are needed. I´m trying to implement that the tools will be transported from one warehouse to another one so the missing workers can be created in the correct economy… -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/35188

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

2019-09-05 Thread kaputtnik
Looks like the metal workshop 'hangs', it always shows 'The Economy doesn't need the ware Bradpaddle', although the game run more than 5 Minutes. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/wi

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

2019-09-03 Thread bunnybot
Continuous integration builds have changed state: Travis build 5382. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/580127580. Appveyor build 5152. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5152

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

2019-09-03 Thread GunChleoc
When I have 2 economies only liked by a waterway, the metal workshop won't produce the necessary wares - I expect the request is generated by the wrong warehouse. Savegame: https://bugs.launchpad.net/widelands/+bug/1584203/comments/50 -- https://code.launchpad.net/~widelands-dev/widelands/ferry

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

2019-09-03 Thread GunChleoc
And another thing that can be improved in checkstep, but will probably be non-trivial: https://bugs.launchpad.net/widelands/+bug/1584203/comments/48 I'd be OK with doing this in a follow-up branch. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands De

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

2019-09-03 Thread GunChleoc
I have pushed a commit that shuts up clang compiler warnings, so you need to pull before continuing to work. I think that Checkstep should ignore waterways that don't have ferries - I have attached a savegame to illustrate the issue. https://bugs.launchpad.net/widelands/+bug/1584203/comments/47

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

2019-09-02 Thread Benedikt Straub
Implemented your suggestion for Ferry and clarified the comment in EconomyDataPacket. Economy::create_requested_workers is called directly from balance() for every economy, so we can just ignore it for ware ecos. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your tea

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

2019-08-31 Thread GunChleoc
I have pushed a commit with a comment. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___ Mailing list: https://launchpad.net/~widelan

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

2019-08-31 Thread Benedikt Straub
Savegame compatibility hack is up :) Thanks for the review and codestyle. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___ Mailing

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

2019-08-30 Thread bunnybot
Continuous integration builds have changed state: Travis build 5359. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/578495337. Appveyor build 5129. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5129

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

2019-08-29 Thread bunnybot
Continuous integration builds have changed state: Travis build 5359. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/578495337. Appveyor build 5129. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-512

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

2019-08-29 Thread GunChleoc
I have pushed another commit with code review. I'm done with this for now. I also did a grep on data and test for lua changes, and it looks like we didn't miss anything. The following 2 bits in the code are a bit complicated and could do with testing: * worker creation over multiple economies

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

2019-08-29 Thread GunChleoc
I have pushed a new commit with a code style review. I'll have to return later to go through the discussion. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. _

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

2019-08-29 Thread Benedikt Straub
I just had an idea how I might just perhaps be able to write savegame compatibility, give me a few days to try it out... -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. _

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

2019-08-28 Thread kaputtnik
I get some text conflicts when merging trunk. Benedikt, can look into this and make the call for merging? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry.

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

2019-08-28 Thread TiborB
I am also for merging into trunk to get better testing. Personally I dont like splitting the economy into two parallel economies, but if there is a consensus about this... -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to br

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

2019-08-27 Thread Benedikt Straub
The AI will simply ignore the new feature, it will continue playing exactly as before. There are some AI code parts that should be looked into eventually (I added TODOs there), but they should most likely have no effect whatever as long as it doesn´t build a waterway. This branch was tested qui

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

2019-08-27 Thread kaputtnik
Will it be problem if the AI can't handle ferrys? Need this branch more testing? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___

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

2019-08-17 Thread TiborB
The status regarding AI is that it is not supported and probably not be anytime soon if ever. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry.

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

2019-08-17 Thread Klaus Halfmann
Ohh, what a history, but I must confess , I lost track. Can we merge this now (as only map with a falg are affcetd anyway?) -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. __

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

2019-08-17 Thread Benedikt Straub
What´s the status here? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___ Mailing list: https://launchpad.net/~widelands-dev Post to

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

2019-08-09 Thread bunnybot
Continuous integration builds have changed state: Travis build 5300. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/569856062. Appveyor build 5073. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5073

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

2019-06-28 Thread bunnybot
Continuous integration builds have changed state: Travis build 5254. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/551923331. Appveyor build 5033. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5033

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

2019-06-28 Thread bunnybot
Continuous integration builds have changed state: Travis build 5251. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/551745114. Appveyor build 5030. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-5030.

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

2019-06-21 Thread bunnybot
Continuous integration builds have changed state: Travis build 5208. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/548539708. Appveyor build 4987. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-498

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

2019-06-15 Thread TiborB
I am thinking a lot about this feature, but for AI it is relay difficult. On most maps it will not be applicable and AI should be very cautious to use it at all. It has complex logic for implementation. So the conclusion is that it is not worth the effort to implement in AI. What could be consi

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

2019-06-15 Thread Benedikt Straub
Whether waterways/ferries are enabled can be checked as map.get_waterway_max_length() >= 2 Typically, they are enabled only on maps where they make sense. Waterways have a maximum length that is map-dependent. If two flags can be connected both by a new road and by a new waterway, the AI shou

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

2019-06-14 Thread TiborB
Also - another idea: It would be nice if the ferries were per economy and AI would know in advance if the waterroad will be supplied by a ferry immediately = if there is an available ferry. Without painfully calculating whatever. The logic would be - AI is considering connecting flags A and B -

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

2019-06-14 Thread TiborB
Another question is how can AI know if ferries are necessary. In case of ships - it builds shipyard and ports always - if there are portspaces. With ferries it can check if map has a water - but this is not sufficient check. Most maps have water, but will not need ferries at all. So I see a lot

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

2019-06-11 Thread TiborB
AI currently is not able to cope with multiple oceans in the case of ships, just to remind this fact... -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. _

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

2019-06-11 Thread Benedikt Straub
No, because it can be close to several unconnected oceans, just like a shipyard. You could keep a list of all ferry-reachable fields within the workarea of a ferry yard (*), and then check for a given waterway whether a CheckStepFerry-approved path exists from any node on the waterway to any of

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

2019-06-11 Thread TiborB
And is there any link between ferryyard and a fleet? Can I query the waterroad if if has a ferryyard to provide it with ferry? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry.

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

2019-06-11 Thread Benedikt Straub
To get all ferries in a fleet: Waterway::get_fleet() or Ferry::get_fleet() FerryFleet::count_ferries() Counting stuff per player should not be needed, count per FerryFleet instead. I´ll add some functions to query a waterway whether it has a ferry, and to query the fleet how many waterways are une

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

2019-06-11 Thread TiborB
Is there any function that returns number of ferries for a player or Fleet? Also I presume there is a way how to query the waterroad if it has a ferry... -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~wideland

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

2019-06-11 Thread TiborB
For ships the single ship is enough to attend all ports, with ferries it is the opposite, you need the same number of ferries as waterroads. It would be convenient if AI can built "virtual roads" - from flag to flag, but if crossing the water this virtual road would break down into 3 roads - 2x

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

2019-06-11 Thread Benedikt Straub
Launchpad limits the diff preview to the first 5000 lines. The other >9000 lines remain hidden… A MOVECAPS_FERRY is not possible. For MOVECAPS_WALK and MOVECAPS_SWIM, you always know that if two adjacent nodes both have this movecap, a bob that also has that movecap can pass directly from one n

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

2019-06-10 Thread TiborB
Can ferries be transferred by ships? If not in some maps more then 1 ferryyard can be needed. I had an impression that waterroads will work the same as normal roads, but now I see that quite a lot of management is needed for them... -- https://code.launchpad.net/~widelands-dev/widelands/ferry/

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

2019-06-10 Thread TiborB
I cannot see that method in the diff, so it is probably something older, but fine... AI will need to use CheckStepFerry or whatever to get list of all fields from which regular road can lead, I will investigate it... Please look at this code: https://bazaar.launchpad.net/~widelands-dev/widelan

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

2019-06-10 Thread Benedikt Straub
There is a method Game::send_player_build_waterway(int32_t, Path&) that works just like for roads. Waterways have a special placement rule: They can go along any edge which is located between two water triangles. They can therefore reach all fields with MOVECAPS_SWIM plus some other fields. Alw

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

2019-06-10 Thread TiborB
AI uses send_player_build_road() to build roads, I tried to find something like send_player_build_waterway() but nothing like this exists, correct? Also, does particular fields have some MOVECAPS, like for roads: f->nodecaps() & MOVECAPS_WALK -- https://code.launchpad.net/~widelands-dev/wideland

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

2019-06-10 Thread Benedikt Straub
Diff comments: > > === modified file 'src/ai/ai_help_structs.h' > --- src/ai/ai_help_structs.h 2019-05-25 08:20:22 + > +++ src/ai/ai_help_structs.h 2019-05-31 11:03:05 + > @@ -78,6 +78,7 @@ > kUpgradeExtends, > kLogRefiner, > kIronMine, > + // TODO(Nordfriese):

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

2019-06-10 Thread TiborB
I added some question in the diff Diff comments: > > === modified file 'src/ai/ai_help_structs.h' > --- src/ai/ai_help_structs.h 2019-05-25 08:20:22 + > +++ src/ai/ai_help_structs.h 2019-05-31 11:03:05 + > @@ -78,6 +78,7 @@ > kUpgradeExtends, > kLogRefiner, > kIronMin

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

2019-06-08 Thread GunChleoc
I'll need to set aside a weekend for this, so it can take some time until I get around to it. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry.

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

2019-06-08 Thread Klaus Halfmann
Now, how do we get progress here? Will try to play this again on Cavisson -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___ Mailing l

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

2019-05-31 Thread bunnybot
Continuous integration builds have changed state: Travis build 5106. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/539673312. Appveyor build 4887. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4887

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

2019-05-28 Thread bunnybot
Continuous integration builds have changed state: Travis build 5077. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/538358799. Appveyor build 4857. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4857.

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

2019-05-28 Thread bunnybot
Continuous integration builds have changed state: Travis build 5075. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/538201201. Appveyor build 4855. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4855.

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

2019-05-25 Thread GunChleoc
We are merging a lot of branches today, so maybe do the merging tomorrow and ping me so I'll take over and have a look? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. __

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

2019-05-22 Thread Benedikt Straub
That assert is in trunk – it´s our famous Fleet::is_path_favourable problem... A reason this is not being merged yet is, GunChleoc wanted to check if we can merge this without breaking savegame compatibility (I think it´s not possible). I agree that apart from that this branch should be merged so

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

2019-05-18 Thread Klaus Halfmann
Review: Needs Fixing testplay I played Calvission again fo about 4 hours gametime. This was fine for the most parts, I found some of the expected Issued: e.g. Buildings not attachted to roads dont get workers. I found one Issue where ferries are not built. But now I hit an seertion that should be

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

2019-05-16 Thread bunnybot
Continuous integration builds have changed state: Travis build 5000. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/533393374. Appveyor build 4781. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4781

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

2019-05-16 Thread Benedikt Straub
Thanks for the savegame :) There were three different bugs overlayed here. All of them are fixed now. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. _

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

2019-05-16 Thread Klaus Halfmann
Here is the SaveGame: https://www.magentacloud.de/share/tu4ayusx.k Ferries2.wgf (Multiplayer Game) -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___

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

2019-05-14 Thread Benedikt Straub
This one function with this one assert yet again... yes, please provide a savegame -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___

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

2019-05-14 Thread Klaus Halfmann
Review: Needs Fixing Played Calvission a #1 with a Barbarian at #2 , Imperial at #3 and Frisisan at #4 Got an assert aftree trying to build two woodcutters: Forcing flag at (70, 164) Message: adding warehouse for player 1 at (69, 163) Forcing flag at (73, 163) Forcing flag at (66, 165) Forcing

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

2019-05-03 Thread bunnybot
Continuous integration builds have changed state: Travis build 4865. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/527627946. Appveyor build 4646. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4646.

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

2019-05-02 Thread GunChleoc
Fieldaction code looks OK. How about passing wwWORKER/wwWARE to get_roadbase and checking for that there? Then you could just call get_roadbase as in your original attempt in r8874. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subsc

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

2019-05-02 Thread bunnybot
Continuous integration builds have changed state: Travis build 4855. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/527387898. Appveyor build 4636. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-463

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

2019-05-02 Thread Benedikt Straub
The worker already is in an impossible situation, so you need to load an older savegame that doesn´t contain the bug yet. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry.

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

2019-05-02 Thread Klaus Halfmann
Loading may savegame I now get: Assertion failed: (wh), function get_next_step, file ../src/economy/transfer.cc, line 188. Do I have to restart that Map now? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~wi

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

2019-05-01 Thread bunnybot
Continuous integration builds have changed state: Travis build 4849. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/526968452. Appveyor build 4630. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4630.

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

2019-05-01 Thread Klaus Halfmann
I now get a compile Error at: ../src/economy/transfer.cc:166:72: error: non-pointer operand type 'Widelands::MapObjectType' incompatible with nullptr if (!curflag.get_roadbase(nextflag, request_->get_type() == wwWORKER ? MapObjectType::ROAD : nullptr)) {

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

2019-05-01 Thread Benedikt Straub
Thanks for the video, bug should be fixed. I had overlooked the possibility that two flags can be connected by a road and a waterway. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferr

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

2019-05-01 Thread Benedikt Straub
> I noticed some odd Behavior that carriers tried to use a waterway to reach > their destination, but got stuck on the waterway. This way neither wares no carriers where transported in the end. That sounds like a fairly serious bug. Could you upload the savegame to the bugreport linked to this

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

2019-05-01 Thread Klaus Halfmann
Review: Approve compile, review, testplay The ccode is basiccally OK, I did not read all of it, sorry. I noticed some odd Behavior that carrriees tried to use a wterway to reach theire destination, but got stuck on the waterway. This way neither wares no carriers where transported in the end.

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

2019-05-01 Thread Klaus Halfmann
Plaaying Calvission for a while now: In case a location is reachabel by road and by waterway, but there is no ferry, wares may get stuck waiting at the flag for the waterway, mmh. But well, works as designed. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Wi

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

2019-05-01 Thread Benedikt Straub
The automated builds only warn about some unused variables which I now removed. I don´t see the warning in economy.cc either there or when compiling myself… -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widel

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

2019-05-01 Thread Klaus Halfmann
CLang gives me some comppiler warnings: src/economy/economy.cc:854:45: warning: loop variable 'r' has type 'const std::pair &' (aka 'const pair &') but is initialized with type 'std::__1::__map_iterator, std::__1::__tree_node, void *> *, long> >::value_type' (aka 'pair') resulting

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

2019-05-01 Thread Klaus Halfmann
OK this is a little Monster and in depends on some workarea change? Please direkt me to that branch or was this mereged by now? Im checking this out now. and (try to) do some code review. -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is

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

2019-04-29 Thread bunnybot
Continuous integration builds have changed state: Travis build 4836. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/526029169. Appveyor build 4617. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4617

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

2019-04-26 Thread Benedikt Straub
New behaviour is implemented and tested. @GunChleoc Could you please re-review the latest changes in economy.cc, especially create_requested_worker(), and CheckStepFerry? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to bra

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

2019-04-22 Thread bunnybot
Continuous integration builds have changed state: Travis build 4759. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/523086402. Appveyor build 4543. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4543

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

2019-04-20 Thread bunnybot
Continuous integration builds have changed state: Travis build 4752. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/522535128. Appveyor build 4537. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4537

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

2019-04-19 Thread bunnybot
Continuous integration builds have changed state: Travis build 4742. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/522276339. Appveyor build 4527. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4527

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

2019-04-16 Thread GunChleoc
Sounds like a plan :) -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferry. ___ Mailing list: https://launchpad.net/~widelands-dev Post to

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

2019-04-15 Thread Benedikt Straub
Autodetection is not possible because there are paths where you can build both. Having one mode for both where you get to choose on finish whether you want a road or waterway is possible but difficult to implement because of different placement rules. +1 for showing the flagaction window instead

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

2019-04-15 Thread GunChleoc
Or maybe the 2 functions could be the same thing, with Widelands detecting automatically whether it will become a road or a waterway? -- https://code.launchpad.net/~widelands-dev/widelands/ferry/+merge/351880 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ferr

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

2019-04-14 Thread bunnybot
Continuous integration builds have changed state: Travis build 4720. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/520014396. Appveyor build 4506. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4506.

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

2019-04-14 Thread kaputtnik
Review: Approve testing This is really a nice feature. Played two games (Map Twinkling Waves and The Nile) a lot but found no strange issues anymore. There is one small thing: If you have the option 'Start building road after placing a flag' turned on, and place a flag at a coast, roadbuilding

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

2019-04-08 Thread bunnybot
Continuous integration builds have changed state: Travis build 4696. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/517213969. Appveyor build 4482. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4482

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

2019-04-08 Thread Benedikt Straub
Can´t reply this in the bug report for some reason…: Let W and E be the end flags of the waterway that has a ferry. – Destroy both waterways. – Build a waterway from W to a new flag F on the tiny island south of the warehouse. It´ll get the ferry that used to service the waterway from W to E. – B

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

2019-04-07 Thread bunnybot
Continuous integration builds have changed state: Travis build 4682. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/516878831. Appveyor build 4468. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-446

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

2019-04-07 Thread Benedikt Straub
Uploaded the changes discussed in the bug report. Ferries can now travel along any edge where both adjacent triangles are navigable terrain. I cleaned up the economy code, removed lots of duplicate functionality for wares and workers, and fixed a bug in worker creation. If you have two road netw

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

2019-03-26 Thread bunnybot
Continuous integration builds have changed state: Travis build 4653. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/511594641. Appveyor build 4440. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4440

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

2019-03-25 Thread GunChleoc
I did not think of the several oceans problem. I think it would be good if you could fix both the new and the original road code. This branch is huge anyway, so I don't mind having more changes in it. I can look into the saveloading if you want. Just leave the annotations in until everything el

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

2019-03-25 Thread Benedikt Straub
Implemented or replied to your diff comments in revision 8852. I can´t reproduce the ASan complaint you reported anymore, but I fixed several others that surfaced now, except for one on game-end that will follow soon. Regarding the ferry target quantity: IMHO the ferry yards work like shipyards,

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

2019-03-24 Thread bunnybot
Continuous integration builds have changed state: Travis build 4638. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/510643337. Appveyor build 4425. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4425

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

2019-03-24 Thread GunChleoc
The overlays look fine now, thank you. I have pushed a commit with a code review. Check the "NOCOM" comments. Some notes that are not in the review commit: - Ferry yard needs an economy check, just like the Ox Farm etc. Otherwise, it will just keep producing en masse. - switch is faster than i

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

2019-03-23 Thread Benedikt Straub
Removed the duplicate code and the superfluous animation frames, downscaled the remaining images. The barbarian ferry yard now uses reed instead of cloth. The textures for built waterways are now better visible. I agree about the range indicators. That will be easy to implement, but I´ll wait

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

2019-03-23 Thread GunChleoc
Barbarian Ferry Yard needs cloth to build, but there is no Weaving Mill, because that building needs seafaring. It would be nice to have some indicators for the range when building a new waterway - I think we best wait with that until after we have the new work areas, because there could be som

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

2019-03-19 Thread bunnybot
Continuous integration builds have changed state: Travis build 4616. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/508307520. Appveyor build 4403. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4403

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

2019-03-12 Thread bunnybot
Continuous integration builds have changed state: Travis build 4592. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/505198456. Appveyor build 4356. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4356.

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

2019-03-08 Thread bunnybot
Continuous integration builds have changed state: Travis build 4569. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/503691873. Appveyor build 4356. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4356

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

2018-12-02 Thread bunnybot
Continuous integration builds have changed state: Travis build 4317. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/462525707. Appveyor build 4112. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-4112

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

2018-12-02 Thread bunnybot
Continuous integration builds have changed state: Travis build 4316. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/462452641. Appveyor build 4111. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_ferry-411

  1   2   >