Page 1 of 1

Modded script files Location

Posted: Fri Jan 20, 2017 2:22 pm
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?

Re: Modded script files Location

Posted: Fri Jan 20, 2017 2:31 pm
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

Re: Modded script files Location

Posted: Fri Jan 20, 2017 3:04 pm
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...

Re: Modded script files Location

Posted: Fri Jan 20, 2017 3:11 pm
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

Re: Modded script files Location

Posted: Fri Jan 20, 2017 3:51 pm
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

Re: Modded script files Location

Posted: Fri Jan 20, 2017 5:31 pm
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?

Re: Modded script files Location

Posted: Fri Jan 20, 2017 6:02 pm
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

Re: Modded script files Location

Posted: Fri Jan 20, 2017 7:56 pm
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: ).