1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Web traversing and objects with messed up models.

Discussion in 'Developer Support' started by jonas, Feb 3, 2016.

  1. jonas

    Joined:
    Mar 14, 2015
    Messages:
    5
    Likes Received:
    2
    Hey. I've added some doors to a web, and can traverse it. The problem is that the doors has messed up models.
    This is what the doors looks like:
    [​IMG]
    This is what the model for the door looks like:
    [​IMG]
    So, when i generate a path, and traverse it, it spends forever trying to interact with the door. I'm not really sure, how i should proceed.
     
  2. Best Answer:
    Post #2 by Aidden, Feb 3, 2016
  3. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Use a backup model. There should be a bounds editor on the bot store.
    --- Double Post Merged, Feb 3, 2016, Original Post Date: Feb 3, 2016 ---
    Here's the bounds editor: Viewer's Bounds Editor | Community | RuneMate
     
  4. jonas

    Joined:
    Mar 14, 2015
    Messages:
    5
    Likes Received:
    2
    Thanks!

    I made the door model smaller, and added it to the web, but it didn't work. I tried setting it as a backup and forcing it, but it seems that the model is reset upon being added to the web.

    EDIT:
    When walking, i check if the next coordinate has any door on it and if it does, I force a new model on it, and interact with it.:D.
     
    #3 jonas, Feb 3, 2016
    Last edited: Feb 3, 2016
  5. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Hmm, might be a bug. @Cloud
     
  6. Derk

    Derk 12 year old normie

    Joined:
    Jan 8, 2015
    Messages:
    2,766
    Likes Received:
    1,339
    AFAIK the doors at barrows switch around every time, thus having another name or perhaps ID (if OP uses ID's). That would explain why forced model doesn't work, because it's another door that is being remodeled.

    @jonas can you shed some light?
     
  7. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    how are you adding the forced model to the web?
    You'd have to override getObject() to apply the model before returning the door.
     
  8. jonas

    Joined:
    Mar 14, 2015
    Messages:
    5
    Likes Received:
    2
    Some of the doors are locked when you enter. I'm a beginner programmer, so there's a good chance that it was just my code being wrong.:D I put every door within the crypt area, with the action open in a list, and loop through that list adding the doors to the web.

    I was forcing a new model on my door, before turning it into a objectvertex and adding it into the web.:D
     
  9. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    A SimpleObjectVertex? If you were overriding getObject to return a specific reference then that won't work sadly.
     

Share This Page

Loading...