You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the Visual Studio Installer (Quick way to get to it is under "Programs and Features" right click on Microsoft Visual Studio 2017 and click "Change"
Click "Modify"
Switch to the "Individual Components" tab
Check the box next to "Python language support"
Note: You do not need to install Python 2 or 3 runtime since you'll be using the IronPython runtime instead
Right click the ScriptTester project and select "Unload project", then right click on it again and select "Reload project".
Double-click the ScriptTester.py script in the ScriptTester project.
Make sure the latest Steam version of Dark Souls: Prepare to Die Edition is running.
In Dark Souls, load a character of your choosing.
Press Alt+Shift+F5 to execute the test script in the Python interactive console window and watch it do a lot of weird stuff to your game. You can follow along to help you understand how the scripting works in general.
Important: Place your text cursor on DarkSoulsScripting. When hovering your mouse over the text, PyCharm will give you an error:
To resolve this error, you must open the quick action menu (Alt+Enter) and choose the option to generate stubs for the DarkSoulsScripting module:
Things to note:
Saving is automatically disabled for the rest of the play session each time you run ANY script. This will allow you to test things without overwriting your save (you can manually call 'SetSaveEnable' in the Functions.Extra module to re-enable it if you choose)