Objects

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Objects

Post by enric »

How to override the OBJECTS.BSF file ?

Original is here:
DATA ▸ OBJECTS ▸ SYSTEM ▸ OBJECTS.BSF

When I duplicate and modify that file and place at:

My Games ▸ BA2 ▸ CAMPAIGNS ▸ A2_ENGINEER ▸ DATA ▸ OBJECTS ▸ SYSTEM▸ OBJECTS.BSF

it seems not working I just added
Log ("hello");

But never goes here.
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: Objects

Post by pipfromslitherine »

You can't override the object script in that way. You would need to have your own object folder and definitions in the campaign.

Cheers

Pip
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Objects

Post by enric »

Do you mean to have a OBJECTS folder at the campaign level?
Inside it a SYSYEM folder with
OBJECTS.BSF
OBJECTS.TXT
SMOKE.FXF
SMOKE.S4F

or
a OBJECTS folder at the campaign/DATA folder?
Inside it a SYSYEM folder with
OBJECTS.BSF
OBJECTS.TXT
SMOKE.FXF
SMOKE.S4F

I tried both: no result
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Objects

Post by enric »

Don't worry, I deduced.
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: Objects

Post by pipfromslitherine »

Custom objects should be in the <campaign>/OBJECTS folder. That said, they will NOT over-ride existing system objects. The two will coexist. You can define custom objects and then apply them to maps as usual of course.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”