Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jul 2014
Location: Finland
journeyman
OP Offline
journeyman
Joined: Jul 2014
Location: Finland
After creating the mod UnderSiege I have tried to create a stand-alone mod template based on the files I modified/copied to UnderSiege. That should allow you to bring most basic features of the Main campaign into your stand-alone mod.

1. Open the Divinity Engine and create a new mod without any dependencies.
2. Exit the editor when it requests to open/create a level.
3. Unpack the zip into the root of your Mod. That's in ...\Divinity - Original Sin\Data\Mods\<YourMod>\
4. After unpacking find a file "_MyMod_Main.txt" and rename it to _YourMod_main.txt (It's a good idea to have the 'underscore' in front of the name just in case)
5. Open the Divinity Engine. Load your Mod and create a level.
6. Add two characters called "Player1" and "Player2" into your level and make them Global and Check the "isPlayer" checkbox.
7. Add two items called "TeleporterPyramidA" and "TeleporterPyramidB" into your level and make them global.
8. Add a point trigger called "YouMod_Arrival" to your level and make it global.
9. Open Story Editor and move "_YourMod_Main" under "__Start"
10. Select "Generate Definitions" from File menu
11. Find the line "CharacterTeleportPartyToTrigger(TRIGGER_MyMod_Arrival,"");" from _YourMod_Main and edit the trigger name to match yours.
12. Build the scripts


Here is the Template:
Stand-Alone Mod Template


Last edited by BioSpirit; 19/09/14 09:45 PM.
Joined: Jul 2014
Location: Finland
journeyman
OP Offline
journeyman
Joined: Jul 2014
Location: Finland

12. After that. It's a good idea to edit the Player settings. If you have used "FemalePlayer" and "MalePlayer" templates while creating the Player1 and Player2 then most of the settings are already correct by default.

[Linked Image]

Joined: Jul 2014
Location: Finland
journeyman
OP Offline
journeyman
Joined: Jul 2014
Location: Finland
13. Unpack Main.pak into a folder you want using LSTools.
14. Then copy a folder CharacterCreation from <UnpackFolder>/Mods/Main/ into your mod
15. Copy a folder CharacterCreation from <UnpackFolder>/Mods/Main/Levels/ into your mod
15. Copy a folder MenuScreen_Cyseal from <UnpackFolder>/Mods/Main/Levels/ into your mod

16. Start Divinity Engine, load your mod and open "Module Settings..."
17. Setup Author and Description
18. Setup Startup Level to CharacterCreation
19. Setup Menu Level to MenuScreen_Cyseal

20. Now you should be ready to test your mod setup in the game. Don't forget to create the AI grid or otherwise the screen will be black.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5