PDA

View Full Version : --> Needs Help With Trekky Teleport Cog, Just So Its Understandable.



TSM_Trendy_Ness
09-20-2000, 12:58 AM
I am having problems with this teleport cog that I am experementing with, I have some experience placing cogs but this one just puzzles me... either it does nothing or it crashes the game when I try setting it to teleport, most likely I am a fool that overlooked something, but if you can tell me how to use this you are pretty much helping me create half the level, here it goes...


# Jedi Knight Cog Script
#
# TJC_trans.cog
#
# StarTrek type transporter.
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

surface mother mask=0x448
surface masterswitch
surface s1
surface s2
surface s3
surface s4
surface s5
surface s6
surface s7
surface s8

sector main
sector d1
sector d2
sector d3
sector d4
sector d5
sector d6
sector d7
sector d8

thing maint
thing d1t
thing d2t
thing d3t
thing d4t
thing d5t
thing d6t
thing d7t
thing d8t

int dest=-1 local
int poss=1 local
int lastswitch=-1 local
int poss2=0 local
int garbage local
int dummy local
sound electro
sound activatesnd

message entered
message activated
message damaged


end

# ================================================== ======================================

code
activated:
if (poss2 == 1) return;
if (GetSenderRef() == masterswitch){
poss = 0;
garbage = SetWallCel(mother, 1);
dummy = PlaySoundPos(activatesnd, GetSurfaceCenter(GetSenderRef()), 5, 1, 2, -1);
return; }
if (poss == 1) return;
if (GetSenderRef() == mother) return;
garbage = SetWallCel(GetSenderRef(), 1);
dest = GetSenderRef();
dummy = PlaySoundPos(activatesnd, GetSurfaceCenter(GetSenderRef()), 5, 1, 2, -1);
garbage = SetWallCel(lastswitch, 0);
call newmother;
return;

entered:
if (poss == 1) return;
if (poss2 == 1) return;
CreateThing(telesparks, GetSourceRef());
AddDynamicTint(GetSourceRef(), 255/0/0);
if (GetSenderRef() == main){
if (dest == s1) TeleportThing(GetSourceRef(), d1t);
if (dest == s2) Teleportthing(GetSourceRef(), d2t);
if (dest == s3) Teleportthing(GetSourceRef(), d3t);
if (dest == s4) Teleportthing(GetSourceRef(), d4t);
if (dest == s5) Teleportthing(GetSourceRef(), d5t);
if (dest == s6) Teleportthing(GetSourceRef(), d6t);
if (dest == s7) Teleportthing(GetSourceRef(), d7t);
if (dest == s8) Teleportthing(GetSourceRef(), d8t);
return; }
Teleportthing(GetSourceRef(), maint);
return;

damaged:
if (GetSenderRef() != mother) return;
garbage = SetWallCel(mother, 10);
dummy = PlaySoundPos(electro, GetSurfaceCenter(mother), 5, 10, 20, -1);
poss2 = 1;
return;

newmother:
if (dest == s1) garbage = SetWallCel(mother, 2);
if (dest == s2) garbage = SetWallCel(mother, 3);
if (dest == s3) garbage = SetWallCel(mother, 4);
if (dest == s4) garbage = SetWallCel(mother, 5);
if (dest == s5) garbage = SetWallCel(mother, 6);
if (dest == s6) garbage = SetWallCel(mother, 7);
if (dest == s7) garbage = SetWallCel(mother, 8);
if (dest == s8) garbage = SetWallCel(mother, 9);
return;
# .................................................. ......................................
end

NOTE

The creator of this cog posted it in the cog section of massassi.net without a txt file or user comments saying how to use it, I can't figure it for the life of me and all I ask it for someone to tell me how to make it work. any help is extremely appreciated, thanks! http://forums.massassi.net/html/wink.gif

TSS_CapricusLDR
09-20-2000, 07:17 AM
i posted about that cog on here a while ago, i got no help, i even e-mailed the author, but never got a reply, i am still looking for a way to work it so if you find out, i'd be greatful if u mailed me with instructions!

thanks
-TSS_CapricusLDR

------------------
"It's been, one week since we got the scene, cheating lovers and cousians that marry,
5 days since they had the show with the hermaphrodite, the slut and the crack ho,
3 days since we heard the tale about the guy who learned his woman was a shemale,
yesterday it occured to me, that i've been watching a bit too much jerry springer!"

TSM_Trendy_Ness
09-20-2000, 04:07 PM
If I figure it out I will email you, but I have been trying everything and It still just crashes my game. I didn't even know that the author posted that he made it, as there is limited english in it. lol. http://forums.massassi.net/html/wink.gif

TSM_Trendy_Ness
09-20-2000, 04:09 PM
Sorry for wasting a thread but I assume that the masterswitch variable links to some switch that turns the other swithes on, but what is the mother variable?

