SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Zelenium on September 22, 2024, 01:02:22 PM

Title: Changing sound memory from 32MB to 256MB
Post by: Zelenium on September 22, 2024, 01:02:22 PM
I increased the maximum possible memory pool allocated by the game for sounds from 32 megabytes to 256 (
Current Instruction:
1. Using HexEditor, navigate to address "95AD"
2. Сhange the code from "00 02 E8" to "00 16 E8"
3. Navigate to address "9755"
4. Сhange the code from "00 02 C7 05 38 52 CD 01 80 00 00" to "00 16 C7 05 38 52 CD 01 00 04 00"
5. Now you can use as many sounds as you need for every map

Instruction for SPTest:
1. Using HexEditor, navigate to address "1C96D7"
2. Сhange the code from "00 02 E8" to "00 16 E8"
3. Navigate to address "1C9852"
4. Сhange the code from "68 80 00 00 00 68 00 00 00 02 FF" to "68 00 08 00 00 68 00 00 00 16 FF"
SPTest will show more than 300 megabytes because of one problem (which I'm too lazy to look up how to solve), but it should actually be 256.

Instruction for Steam version:
1. Using HexEditor, navigate to address "30D527"
2. Сhange the code from "00 02 E8" to "00 16 E8"
3. Navigate to address "30D6C4"
4. Сhange the code from "68 80 00 00 00 68 00 00 00 02 FF" to "68 00 08 00 00 68 00 00 00 16 FF"

Instruction for Gog version:
1. Using HexEditor, navigate to address "306D87"
2. Сhange the code from "00 02 E8" to "00 16 E8"
3. Navigate to address "306F24"
4. Сhange the code from "68 80 00 00 00 68 00 00 00 02 FF" to "68 00 08 00 00 68 00 00 00 16 FF"

Instruction for Classic collection "Battlefront1.dll":
1. Using HexEditor, navigate to address "314937"
2. Сhange the code from "00 02 FF" to "00 16 FF"
3. Navigate to address "314AA0"
4. Сhange the code from "B9 80 00 00 00 48 89 44 24 20 41 B8 00 00 00 02 48" to "B9 00 08 00 00 48 89 44 24 20 41 B8 00 00 00 16 48"
Title: Re: Changing sound memory from 32MB to 256MB
Post by: Led on September 22, 2024, 02:17:16 PM
Thanks  :cheers:




Quote from: Zelenium on September 22, 2024, 01:02:22 PMI increased the maximum possible memory pool allocated by the game for sounds from 32 megabytes to 256.
Current Instruction:
1. Using HexEditor, navigate to address "95AD"
2. Сhange the code from "00 02 E8" to "00 16 E8"
3. Navigate to address "9755"
4. Сhange the code from "00 02 C7 05 38 52 CD 01 80 00 00" to "00 16 C7 05 38 52 CD 01 00 04 00"
5. Now you can use as many sounds as you need for every map
Title: Re: Changing sound memory from 32MB to 256MB
Post by: wsa30h on September 23, 2024, 10:56:55 AM
is this for the 1.2 cd and dvd versions ? any chance this might work in the latest steam version ?
Title: Re: Changing sound memory from 32MB to 256MB
Post by: Giftheck on September 23, 2024, 01:30:00 PM
I've split this off, I think it deserves its own topic so everyone can see it  :cheers:

Quote from: wsa30h on September 23, 2024, 10:56:55 AMis this for the 1.2 cd and dvd versions ? any chance this might work in the latest steam version ?

I'd imagine the addresses for each might be a bit different, but the hex values themselves should be the same for the steam version, so you should be able to find them.
Title: Re: Changing sound memory from 32MB to 256MB
Post by: wsa30h on September 25, 2024, 09:22:16 AM
looked for that value it must also be different in steam and gog as no results found.
Title: Re: Changing sound memory from 32MB to 256MB
Post by: Zelenium on October 04, 2024, 03:14:37 PM
I'll check official steam version
Perhaps there was some changes with patches
Title: Re: Changing sound memory from 32MB to 256MB
Post by: wsa30h on October 06, 2024, 03:12:40 AM
much appreciated :D
Title: Re: Changing sound memory from 32MB to 256MB
Post by: Zelenium on October 11, 2024, 11:13:16 AM
Updated for SpTest, Steam and Gog last versions.
Let me know if there will be any trouble with this
Title: Re: Changing sound memory from 32MB to 256MB
Post by: Zelenium on October 13, 2024, 12:38:05 PM
Please, check if it works (or at least runs):

Instruction for Classic collection "Battlefront1.dll":
1. Using HexEditor, navigate to address "314937"
2. Сhange the code from "00 02 FF" to "00 16 FF"
3. Navigate to address "314AA0"
4. Сhange the code from "B9 80 00 00 00 48 89 44 24 20 41 B8 00 00 00 02 48" to "B9 00 08 00 00 48 89 44 24 20 41 B8 00 00 00 16 48"
Title: Re: Changing sound memory from 32MB to 256MB
Post by: wsa30h on October 14, 2024, 11:05:05 AM
classic collection launches and works normally so far will test it harder later on.
EhPortal 1.34 © 2025, WebDev