Page 1 of 2

Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 6:04 am
by Aloys
If that title didn't make any kind of sense here is what I am trying to know:
I'm interested in customizing Relto; I have added new objects to it before, it's easy to add stuff to an Age on a separate page, but I am also interested in removing stuff from it... (in order to replace it with different stuff). And what I am wondering is whether it is possible to unload some specific objects when linking to an Age.. (drawables, colliders, regions, etc) Note: I am not talking about paging out whole pages (I guess that would be doable) but just specific objects.

Do we have such a fine level of control?

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 6:10 am
by D'Lanor
I don't know about unloading objects but if you remove their draw and physics it amounts to the same. As you probably know that is what Cyan usually does to make objects appear and disappear. You could do that in a Python file which is called by a pythonfilemod in your own prp.

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 6:18 am
by Aloys
And could that work on linking? For instance if there's is a region triggering this placed right on the linking spot? (So that the object disappear before the scene completely fades in.)

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 6:51 am
by D'Lanor
If your prp file loads at link in it can execute its Python code immediately in the OnServerInitComplete section. If it loads later then a region could be an option, or you put the code in the OnFirstUpdate section.

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 7:31 am
by Aloys
That's perfect then; thanks for the reply.
That means potentially we can customize our Reltos without constraints.. That's pretty cool. I think I'll execute an old idea of mine then. :)

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 11:06 am
by Trylon
D'lanor is right, I did something similar for a relto customization a while back.

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 12:35 pm
by diafero
I also use it in the Offline KI to hide the POTS fog layer when the Sparkly island is present. You have to know the scene object name, of course - and if you have bad luck, the object you want to hide is only part of a scene object. You would then have to hide it completely and re-model the rest in your prp.

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 1:27 pm
by Aloys
diafero wrote:and if you have bad luck, the object you want to hide is only part of a scene object. You would then have to hide it completely and re-model the rest in your prp.

Right, and that's exactly what I'm doing. I'm adding some architecture in the mountain, and I need to get rid of that mountain first.. It's actually made up of a number of rock objects, so I'm hidding them, and recreating parts of them.
Image

[edit] the spoiler code doesn't work anymore?

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 1:32 pm
by diafero
So, is that the attempt to build an extension to the hut, to place more linking books there? :D

Re: Unloading parts of an Age when linking?

PostPosted: Tue Feb 09, 2010 1:35 pm
by Agenotfound
looks nice