TSM_Trendy_Ness
09-20-2000, 05:20 PM
I figured it out, darn it, as far as I know it only works for single player levels! I only tried a few options but it appears "mother" is the surface you step on to complete the process, (like the blue floor panels in star trek) and "masterswitch" is the primary switch that takes you to the "maint" ghost, and "main" is the sector of the main T item, the rest is self explanitory, just follow down the line.

If anyone could make this teleport work in multiplayer please do so and you will get full credit for the cog and building the teleporters for my multi player level! It's all alien to me, but I would rather have teleportation than elevators or anti gravity tubes!

Midget Basher
09-20-2000, 07:47 PM
I'll make one
it will be very simple for me, because I have had a lot of experiance with teleportthing()

tell me the details of the cog you want on icq #82076897
or, if you don't have icq, just post on this thread

TSM_Trendy_Ness
09-20-2000, 10:49 PM
Hey thanks, I am not too picky, I just need one kind of like the above, where you can set it to a few switches that lead to differen't designated parts of the level (like where ghosts objects are) when you step on the designated surface, and if you press a switch and then another switch, the second switch is your destination, if possible have some sort of eye candy such as a transparent colored screen as your teleporting and/or those formations of pixels(like rail det. smoke or healing pixels, (like something from star trek) and a customizable sound.

in a jumble:
Switches that activate the teleport surface (for a customizable ammount of time) each switch makes the surface teleport to the switches destination, destination being a ghost object.
Customizable sound durring teleportation
Eye candy, if not possible, make the switches temporaraly put customizable color tint in a sector where the teleport surface is that can be viewed from inside (and out if possible).
Maybe if you have time make a customizable "revive durring teleport" that you set how much health and shield it revives or subtracts when setting switch and location.
if it is hard for someone understand how to use it, make a readme, the above cog didn't have one and it took me days before realizing that I wasn't wrong and that it only worked in single player.
Make sure it is for multiplayer and that it will make only one person teleport, and not everybody.

If you want more detail or an explanation of what I want my email and AIM are "nesseight@aol.com" as I have no ICQ yet.

And if there is too much just go basic, and I'll loophole around the rest.

Thanks,
Chris Thiessen

TSS_CapricusLDR
09-21-2000, 07:43 AM
Well, i hope midget basher can convert it, it would work really well in my new jk level, i am making a level of the USS Enterprise D

------------------
"It's been, one week since we got the scene, cheating lovers and cousians that marry,
5 days since they had the show with the hermaphrodite, the slut and the crack ho,
3 days since we heard the tale about the guy who learned his woman was a shemale,
yesterday it occured to me, that i've been watching a bit too much jerry springer!"

TSM_Trendy_Ness
09-21-2000, 03:51 PM
Well, If your making a starship that big I would recommend getting as many of the toys that they have and opening the layout manual. of coarse the series ended a few years ago and that might be difficult.

TSS_CapricusLDR
09-22-2000, 11:23 PM
i wont be making the WHOLE ship, just key points like, sick bay, enginerring, the bridge, holodecks, etc.

TSM_Trendy_Ness
10-03-2000, 10:58 AM
I don't think he is going to help...

Quinn Mallory
10-03-2000, 07:36 PM
COUGH* Cough*

Go to
www.jedinights.com/trektc (http://www.jedinights.com/trektc) and apply for a job as level editor and work on ENTerprise D there.

------------------
What if you found a portal to a parallel universe? What if you could slide into a thousand different worlds where it's the same year and you're the same person, but everything else is different? And what if you can't find your way home?

TSS_CapricusLDR
11-19-2000, 02:41 AM
did he ever e-mail you back with the cog?

------------------
"It's been, one week since we got the scene, cheating lovers and cousians that marry,
5 days since they had the show with the hermaphrodite, the slut and the crack ho,
3 days since we heard the tale about the guy who learned his woman was a shemale,
yesterday it occured to me, that i've been watching a bit too much jerry springer!"

TSM_Trendy_Ness
11-20-2000, 11:25 PM
Actually, no. Enough time has past, I gave up on the level, (too boxy,) And now I am working on a superior level, if I need a teleport cog I will wind up making my own, (I have studied cogs,) and thats what I'll do if I can't make a fast controllable car, I'll have teleport pads, (massive level, I just hope it playes well in multiplayer (I get full framerate.))

TSM_Trendy_Ness
10-11-2007, 12:56 PM
Never mind, I have abandoned this project. Thanks anyway.

gbk
10-11-2007, 08:10 PM
Holy mother! Seven-year-old necro thread action!


Why in the name of holy Kak did you revive this thing?

happydud
10-14-2007, 11:41 AM
Because it was hilarious.

I didn't know we still had threads from 7 years ago.

gbk
10-14-2007, 01:53 PM
I didn't know we still had threads from 7 years ago.
Of course. The Cog forum has never been pruned. :colbert:

Reid
10-16-2007, 10:52 PM
7 years of history. All in one post.

Long live JK.