Quantcast
Channel: Modding — Beamdog Forums
Viewing all articles
Browse latest Browse all 11774

Restcheck version 1.00 (Coding for rest scene compatibility).

$
0
0
What this is:
Rest Check is code to prevent the rest scenes in your mod from triggering at the same time as the ones in the game and in other mods (like the dreams or romance scenes that trigger when you rest). It will stop any of your rest scenes from triggering before another one does, and for two turns (minutes) of real-time afterward.

The Rest Check Tool is code that triggers a dialogue every time you rest which checks whether or not restcheck is working.


Rest Check v1.00 will prevent your rest scenes from triggering at the same time as all those in Baldur's Gate II - Enhanced Edition and in all of the following mods:
1) All Things Mazzy: https://forums.beamdog.com/discussion/63879/mod-all-things-mazzy-v-1-027-parts-playable-but-still-in-progress
2) Mazzy Friendship: http://www.spellholdstudios.net/ie/mazzyfriendship
3) Viconia Friendship: http://www.spellholdstudios.net/ie/viconia
4) NPC IEP Banters: http://www.spellholdstudios.net/ie/npciep
5) Haer'Dalis Romance: http://www.spellholdstudios.net/ie/haerdalisromance
6) Sarevok Romance: http://www.spellholdstudios.net/ie/sarevokromance
7) Imoen Romance: http://www.imoen.blindmonkey.org/
8 ) Yoshimo Romance: http://www.baldursgatemods.com/forums/index.php?board=99.0


How to add rest check to a mod you have created:
1) Open the restcheck tp2 file (I'm assuming with Notepad++). Copy and paste the contents into your own mod tp2 file, anywhere after BEGIN. Open Find... (Under Search, or CTRL+F), go to the 'Replace' tab. Find what: ModFolderName and replace it with whatever the actual name of your mod folder is. If you want to use the restcheck tool then open that tp2 file and copy/paste that on the bottom of your mod tp2 file.

2) Copy the restcheck folder and paste it in your mod folder. Do the same with the restchecktool folder if you want to use that as well.

3) Open every file in the restcheck folder (and restchecktool if you're using that). Close every other file you had open in Notepad++. Open Find..., go to the 'Replace' tab again and this time Find: _rc_ and replace it with your own modding prefix. Click "Replace in All Opened Documents". It should find and replace hundreds of _rc_.

If you don't have a modding prefix then go get one here: http://forums.blackwyrmlair.net/index.php?showtopic=113

IT IS VERY IMPORTANT TO REPLACE _rc_ WITH YOUR OWN MODDING PREFIX. OTHERWISE IF SOMEONE HAS TWO MODS WITH RESTCHECK INSTALLED AND THEY BOTH USE THE _rc_ PREFIX THEN THEY WILL COMBINE TO PREVENT THE REST SCENES IN BOTH MODS FROM TRIGGERING.

4) If your mod is included in RestCheck then you need to remove the coding for those rest scenes. For example if you wrote the Haer'Dalis Romance Mod and are adding restcheck to that you'll need to open haerdali.baf and haer25.baf and delete the coding for those four rest scenes. Otherwise restcheck will prevent your own mod scenes from triggering all the time.

5) Add the following trigger to your mod's rest scenes:
Global("_rc_restcheck","GLOBAL",0)
Remember that you're replacing _rc_ with your own mod prefix.

6) You're done. Now your mod scenes will not trigger on the same rest as any of the in-game dreams or romance rest scenes (for Baldur's Gate II - Enhanced Edition) and also for all of the mods listed above.

7) If you added the restchecktool to your mod as well then that will have a separate install option when your mod installs. It's only used for testing purposes. You don't need it for restcheck to work (only to verify that it is working).


How to Expand RestCheck:

If you are playing a mod that has at least one rest scene and you want me to add restcheck coding for that mod to restcheck, just let me know what the mod is. If it's your mod you can make my job easier by just sending me copies of the d files and telling me if they're rest scenes in Shadows of Amn or in Throne of Bhaal.


How to help Test RestCheck:
You can test restcheck with the restcheck tool. You just need a mod that has it installed. Right now the only mod with restcheck coding is the one I am helping to write and doing the coding for, All Things Mazzy.

So far RestCheck has been tested and is confirmed to work with:
1) The first three Imoen/Jon dreams in Baldur's Gate II.
2) The three Imoen dreams in the Imoen Romance Mod.

If you test it with another scene and the restchecktool gives you the correct response then please let me know. If you find that it is not working or there are some bugs you can post about them in the RestCheck thread or e-mail me at caesarbran@gmx.com

Thank you.
-BCaesar

Viewing all articles
Browse latest Browse all 11774

Latest Images

Trending Articles



Latest Images