J'Kla wrote:Deledrius wrote:xStandardDoor is probably the right script. Make a PFM node, load that script, and then just hook up the empty slots.
There are a lot of really handy pre-made scripts that do most of the work for you, you just plug in the clickables, the regions, and the animation responders for the door. I would suggest looking through the available scripts (especially the ones starting with x, since those are the global convenience scripts) and finding the ones that apply to what you want to do.
I found the scripts so this is now a straight request for a Tutorial on how to use them.
What is a PFM node?
Sirius wrote:The LinkToAge message you can see in Korman can break saved games if used incorrectly - this is a rather serious issue, and Diafero has always warned people to never use it. There is a workaround for Complete Chronicles, but it's not available in MOULa as far as I know.
Could someone knowledgeable about MOUL/Dirtsand Shard tell us if there is already a "recommended way" to do linking (and linking books) on these servers ?
More info on the issue:
Due to how linking rules/instancing/ownership works, LinkToAge messages incorrectly setup can mess up with Age instancing (including duplicating of the Age). D'Lanor wrote about it here.
As a workaround/hack, the Offline-KI provides a Python linking manager, which is very simple to use and ensures linking rules are setup correctly (it also prevents you from linking to missing Ages).
Creating linking books on CC was done using D'Lanor's Book Template (very flexible but too complex for most users. It also required every Age to ship its own version of the script, which is bad). Later I released a simpler Python script, which doesn't require users to do any Python coding, and is also simpler to setup. Both use the OKI's link manager, ensuring safe linking.
However I don't know if there is an equivalent on MOUL/DS shards. MOUL instancing is different from DI instancing, but I think avoiding the LinkToAge message in favor of Python linking is still desirable.
To make things simpler for builders, maybe we could convert my scripts (xSimpleLinkingBook and xSimpleBahroStone) to MOULa ? This would allow linking books in Korman to work the same in both versions of the engine, and means we can prevent wrong links. It would require a new helper script with its own link database to handle linking though. But at least this would ensure all Shards can handle linking the way they see fit, and quickly patch any wrong link.
Sirius wrote:Doors are more complex to setup, because they use SDLs which can't be setup directly in Korman. When I have more time I'll try to provide an example blender file for it too.
Sirius wrote:J'Kla wrote:We go to the global settings window and set the age ID to 4113 this is a prefix that at present has no allocation on the database so should not clash
Oh, uh, yeah, I just dragged the sequence prefix bar at random. I don't know if it's worth reserving a sequence prefix for this Age as it's just an example draft, really
J'Kla wrote:I believe this could be useful for reserving the Sequence Prefix for a test age.
J'Kla wrote:There can't be any harm in producing methods of learning ways of adding functionality to fan ages by any method.
Deledrius wrote:Sorry it's taken so long, but I've published the completely revamped and updated wiki reference page for the Global Python Scripts.
Deledrius wrote:With some new functionality that Hoikas is working on, this may become easier for us to enable soon, as well as add the above-mentioned custom scripts to a game's installation or an export archive.
Sirius wrote:When I think of all the Fan-Ages we have, and how many of them have almost no logic in them...
Deledrius wrote:As for the Python File Mod (PFM), check out that wiki link for the information Doobes has provided. In order to use the global scripts, you will want to create a PFM, select the script, and attach the appropriate nodes for each parameter with the values you desire. If the PFM uses SDL (most do), you will need to add or create an SDL file for your Age (this must be done manually in Korman currently, and PyPRP always) and include the variable(s) you specify in the attribute(s) for the PFM. In the absence of more detailed tutorials, looking at the game's existing SDL files may help.
Users browsing this forum: No registered users and 6 guests