Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Zelenium

#1
SWBF1 Modding / Changing sound memory from 32MB to 256MB
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"
#2
SWBF1 Modding / Sniper range
April 11, 2024, 05:41:23 PM
Hey!
I decided to increase the range of the snipers, however I was unsuccessful.
The thing is that a standard sniper rifle can shoot at 300 meters. However, AI snipers use a maximum of 60-70 range and this is clearly exaggerated figures.
I wanted to fix this and did the following:

Lua:
SetMemoryPoolSize("Aimer", 999)
SetDefenderSnipeRange(200)
SetAttackerSnipeRange(200)


Weapon:
MinRange        = "32"
OptimalRange        = "100"
MaxRange        = "200"
LockOnRange        = "0.0"
LockTime         = "0.0"
LockOnAngle        = "1.0"


Ordnance:
LifeSpan         = "0.10"
Velocity         = "2000.0"


But really it doesn't work. Snipers don't even try to shoot from long range.
I think the AI has a limitation written in the executable file.
Probably it can be around 50 meters (maybe 48), but I don't rly know.

Is there someone who can help me with this question? Maybe I've made a mistake somewhere?