Minecolonies & Better colony handling and bug fixes ![](https://i.imgur.com/wTf7U2c.png) Hey everyone, my last fixathon has been a while, but, during this week I was able to add an awesome new feature and fix a handful of bugs. Let's get started. Fixing tests: --- First of all, I had to fix the tests which broke after adding the scoreboard system [[Part of this pr]](https://steemit.com/utopian-io/@raycoms/minecolonies-and-pvp-system-part-1). The tests failed since the scoreboard is called on init of the colony and the scoreboard was undefined in the test cases. For that reason, I had to mock the Scoreboard. ![](https://i.imgur.com/7TlxUKd.png) Return the mocked board when trying to retrieve one from the world. And then catch all possible calls on it. > Using any we expect any parameter, this way I avoid creating one case for each possible input parameter to it. ![](https://i.imgur.com/svLYyBU.png) Infinite Supply chests: --- Then, there was another bug that infinite supply chests didn't work anymore. The fix was easy since we had removed the configuration variable call in a previous update and I just re-added it. ``` if(player.getStatFile().readStat(StatList.getObjectUseStats(ModItems.supplyChest)) > 0 && !Configurations.gameplay.allowInfiniteSupplyChests) ``` Better starts: --- Besides that, we noticed that one of the main reasons people don't stick to minecolonies after a few minutes is that the game start is quite slow. For that reason, I created a speed bonus for the builder over a certain y level for digging out spaces which should make the builder way more efficient early on and also make new players happy. ![](https://i.imgur.com/JF8F2YY.png) Additionally, people were complaining about our deliverymen being very slow so I added that they retrieve an additional item stack on each trip. > Their capacity doubles with each building level, but early on 1 stack is not enough to keep the colony running decently. Armor request Mess: --- Then, there were some issues with our armor requesting which we fixed quickly. There were three issues we solved: - Some naming issues - Missing constants which made it difficult to understand the code - Overriding lists The first was an easy fix, the second one we fixed by creating said constants and moving them to the appropriate files and the last one was a bit more tricky. What was happening is that knights should requests shields additionally to armor. So, previously the shield request was overriding this. For this reason, I changed the put to a get and add which solved this issue. ![](https://i.imgur.com/TrmwjD7.png) Losing owner bug: --- A bug we've been having for years already and never got solved was that colonies on loading sometimes were losing their owner permissions. Our workaround for that was a refresh command which restored the owner if null, just these days I got the idea to run this command on player login automatically which hides the bug from the player. Request list: --- And last, a new feature. Players always complained that there should be a way to take a list from the builder with them so they know which resources he needs while they gather them. Before the semester really starts I decided to give this a go. To make this work I had to add three things: - An item which holds the information - A GUI displaying the information - A connection between both. For that reason, I added the resource scroll item. ![](https://i.imgur.com/EwdJvJu.png) Thanks for the texture to one of our artists. ![](https://i.imgur.com/wTf7U2c.png) Which will, similar to the second page of the builder's hut, show the list of blocks the builder will need. ![](https://i.imgur.com/LFFtbmv.png) On use on the builders building block, the scroll will set the colony id and building position. ![](https://i.imgur.com/ByTlXby.png) On use in the air or on another block open the window if the colony id and the position of the building are set. > Or notify the player if not so. To make the texture work I had to create: - The item model ![](https://i.imgur.com/q5fbRkx.png) - The recipe ![](https://i.imgur.com/o41JxXN.png) ![](https://i.imgur.com/zZZhI5M.png) - Register item and model ![](https://i.imgur.com/GOWfEU8.png) ![](https://i.imgur.com/HclYl2y.png) For the GUI I extracted the relevant items from the builder GUI. a) The window XML. ![](https://i.imgur.com/dLwvceo.png) and b) The window class ![](https://i.imgur.com/7vH6JPm.png) The main changes I had to do was adapting the constructor and extracting all irrelevant functionality as in interacting with the building itself. In the constructor, I had to set up the building handling to get the builder building from the view and message the player if not found. ![](https://i.imgur.com/uDgRSrX.png) At the same time, I had to make sure the GUI closes if the parameter were invalid upon being opened. ![](https://i.imgur.com/5KaB7lY.png) Pull requests: https://github.com/ldtteam/minecolonies/pull/2742 https://github.com/ldtteam/minecolonies/pull/2735 https://github.com/ldtteam/minecolonies/pull/2733 https://github.com/ldtteam/minecolonies/pull/2731 https://github.com/ldtteam/minecolonies/pull/2719 https://github.com/ldtteam/minecolonies/pull/2715 https://github.com/ldtteam/minecolonies/pull/2698 I hope you guys liked the new updates, I bet our players will love them. Until the next time!
post_id | 58,801,219 |
---|---|
author | raycoms |
permlink | minecolonies-and-better-colony-handling-and-bug-fixes |
category | utopian-io |
json_metadata | {"image":["https:\/\/i.imgur.com\/wTf7U2c.png"],"app":"steemit\/0.1","links":["https:\/\/steemit.com\/utopian-io\/@raycoms\/minecolonies-and-pvp-system-part-1","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2742","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2735","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2733","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2731","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2719","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2715","https:\/\/github.com\/ldtteam\/minecolonies\/pull\/2698"],"tags":["utopian-io","development","gaming","technology","programming"],"format":"markdown"} |
created | 2018-08-05 13:40:24 |
last_update | 2018-08-06 02:21:39 |
depth | 0 |
children | 3 |
net_rshares | 83,503,252,361,870 |
last_payout | 2018-08-12 13:40:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 98.434 SBD |
curator_payout_value | 31.351 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 5,432 |
author_reputation | 120,534,427,956,805 |
root_title | "Minecolonies & Better colony handling and bug fixes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yuxi | 0 | 3,019,190,888 | 10% | ||
techslut | 0 | 380,226,606,507 | 100% | ||
jamzed | 0 | 31,892,471,665 | 100% | ||
miniature-tiger | 0 | 103,429,966,950 | 100% | ||
mys | 0 | 4,847,205,412 | 5% | ||
reggaemuffin | 0 | 10,041,318,871,393 | 100% | ||
helo | 0 | 26,674,462,080 | 100% | ||
ruel.cedeno | 0 | 32,108,179,444 | 100% | ||
furious-one | 0 | 91,179,326,605 | 48% | ||
doughtaker | 0 | 6,259,580,879 | 33% | ||
bachuslib | 0 | 19,465,002,421 | 100% | ||
upgoat | 0 | 1,097,063,509 | 100% | ||
techtek | 0 | 53,619,486,261 | 100% | ||
aafeng | 0 | 12,792,556,338 | 25% | ||
leir | 0 | 748,786,905 | 20% | ||
jrawsthorne | 0 | 7,305,036,042 | 100% | ||
loshcat | 0 | 3,000,150,877 | 100% | ||
stuffido | 0 | 607,064,488 | 100% | ||
utopian-io | 0 | 72,395,559,514,941 | 47.25% | ||
favcau | 0 | 39,098,956,539 | 100% | ||
jaff8 | 0 | 54,704,763,759 | 100% | ||
ayasha | 0 | 4,529,221,314 | 100% | ||
amosbastian | 0 | 53,504,924,378 | 85.9% | ||
thinkingmind | 0 | 4,655,672,222 | 100% | ||
caroliny | 0 | 0 | 0% | ||
jjay | 0 | 557,625,785 | 66% | ||
thetroublenotes | 0 | 190,499,616 | 1% | ||
didic | 0 | 6,063,089,068 | 20% | ||
polbot | 0 | 230,841,350 | 100% | ||
synergysteem | 0 | 5,982,384,301 | 100% | ||
reazuliqbal | 0 | 7,684,717,695 | 30% | ||
zcool | 0 | 236,326,767 | 10% | ||
moenawar | 0 | 6,679,979,034 | 100% | ||
statsexpert | 0 | 2,067,607,164 | 40% | ||
mhossain | 0 | 724,459,629 | 30% | ||
sheikhsayem | 0 | 2,282,103,405 | 100% | ||
derasmo | 0 | 3,914,701,918 | 100% | ||
sergino | 0 | 498,883,278 | 2% | ||
belkar | 0 | 535,176,646 | 100% | ||
beetlevc | 0 | 564,693,738 | 2% | ||
clayjohn | 0 | 14,436,061,104 | 100% | ||
michael44 | 0 | 182,909,501 | 50% | ||
andrew28zx | 0 | 535,410,411 | 100% | ||
fidal07 | 0 | 534,948,167 | 100% | ||
sergiusgreat | 0 | 535,100,885 | 100% | ||
aleks02 | 0 | 535,458,047 | 100% | ||
davletshi | 0 | 537,948,003 | 100% | ||
lordofreward | 0 | 210,602,061 | 0.75% | ||
council | 0 | 974,289,252 | 10% | ||
emil258 | 0 | 537,443,207 | 100% | ||
antonova2030 | 0 | 534,734,543 | 100% | ||
dbrowskim | 0 | 535,734,689 | 100% | ||
grabowskig | 0 | 546,602,291 | 100% | ||
oninkarapetyan | 0 | 537,363,047 | 100% | ||
lusinehakobyan | 0 | 533,224,119 | 100% | ||
rommist79 | 0 | 545,355,773 | 100% | ||
dinsipov00 | 0 | 545,352,677 | 100% | ||
marunkas20 | 0 | 536,212,688 | 100% | ||
hunangalstyan | 0 | 536,215,732 | 100% | ||
stogonin | 0 | 536,215,732 | 100% | ||
timedouble | 0 | 545,355,773 | 100% | ||
basiks | 0 | 536,212,688 | 100% | ||
fedykosoy00 | 0 | 536,212,688 | 100% | ||
hallbill94 | 0 | 536,212,688 | 100% | ||
miljared | 0 | 536,215,732 | 100% | ||
jamesloydd | 0 | 536,215,732 | 100% | ||
fryderykn | 0 | 545,355,773 | 100% | ||
scorpiusdata | 0 | 545,349,892 | 100% | ||
ruralcapsule | 0 | 545,349,892 | 100% | ||
berwynelbow | 0 | 545,355,773 | 100% | ||
amuseaccuracy | 0 | 570,433,160 | 100% | ||
ropessecond | 0 | 536,209,950 | 100% | ||
parkaprint | 0 | 536,209,950 | 100% | ||
seasonedgrade | 0 | 536,215,732 | 100% | ||
damsirenurse | 0 | 545,352,677 | 100% | ||
fleshtestify | 0 | 536,212,688 | 100% | ||
closedolphin | 0 | 536,218,500 | 100% | ||
substrcake | 0 | 536,215,732 | 100% | ||
junkiemeasly | 0 | 536,215,732 | 100% | ||
soufflereports | 0 | 536,215,732 | 100% | ||
babinetgout | 0 | 536,212,688 | 100% | ||
pedlarthermal | 0 | 536,209,950 | 100% | ||
lenalidchyk63 | 0 | 536,215,732 | 100% | ||
lukemccoy92 | 0 | 536,212,688 | 100% | ||
jparkerbowles | 0 | 577,035,133 | 100% | ||
antonpalesov | 0 | 536,212,688 | 100% | ||
kernovanatali | 0 | 545,352,677 | 100% | ||
odetta199 | 0 | 536,209,950 | 100% | ||
sergeipankov90 | 0 | 536,209,950 | 100% | ||
deniselatov | 0 | 545,352,677 | 100% | ||
dkapitonov | 0 | 536,212,688 | 100% | ||
rinkchops | 0 | 536,209,950 | 100% | ||
homesickhow | 0 | 536,209,950 | 100% | ||
curiouscred | 0 | 536,209,950 | 100% | ||
partialbullhorn | 0 | 536,209,950 | 100% | ||
testifyservant | 0 | 536,209,950 | 100% | ||
relaxrepeat | 0 | 536,209,950 | 100% | ||
swayspleeny | 0 | 545,349,892 | 100% | ||
linksurfer | 0 | 536,209,950 | 100% | ||
coalswhirl | 0 | 545,349,892 | 100% | ||
gutalveoli | 0 | 536,209,950 | 100% | ||
quadratour | 0 | 536,209,950 | 100% | ||
raghandy | 0 | 545,349,892 | 100% | ||
breadsplonk | 0 | 536,209,950 | 100% | ||
nideecstatic | 0 | 545,349,892 | 100% | ||
kneadgit | 0 | 536,209,950 | 100% | ||
liontheory | 0 | 536,209,950 | 100% | ||
userglorious | 0 | 536,209,950 | 100% | ||
unlockrichard | 0 | 536,209,950 | 100% | ||
musiccrannies | 0 | 536,209,950 | 100% | ||
spidervariety | 0 | 536,209,950 | 100% | ||
viperdupe | 0 | 536,206,958 | 100% | ||
sheepishdiagram | 0 | 536,206,958 | 100% | ||
ocelotmultiply | 0 | 536,206,958 | 100% | ||
grouseunhelpful | 0 | 545,346,849 | 100% | ||
sordinistoat | 0 | 536,206,958 | 100% | ||
blueberryeither | 0 | 536,206,958 | 100% | ||
petqrcode | 0 | 545,346,849 | 100% | ||
flatschowder | 0 | 545,346,849 | 100% | ||
riemannevening | 0 | 536,206,958 | 100% | ||
appearford | 0 | 536,206,958 | 100% | ||
iauns | 0 | 14,768,655,575 | 100% | ||
avengersayem | 0 | 502,970,287 | 100% | ||
boomtube | 0 | 176,821,845 | 30% | ||
elianton | 0 | 537,386,644 | 100% | ||
aleksey.kuzmin4 | 0 | 536,949,309 | 100% | ||
dessertplay | 0 | 545,965,684 | 100% | ||
buntlinelard | 0 | 543,671,720 | 100% | ||
avengersayem2 | 0 | 511,062,542 | 100% | ||
mockingexposure | 0 | 545,279,898 | 100% | ||
replysoldier | 0 | 536,141,129 | 100% | ||
samoansomber | 0 | 536,141,129 | 100% | ||
estoniancurry | 0 | 536,138,356 | 100% | ||
fizzyreadymade | 0 | 536,138,356 | 100% | ||
glideamazon | 0 | 536,138,356 | 100% | ||
lynxbraces | 0 | 536,132,920 | 100% | ||
gamerbd | 0 | 469,301,798 | 100% | ||
fireruner | 0 | 1,929,561,855 | 100% | ||
torntonbar | 0 | 535,174,072 | 100% | ||
svoyaleks | 0 | 535,174,072 | 100% | ||
alitvinenko | 0 | 535,171,150 | 100% | ||
polfilds | 0 | 535,171,150 | 100% | ||
sera1995 | 0 | 535,171,150 | 100% | ||
rozenbah | 0 | 535,171,150 | 100% | ||
kennetluk | 0 | 535,171,150 | 100% | ||
sernikolaev | 0 | 535,171,150 | 100% | ||
mkravchenko1989 | 0 | 535,165,377 | 100% | ||
garrisaymon | 0 | 535,165,377 | 100% | ||
chepmengeri | 0 | 535,162,434 | 100% | ||
neshferdin | 0 | 535,162,434 | 100% | ||
rdzhervis | 0 | 535,162,434 | 100% | ||
saymonr | 0 | 535,162,434 | 100% | ||
bridzhesc | 0 | 544,284,521 | 100% | ||
oleg.domov | 0 | 535,146,465 | 100% | ||
wallacerashid | 0 | 535,146,465 | 100% | ||
andrey.levin92 | 0 | 535,129,099 | 100% | ||
nikbelin1983 | 0 | 535,129,099 | 100% | ||
rondorajon8 | 0 | 535,117,783 | 100% | ||
bandos | 0 | 535,123,252 | 100% | ||
potex | 0 | 535,117,783 | 100% |
Waiting for the new update
post_id | 58,801,600 |
---|---|
author | manisahere |
permlink | re-raycoms-minecolonies-and-better-colony-handling-and-bug-fixes-20180805t134634083z |
category | utopian-io |
json_metadata | {"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-08-05 13:46:36 |
last_update | 2018-08-05 13:46:36 |
depth | 1 |
children | 0 |
net_rshares | 3,654,254,258 |
last_payout | 2018-08-12 13:46:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 26 |
author_reputation | 0 |
root_title | "Minecolonies & Better colony handling and bug fixes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fireruner | 0 | 3,654,254,258 | 100% |
* Mocking would make another great tutorial on testing... Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/1211211). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
post_id | 58,853,175 |
---|---|
author | helo |
permlink | re-raycoms-minecolonies-and-better-colony-handling-and-bug-fixes-20180806t022754707z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/1211211","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1"} |
created | 2018-08-06 02:27:54 |
last_update | 2018-08-06 02:27:54 |
depth | 1 |
children | 0 |
net_rshares | 26,320,740,257 |
last_payout | 2018-08-13 02:27:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.029 SBD |
curator_payout_value | 0.007 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 549 |
author_reputation | 119,612,833,307,875 |
root_title | "Minecolonies & Better colony handling and bug fixes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
espoem | 0 | 18,237,062,121 | 15% | ||
mops2e | 0 | 336,702,181 | 10% | ||
fireruner | 0 | 7,746,975,955 | 100% |
Hey @raycoms **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
post_id | 59,166,128 |
---|---|
author | utopian-io |
permlink | re-minecolonies-and-better-colony-handling-and-bug-fixes-20180809t044509z |
category | utopian-io |
json_metadata | {"app":"beem\/0.19.42"} |
created | 2018-08-09 04:45:09 |
last_update | 2018-08-09 04:45:09 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-08-16 04:45:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 299 |
author_reputation | 152,913,012,544,965 |
root_title | "Minecolonies & Better colony handling and bug fixes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |