Topic: main roads becoming normal again

Tibor

Joined: 2009-03-23, 23:24 UTC+1.0
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2018-04-28, 22:14 UTC+2.0



Top Quote
ypopezios
Avatar
Joined: 2018-04-20, 00:22 UTC+2.0
Posts: 220
Ranking
Widelands-Forum-Junkie
Posted at: 2018-04-28, 22:41 UTC+2.0

Finally the prints look normal and there are promotions away from HQ. Time for AppVeyor and tests.


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16 UTC+1.0
Posts: 2878
Version: always the latest
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2018-04-29, 00:06 UTC+2.0

ypopezios wrote:

GunChleoc wrote:

I just had an idea: if you used Bazaar to download the code (no Launchpad login required), you could use it to generate diff files. This would make it a lot easier for Tibor to apply your changes.

If I find out that I ask often for many changes, I will definitely promote my computer into a Widelands development machine.

that was not what Tibor and GunChleoc were asking for, to ease up Tibors work. They just ask to download only the relevant source files from launchpad via the single file download interface provided there (if you browse the code) navigate to the relevant folder and click the tiny download icon on the right) then use an appropriate editor to change the code and either send tibor a compressed version of the new file or a diff which should be obtainable from the editor.
From my perspective this sounds more efficient as Tibor doesn't need to retype the code provided here in the forum. Retyping code is not really the most error free and by far not the most interesting work to do. face-wink.png For you it is just very little additional effort once you have downloaded the first issue of the file.
Therefore I think their request is very reasonable already and there is no need to wait for more requests.


Top Quote
ypopezios
Avatar
Joined: 2018-04-20, 00:22 UTC+2.0
Posts: 220
Ranking
Widelands-Forum-Junkie
Posted at: 2018-04-29, 00:46 UTC+2.0

hessenfarmer wrote:

then use an appropriate editor to change the code and either send tibor a compressed version of the new file or a diff which should be obtainable from the editor.
From my perspective this sounds more efficient as Tibor doesn't need to retype the code provided here in the forum. Retyping code is not really the most error free and by far not the most interesting work to do. face-wink.png

The only interesting thing for me in all that is the thinking process. The rest is so boring, that I do with just a browser and notepad. I can hardly believe myself that I'm coding C++. Tibor does an important work in checking my code. Various things may change in the future, but for now this is it.


Top Quote
Tibor

Joined: 2009-03-23, 23:24 UTC+1.0
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2018-04-29, 21:42 UTC+2.0

I take it as my investment (of my time) in ypopezios and widelands. Anyway the fix will soon be done and than ypopezios will see if he wants to stay and contribute to widelands face-smile.png


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56 UTC+2.0
Posts: 3317
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-04-30, 10:09 UTC+2.0

I know what you mean by boring - waiting for the compiler to finish is about as interesting as watching paint dry. Thanks for helping, Tibor face-smile.png


Busy indexing nil values

Top Quote
ypopezios
Avatar
Joined: 2018-04-20, 00:22 UTC+2.0
Posts: 220
Ranking
Widelands-Forum-Junkie
Posted at: 2018-04-30, 13:30 UTC+2.0

Tibor wrote:

the fix will soon be done

We are very close indeed. But I see no activity in AppVeyor since three days. Is this normal?

Meanwhile, a minor alteration in file economy/road.cc, merely to clear-up that whole coins get charged in whole seconds:

// line 563
last_wallet_charge_ = game.get_gametime() / 1000;

// lines 570-578
const uint32_t gamesecs = game.get_gametime() / 1000;
assert(last_wallet_charge_ <= gamesecs);
const uint8_t carriers_count = (carrier_slots_[1].carrier == nullptr) ? 1 : 2;

log ("wallet: %d, carriers: %d, gamesecs: %d, last_charge: %d, steps: %lu\n",
     wallet_, carriers_count, gamesecs, last_wallet_charge_, path_.get_nsteps());

wallet_ -= carriers_count * (gamesecs - last_wallet_charge_);
last_wallet_charge_ = gamesecs;

Top Quote
Tibor

Joined: 2009-03-23, 23:24 UTC+1.0
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2018-04-30, 13:38 UTC+2.0

ypopezios wrote:

Tibor wrote:

the fix will soon be done

We are very close indeed. But I see no activity in AppVeyor since three days. Is this normal?

I dont track what is doing on there. Do you mean there are no builds from newest revision I pushed there?


Top Quote
ypopezios
Avatar
Joined: 2018-04-20, 00:22 UTC+2.0
Posts: 220
Ranking
Widelands-Forum-Junkie
Posted at: 2018-04-30, 13:48 UTC+2.0

Tibor wrote:

I dont track what is doing on there. Do you mean there are no builds from newest revision I pushed there?

I saw the new version on launchpad, but I see no builds on AppVeyor. Which means no tests on my part.


Top Quote
Tibor

Joined: 2009-03-23, 23:24 UTC+1.0
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2018-04-30, 13:54 UTC+2.0

I did not know....

I will push new version tonight (based on changes you just published) and will see... Maybe it needs to merge a trunk...


Top Quote