3rd Party Models/Media Chat / Animation Problems - only works when model is not on its partner model

Author
Message
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 20th Apr 2016 05:17
Hey all, I have a sci-fi ship that has as animated canopy.

The canopy and the ship are exported as two separate models (only way I could get the transparency of the canopy glass to work)

Now I have got the animation working - sort of

At the moment I just have the default door.lua script attached which I will use as base for a custom script.

The problem is that the canopy animations work but only if the canopy is not on the ship. When it is on the ship the option to open\close doesn't trigger at all in Guru.

I have spent quite some time testing different fpe settings but have not had any success thus far.

Any Ideas?

Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
OldPMan
3D Media Maker
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 20th Apr 2016 06:00
Hey.
I think that maybe the problem is the distance to the canopy.
Maybe we should try to make a copy door.lua and increase PlayerDist.

I'm not sure but may be it will help.
And I think you should remove the comment notation symbols -- in the last line of the script to look at the parameters during the test. To fire line below


It may be that the option "plrvisible" does not triggered the script.
The secret to creativity is knowing how to hide your sources.
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 20th Apr 2016 09:00
It may be as Oldpman says, or it may be that when it animates to open it take the origin higher and you're suddenly too far away.

Also, note that the door scripts don't always prompt to close, but E still works to close the door, have you checked that?

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 20th Apr 2016 12:33
Hey all, thanks for the input - much appreciated

@OldPMan indeed the problem is with "plrvisible" not triggering. If I increase the distance to 400 it works but only if player is between about 315ish - 370ish - tends to be a bit random - but any closer to the ship and "plrvisible" reverts to zero.

@Belidos, yeah I did notice that with door script. For me it never prompts to close.

Also I tried adding some code from Tazman's "opengate" script as below, but doesn't make any difference.


Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
OldPMan
3D Media Maker
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 20th Apr 2016 12:57
Try this script from the attach. I deleted from the setting conditions "plrvisible".
I'm not a master in the script, but I think it should work.
Put this file in the folder with your door.lua
And do not forget to change the setting "aimain = doorhidden.lua" in your .FPE
The secret to creativity is knowing how to hide your sources.

Attachments

Login to view attachments
OldPMan
3D Media Maker
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 20th Apr 2016 13:28
Sorry, I forgot to increase the distance parameter to the player "PlayerDist". Change it , if the script does not work.
The secret to creativity is knowing how to hide your sources.
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 20th Apr 2016 14:18
Ah that would explain it. If it's using plrvisible then I would guess it's expecting the player to be within a certain arc in the front of its z axis, when the animation moves the model up and back it alters the axis so the player is no longer visible in that arc, probably best to get rid of plrvisible and just use PlayerDist instead.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 20th Apr 2016 15:29 Edited at: 20th Apr 2016 16:10
@OldPMan thanks for that script - it works pretty well.

After the script is activated the first time the canopy cannot be walked on - the player just falls thru it lol, so a few teaks and it should do the trick. Will have a play with it and see if I can fumble through it!

Sneak Peak!


Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
OldPMan
3D Media Maker
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 20th Apr 2016 17:16
Well, here I have nothing concrete to say I can not. Something probably with collisions, perhaps animation? As I said, I am not the master in scripts.
In any case, excellent work with the model, texture and animation. Keep it up !
The secret to creativity is knowing how to hide your sources.

Login to post a reply

Server time is: 2024-11-22 09:46:08
Your offset time is: 2024-11-22 09:46:08