Column 22

Discussion in 'General Modification' started by Shiningted, May 8, 2005.

Remove all ads!
  1. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    Column 22 in protos.tab seems to contain some sort of Id# that is used in scripting: for instance, Elmo's is 8000 and if u want him to talk you use that number, Sunom and Moneir are 8006 and 8007 and to get them to argue they have used those numbers etc.

    This is a different number than the one in column 23, the Id # from description.mes (or wherever it is). Where does the number in col 22 come from? Is it from another file, or is it defined by protos.tab? And can i just make one up for new scripting or are there rules? (other than the numbers being 8000+ and 14000+, I don't see a specific pattern).
     
  2. dulcaoin

    dulcaoin Established Member Veteran

    Joined:
    Mar 10, 2005
    Messages:
    213
    Likes Received:
    0
    Column 22 is obj_f_name, it is accessed as the .name attribute of a PyObjectHandle object, and is the internal way of tracking who or what an obj is.

    Livonya went through and assigned these guys up right and left since Troika often left them unassigned in the protos file (it is likely that .mob files defined them instead, but we haven't had access to those so far, and so it was the only way to tell things apart. The problem is, every object built from the given prototype ends up with the same name that way; which can be a problem later in scripting). If you choose to follow Liv's lead, then use the obj_f_description value from column 23 (just duplicate it) when 22 has not been defined. Better yet, start with her mod before going forward.

    You can find corresponding values for .name in .../data/oemes/onames.mes

    -- dulcaoin
     
    Last edited: May 8, 2005
  3. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    Great reply Dulcaoin, everything i needed and a few things i hadn't asked yet ;-) I'll do it Liv's way - its her protos i am hacking 8^D
     
Our Host!