Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Knight and Mysteries of the Sith Editing Forum → Startupcog ?? and endlevel ???
Startupcog ?? and endlevel ???
2000-08-17, 10:11 PM #1
Hi I have made this Startup Cog and I would ask why the Force Persuasion, Blinding and Healing dosen’t work and why I still have my Bryar Gun


This is my Startup COG:
---------------
#Level master COG

symbols
message startup
message user0
message shutdown

int player local
material tip_mat=saberblue0.mat local
material side_mat=saberblue1.mat local local
sound goalsnd=Accomplish1.wav local
end

code

startup:
SetMasterCOG(GetSelfCOG()); // Setup COG as master COG
player = GetLocalPlayerThing();

SetInv(player, 99, 1000); // Setup Goals first string
SetGoalFlags(player, 0, 1); // Setup the first goal as DISPLAYED

SetInv(player, 10, 1.0); // Lightsaber

SetTimer(5); // Set refresh timer for powers

timer:
SetInv(player, 20, 20); // Force ranking
SetInv(player, 16, 200); // Force manna
SetInv(player, 16, 4); // Force Stars

SetInv(player, 21, 4); // Force Jump
SetInvAvailable(player, 21, 1);
SetInv(player, 22, 4); // Force Speed
SetInvAvailable(player, 22, 1);
SetInv(player, 24, 4); // Force Pull
SetInvAvailable(player, 24, 1);
SetInv(player, 25, 4); // Force Healing
SetInvAvailable(player, 25, 1);
SetInv(player, 26, 4); // Force Persuasion
SetInvAvailable(player, 26, 1);
SetInv(player, 27, 4); // Force Blinding
SetInvAvailable(player, 27, 1);
SetInv(player, 38, 4); // Force Push
SetInvAvailable(player, 38, 1);

jkSyncForcePowers();
Return;

user0:
if(GetParam(0) == 0)
{
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
jkPrintUNIString(player, 350);

SetGoalFlags(player, 0, 2);
Return;
}
// jkEndLevel(1);

Return;

shutdown:
// Give a force star if the player finds all the secrets
if((GetInv(player, 71) != 0) && (GetInv(player, 70) == GetInv(player, 71)))
ChangeInv(player, 16, 1);
Return;

end


----------

and how can I use the endlevelcog I have nothing found about it in the Tutorial

adjoin01 (surface): WHAT I MUST DO WRITE HEAR


