Add new Buildings

Results 1 to 4 of 4
  1. #1
    Grand Master lemoniscool is offline
    Grand MasterRank
    Nov 2009 Join Date
    GermanyLocation
    579Posts

    Add new Buildings

    Hey there. I know many of you added new NPCs over and over but did anyone ever think of adding new buildings? by new i dont mean new model etc, but use a model that already exists and make it appear ingame ..

    lets make an example:
    \Data\Res\Bldg\Common\event-xmas\x_mas_tree.bsr
    thats the model for a cristmas tree, now if you change the model of a teleporter i added for example to this one it appears ingame very nicely, anyways i dont want to add more teleports, i want to add the tree anywhere in the game.
    Also when i change the model, ppl are able to move through it, its not solid (as all other models too if i change it) any ideas on this? or did you already work on this?

    greetz
    LemoniscooL

    //Edit:
    Some Screens to show you what im talking about:
    (These are all buildings from alexandria, models used for a teleporter i set into a new region)

    sro-2012-07-15-04-a

    sro-2012-07-15-04-a

    sro-2012-07-15-04-a

    sro-2012-07-15-04-a
    Last edited by lemoniscool; 15-07-12 at 04:28 AM.


  2. #2
    † Working in Secret † Madelyn is offline
    Grand MasterRank
    Jun 2011 Join Date
    San CristóbalLocation
    658Posts

    Re: Add new Buildings

    For you change a model to solid u need make a Zone limit.. So.. U need edit the map. Or Zone.. and Put this model... try go to alenxadria where is the 4th photo and put /mapobj (or /objmap or idk nor remember well the command but this hide the models and show the map. U can see the estructure of the map).
    Whit the tree xmas u can add for a refobjcommon in a coord in reftactics? try it.. ^_^

  3. #3
    Grand Master lemoniscool is offline
    Grand MasterRank
    Nov 2009 Join Date
    GermanyLocation
    579Posts

    Re: Add new Buildings

    hm yeah /mapobj disables the view of all objects but that doesnt help much .. i think maybe with /object_create we can add new objects (buildings) but i dont know the parameters
    Last edited by lemoniscool; 15-07-12 at 09:48 AM.

  4. #4
    Grand Master lemoniscool is offline
    Grand MasterRank
    Nov 2009 Join Date
    GermanyLocation
    579Posts

    Re: Add new Buildings

    found this posted by niknights
    Object map file (.o)
    Brief description of o-map file, which maps objects into world.

    Content
    Group

    Size Type Name Description
    ---------------------------------------------------
    2 short objectCount Amount of objects in group

    Block

    Size Type Name Description
    ---------------------------------------------------
    4 long objectId Object model ID
    4 float positionX X coord (from left bottom corner of region)
    4 float positionY Y coord
    4 float positionZ Z coord
    2 short unknown 0xffff or 0x0000
    4 float theta Angle on Axis Y
    4 long unique Unique id of object, if same, object is not shown
    2 short unknown 0x0000 or 0x0001
    1 char regionX X of region to be used as offset
    1 char regionY Y of region to be used as offset

    VC++ notation

    struct OGroup
    {
    unsigned short objectCount;
    };

    struct OBlock
    {
    unsigned int objectId;
    float positionX;
    float positionY;
    float positionZ;
    unsigned short unknown_1;
    float theta;
    unsigned int unique;
    unsigned short unknown_2;
    unsigned char regionX;
    unsigned char regionY;
    };
    its a bit older but anyways .. i had a look at the .o files from map.pk2 and .. they all start with "JMXVMAPO" then a 5 digit number and then only 00 bytes .. none of the information from above can be found =/
    Last edited by lemoniscool; 15-07-12 at 12:11 PM.



Advertisement