kdau on 7/7/2013 at 05:16
KDScriptKDScript is a custom script module, currently in a public beta testing phase. For more information, see the (
http://kdau.github.io/KDScript/) online documentation (now with "quick start" tutorials!) or try the demo mission (load the whole ZIP file as an FM).
Please provide any feedback or bug reports you may have! Once an FM using this module has made it through its own beta testing, I'll be ready to release the module as non-beta.
This module owes its existence to Telliamed's robust base libraries and to our NewDark benefactor Le Corbeau. Thank you!
Download the current version: (
https://github.com/kdau/KDScript/releases/download/v0.7.0/KDScript-0.7.0.zip) KDScript-0.7.0.zip (4.1 MB).
Current features* custom HUD elements: quest arrows, statistic meters, and tool sights
* automatic subtitling of AI speech and Garrett voiceovers
* changeable weather, fog, and environment maps
* nonlinear campaigns (change next mission)
* optional reverse objectives
* other possibly useful stuff :)
Upcoming features* replacement for LoudspeakerRelay
* "snuffable" script for candles
* alter Design Note parameters during the mission (for KDScript scripts only, at the moment)
* show any image on screen (as a HUD overlay or in a book-like mode)
R Soul on 7/7/2013 at 13:37
The scripts aren't working. When loading the mission, Mono says failed to load script module "kdscript", even though the osm is present. I tried again with it in the root T2 folder, but the result was the same.
(version 1.21, Windows XP)
kdau on 7/7/2013 at 17:00
Quote Posted by R Soul
The scripts aren't working. When loading the mission, Mono says
failed to load script module "kdscript", even though the osm is present. I tried again with it in the root T2 folder, but the result was the same.
(version 1.21, Windows XP)
Hrm, thanks. My only Windows test environment is Win7, and of course it worked for me there. I'm guessing that I've unintentionally used some API call that didn't exist back in XP. I'm reviewing the code now.
Yandros on 7/7/2013 at 17:28
It could also be some setting in your IDE/build environment.
kdau on 7/7/2013 at 17:49
Quote Posted by Yandros
It could also be some setting in your IDE/build environment.
The environment is identical to what I used for the scripts in Nice Game of Chess, so it should have been okay. But I've checked the import table now, and there's nothing problematic. I think I'll just finally set up a build environment on the Windows machine instead of cross-compiling. New version to come in a few hours...
sNeaksieGarrett on 7/7/2013 at 18:40
I was able to get kdscript.osm to work on my machine, but it had to be in thief 2's root folder. I'm using dromed 2 v1.20, windows 7 pro x64.
kdau on 7/7/2013 at 19:58
Quote Posted by R Soul
The scripts aren't working. When loading the mission, Mono says
failed to load script module "kdscript", even though the osm is present. I tried again with it in the root T2 folder, but the result was the same.
(version 1.21, Windows XP)
I've just released version 0.1.0.1 (see first post), recompiled natively on Windows with debug disabled. That ought to work on WinXP now, as it's very close to Telliamed's build environment.
Quote Posted by sNeaksieGarrett
I was able to get kdscript.osm to work on my machine, but it had to be in thief 2's root folder. I'm using dromed 2 v1.20, windows 7 pro x64.
Strange. I assume you're using FMSel (since otherwise it would be in the root folder anyway). Have you made any changes to script_module_path in your darkinst.cfg?
sNeaksieGarrett on 8/7/2013 at 01:42
I'm not using FMSel at all... what I did for a quick test was I extracted your demo into a subfolder in thief 2 and then tried loading the demo mission. It couldn't find kdscript.osm, so I moved it to the root directory.
I just don't understand why it didn't work for R Soul if it worked for me. Why would it matter that he's on WinXP?
kdau on 8/7/2013 at 01:50
Quote Posted by sNeaksieGarrett
I'm not using FMSel at all... what I did for a quick test was I extracted your demo into a subfolder in thief 2 and then tried loading the demo mission. It couldn't find kdscript.osm, so I moved it to the root directory.
Ah. The engine only ever looks in the Thief root or the FM root for OSMs. I'll clarify in the first post that the demo should be loaded like an FM.
Quote Posted by sNeaksieGarrett
I just don't understand why it didn't work for R Soul if it worked for me. Why would it matter that he's on WinXP?
OSMs are just renamed DLLs that have been specially coded to be used by the Dark Engine. As such, anything that can go wrong with an EXE/DLL, including version incompatibility, can go wrong with an OSM as well. It's less likely, since OSMs use mostly Dark Engine interfaces (instead of Windows ones), but it can happen.
fibanocci on 8/7/2013 at 06:56
KDScript 0.1.0.1 Monolog says: Failed to load script module kdscript. Darkloader doesn't care about kdscript, it's not in the T2-folder. Same message if I put kdscript in the T2 direction manually. I'm on XP.
BTW, where's the book folder? Don't you want the testers to read the signs?