Page 1 of 2

Offline KI 3.8

PostPosted: Fri Apr 13, 2012 8:38 am
by diafero
The Offline KI brings the KI and other changes you are used to from UU and MOUL to your CC/TPOTS game. It allows you to reach fan ages and Cyan ages converted by Drizzle (from MOUL, Myst V or any of the other supported games): All of them are integrated into the existing environment. In addition, it lets you create and play marker missions and use flymode to inspect ages. It features a lot of KI commands useful while developing and debugging ages. On Alcugs Shards, it also fixes a lot of multiplayer issues.

Version 3.8 of my Offline KI is now available for download from the DI UAM: The recommended way to install it is to properly set up your UAM. DI-Shard already has it installed. You can download the Python source code, too.
The changes of this release are as follows:

- Fan-age information is now managed in one age descriptor per file, which makes it much easier for age authors to configure their age
- The list of restoration ages in Nexus can now be sorted by last update
- The bookshelf can be automatically populated with the most recently updated ages
- Eder Delin and Eder Tsogahl now actually and really work :)
- Fixed accidentally leaving the set-up panel of the Gahreesen Wall when clicking the background of the panel (thanks to Sirius)
- Fixed Cleft imager enabling the Relto book

If you are an age writer and want to learn about age descriptors, please read the technical documentation for further information.

I hope you enjoy it, please let me know if there are any problems (though it is also always nice to hear things are working properly :D )

Re: Offline KI 3.8

PostPosted: Fri Apr 13, 2012 4:29 pm
by janaba
Great update, diafero, everything works perfectly well and smooth ... :P

The Wall and the panels seem to be more stable and the standing up everytime
when accidentally clicking onto the setup panel's background is totally gone/fixed ...
The bookshelf contains the most recently updated ages ... Didn't test the Eders yet ...
The ability to see the 'last updated' dates of the Restoration ages and to even being
able to sort the list after the latest ones is absolutely awesome ...

It was a real pleasure to test this all ... Thanks, diafero and all involved ... :)

Re: Offline KI 3.8

PostPosted: Fri Apr 13, 2012 6:17 pm
by Wamduskasapa
I also wish to thank the team. So far This Update seems very stable...

Re: Offline KI 3.8

PostPosted: Sat Apr 14, 2012 2:29 am
by diafero
Thanks for the positive feedback :)

Re: Offline KI 3.8

PostPosted: Sat Apr 14, 2012 9:34 am
by cskid13
Would the code used for Eder Delin and Eder Tsogal work for Eder Gahrahno and Eder Nahtoka?

Re: Offline KI 3.8

PostPosted: Sun Apr 15, 2012 3:25 am
by Sirius
cskid13 wrote:Would the code used for Eder Delin and Eder Tsogal work for Eder Gahrahno and Eder Nahtoka?
It won't, but if Diafero doesn't mind, I'll use his update of the file to create a new script to be used in fan-ages like yours. It should let you select some SDL vars (which the current script is missing for Ages other than Delin and Tsogal), and choose the offline/online running time (if your Age is big/small). Delin and Tsogal will still be using the original file, of course.

BTW, Diafero, there is a small error in your xBlueSpiral file. Line 58, "olutionvar" is missing the 's'. It doesn't prevent it from working but it would be better to fix it.

Re: Offline KI 3.8

PostPosted: Sun Apr 15, 2012 4:46 am
by diafero
Thanks, Sirius, I must have missed this when moving variables around.

Regarding fan-ages using this script: I would prefer if we did not needlessly add another copy of this code. Uru is full of code duplication already, we should try to avoid it rather than add to it ;-)
So my suggestion would be to extend the current script, adding new options to it. The values for Delin and Tsogahl can be hard-coded, if other ages use the script, they have to provide them as arguments. I did this for the SDL variable names, you can find the new version at https://gitorious.org/offline-ki/offlin ... eSpiral.py .
The actual running time is currently hard-coded to 60 seconds, it must exactly match the duration of the door rotation animation (which happens to be one minute for both Delin and Tsogal). That could of course be made a parameter as well (with a default value of 60 seconds), if you plan to make the time different in your age. What's changed for offline is the "slowdown", which makes use of the feature of Uru to play an animation slower (or quicker) than normally so that people have four times as much time when playing offline. I think such a relative value is a good choice and does not need to become a parameter (there are already a whole lot of them^^).
The assumption of using exactly 7 cloths is currently hard-coded and used throughout the script, because there is stuff the script needs for each cloth (like the responder to make the corresponding number glow on the door, or the activator from the clickable). Changing that would require quite an effort.

Re: Offline KI 3.8

PostPosted: Sun Apr 15, 2012 5:16 am
by Sirius
diafero wrote:Regarding fan-ages using this script: I would prefer if we did not needlessly add another copy of this code. Uru is full of code duplication already, we should try to avoid it rather than add to it ;-)
Good idea. I just wasn't sure if you wanted to let a fan-age use a script that was supposed to work in Cyans' ages.

diafero wrote:...so that people have four times as much time when playing offline. I think such a relative value is a good choice and does not need to become a parameter (there are already a whole lot of them^^).
That's right.

diafero wrote:The assumption of using exactly 7 cloths is currently hard-coded and used throughout the script, because there is stuff the script needs for each cloth (like the responder to make the corresponding number glow on the door, or the activator from the clickable). Changing that would require quite an effort.
I didn't want to mess with it anyway. In fact, since Ages using Journeys always have 7 clothes, I don't see the use of adding more of them.

Re: Offline KI 3.8

PostPosted: Sun Apr 15, 2012 5:36 am
by diafero
Sirius wrote:Good idea. I just wasn't sure if you wanted to let a fan-age use a script that was supposed to work in Cyans' ages.

Sure, I even prefer them to do so, at least if the scripts are global (i.e., start with an "x"). That makes the fan age's Python code smaller and probably of better quality, since bugs have to be fixed only once.

That mess with every age shipping its own copy of the linking/journal book script... really horrible, but I guess it's too late to fix this. It'd also take someone who could build ages, so that a "global" script (taking, for example, the activator, the target age name, and the target spawn point name as argument - which suffices for most ages) can actually be tested. Which excludes me ;-) . Something similar for journals (activator, and the filename of the journal content in the ageresources folder), and much of the custom Python code fan-ages currently ship is totally unnecessary.
I think that's what Dustin attempted to do with his UAM Vars scripts, but those are totally over-designed and try to solve some other problems at the same time, and fix/replace stuff that's not really broken (like SDL).

Re: Offline KI 3.8

PostPosted: Fri Sep 28, 2012 9:25 am
by Karkadann
Does any one else have a problem adding fan made ages to the bottom shelf in Relto with KI 3.8 using the "/bookshelf" command or is it just my bad spelling.