Sailing on the Emily. Kinda working. need input

Creating new content for Trespasser!

Moderators: TresCom Support Team, TresCom Board Managers, TresCom Developers

Post Reply
morningstarring
Brachiosaurus
Brachiosaurus
Posts: 178
Joined: Wed Jul 22, 2020 12:59 am

Sailing on the Emily. Kinda working. need input

Post by morningstarring »

So I've managed to get the Emily to sail but there are a few issues I can't sort out. Sometimes the ship veers off course if anne hits an object on deck or something similar. Anne doesn't stay planted on the deck and the ship will move out from underneath unless you run in the same direction.

Anyone have any tips to keep it sailing on a straight course, moving only along one axis? and is there a way to keep anne stable on deck? attached is a picture of the magnet Tscript.

heres a link to the ship sailing test https://streamable.com/em5okt
Attachments
emily.jpg
emily.jpg (149.72 KiB) Viewed 3777 times
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6123
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by Rebel »

The two most recent scripting for moveable vehicles that I've done recently were the bulldozer and the sky tram in the
prequel level. You can check those out. I'm sure there are more examples that others may have done, but the ones I
directly dealt with are the ones that come immediately to mind.

As far as getting Anne to move along with the vehicle (in your case, a ship), is something I don't know if that's doable.
I worked around that by being able to have Anne butt up against a subobject. You can walk forward in the tram as an
example, but mostly you're counting on Anne either being held in place by the seating going forward, or by the control
assembly on the return trip. IN the case of the bulldozer, Anne is basically hemmed in by the dozer's $objects.
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by machf »

I remember both the balloon in the TC level and the tram in The Four Towers sort of required you to hang on to the moving vehicle to avoid falling down or being left behind... friction in Trespasser doesn't seem to be too effective (hence all the problems with stacking boxes, too). My suggestion is that the ship should move while you're holding the ship's wheel on the bridge or something, then as soon as you release it it would start losing speed...
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
morningstarring
Brachiosaurus
Brachiosaurus
Posts: 178
Joined: Wed Jul 22, 2020 12:59 am

Re: Sailing on the Emily. Kinda working. need input

Post by morningstarring »

Rebel wrote:The two most recent scripting for moveable vehicles that I've done recently were the bulldozer and the sky tram in the
prequel level. You can check those out. I'm sure there are more examples that others may have done, but the ones I
directly dealt with are the ones that come immediately to mind.

As far as getting Anne to move along with the vehicle (in your case, a ship), is something I don't know if that's doable.
I worked around that by being able to have Anne butt up against a subobject. You can walk forward in the tram as an
example, but mostly you're counting on Anne either being held in place by the seating going forward, or by the control
assembly on the return trip. IN the case of the bulldozer, Anne is basically hemmed in by the dozer's $objects.
thanks. I'll check those levels out. I have an object attached to the ship for anne to be pushed along by, I had to give it a damage value of -1.00 to keep it from randomly killing her. however, when she interacts with the object it seems to sometimes cause the ship to veer off track. I'll look into those levels and try to tweak the $objects so they only act on anne and not the ship if it's possible.
morningstarring
Brachiosaurus
Brachiosaurus
Posts: 178
Joined: Wed Jul 22, 2020 12:59 am

Re: Sailing on the Emily. Kinda working. need input

Post by morningstarring »

machf wrote:I remember both the balloon in the TC level and the tram in The Four Towers sort of required you to hang on to the moving vehicle to avoid falling down or being left behind... friction in Trespasser doesn't seem to be too effective (hence all the problems with stacking boxes, too). My suggestion is that the ship should move while you're holding the ship's wheel on the bridge or something, then as soon as you release it it would start losing speed...
I'll give it a steering wheel or something as a trigger later on. I still need to figure out how to script the mechanics of anne touching an object to activate the trigger or similar method. Are the sphere/cube triggers such as a "CLocationTrigger" able to move or be attached by magnets? I tried a few other methods to make them move but it cause the level not to load.
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14048
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by Draconisaurus »

I imagine I tried to attach a CLocationTrigger to an object via CMagnet, back in the day. Tres doesn't seem to let triggers move. When CCollisionTriggers work right, they can be used instead... Finding what does and doesn't work in a CCollisionTrigger really is a personal discovery mission.
User avatar
tatu
-=TresCom Website Manager=-
-=TresCom Website Manager=-
Posts: 5088
Joined: Fri Jun 24, 2005 9:40 pm
Antispam: No
Location: Sweden
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by tatu »

First off I must say, by the advanced scripting you are trying, you are already among the top few modders who aim for more advanced mods! If anything it is super rare and for most if not all of us, it took years even to try stuff like this. :)
I still need to figure out how to script the mechanics of anne touching an object to activate the trigger or similar method.
I'd say it is similar to the elevator, but basically it is Anne's hand that can only activate it, like her hand (her physic mesh).

Suggestion/question: Would it be possible to move the ship (in a straight line) if you attach a magnet onto an invisible rail that is the path? I remember those "free" magnets always had issues of floating everywhere, probably cause they were never really used and never fixed.
Active project: Trespasser: Isla Sorna
Status:
BE-PH1: Released
PH2-IT: Pre-released
PL-SUM: In production

