Where's the code that handles Mines?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Where's the code that handles Mines?

Post by GottaLove88s »

Gents,

Does anybody know where the code is that handles...

(i) test to check if a unit runs over a mine?
(ii) calculations for actions when a unit runs over a mine?
(iii) text related to mines?

Thanks!
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Where's the code that handles Mines?

Post by AndrewGardner »

The mines in Husky are controlled by:
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF

The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
Ranger
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 188
Joined: Fri Mar 15, 2013 6:24 am

Re: Where's the code that handles Mines?

Post by Ranger »

too cool
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Where's the code that handles Mines?

Post by Amaris »

And you can create your own scripted objects like my naval mine ;-)
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Where's the code that handles Mines?

Post by GottaLove88s »

Good reminder Alex... I need to check out how you handled the naval mines! Merci Monsieur! :D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Where's the code that handles Mines?

Post by GottaLove88s »

AndrewGardner wrote:The mines in Husky are controlled by:
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF

The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
Thanks Andrew, Much appreciated! :D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Where's the code that handles Mines?

Post by GottaLove88s »

AndrewGardner wrote:The mines in Husky are controlled by:
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF

The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
Hi Andrew,

I see that Silicy's Objects.txt has a SCRIP_REACT minefield, but where is that script?

Minetools.bsf doesn't appear to have any text calls, but when I drive over a mine I see a UI flash up, "Minefield! Send engineers to clean it!"
Any idea where that text is called from? I can't find it...
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Richcat
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 219
Joined: Sun Nov 07, 2010 10:09 pm

Re: Where's the code that handles Mines?

Post by Richcat »

Found something that might help in C:\Program Files\Slitherine\Battlefield Academy\Data\objects\Sicily
Have a look at the Objects.BSF file in there.
Cheers
Richcat
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Where's the code that handles Mines?

Post by GottaLove88s »

Genius! Exactly what I needed... Was looking in Objects.txt, not Objects.bsf, DOH! :oops:
Thanks guys... :D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”