Modded script files Location

Post Reply
Galdred
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 504
Joined: Tue Nov 15, 2011 5:43 am

Modded script files Location

Post by Galdred »

Where should I put the script (*.BSF) files I have been altering?
I know it is somewhere in the modded campaign folder, but where?
To a location that would replicate the original one (ie data/scripts for Functions.BSF?)
Should I put something in the script file to indicate that it should supersede the main one?
zakblood
Most Active User 2017
Most Active User 2017
Posts: 16851
Joined: Thu Jun 12, 2014 6:44 pm

Re: Modded script files Location

Post by zakblood »

until a guide is written and released, or a friendly admin pops in and gives a few tips, only option atm is wait until the developers have the time to write one
Galdred
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 504
Joined: Tue Nov 15, 2011 5:43 am

Re: Modded script files Location

Post by Galdred »

I have been replacing original game files, but it has been pretty messy as I forgot to backup some (or to replace some with their original versions).
This approach makes it difficult to spread any mod...
zakblood
Most Active User 2017
Most Active User 2017
Posts: 16851
Joined: Thu Jun 12, 2014 6:44 pm

Re: Modded script files Location

Post by zakblood »

on steam just refresh the files

Verify Integrity of Game Cache
https://support.steampowered.com/kb_art ... -QEUH-3335

site version means a uninstall and reinstall if you forgot to back up first
pipfromslitherine
Site Admin
Site Admin
Posts: 9933
Joined: Wed Mar 23, 2005 10:35 pm

Re: Modded script files Location

Post by pipfromslitherine »

I thought I provided you with the wiki links? If not then apologies. The modding docs are somewhat spread around, but I have begun to try and centralise them on the new wiki:

http://archonwiki.slitherine.com/index.php/Modding

The system is designed so you should never need to alter the main game files (which you shouldn't :) ).

If you have specific questions, or want to just let me know what you are trying to achieve, then I can answer and also add some "How to..." sections to the wiki.

Cheers

Pip
follow me on Twitter here
Galdred
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 504
Joined: Tue Nov 15, 2011 5:43 am

Re: Modded script files Location

Post by Galdred »

I haven't found the answer to my question in it (maybe I didn't look at the good place, though):
How do I change the core behavior of the game?
If I want to change some of the functions used in battle for instance (ie if I alter Battle/Scripts/Melee.bsf to make Tactical Units stop retreating when assaulted in melee), how can I replace these in the campaign without butchering the main directory?
pipfromslitherine
Site Admin
Site Admin
Posts: 9933
Joined: Wed Mar 23, 2005 10:35 pm

Re: Modded script files Location

Post by pipfromslitherine »

You can't globally over-ride scripts (it causes too many issues with updates). But to do that I would suggest:

- copy one of the campaigns (assuming you want to make the changes for playing in SP) into your local (My Documents/My Games/SANCTUS/CAMPAIGNS) folder and rename.
- create a DATA/BATTLE/SCRIPTS folder and copy in the $DEFAULT.BSF file (this includes all the others). Then the melee.bsf file (or, indeed, all the bsf files if you want to tinker more broadly).
- edit the melee.bsf file as desired.
- you can then choose and play your campaign from the campaign list.

You can see details on how files are included here: http://archonwiki.slitherine.com/index. ... ding_Files

Cheers

Pip
follow me on Twitter here
Galdred
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 504
Joined: Tue Nov 15, 2011 5:43 am

Re: Modded script files Location

Post by Galdred »

Excellent, thanks!
But then I cannot test skirmishes yet (aka until skirmishes are fixed to allow selecting from a campaign).
But I suppose that saving before a random mission might do the trick (unless I want to test orks :cry: ).
Post Reply

Return to “Sanctus Reach Mods and Scenario Design”