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 → Prevention of Creatething()?
Prevention of Creatething()?
2002-07-21, 6:03 PM #1
Ive known for some time, that if you have any undefined templates in the symbols section, 'Creatething()' or 'Createthingatpos()' dont work. The object isnt created, and a -1 is returned if queried.


Now, in testing the TVTCS door module/class cogs, I am getting a -1 returned on "Createthingatpos()"... ALL of the syntax is correct, the variables are in place, and that section of code is actully copied from an earlier cog. BUT, it doesnt work. TO ensure that it is a Creatething() freeze, and not syntax error, I added "Printint(Creatething(Type0, JKgetlocalplayer()));" after a sleep on startup. It returnes -1. "Type0" of course exists, and is defined. All the other template inputs are filled with null (light1.0) values.


Ok, my question, what else can cause Creatething() freezes?


BTW, the cog checks out ok in PARSEC.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-22, 4:10 AM #2
Only thing I can think of is what templates you are putting in. Try using all sorts of different templates. Ranging from projectiles to doors. [http://forums.massassi.net/html/confused.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-22, 4:24 AM #3
The "null" value I use in the TVTCS is 'light1.0'. Essentially a ghost with extra light properties.

1) Ive found that pre-defining a template as "ghost" can also disable the creatething verb.

2) For debugging. Seeing alot of extra light in a normally dark corner is a good indication of an error...


The door template Im using works fine in a previous POC. Reguardless, I tried other templates, same result.


Comeon! SM, LG, someone! GAH! [http://forums.massassi.net/html/frown.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-22, 10:26 AM #4
Hmmm... can we see your door template from your tpl again?

Hmmm... looking through DataMaster's files, I also seem to be stumped. Are you sure that your sector acquisition cog is in working order? (the JK method is quite complicated)

I'll see what I can do for ye, GBK!

Hmmm... I've seen a strange trend (I'd post this in Discussions, but I don't go there, and I didn't want to start a thread here because it'd be off topic):

With the exception of GBK, you Stop; renegade, you, all of us eccentric frequent cogger types seem to have two names. Think about it:

Lord_Grismath, SaberMaster, Hellcat, HellRaiser, Descent_pilot. o.O What kind of dastardly trend could this be?

[This message has been edited by Lord_Grismath (edited July 22, 2002).]
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-07-22, 10:50 AM #5
Well from what you say, GBK, few things come to mind. How many template variables are you defining in the cog? How long is your sleep? Are you using level or static.jkl templates? How many variables have their values passed from the level JKL?

Perhaps you could post the relevant code. [http://forums.massassi.net/html/confused.gif]


And Grismath, GBK may not be an exception; he may have three names. GBK?
It is interesting though...

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.

[This message has been edited by SaberMaster (edited July 22, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-07-22, 2:46 PM #6
Ive said it a few times, GBK doesnt really stand for anything... I used to work sales at a hardware store. They had these POS (Point Of Sale) terminals set up, to handle invetory, sales, billing, etc. Every sales rep had his own usercode, kinda like a password/username combo that identified the person to the system, and applying the appropriate name on printouts/granting access levels/etc.. My usercode on that system was "gbk". When I was laid off, and joined Massassi, that was the first thing to come to mind when I thought of a username. Since then, I have adopted it as my name for everything else too.


*ahem* back on topic...


1) 10 templates defined.

2) The sleep was 2 seconds.

3) Level.

4) Most of them. But, that isnt it, because Ive had much larger cogs, with even more variables, and never had this problem.

5) I wont post the code (for obvious reasons... Yeah, Im talking about you, Grismath...) If you want, I can email you the cogs, providing you dont show them to anyone else... Do you have a PGP key?

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-22, 2:57 PM #7
Oh, and BTW, Gris, Im not using any sector acquisition techniques. I just have a list of sectors in the symbols that I fill in.


And besies, I know it isnt that, because the generic "Creatething()" verb doesnt require a sector referance.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-23, 12:20 AM #8
So you're creating a thing... at a thing? But doesn't that negate the entire purpose of the TVTCS in the first place? (unless you're dynamically generating the ghost point at which the creatething(); thing is created it, however that would be somewhat superfluous.) However, I assume that this is merely for testing purposes at the moment.

And I suppose I'd be glad to take a look see at the 'afflicted' code.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-07-23, 6:41 AM #9
GBK, I'll look over the cogs for you. I don't use PGP, but I don't think the NSA wants your cogs anyway. [http://forums.massassi.net/html/tongue.gif]

Perhaps you could send a test level as well? Rest assured, I won't show your work to anyone.

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-07-23, 9:39 AM #10
...except for me.

*slips a dollar bill in SM's breast pocket*
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-07-23, 6:33 PM #11
Yes, same as SaberMaster. I'll test/look over it. Anywho, that my 2¢ (hey I'vé fìnallÿ figured out how to ùśé those funky symbols!)

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-24, 11:06 AM #12
GBK, your cog uses far more variables than any LEC cog, and I'm fairly sure that's the problem. I copied your entire list of variables into a test cog, and the cog couldn't create anything. I removed some of the variables, and then the test cog worked.

