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 → Dissapearing 3do's and the static.cog
Dissapearing 3do's and the static.cog
2004-01-16, 6:10 PM #1
My 3do's are dissapearing again thanks to 3dos occupying more than one sector, and I lost my static.cog. Anyone know where I might find another one?
2004-01-16, 6:38 PM #2
WTF is "static.cog"? [http://forums.massassi.net/html/confused.gif]

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-01-17, 12:16 AM #3
If you mean "static.jkl" file then you'll probably have more luck asking in the "Main Editing" forum than here [http://forums.massassi.net/html/smile.gif]. I only say this because the game doesn't come with a "static.cog", which inevitably leads back to GBK's question... [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

PS: Welcome to Massassi [http://forums.massassi.net/html/biggrin.gif]

------------------
"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" - 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 ||
2004-01-17, 3:21 PM #4
I posted a "dissapearing 3do" problem in the main editing forum a while ago, and I was instructed to search the cog forums for the static.cog.
I found it before, but for some reason, I can't find it now.
Perhaps there's another way to have 3do's that occupy more than one sector then?
2004-01-18, 1:13 AM #5
Ahh right - I think I'm with you [http://forums.massassi.net/html/smile.gif]

When editing in JK every "thing" must be in its own sector, otherwise it won't appear in game. Conceptually then, a 3DO may appear/occupy more than one sector, so long as its centre point (when you click on a "thing" in JED, it has a red circular/square centre - that's its centre point) is initially in one sector.

Someone posted a cog not too long ago actually (bizzarely enough, I think it was in the Showcase forum...), so I'll try and have a ferret around for it - that is, unless you find it before me [http://forums.massassi.net/html/wink.gif], but I'm certain the cog code was in that forum - something's niggling at me that it may have been to do with the 3DO Terrain Editor, by Hell Cat, but I could be wrong...

Hope this helps [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"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" - 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 ||
2004-01-18, 1:48 AM #6
Oh, duh.


I wrote a cog awhile back that fixed the "flickering" associated with dynamic lights, and actully made them usable. (Yeah, yeah, I fixed dynamic lighting. [http://forums.massassi.net/html/biggrin.gif]) Infact, all of the lights in OTS are stable dynamic lights...


A few weeks after the release, Hellcat (I think it was Hellcat anyway, it may have been Hell Raiser) took the dynamic light controller and modified it to work on regular 3d0s.


The problem with dynamic lights, as I discovered, is the same problem that regular 3d0s have. If the player doesnt have LineOfSight with the sector a 3d0 is "in", then the rendering of that object is disabled. My cog just kept destroying the light and then recreating it in its original spot, but using the player's current sector as the sector reference. As a result, the player could always "see" the light. This "static.cog" does something similar.


Id write up a quick clone of it, but I dont have the time. If you havent found it by tonight, Ill write another one.

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-01-18, 11:43 AM #7
Here's the one I posted in the showcase forum

Code:
# Simple 3d0 flicker prevention.
#
#02/2003 GBK edited by SG-fan
#==============================================================
flags=0x200
symbols

message   startup
message   pulse

thing     Ghost
thing     Player      local

template  type

thing pos=-1    local

flex      Time=0.01

end
#==============================================================
code
#------------------------------------------------------
startup:
	Player = jkGetLocalPlayer();
	SetPulse(Time);

return;
#------------------------------------------------------
pulse:
	if(pos != -1)
		DestroyThing(pos);
	pos = CreateThingAtPos(type, GetThingSector(Player), GetThingPos(Ghost), GetThingLVec(Ghost));

return;
#------------------------------------------------------
end


It SHOULD work, but I havn't used it in about a year, so if it has ANY bugs, post back here.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2004-01-18, 1:47 PM #8
There you go [http://forums.massassi.net/html/smile.gif] - I knew I'd seen it only recently in that forum (my memory's improving [http://forums.massassi.net/html/wink.gif] ) [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"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" - 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 ||
2004-01-19, 5:05 PM #9
No good. [http://forums.massassi.net/html/frown.gif]
2004-01-19, 9:41 PM #10
The all-wonderful, GBK/Hellcat designed, no-flicker cog:

Code:
# Jedi Knight Cog Script
#
# flicker.cog
#
# Makes it so that 3dos crossing more than one sector don't
# flicker or disappear and also when the player looks at it
#
# Go go Hellcat for explaining this to me. =)
#
# Concept by Hellcat (and GBK?)
# Raped for TDiR by Hell Raiser [Jon Harmon]


flags=0x240

symbols

int		ObjCount			local

thing		ObjThng0=-1
thing		ObjThng1=-1
thing		ObjThng2=-1
thing		ObjThng3=-1
thing		ObjThng4=-1
thing		ObjThng5=-1
thing		ObjThng6=-1
thing		ObjThng7=-1
thing		ObjThng8=-1
thing		ObjThng9=-1

template	ObjTpl0			local
template	ObjTpl1			local
template	ObjTpl2			local
template	ObjTpl3			local
template	ObjTpl4			local
template	ObjTpl5			local
template	ObjTpl6			local
template	ObjTpl7			local
template	ObjTpl8			local
template	ObjTpl9			local

vector		ObjPos0			local
vector		ObjPos1			local
vector		ObjPos2			local
vector		ObjPos3			local
vector		ObjPos4			local
vector		ObjPos5			local
vector		ObjPos6			local
vector		ObjPos7			local
vector		ObjPos8			local
vector		ObjPos9			local
vector		ObjLook0		local
vector		ObjLook1		local
vector		ObjLook2		local
vector		ObjLook3		local
vector		ObjLook4		local
vector		ObjLook5		local
vector		ObjLook6		local
vector		ObjLook7		local
vector		ObjLook8		local
vector		ObjLook9		local

message		startup                                                          
message		pulse                                                            

end                                                                           

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

code

#--------------------------------------------------------------------------------------------------------

startup:	
        //Get our local player
	player = GetLocalPlayerThing();
	ObjCount=0;
	for(x=0; x<10; x=x+1)
	{if(ObjThng0[x] != -1) ObjCount=ObjCount+1;}
	//Sleep while the level loads
	sleep(0.25);
	//Get the rotation and position and template of the object
	for(x=0; x<ObjCount; x=x+1)
	{
		ObjPos0[x]=GetThingPos(ObjThng0[x]);
		ObjLook0[x]=GetThingLVec(ObjThng0[x]);
		ObjTpl0[x]=GetThingTemplate(ObjThng0[x]);
	}
	//Start our pulse
	SetPulse(0.01);
return;

#--------------------------------------------------------------------------------------------------------

pulse:
	for(x=0; x<ObjCount; x=x+1)
	{
		//Destroy the 3do
		DestroyThing(ObjThng0[x]);
		//Recreate the 3do
		ObjThng0[x]=CreateThingAtPos(ObjTpl0[x], GetThingSector(Player), ObjPos0[x], ObjLook0[x]);
		SetThingLook(ObjThng0[x], ObjLook0[x]);
	}
return;

end


/me pats self on back.

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2004-01-20, 3:45 AM #11
Nummers. [http://forums.massassi.net/html/smile.gif]

------------------
-Blessed Be-
A solid challenge will bring forth your finest abilities.
DBZ: The Destruction is Real
-Hell Raiser

↑ Up to the top!