Jump to content

nwtour

Community Members
  • Posts

    229
  • Joined

  • Days Won

    1

Posts posted by nwtour

  1. Hi @Caiman
    Welcome to community
    Green bar - hit points
    Blue bar - capture points. From FAQ: The buildings have capture points for all players. If a player reaches 100% of the capture points for that building that player gains control over that building. Capture points can be gained by ordering units to capture that building or by that building standing inside a players area of influence (the player-coloured borders).

  2. <necroposting>
    After updating the distribution, this non-trivial problem appeared

    Solution: it is necessary to check for the presence of the line

    xmpp-client 5222/tcp

    in /etc/services - without them libgloox return "Resolving the server's hostname failed"
    </necroposting>

  3. 4 hours ago, year0 said:

    Does anyone know how to solve this?

    Hi. Try start game with english locale:
     

    LANG=en_EN 0ad

    patch:
     

    Spoiler

    diff --git a/binaries/data/mods/mod/gui/termsdialog/termsdialog.js b/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
    index 4420e990bb..70869d08bc 100644
    --- a/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
    +++ b/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
    @@ -62,7 +62,7 @@ function initLanguageSelection()
     
             // current locale
             let currentLocaleDict = Engine.GetFallbackToAvailableDictLocale(Engine.GetCurrentLocale());
    -        if (currentLocaleDict != baseNames[0])
    +        if (currentLocaleDict != baseNames[0] && baseNames.indexOf(currentLocaleDict) != -1)
                 list.push(displayNames[baseNames.indexOf(currentLocaleDict)]);
     
             return list;

     

    4 hours ago, year0 said:

    I've previously tried to install 0ad through both Snap and Flatpak and the result was even worst

    If you write error lines, we will try to solve

  4. 14 minutes ago, Stan&#x60; said:

    You need to play with GLSL on and Water Settings set to max.

    MESA 21, all settings to max,  MESA_GL_VERSION_OVERRIDE=4.6 LIBGL_ALWAYS_SOFTWARE=1
    I don’t see lines and I don’t see lines in your screenshot either
    1134013681_2022-01-0517-38-11.thumb.png.72463a8dd64505455440e09aadbc36e0.png

     

    24 minutes ago, Stan&#x60; said:

    It seems to be particularly visible on that map.

    I have a hack that fixes it, but it makes no sense so it cannot be committed

    Will be the main feature of the A30

  5. @Dizaka

    Unfortunately Spidermonkey is not build with python = 3.10

    Fix one error = another follows next

    AttributeError: module 'collections' has no attribute 'Sequence'
    ImportError: cannot import name 'Iterable' from 'collections'
    AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?
    AttributeError: module 'distutils' has no attribute 'sysconfig'
    ModuleNotFoundError: No module named 'logging.handlers'; 'logging' is not a package

    This will be fixed only after the update of the version of Spidermonkey in the game
    You can build yourself a custom python specifically for the game:

    # hidden requires
    pacman -S libffi
    
    # build python
    wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
    tar xvfz Python-3.8.0.tgz 
    cd Python-3.8.0
    ./configure --prefix=/usr/local/MyPython38 --disable-test-modules && make && sudo make install
    
    # build 0 A.D with custom python
    cd 0AD_DIR
    PATH=/usr/local/MyPython38/bin:$PATH ./build/workspaces/update-workspaces.sh && make -C build/workspaces/gcc config=release
    
    # clean after build
    sudo rm -rf /usr/local/MyPython38

     

  6. @Dizaka
    The easiest way to fix the source code is when a developer runs a diff of two files on his computer. And the user runs the patch utility on his computer
     

    Here is the patch that fixes your problem from Mozilla:
    https://hg.mozilla.org/integration/autoland/raw-rev/2418633d529c

    Change to directory libraries/source/spidermonkey/mozjs-78.6.0/
    Save the file there by the link

    And run the command:

    patch -p0 < FILENAME

    If it does not display any errors, then the files have been successfully updated and the game will begin to build.
     

    • Like 1
  7. 59 minutes ago, Dizaka said:

    @nwtour

     

    Traceback (most recent call last):
      File "/home/akazid/Downloads/0ad-0.0.26-rP26108-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/../js/src/../../configure.py", line 25, in <module>
        from mozbuild.configure import (
      File "/home/akazid/Downloads/0ad-0.0.26-rP26108-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py", line 33, in <module>
        from mozbuild.util import (
      File "/home/akazid/Downloads/0ad-0.0.26-rP26108-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/util.py", line 760, in <module>
        class HierarchicalStringList(object):
      File "/home/akazid/Downloads/0ad-0.0.26-rP26108-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/util.py", line 785, in HierarchicalStringList
        class StringListAdaptor(collections.Sequence):
    AttributeError: module 'collections' has no attribute 'Sequence'
    ERROR: SpiderMonkey build failed

     

     


    @Dizaka
    Yes. Problem in python > 3.8

    $ python3 mozjs-78.6.0/python/mozbuild/mozbuild/util.py
    mozjs-78.6.0/python/mozbuild/mozbuild/util.py:785: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working


    Try my patch mozjs-78.6.0/python/mozbuild/mozbuild/util.py
     

    --- mozjs-78.6.0/python/mozbuild/mozbuild/util.py.orig	2022-01-02 01:30:06.252368078 +0300
    +++ mozjs-78.6.0/python/mozbuild/mozbuild/util.py	2022-01-02 01:28:37.594372830 +0300
    @@ -22,6 +22,13 @@
     import stat
     import sys
     import time
    +
    +try:
    +    from collections.abc import Sequence
    +except ImportError:
    +    from collections import Sequence
    +
    +
     from collections import (
         OrderedDict,
     )
    @@ -782,7 +789,7 @@
             self._strings = StrictOrderingOnAppendList()
             self._children = {}
     
    -    class StringListAdaptor(collections.Sequence):
    +    class StringListAdaptor(Sequence):
             def __init__(self, hsl):
                 self._hsl = hsl

    p.s.
    Mainstream bug/commit:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1719144
    https://hg.mozilla.org/integration/autoland/rev/2418633d529c
     

    • Like 1
  8. 48 minutes ago, Dizaka said:

    Upon further search it seems Python 3.10 creates a conflict when installed

    SpiderMonkey should be installed using a python3:

    $ tail -n 1 libraries/source/spidermonkey/mozjs-78.6.0/js/src/configure
    exec python3 "$TOPSRCDIR/configure.py" "$@"

    So there is no need to uninstall python3 - the problem is different
    Please attach full python error backtrace,
    to understand the sequence of the call

    • Thanks 1
  9. On 28/12/2021 at 6:12 PM, revtm said:

    Now the problem is solved :) 

    Looked at the source code of the snap

    If you have the opportunity to try to roll back to the default settings and try to start the game like this:
     

    Quote

    HOME=~/snap/0ad/current snap run 0ad

    In theory, this should fix the problem with access rights when working in "snap classic confinement"

  10. 8 hours ago, Stan` said:

    Always have been?

    Unfortunately I did not understand the question.

    Here is the commit after which the shadows are auto-activated (I think this is the reason for Atlas GUI freeze):

    $ git bisect bad 2875dd364e5f65d28ba8d49f7645d1c4c79f70d5
    2875dd364e5f65d28ba8d49f7645d1c4c79f70d5 is the first bad commit
    
    Author: Stan <Stan@3db68df2-c116-0410-a063-a993310a9797>
    Date:   Wed Apr 28 11:09:16 2021 +0000
    
        Fix enabling / disabling shadows in the actor viewer.
        
        Differential Revision: https://code.wildfiregames.com/D3896
        
        git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@25334 3db68df2-c116-0410-a063-a993310a9797
    
     source/tools/atlas/GameInterface/ActorViewer.cpp | 9 ++++++---
     1 file changed, 6 insertions(+), 3 deletions(-)

     

  11. 34 minutes ago, Alexandra said:

    For example, as in the screenshot

    Try pressing F11 when the atlas slows down It will display a table, the second column of which displays on which component computer resources are spent
    676079577_2021-12-2618-31-35.thumb.png.4adae3d37da979fb1fd35679eb3c208d.png

    Если в Атлас нажать F11  он покажет какой компонент больше всего тормозит (четвертый столбец).
    К примеру на моём скриншоте больше всего тратится на "transparent models"
    Если сфоткаете эту таблицу во время тормозов - можно будет догадаться где тормозит.
    К сожалению по Вашему скриншоту ничего не понятно - медведи купаются возле озера. Они молодцы

    • Thanks 1
  12. 23 minutes ago, Alexandra said:

    the laptop freezes

    Can not reproduce. Disable "Water Effects" in the game settings and then try to open it. I easily ran on an old computer
    2110700069_2021-12-2615-35-05.thumb.png.65f46adebb18427c5d56fde75adcb09d.png

    Это не карты "тяжелее" - это просто в игре добавляют разные графические эффекты с которыми ноутбук не справляется.
    Отключите водные эффекты в настройках игры - карта легко загрузится на любом железе.  А затем понемножку включайте пока не найдете баланс красоты и производительности

  13. 6 hours ago, Alexandra said:

    Okay, I'll try to figure it out!

    Я прислал необходимые изменения https://github.com/forroll/serif0ad/pull/3
    Уже сейчас можно просто нажать кнопку "Merge" и они окажутся в вашем репозитории

    Ссылку на скрипт я указал для остальных участников, но если нужно самостоятельно конвертировать в будущем

    нужно запустить вот такой список последовательных команд:

    wget -O script.py https://code.wildfiregames.com/paste/raw/232/
    python script.py 7 MAPNAME.xml
    python script.py 7 MAPNAME.pmp
    wget -O script.pl https://raw.githubusercontent.com/nwtour/0ad_path_backward_capability/main/update_map.pl
    perl script.pl MAPNAME.xml

    где MAPNAME - это имя карты, к примеру Atlantis. Команды либо сработают либо нет :P

×
×
  • Create New...