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 → Argh... Stupid TPL.. :)
Argh... Stupid TPL.. :)
2001-12-13, 8:26 AM #1
Sorry, Hideki, here's the new topic:

Quote:
<font face="Verdana, Arial" size="2">The_Mega_ZZTer
Member posted December 10, 2001 05:56 PM
--------------------------------------------------------------------------------
I'm having a problem with my custom TPL. Since this may or may not involve the COG (probably not.. but just maybe) I've posted this here. My actor is based off the bossk actor and is supposed to say things when shot/activated, as below:
MZZT.COG:
# Jedi Knight Cog Script
#
# MZZT.cog
#
# AoG_Mega_ZZTer Interactive Actor (sort of)
#
# [MZZT]
#
# (C) 2001 The Mega-ZZTer
# ========================================================================================

symbols
message activate
message damaged

thing MZZT linkid=0

end

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

code

activate:
PRINT("AoG_Mega_ZZTer: 'Stupid asteroid. Flattened my house.'");

damaged:
PRINT("AoG_Mega_ZZTer: 'Hey! Watch it!'");

end

This code is pretty simple, I can't imagine the problem being here... the problem probably lies in my template entry:

# DESC: The Mega-ZZTer
# BBOX: -.04 -.02 -.12 .04 .11 .07
MegaZZT _humanactor thingflags=0x20000400 model3d=bs.3do size=0.068100 movesize=0.068100 puppet=bs.pup soundclass=bs.snd cog=actor_bs.cog mass=120.000000 maxvel=0.400000 weapon=+econcbullet weapon2=+bosskswipe health=120.00 maxhealth=120.00 maxthrust=0.90 maxrotthrust=80.00 typeflags=0x20a0001

I know, I have a bunch of excess stuff in there, but I don't really know what I can safely take out...

Oh, yes... my problem:

The actor does not appear.. at all. At, least, I can't see him, or interact with where he's _supposed_ to be...

Plz answer me, I'm doing this for the Massassi City Project, and I can't really finish unless I fix this last bug.

Thx in advance for helping!

------------------
"You know when you've been away from the Zone too long when none of your Zone friends recognize you." - /me

The_Mega_ZZTer
Member posted December 10, 2001 06:00 PM
--------------------------------------------------------------------------------
BTW, my guy shows up just fine in JED's preview and JED's 3DO preview.
------------------
"You know when you've been away from the Zone too long when none of your Zone friends recognize you." - /me

Nemios
Member posted December 11, 2001 12:04 AM
--------------------------------------------------------------------------------
Well, to start in your template entry there's no indication you want to use your own cog (unless actor_bs.cog calls MZZT.cog). Then, have you got an entry also for _humanactor and all its parents? And all other templates of your entry and theirs parents (+bosskswipe and +econcbullet)?

------------------
"May the SourceCode be with you..."
Nemios, MOD developer.

Hideki
Moderator posted December 11, 2001 01:01 AM
--------------------------------------------------------------------------------
Since I missed it the last time. I will close down this thread.
Make sure not to post a topic in all caps.
Repost with your title not all capped.

------------------
http://millennium.massassi.net/ - Millennium </font>


Ok, Nemios, my COG is not meant to be used with the actor... it's placed in the lvl cog list, and has a param for a "thing" (being my actor) I hope you know what I mean.

And I do have all the parent templates. My template file is just the normal JK one with two 3dos added on the end... one of them being the one that is giving me trouble, the other one being one that isn't...

Thx for trying to help, tho. I really appreciate it.

Erm.. so... can someone else help me? Plz? [http://forums.massassi.net/html/smile.gif]


------------------
"You know when you've been away from the Zone too long when none of your Zone friends recognize you." - /me

2001-12-14, 7:43 AM #2
Er.... help?

...

Plz?

Someone?

Anyone?

Would it help if I add that this is for the Massassi City Project?

------------------
"You know when you've been away from the Zone too long when none of your Zone friends recognize you." - /me

2001-12-14, 9:25 AM #3
Your template is fine. It probably doesn't work because you don't have the _humanactor and _actor parent templates listed correctly. Be sure to list all parent templates above the template that calls for them. BTW, are you sure about those typeflags?

Your cog, on the other hand, is awful. You have no "return;" for your messages and you used a double and single quotation mark to end the strings in your print commands.

Here's how the templates should be listed:

_actor none orient=(0.000000/0.000000/0.000000) type=actor collide=1 move=physics thingflags=0x20000000 mass=150.000000 physflags=0x4a4f maxrotvel=200.000000 maxvel=1.000000 health=40.00 maxhealth=40.00 maxrotthrust=180.00 jumpspeed=1.50 eyeoffset=(0.000000/0.000000/0.037000) minheadpitch=-80.00 maxheadpitch=80.00 lightoffset=(0.000000/0.070000/0.040000) lightintensity=0.80

_humanactor _actor size=0.065000 movesize=0.065000 surfdrag=3.000000 airdrag=0.500000 maxvel=0.500000 maxthrust=0.80 typeflags=0x80000

omega _humanactor thingflags=0x20000400 model3d=bs.3do size=0.0681 movesize=0.0681 puppet=bs.pup soundclass=bs.snd cog=actor_omega.cog mass=120 maxvel=0.4 weapon=+econcbullet weapon2=+bosskswipe health=120.00 maxhealth=120.00 maxthrust=0.90 maxrotthrust=80.00 typeflags=0x20a0001

-The weapon templates are not listed here. Remember to add them above omega.

And here's the correct cog:
Code:
# Actor_omega.cog
#
# [SM]
#============================================#
symbols

message	activated
message	damaged
thing		actor

end
#============================================#
code
#-------------------------------------------------
activated:
	Print("AoG_Mega_ZZTer: 'Stupid asteroid. Flattened my house.");

Return;
#-------------------------------------------------
damaged:
	Print("AoG_Mega_ZZTer: 'Hey! Watch it!");

Return;
#-------------------------------------------------
end


Good luck with your project. [http://forums.massassi.net/html/wink.gif]

------------------
Incognito

[This message has been edited by SaberMaster (edited December 14, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-12-14, 9:36 AM #4
Just reread your post. I thought you wanted the cog to be the class cog of the actor. So change the omega's cog back to actor_bs. [http://forums.massassi.net/html/redface.gif]

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

↑ Up to the top!