"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by machf »

morningstarring wrote: I'll give it a steering wheel or something as a trigger later on. I still need to figure out how to script the mechanics of anne touching an object to activate the trigger or similar method. Are the sphere/cube triggers such as a "CLocationTrigger" able to move or be attached by magnets? I tried a few other methods to make them move but it cause the level not to load.
Instead of a location trigger, I'd use the CObjectTrigger, with the condition being evaluated being either UseObject or PickUpObject/PutDownObject. (UseObject means you're pressing the key for "firing" or "swinging" the object you're holding in your hand at the time)
The ball turret in TC Isle originally used PickUpObject/PutDownObject, I later modified it to use UseObject instead...
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
morningstarring
Brachiosaurus
Brachiosaurus
Posts: 178
Joined: Wed Jul 22, 2020 12:59 am

Re: Sailing on the Emily. Kinda working. need input

Post by morningstarring »

tatu wrote:First off I must say, by the advanced scripting you are trying, you are already among the top few modders who aim for more advanced mods! If anything it is super rare and for most if not all of us, it took years even to try stuff like this. :)
thanks! i'm flattered.
morningstarring
Brachiosaurus
Brachiosaurus
Posts: 178
Joined: Wed Jul 22, 2020 12:59 am

Re: Sailing on the Emily. Kinda working. need input

Post by morningstarring »

latest progress https://streamable.com/8kg4q6

I'm having most success with Ccollision triggers. I can't get CObject triggers to function yet. I need to figure out a better way to keep anne moving with the ship and change the objects that activate the trigger. I also tested out a very rudimentary stopping mechanism lol. I think I might have something detach from the boat and land on something that will activate a collision trigger. the ship seems so sail straighter when the collision element object isn't in constant motion.

I think I may change my last level a little bit and have the ship at the end move to an entirely new area instead of ending the level.
User avatar
tatu
-=TresCom Website Manager=-
-=TresCom Website Manager=-
Posts: 5088
Joined: Fri Jun 24, 2005 9:40 pm
Antispam: No
Location: Sweden
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by tatu »

I'd say try using a magnet that is attached to the underside of the boat, and to an "invisible" railing below it. So in a way it would act like a slide-door. Not sure if that could work?
Active project: Trespasser: Isla Sorna
Status:
BE-PH1: Released
PH2-IT: Pre-released
PL-SUM: In production

"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."
User avatar
TheIdiot
T-Rex
T-Rex
Posts: 4345
Joined: Thu Feb 20, 2014 9:13 pm
Location: Canada, eh?

Re: Sailing on the Emily. Kinda working. need input

Post by TheIdiot »

Could a similar trigger be applied to Anne while she's on the moving ship to propel her at the same speed as the boat?
morningstarring
Brachiosaurus
Brachiosaurus
Posts: 178
Joined: Wed Jul 22, 2020 12:59 am

Re: Sailing on the Emily. Kinda working. need input

Post by morningstarring »

tatu wrote:I'd say try using a magnet that is attached to the underside of the boat, and to an "invisible" railing below it. So in a way it would act like a slide-door. Not sure if that could work?
if it could work I'd need to find a long skinny object to attach it to. I want it to travel a fair distance to a new local. however, I don't know if magnets can slide or move along a specific axis. I could try to see if the "XTFree = true" script can act on a magnet. maybe if master and slave objects are assigned?
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14048
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by Draconisaurus »

I might have a closer look if my head were feeling better. But keep us posted and we can brainstorm.

...Hmmm oh. On a laptop I lost, I had gotten some ways in a level with a moving Humvee that Anne was riding. It really worked! The Humvee occasionally started rotating slowly in odd directions, but the level was a constant (slow) motion path for the vehicle, around various bends, so I solved the issue (albeit with a bit wacky-seeming result) by having the Humvee be "course corrected" at each bend, at which point you were able to get back on without much issue. Raptors were by the way, and defended against as you went. A fixed-texture InGen helicopter... what are those things called? Chinook, was at the end, waiting to pick you up.
User avatar
tatu
-=TresCom Website Manager=-
-=TresCom Website Manager=-
Posts: 5088
Joined: Fri Jun 24, 2005 9:40 pm
Antispam: No
Location: Sweden
Contact:

Re: Sailing on the Emily. Kinda working. need input

Post by tatu »

morningstarring wrote:
tatu wrote:I'd say try using a magnet that is attached to the underside of the boat, and to an "invisible" railing below it. So in a way it would act like a slide-door. Not sure if that could work?
if it could work I'd need to find a long skinny object to attach it to. I want it to travel a fair distance to a new local. however, I don't know if magnets can slide or move along a specific axis. I could try to see if the "XTFree = true" script can act on a magnet. maybe if master and slave objects are assigned?
You could otherwise look into the TC level (TresCom) and check how to use the ActionType = 26 "CScriptedAnimationAction" function. They used it on the hot air balloon.
https://www.trescom.org/files/docs/tscr ... tionAction
Active project: Trespasser: Isla Sorna
Status:
BE-PH1: Released
PH2-IT: Pre-released
PL-SUM: In production

"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."
Post Reply