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.

ForumsCog Forum → Zero-g MP problems...
Zero-g MP problems...
2003-08-14, 7:06 PM #1
In my level I had a few zero-g sectors... When I tested it everything worked fine... but when i played mp with it... the person that joined the game, if they entered a zero-g sector and exited... they would be fine if they didnt jump, but when they jumped they got stuck. They could go higher but not lower. they could float around too but not go down. The only way to get out of it is to kill yourself. The zero-g cog i used was the one massassi has. so... Could anyone tellme what the deal is? Plz [http://forums.massassi.net/html/smile.gif]

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-15, 6:21 AM #2
dude, Zero Gravity.

It's not the cog, it's the zero gravity part. That's what zero gravity does.

Maybe set it to like, 1/4 gravity, anything even slightly higher than zero, but once it's zero you'll never fall.

------------------
Brutally honest since 1998
2003-08-15, 11:40 AM #3
You don't understand. The Zero-g COG makes in mp the same effect as the flying mode in sp. I can go up and down and all, and when I leave the zero-g sector I am fine - normal gravity. But when the person who joined the game goes in, something screws up... they cannot go down. As in it doesnt act like flymode. they get stuck. wherever they go, if they are not walking on the floor. they are stuck. whenever they jump, when gravity should pull them down. I doesnt. the only way to *reset* it is to die. I checked the cog and it doesnt reduce the gravity. it puts the person in flymode... help :'(

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-15, 11:42 AM #4
...why would gravity pull you down if there is no gravity?

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-08-15, 1:10 PM #5
what cog are you using?

------------------
Famous last words - "It seemed like a good idea at the time."
Famous last words - "It seemed like a good idea at the time."
2003-08-15, 1:13 PM #6
First, there is gravity.. For the host. The person who joined, when they should fall after they jump they stay stuck in the air. cannot go down. and i am using the zero-g cog from massassi.

# Jedi Knight Cog Script
#
# zero-g.COG
#
# Lets you fly around in Zero-G, BUT you can go down as well as up...functions the same as flymode in SP.
#
#Scripted By: Brakiss E-Mail: brakiss13@hotmail.com
#
#Editor used: CogWriter 0.3 beta
#
# This Cog is Not supported by LucasArts Entertainment Co

flags=0x40

symbols
sector sector1
sector sector2
sector sector3
message entered
message exited
thing player local
end

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

code
entered:
player = GetSourceRef();
ClearPhysicsFlags(player, 0x1);
SetPhysicsFlags(player, 0x2000);
return;

exited:
player = GetSourceRef();
ClearPhysicsFlags(player, 0x2000);
SetPhysicsFlags(thing, 0x1);
return;

# ........................................................................................

end


by the way... im a retard when it comes to anything over abc's of cogging.

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-15, 1:44 PM #7
there's an error in the cog.

down under the exited: you need to change SetPhysicsFlags(thing, 0x1); to SetPhysicsFlags(player, 0x1);.

that should fix it.



------------------
Famous last words - "It seemed like a good idea at the time."
Famous last words - "It seemed like a good idea at the time."
2003-08-15, 2:12 PM #8
Hi there [http://forums.massassi.net/html/smile.gif]

I'm not saying this is the definitive version, because I focus on more single-player levels (never attempted multi - the synching aspect always puts me off [http://forums.massassi.net/html/wink.gif] ), but I've tweaked the original cog you were using - hope this helps, otherwise I'd be interested as to how different the code is for multi-play...

Code:
flags=0x40

symbols

    message entered
    message exited

    sector  sector1     linkid=1
    sector  sector2     linkid=1
    sector  sector3     linkid=1
    sector  sector4     linkid=1
    sector  sector5     linkid=1
    sector  sector6     linkid=1
    sector  sector7     linkid=1

    thing   player      local

    int verbose=0

end

#==
#==
#==

code

entered:

    if (GetSenderID() != 1)
        return;

    if (verbose)
        Print ("ENTERED: Trigger Sector");

    player = GetSourceRef();

    ClearPhysicsFlags (player, 0x1);    // Object is not affected by gravity
    SetPhysicsFlags (player, 0x2000); // Object can fly...

    return;

#..........

exited:

    if (GetSenderID() != 1)
        return;

    if (verbose)
        Print ("EXITED: Link Sectors");

    player = GetSourcRef();

    SetPhysicsFlags (player, 0x1);  // Feel gravity's pull
    ClearPhysicsFlags (player, 0x2000); // No fly...

    return;

#..........

end


Hope this helps (/works) [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

[EDIT]Oh yes - and DeathSythe just beat me to it, about the use of "thing" as a parameter [http://forums.massassi.net/html/wink.gif] lol
[/EDIT

------------------
Are you feeling lucky, cuz if you are, get your hands off me... [http://forums.massassi.net/html/wink.gif]

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)

[This message has been edited by lucky_jackpot (edited August 15, 2003).]
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-08-15, 5:26 PM #9
[http://forums.massassi.net/html/smile.gif]ThAnK YoU [http://forums.massassi.net/html/smile.gif] but, If I may ask, why does massassi have so many cogs that DON'T Work? I mean, you'd figure that over the past 3 years they would perhaps fix it. But alas... The best cogs are in the forums - a bit harder to find though...

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-16, 6:36 AM #10
Because it has always been Brian's policy to host everything submitted to the site, and because no one has the time to test these cogs. I'll let them know to fix this one, though.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-08-16, 6:38 AM #11
In that last cog, there is a 'GetSourcRef()' which needs to be fixed.


Darth, I need you to fix that typo, and then test your cog in multiplayer with at least one other person to make sure there are no bugs.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

[This message has been edited by SaberMaster (edited August 16, 2003).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-08-16, 7:44 AM #12
Oh shoot - sorry about that typo ... geez - should have caught that [http://forums.massassi.net/html/wink.gif] I thought it would only be a minor change to the original script, just to make it a little more efficient... apologies about that [http://forums.massassi.net/html/redface.gif]

Well spotted there SaberMaster [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

PS: -- I fully agree with Darth_Bano about the cogs though. Some of them definitely need bringing up to date. In fact I'm honestly thinking about throwing up some simple demo levels with some level COGs so that editors (and budding coggers) can learn some "tips and tricks" (both editing and cogging). If so, would this be a good idea and what would people like to see to help them? I've got a couple of examples that would be a start...

NOTE: This will only go ahead if I receive enough interest. Email lucky_jackpot@hotmail.com if anyone's got any requests - I'm all for seeing more people producing good (and improving) levels [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-08-16, 8:22 AM #13
ill fix it and test it... itll be a day or two [http://forums.massassi.net/html/biggrin.gif]

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-18, 4:16 AM #14
Good - reply here after you've tested it out and let me know how it went. Thanks. [http://forums.massassi.net/html/wink.gif]

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-08-18, 8:40 AM #15
I fixed that player-thingflag thingy and all is well in the world of mp zero-g. It works. I didnt try Lucky_Jackpots though... I hate to say it, but if its not broke dont fix it...or im just lazy [http://forums.massassi.net/html/biggrin.gif]

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-18, 9:21 AM #16
Hi there [http://forums.massassi.net/html/smile.gif]

Just to be pedantic - well if the cog wasn't broken, then why did you post here to get it fixed [http://forums.massassi.net/html/wink.gif] lol. That said, I think you're just plain lazy lol (after I went to so much effort) [http://forums.massassi.net/html/wink.gif]

Hope you have plenty of bouncy fun [http://forums.massassi.net/html/smile.gif] (despite the fact that I know that my cog works correctly because I tested it *mumble mumble*) I was only trying to make your old script more efficient [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-08-18, 2:13 PM #17
ahh, but more effecient compared to modifying your cog too to support 30 sectors??? Yes I thank you for your heroic effort to merely help a week retard in the ways of the cog, but at least i used your sound cog... [http://forums.massassi.net/html/biggrin.gif] oh yeah... and thanks again. [http://forums.massassi.net/html/biggrin.gif]

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-20, 8:27 AM #18
Why are you using physics flags, anyway?

Isn't there some gravity setting you can use per-sector?

Isn't it 'setgravity()' or something?

------------------
Brutally honest since 1998
2003-08-20, 4:32 PM #19

Hi there [http://forums.massassi.net/html/smile.gif]

I could be wrong Checksum, but wouldn't "SetGravity()" effect the whole level?

From Darth_Bano's request, I assumed that he wanted an overall gravity to remain, but still have certain sectors as zero-gravity. If I misinterpreted Darth's request, then I certainly think your approach would be far more practical/efficient [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-08-21, 5:26 AM #20
Lucky_Jackpot... misinterpretation is one thing you did not do. [http://forums.massassi.net/html/biggrin.gif]

------------------
Bob Dole likes peanut butter. Bob Dole's never been afraid to admit that
2003-08-21, 6:26 AM #21
Oh ... shucks ... [http://forums.massassi.net/html/wink.gif]

And there was me going out of my way to misinterpret... [http://forums.massassi.net/html/biggrin.gif]

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-08-21, 3:13 PM #22
But, I need someone to test the new Cog in multiplayer as I can't right now. I won't do anything about the bugged cog on Massassi until someone makes sure the new method works in MP.

[edit]
Then screw it...

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

[This message has been edited by SaberMaster (edited August 26, 2003).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!