So try removing some variables and then see. [http://forums.massassi.net/html/wink.gif]

AASN, leaving undefined templates in the symbols will not stop CreateThing() from working.
------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

[This message has been edited by SaberMaster (edited July 24, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-07-24, 2:28 PM #13
The problem is, I NEED those variables. Oh well, I guess the cog will only be able to handle 5 doors. [http://forums.massassi.net/html/frown.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-24, 5:06 PM #14
Welp, it works now... [http://forums.massassi.net/html/tongue.gif] (Thanks, SM...)


For all of those doing TVTCS beta testing (you know who you are, and please, keep it to yourselves...), the Door Module will soon be available for testing. But, only vertical doors are currently allowed. I will get working on the horizonal cog ASAP. Switches and elevators will come later.


Grismath, if you want to use my door techniques in your TCS, email me, Ill give you a few pointers...

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-25, 1:00 AM #15
Righto.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-07-25, 4:30 AM #16
Glad I could help, GBK. [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.
2002-07-25, 7:49 AM #17
Humm I hope this is not TOO dead. But If I remember right Hell Raiser found that cogs have a certan line limit and variable limit, etc.. and all of these could be edited via static.jkl or the level jkl. You might want to get a hold of him and ask him for youself
:) ;) :) ;) :) ;) :) ;) :) ;) :) ;) Im Happy
2002-07-26, 4:37 AM #18
Actually, it's quite well-known that cogs have variable limits, but you can't change them with a JKL.

I think that if you load files in the symbols section that were not loaded by a JKL, you might exceed the World number and they wouldn't be loaded. But increasing World numbers does not allow you to have more variables.

A line limit for Cogs I'm not so sure about. There must be limits of some kind for the code section, but I don't think the JK parser is primitive enough to read the entire cog into memory as an array of lines.

I'll ask Hell Raiser about this, 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.
2002-07-26, 5:43 AM #19
Ok, Ive hit upon another problem.


Setthinggeomode(Col, 0);


Doesnt work. PARSEC is quiet. Col exists, and it IS an object at the time this is run. And yet, the state of the object remains the same. [http://forums.massassi.net/html/confused.gif]


BTW, I had a rather rude eppiffany a few moments ago. The conversion of variables, from one type to another, arent limited to symbol variables. I successfully transferred a template across cogs via Sendmessageex(). [http://forums.massassi.net/html/smile.gif] Im gonna try for raw vectors in a few minutes...

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-26, 1:08 PM #20
Parsec was silent because you have correct syntax. However, the DataMaster was not silent:
Quote:
<font face="Verdana, Arial" size="2">
The current Geo Mode of a thing is the value that the thing will use. The Geo Mode seems to be simply a stored value for the thing. Setting the current Geo Mode of a thing has no effect on the Geo Mode and setting the Geo Mode has no effect on the current Geo Mode.</font>



Quote:
<font face="Verdana, Arial" size="2"> The conversion of variables, from one type to another, arent limited to symbol variables. I successfully transferred a template across cogs via Sendmessageex().</font>


Well, it wasn't actually converted there because it wasn't assigned. The value of a template variable is the list number of the template in a JKL. So it makes sense that the integer value could be passed between cogs. But vectors just can't be passed. [http://forums.massassi.net/html/frown.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.
2002-07-26, 1:49 PM #21
Here's a part from force_persuasion.
Code:
         // Set player invisible to AI
         SetActorFlags(player, 0x80);

         // Set player "invisible" to real players
         if(rank == 1) jkSetPersuasionInfo(player, 14, 22);
         else if(rank == 2) jkSetPersuasionInfo(player, 11, 19);
         else if(rank == 3) jkSetPersuasionInfo(player, 8, 16);
         else if(rank == 4) jkSetPersuasionInfo(player, 5, 13);

         SetThingCurGeoMode(player, 0);
         jkSetFlags(player, 0x20);
I think if you use SetThingCurGeoMode(); it sill make the thing invisable. Else you might have to use the whole thing.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-26, 3:00 PM #22
Setthingcurgeomode() worked. Thanks, DP... [http://forums.massassi.net/html/redface.gif]


And SM, your right about the variables.. [http://forums.massassi.net/html/frown.gif] I guess I got kinda carried away with myself when I realized I could send templates... Hmm, could it be done with sounds?

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-26, 4:41 PM #23
Lol. It should, have thought about using it, or found a reason why, but I guess you did. [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

[This message has been edited by Descent_pilot (edited July 27, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!