Edible food. - by New Horizon
rujuro on 17/4/2005 at 18:42
yeah, that's the one. Strange, my scripts have always worked. Wonder what is different about the original missions.
New Horizon on 17/4/2005 at 18:46
Quote Posted by rujuro
yeah, that's the one. Strange, my scripts have always worked. Wonder what is different about the original missions.
Hmmm, I could be missing something.
Could you briefly explain how you go about creating your own custom scripts and getting them to work ingame? From what Krypt said, it should easily work with the original missions. I just don't get it.
What directory do you store them in?
I can't find the health scripts hard coded into the levels themselves...so they must be stored in the gamesys and from what I can tell, mine is in the gamesys with no issues.
rujuro on 17/4/2005 at 18:56
Well, I never did anything specific to make them work. I define the script in the script editor, save all scripts, assign it to the object in the world, and it seems to work fine. The saving is always handled by the editor, so I haven't seen where it goes.
Have you tried running from within the edtor, to see if that works?
New Horizon on 17/4/2005 at 19:02
Quote Posted by rujuro
Have you tried running from within the edtor, to see if that works?
I haven't tried that yet. I'm running the editor in a separate folder to keep things clean. Might just have to wait and see if Krypt has any ideas, or if another ex dev pipes in.
New Horizon on 17/4/2005 at 19:43
Well, I can stop scratching my head as to whether or not I did something wrong. It works perfectly with the original levels when I run it through the editor. I'm not sure what could be different though, as I'm using the t3mainrelease version from the editor with my game insall folder and all the same t3u files as well.
Must be just some little thing.
New Horizon on 17/4/2005 at 20:08
Also tried just bypassing the editor and loading up the T3MainReleaseVersion.exe from within the editors folder. Works here also but what I see happening is the longer load times...which must be caused by having blockloading disabled. Hmmm. Does this spell the end of any hope for adding more details to the original missions?
- Edit:
Confirmed. Loading from the block files nixes my attempts to use any custom scripts with the original missions, outside of the editor. Blast, that really sucks.
-Edit 2:
Found out how to load custom trigger scripts in the original missions. Edible food works, no problem.
Tutorial to follow. Now...sleep. Sick with a nasty cold.
SneaksieDave on 17/4/2005 at 22:04
Quote Posted by rujuro
Is it possible that the original game executable loads scripts from the block file for the mission?
Ooh, good point. Don't know if that's the case, but if so, NH you could try recompiling the map into a UNR instead of using the original files.
Edit: Damnit, too late again. I really need to stop getting so excited and posting in a hurry. Anyway, I'm willing to bet you recompiled the maps...
Edit 2: Holy crap! That means we in fact WON'T have to worry about how to distribute scripts, if they are contained within the IBT, yes? And, IBTs have and can be consistently and properly generated, right? I haven't tried, myself. Hah, T3Loader might end up having to simply drop an IBT.
New Horizon on 17/4/2005 at 23:03
You'll likely want to whap yourself on the head like I did. It was so easy.
The game searches for new triggerscripts in... Content\T3\Triggerscript\DynamicallyLoaded.
That's it. :)
Not much of a tutorial. Heh. LOL
SneaksieDave on 18/4/2005 at 02:14
So the gamesys is recompiled with the triggerscript reference, and then the compiled triggerscript is placed there, and that's it? Nice. That's a major concern taken care of.
New Horizon on 18/4/2005 at 02:25
Quote Posted by SneaksieDave
So the gamesys is recompiled with the triggerscript reference, and then the compiled triggerscript is placed there, and that's it? Nice. That's a major concern taken care of.
Yep, after all the hair pulling I did...that's is. LOL :) Good to know.
I'm not signed up on the Wiki, so if someone would like to document that...please do. :)