JBERT Posted January 10, 2022 Report Share Posted January 10, 2022 Hello, I'm trying to use 0ad on a FreeBSD workstation (diskless, i7-4470, 16 GB, intel GPU). pythagore:[~] > uname -a FreeBSD pythagore 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 0ad crashes in maps initialization with a segfault (and a lot of Javascript errors): TIMER| common/sprites.xml: 1.43288 ms TIMER| common/styles.xml: 456.91 us TIMER| gamesetup/setup.xml: 4.5437 ms TIMER| gamesetup/styles.xml: 509.713 us TIMER| gamesetup/gamesetup.xml: 501.15 ms TIMER| common/global.xml: 1.1055 ms ERROR: JavaScript error: simulation/helpers/Damage.js line 22 missing ( after for launchGame@gui/gamesettings/GameSettings.js:128:11 launchGame@gui/gamesetup/Controllers/GameSettingsController.js:273:18 onPress@gui/gamesetup/Pages/GameSetupPage/Panels/Buttons/StartGameButton.js:60:52 Writing replay to /home/benedicte/.local/share/0ad/replays/0.0.25/2022-01-09_0002 ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty TIMER| loading/sprites.xml: 2.53587 ms TIMER| loading/loading.xml: 67.4134 ms ERROR: JavaScript error: simulation/helpers/Player.js line 31 cmpPlayerManager is null LoadPlayerSettings@simulation/helpers/Player.js:31:19 Setting biome fields_of_meroe/dry. Generating Fields of Meroë of size 256 and 2 players. Creating river... 0.218174s. Creating cataracts... 1.199805s. ... Total map generation time: 7.973253s. Total entities: 2963, Terrain entities: 382, Textures: 11. TIMER| ParseTerrain: 31.7193 ms ERROR: RelaxNGValidator: No grammar loaded ERROR: Failed to validate entity template 'actor|props/flora/reeds_pond_lush_a.xml' Segmentation fault Of course, I have checked that I only have one javascript engine on this system: root@pythagore:~ # pkg info | grep spider spidermonkey78-78.9.0_4 Standalone JavaScript based from Mozilla 78-esr root@pythagore:~ # pkg info | grep 0ad 0ad-0.0.25b_5 Real-time strategy (RTS) game of ancient warfare root@pythagore:~ # If I remember, old 0ad releases ran like a charm. I suppose I have done a mistake somewhere. Help will be welcome. Regards, JB Quote Link to comment Share on other sites More sharing options...
nwtour Posted January 10, 2022 Report Share Posted January 10, 2022 (edited) 48 minutes ago, JBERT said: Hello Hello 48 minutes ago, JBERT said: ERROR: JavaScript error: simulation/helpers/Damage.js line 22 The file Damage.js is not in the release version. This file removed 5 years ago Probably installed old mods? Try run with default mods: 0ad '-conf=mod.enabledmods:mod public' or check $PATH (probably old binary file) $ 0ad -version Pyrogenesis 0.0.25 Edited January 10, 2022 by nwtour 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 10, 2022 Report Share Posted January 10, 2022 What nwtour said, also welcome and thanks for trying the game on FreeBSD Quote Link to comment Share on other sites More sharing options...
nwtour Posted January 10, 2022 Report Share Posted January 10, 2022 (edited) @JBERT https://cgit.freebsd.org/ports/tree/games/0ad/Makefile Look like package build doesn't clean old files Clean ${STAGEDIR}${DATADIR}/mods/public and ${STAGEDIR}${DATADIR}/mods/mod and re-unpack data from http://releases.wildfiregames.com/0ad-0.0.25b-alpha-unix-data.tar.xz Edited January 10, 2022 by nwtour Quote Link to comment Share on other sites More sharing options...
JBERT Posted January 10, 2022 Author Report Share Posted January 10, 2022 Thanks a lot for your answers. I have deleted 0ad package and some files were not delete in share/0ad. Now, I have purged these files and I'm trying to reinstall 0ad (but with my 4 Mbps internet connection, it takes a while ;-) ). Regards, JB Quote Link to comment Share on other sites More sharing options...
JBERT Posted January 11, 2022 Author Report Share Posted January 11, 2022 OK. I have reinstalled 0ad and it runs as expected. Next problem, it runs without sound. On Linux side, it seems to use alsa. On my FreeBSD, I use pulseaudio (as motherboard has two integrated sound adapters) but alsa-plugin is not loaded when 0ad is launched. Regards, JB Quote Link to comment Share on other sites More sharing options...
nwtour Posted January 11, 2022 Report Share Posted January 11, 2022 21 minutes ago, JBERT said: On Linux side, it seems to use alsa No. 0 A.D. uses OpenAL [general] ## drivers: (global) # Sets the backend driver list order, comma-seperated. Unknown backends and # duplicated names are ignored. Unlisted backends won't be considered for use # unless the list is ended with a comma (e.g. 'oss,' will try OSS first before # other backends, while 'oss' will try OSS only). Backends prepended with - # won't be considered for use (e.g. '-oss,' will try all available backends # except OSS). An empty list means to try all backends. # drivers = Try create ~/.config/alsoft.conf with content [general] drivers = pulse Quote Link to comment Share on other sites More sharing options...
JBERT Posted January 12, 2022 Author Report Share Posted January 12, 2022 FreeBSD provides alsoft, but without pulseaudio support. I have rebuilt alsoft from sources with pulseaudio support and 0ad runs now as expected. Thanks a lot. Best regards, JB 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.