1. Решение проблем с Rust
    Решение проблем с HurtWorld
    Как установить Rust
    Как установить Hurtworld
    Как обновить Rust
    Как обновить Hurtworld
    Список серверов Rust
    Список серверов Hurtworld

    Хостинг игровых серверов

Happy New Year!

Тема в разделе "Новости", создана пользователем KosiakS, 4 янв 2019.

От KosiakS 4 янв 2019 в 07:24
  1. KosiakS

    KosiakS
    Expand Collapse
    Просвещённый
    Команда форума

    Регистрация:
    11 ноя 2014
    Сообщения:
    1.068
    Симпатии:
    800
    Rust_Happy_New_Year.jpg

    Santa packs his presents away for another year. We're wiping maps and fixing a few bugs, so here's a short blog as we get back to business.

    Christmas is Over
    We're all returning to the office after a couple of weeks off, so this month's update isn't huge. We're disabling the Christmas content and fixing some bugs this update, nothing major.

    HQM Upkeep Post-Mortem
    André Straubmeier
    Since many people have been wondering about this bug and why it took us so long to address it, here's a quick post-mortem, which I also posted on Reddit when we released this as a hotfix 2 weeks ago.

    • The bug was relatively rare and our testers were unable to reproduce it altogether
    • When it happened to a base and we checked that same base we couldn't reproduce it there either
    • I went over the tool cupboard code about 5 times and did not find anything wrong with it

    The thing that finally gave us a lead was that Alistair noticed that sometimes when repairing an item in his base he could briefly see the base decay message pop up when he interacted with the tool cupboard immediately afterward. When reproducing this in the editor I could also sometimes see resources that should not be there pop up in the upkeep cost overview for a brief moment, which was no the case in the standalone build. The same weekend we received a video of a clan reproducing it by repairing an item with the repair bench in their base. (Thanks, Mellie!).

    So after going over the repair bench code, I noticed that it was getting an "item amount" list from our memory pool and then returned it with the "free" method instead of the "free list" method. This caused the list in the memory pool to still contain the costs of the last item repair. The tool cupboard was also getting an "item amount" list from our memory pool, and if that happened to be the same list that had previously been used to calculate the repair costs of an item then those costs were added to the next upkeep payment. This affected all resources that were used for repairs, but it was only really noticeable for high-quality metal as repairing a weapon costs a lot of high-quality metal relative to the amounts you usually need for base upkeep.

    To prevent this problem in the future we will make it so the "free" method will throw an error when it is called with a list. The code that caused the issue has not been changed in a long time, so it wasn't on our radar as the cause of the issue at all until Alistair noticed the first signs of the pattern. We're sorry it took us this long to track this down, but I hope you can understand why it wasn't an easy problem to debug.

    Список изменений:
    • Fixed snowmachine blocking cave entrances
    • Fixed upkeep consuming more resources than intended
    • Removed large double caves [Hapis map]
    • Removed Christmas events
     
Подкатегории: В этой статье нет подкатегорий

Поделиться этой страницей