beyond-all-reason / beyond-all-reason/RecoilEngine

map sound fails after loading game

Open
#2,915 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
683
Forks
293
Avg merge
3d 2h
Merged PRs (30d)
40

Description

game : metal factions v2.58
map : scorched crossing v2.5
engine : 2025.06.20

to reproduce, start a battle on the map, then do /quitmenu > quit to menu > load game and load the xpto.ssf (in attachment)

you'll get lua errors related to map-specific sounds that you didn't get when starting a new battle on the map

[t=00:01:28.223951][f=0003600] [Sound] Error: [LoadSoundBuffer] unable to open audio file "lavaambient1"
[t=00:01:28.223996][f=0003600] [Sound] Error: [Sound::GetSoundId] could not find sound "lavaambient1"
[t=00:01:28.224012][f=0003600] [Sound] Error: [Sound::GetSoundId] could not find sound "lavaambient1"
[t=00:01:28.224025][f=0003600] [Sound] Error: [Sound::GetSoundId] could not find sound "lavaambient1"

the sounds are played through a map gadget that loads them from sounds/map_lava.lua on gadget:Initialize().

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with sounds/map_lava.lua and its gadget:Initialize(), then trace how loading xpto.ssf restores map gadgets and their sound resources. Reproduce the issue using the listed map, engine version, and quit-to-menu sequence; done means the map-specific sounds load after restoring the game without the reported Lua or sound errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua
Domain
audio-video-rtc, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.