PrismaticFlower / swbf-unmunge

A totally groovy tool for getting access to game files for a game from 2005.
MIT License
26 stars 4 forks source link

'Layer' properties of .snd files unmunge incorrectly #27

Open BAD-AL opened 3 years ago

BAD-AL commented 3 years ago

Looking at BF2 sound\shell.lvl (and BF1 too) The 1st 2 arguments to 'Layer' unmunge as large numbers instead of strings.

original (shell.snd)

SoundLayered()
{
    Name("shell_transition2");
    Layer("shell_transition2_left",  "shell_transition2_left", 0.0, 0.5);
    Layer("shell_transition2_right", "shell_transition2_right", 0.0, 0.5);
}

unmunged:

soundlayered()
{
    Name("shell_transition2");
    Layer(76831842304, 76831842304, 0, 0.500000);
    Layer(-494586690535424, -494586690535424, 0, 0.500000);
}
PrismaticFlower commented 3 years ago

I suspected there would be a few more cases of stuff like this in addition to #25. Thanks for opening the issue on this one.