Page 1 of 1

"Metas"

Posted: Thu Jun 29, 2006 2:19 pm
by Cherub Rock
Hey so i know nothing of using metas, i've notcied you cant jsut search up the metas under the offset list, and i think i read you subract the magic number from values to get them or something. so if someone can give me some information for me to start working with that would be great, thanks.

Posted: Mon Jul 03, 2006 8:06 pm
by Cherub Rock
god damn, for the sake of keeping this forum active (and resourceful), reply to this, i have so much time for modding these days and i dont know how to start working on the more complicated things.

Posted: Wed Jul 05, 2006 9:35 am
by «Beast»
Well, metas like define things, ya know? So like, you gotta like go in there and change some stuff ya know? And like hope you like actually changed something ya know?

Posted: Wed Jul 05, 2006 12:34 pm
by Cherub Rock
oh. your sarcasm hurts beast... it hurts. lol

Posted: Thu Jul 06, 2006 6:20 am
by «Beast»
No, I was dead serious.

Posted: Thu Jul 06, 2006 6:51 am
by ?Demon?
That is true, but Beast's grammatical style was somewhat questionable. I don't know how to really explain it, but metas determine characteristics of objects. Sorry if that made no sense.

Posted: Thu Jul 06, 2006 11:09 am
by Cherub Rock
oh alright i totally have it now, or got it, but not really, but im jsut gonna screw around with it all day.

Posted: Thu Jul 06, 2006 2:23 pm
by sword
Dude, how do you not understand what it is? It literally defines the characteristics of the item when that meta is called upon. If I'm correct (swords no programmer here.) its part of the object oriented programming. Maybe, maybe not. But yeah, they define the specific tag of the larger item, IE a warthog. It will have a vehi tag which is "The higest up" meaning that it shows where everything else, dependancies, are located that are needed to form the vehicle. Some characteristics are also defined within the meta there, but thats a little tougher to get into and involves more reflexives, etc.

Posted: Thu Jul 06, 2006 3:16 pm
by A Bunny
For Programmers:

If I am understanding correctly how the coding was done, the metas are one of two things;

1.) A sub-routine that assigns values to all the variables in the class the item inherits from (in the warthog's case, vehicle). This is the less likely of the two, but unless I see the C version of the map I can't dismiss this as being possible.

2.) The hard coding for a new class of the item itself(ie warthog). This one is definitely more likely but once again I can't be 100% certain.

Posted: Thu Jul 06, 2006 3:52 pm
by sword
mmmm, well, they share classes, the items. Like, scenery and vehicles both share the "obje" class, thus we can mess around with their spawns.

Posted: Thu Jul 06, 2006 4:21 pm
by A Bunny
sword wrote:mmmm, well, they share classes, the items. Like, scenery and vehicles both share the "obje" class, thus we can mess around with their spawns.
Yes, but the warthog (and everything else) could be either it's own separate class that inherits from the vehicle class, or it could be a named object that is of the vehicle class.

Posted: Thu Jul 06, 2006 4:35 pm
by sword
Now, I'm no programmar, I just pick things up from here and there and think on my own, but couldn't it be a sub class so to speak? IE, within the index it'll go, "ihevtinuejbo" Now, the primary class is what, object (Due to little-endian.) or is it vehi? Unit is in there too, but that isnt as important I don't think.

Posted: Thu Jul 06, 2006 6:16 pm
by A Bunny
sword wrote:Now, I'm no programmar, I just pick things up from here and there and think on my own, but couldn't it be a sub class so to speak?
That's pretty much what inheritance is.

Posted: Thu Jul 06, 2006 7:57 pm
by sword
Sorry, I didnt see that you had said it was inheritance. I'm just skimming posts here now because so little of what people say is worthwhile to read, meh, thats sorta why demo modding is dying.