------------------
[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi



[This message has been edited by Jedi Nizar (edited August 18, 2000).]
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-08-17, 10:56 PM #2
Uhm... try adding a Return(); at the end of your startup code. Was the first thing I noticed... can be the cause.
Maverick
2000-08-18, 12:03 PM #3
Use the Goal! plugin to create the endlevel cog- it saves a lot of hassle. The Code Alliance has it. [http://forums.massassi.net/html/smile.gif]

------------------
He's got to follow his own path. No one can choose it for him.
He's got to follow his own path. No one can choose it for him.
2000-08-18, 12:33 PM #4
Thank you Maverick but my StartupCog still have the same problem!!!

------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-08-18, 2:07 PM #5
To get rid of the bryar you are probably going to have to edit the player cog (kyle.cog or something like that - I forget just what its called). There is a part that sets the inits including some default weapons (bryar in JK and bryar/blastec and lightsaber in MotS). You have to delete the line in the cog so it won't give it to you.

On the startup cog - hmm... let me take a closer look and I'll get back to you. A couple of things look suspicious in the section giving the force powers.

------------------
Have lightsaber will travel.
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-08-18, 2:11 PM #6
OK - I found a problem in the startup cog (might not be the only one - I haven't looked that closely yet). It looks like you are allocating more stars to the force powers than you have available to give. If you've read my sp force powers tutorial you will notice I say you can only give as many stars as you have available at that force ranking. Also make sure that the force ranking you are using can use all those force powers.

------------------
Have lightsaber will travel.
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-08-18, 2:20 PM #7
Another thought - I'ld check out the lines

SetInv(player, 16, 200); //Force manna
SetInv(player, 16, 4); //Force Stars

I'm not sure if that's doing what you think it is. They are both calling the same bin number (16) which is used to specify the number of stars given between levels. The amount of mana you have and the number of stars you have are determined by the force ranking you specify.

------------------
Have lightsaber will travel.

[This message has been edited by MikeC (edited August 18, 2000).]
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-08-19, 11:58 AM #8
Thank you MikeC [http://forums.massassi.net/html/smile.gif]
for the rank I have the right for all those forces but i don't know if I got all the stars, normaly for my rank 8 I have enough stars but why it dosen't work? is the bin number 16 the stars number if so why the forces are still disable when I have change it?

Can you help me with the endlevelCog
adjoin01 (surface): "WHAT MUST I WRITE HEAR"
I tryed a surface number but the game woulden't end, JED write in this place -1 what is it -1 ???
and there are no Tutorial for this

---------
My The Force Be With You


[This message has been edited by Jedi Nizar (edited August 19, 2000).]
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-08-19, 5:43 PM #9
That surface should be the one you walk through. Make sure you are entering the right side of the adjoin. The best thing to do would be to use the GOAL! plugging FoolsParadise suggested. It allows you to put the goals for the level and the endlevel cog all in one and its very easy to use.

Those lines that call bin 16 still look strange to me - for that matter so does the line above it. Bin 14 is the bin for force mana so that one's definately wrong. It looks like you are setting your jedi to a nonexistant level 20 not to level 8. Try changing those lines to something like this...

SetInv(player, 20, 8);//Force ranking
SetInv(player, 14, 4*50);//Force manna

The one setting the force stars is, as I mentioned in the earlier post, calling the bin for the stars earned in the level. I would remove that line entirely and you should then be able to access all the stars available to a level 8 Jedi.

------------------
Have lightsaber will travel.
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-08-21, 12:35 AM #10
I still have the Same problem I changed all what MikeC hase said but ??
Normaly with rank 8 I must have all the stars
what I need .I tested it in the MP game and I can make a Jedi with rank 8, witch is the last one, and I got access to all the forces with exactly 28 stars, and it's the number of stars what I need. what's the problem with my cog??


Ok now with the End LevelCog: the Goal Plugins hase made the folwing Cog but the Game end in a different sector .

# Jedi Knight Goal Cog Script - Generated by Goal!, Jed Plugin by dr0id <http://hem2.passagen.se/thesj/dr0idstuff/>
#
# TEST_GOALS.COG
#
# Goals:
# 0 - Find The Reactor
#
# [Jedi Nizar]
#
# This script is NOT supported by LucasArts Entertainment Company
# ==================================================================

symbols
int player local

message startup
message entered

sector sectorGoal0

sound soundGoal0=r2talk05.wav local

int done0=0 local
end

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

code
startup:
player = GetLocalPlayerThing();
SetInv(player, 99, 1000);
SetGoalFlags(player, 0, 1);
Return;

entered:
// Goal: 0
if((!done0) && (GetSenderRef() == sectorGoal0))
{
jkPrintUNIString(-1, 1000);
PlaySoundThing(soundGoal0, player, 1.0, -1, -1, 0);
SetGoalFlags(player, 0, 2);
SetGoalFlags(player, 0, 1);
done0 = 1;
Sleep(15);
jkEndLevel(1);
Return;
}

Return;

end

------------------------

SetGoalFlags(player, 0, 2);

the number 2 isn't - it the number of the sector??

SetGoalFlags(player, 0, 1);

I don't know what this is?

the problem is the game end in sector 0
and the sector what I need is for exemple 2
what is the problem hear?
------------------------


I know am looking stupid with all my questions but I'm new in Editing JK/MOTS level


------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi

[This message has been edited by Jedi Nizar (edited August 21, 2000).]
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-08-21, 4:19 AM #11
I have changed the StarupCog to this


#Level master COG

symbols
message startup
message user0
message shutdown

int player local
sound goalsnd=Accomplish1.wav local
end

code

startup:
SetMasterCOG(GetSelfCOG()); // Setup COG as master COG
player = GetLocalPlayerThing();

SetInv(player, 99, 1000); // Setup Goals first string
SetGoalFlags(player, 0, 1); // Setup the first goal as DISPLAYED

SetInv(player, 10, 1.0); // Lightsaber

SetTimer(5); // Set refresh timer for powers

timer:
SetInv(player, 20, 8); // Force ranking
SetInv(player, 14, 4*50); // Force manna
SetInv(player, 21, 4); // Force Jump
SetInvAvailable(player, 21, 1);
SetInv(player, 22, 4); // Force Speed
SetInvAvailable(player, 22, 1);
SetInv(player, 24, 4); // Force Pull
SetInvAvailable(player, 24, 1);
SetInv(player, 25, 4); // Force Healing
SetInvAvailable(player, 25, 1);
SetInv(player, 26, 4); // Force Persuasion
SetInvAvailable(player, 26, 1);
SetInv(player, 27, 4); // Force Blinding
SetInvAvailable(player, 27, 1);
SetInv(player, 38, 4); // Force Push
SetInvAvailable(player, 38, 1);

jkSyncForcePowers();
Return;

user0:
if(GetParam(0) == 0)
{
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
jkPrintUNIString(player, 350);

SetGoalFlags(player, 0, 2);
Return;
}

// jkEndLevel(1);

Return;

shutdown:
// Give a force star if the player finds all the secrets
if((GetInv(player, 71) != 0) && (GetInv(player, 70) == GetInv(player, 71)))
ChangeInv(player, 16, 1);
Return;

end


--
can you MikeC, or any other one, test this 2 cog


------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-08-21, 12:03 PM #12
I've just learned that I am going out of town on business tomorrow morning. If you still haven't got it working when I get back I'll take a look at it. Email me Thursday or Friday to remind me.

------------------
Have lightsaber will travel.

MikeC's Really Lame Home Page
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-08-25, 4:35 AM #13
Hello MikeC I hope you have the time now to help me [http://forums.massassi.net/html/smile.gif]

------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-08-25, 9:35 AM #14
Ya - I'm back in town. My mom's getting married tomorrow so I'm kind of busy right now, but I'll try to get on it this weekend.

------------------
Have lightsaber will travel.

MikeC's Really Lame Home Page
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-08-27, 9:44 PM #15
Congratulation for your mom [http://forums.massassi.net/html/biggrin.gif]
Don’t harry keep your time. and when you are completely free of work you can try to help me [http://forums.massassi.net/html/smile.gif]


------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi

[This message has been edited by Jedi Nizar (edited August 28, 2000).]
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-09-03, 5:19 PM #16
I haven't forgotten about you... really. I was working on your cog this morning and should have it for you soon. I do have a couple of questions though.

1. Is this for JK or MotS? For some reason I thought it was for JK, but you call a MotS force power.
2. Is this for a single level or part of a group of levels? I noticed there's a part of the endlevel cog that gives an extra star if you get all the secrets. If its only for a single level that part can be omitted. Of course it might not be necessary anyway since you start out at level 8.

Oh... on the part you mentioned WAY back at the top where you don't want to start with the bryar you will have to edit the cog associated with the walkplayer (kyle.cog or something like that). There was just another post with more details on that today (sunday).

------------------
Have lightsaber will travel.

MikeC's Really Lame Home Page
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-09-03, 8:20 PM #17
Ok it’s for MOTS , until now it’s for a single Player level but perhaps I will include it to a group of level.
For The Bryar Gun I have fixed this error and also the number of stars and the forces but the only thing is that force persuasion still don’t work and in the force Table there are 4 stars for this force .
My and level cog still don’t work.
The strange now is when I have fixed a par of my Startup Cog, any type of sound are unable just the sound of some Force fields I can hear them. The sound of the saber don’t work of the walk, run, shooting, explosion etc... but the background music work normally, have this strange error a relation with the Startup Cog?


------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi



[This message has been edited by Jedi Nizar (edited September 03, 2000).]
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-09-05, 2:15 PM #18
Well, since you said you checked the number of stars and everything just tried making the startup cog and testing it... didn't work. So after a few choice profanities I decided to do a little investigating and found 2 problems.

1. There are a total of 24 stars available. You are trying to give 4 stars each to 7 force powers. 4X7=28 so you don't have enough stars to do that. You will have to reduce the number of stars to each force power or drop a force power.

2. Look at the MotS multiplayer force selection screen. You will see it says you can pick 2 from the group: persuation, healing, blinding, and chain lightning. You're trying to use 3 from those so you will have to drop one. You have to obey all the same rules as the mp characters.

Don't try following the endlevel stuff you've been doing. Just create the startup cog in Jed and add the lines to get the force powers to it. Then use Goal! to creat your goal/endlevel cog.

------------------
For the love of God, use the consistency checker!

Have Lightsaber Will Travel
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2000-09-05, 9:52 PM #19
Ok I hve reduced the number of Stars and I have now
4 Stars - Force Pull
4 Stars - Force Jump
4 Stars - Force Persuasion
3 Stars - Force Speed
3 Stars - Force Healing
I have so 18 Stars with rank 8 But Force Pesuasion still don't work I checked in the Multiplayer my caracter work normaly within't problem.



------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.

↑ Up to the top!