Thread: Construction Region-Objects issue

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Construction Region-Objects issue 
    Registered Member
    Join Date
    Oct 2012
    Posts
    1,279
    Thanks given
    331
    Thanks received
    257
    Rep Power
    69
    Hello,

    A week ago I started working on construction (using the MXCX base). I have made a lot of progress and rewrote tons so far.
    ATM I'm finishing the objects of all rooms.

    I was aware that the menagerie room was different than all the other rooms, since the habitat space (Jungle, Desert, Polar, Volcanic or Garden theme) is build using an array of 64 Object id's for only one theme. No problems when building. The ground and the two objects (included in the array) are 'spawned' correctly.

    Pic one and two:






    So far, so good. But now the problems will emerge. When I add/remove a room, the house will 'refresh'. After this process, everything should be exactly the same, but beside the two objects of the habitat space above the ground, all objects of the habitat space are removed.

    Pic three and four:






    I have tried a bunch of things relating to removing or adding objects, but none seem to affect it. I even tried re-adding the object after a room is added / removed. No luck either.

    I suppose the objects are just hidden due to an issue with region stuff.
    I came across this:

    Code:
     				player.setForceNextMapLoadRefresh(true);
    				player.loadMapRegions();
    But again, no clue if that does make the objects disappear or not.
    Any useful help is appreciated!

    Sincerely,
    Reply With Quote  
     

  2. #2  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    How exactly are you removing the objects from the room? as from what I can see the problem you are having is that half of the rooms objects are removed and the other 2 objects are not?

    So I'm assuming the list you are using to store the objects in to load upon arrival/refresh still contains those two object ids which makes me think that you have not removed them from the list?

    try looping through your list and checking if the two habitat room objects exist there


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2012
    Posts
    1,279
    Thanks given
    331
    Thanks received
    257
    Rep Power
    69
    Quote Originally Posted by Santa Hat View Post
    How exactly are you removing the objects from the room? as from what I can see the problem you are having is that half of the rooms objects are removed and the other 2 objects are not?

    So I'm assuming the list you are using to store the objects in to load upon arrival/refresh still contains those two object ids which makes me think that you have not removed them from the list?

    try looping through your list and checking if the two habitat room objects exist there
    The point is that all objects should stay. Removing and adding objects works fine, until I add a new room somewhere, then the ground of menagerie vanishes.
    Reply With Quote  
     

  4. #4  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Quote Originally Posted by Corleone View Post
    The point is that all objects should stay. Removing and adding objects works fine, until I add a new room somewhere, then the ground of menagerie vanishes.
    ohhh I see the ground ( sand or black rock ) is removed when creating a new room, is that sand or black rock a part of the room or is it spawned separately? never even seen it before lol


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2012
    Posts
    1,279
    Thanks given
    331
    Thanks received
    257
    Rep Power
    69
    Quote Originally Posted by Santa Hat View Post
    ohhh I see the ground ( sand or black rock ) is removed when creating a new room, is that sand or black rock a part of the room or is it spawned separately? never even seen it before lol
    The ground is 62 object id's, the other 2 id's of the array are the two objects which are fine (and aren't removed when creating a new room). And when creating or deleting another room, the ground (62 objects) turn green, or blank (normal buildable object in construction). So, it has to do something with region stuff, since all other objects spawn/remove/stay perfectly fine.

    The habitat has five themes, so that's five arrays of 64 objects for a floor and two pieces of decoration :L. You can imagine that it was already a struggle to get the 62 ground objects orientated in the correct way.
    Reply With Quote  
     

  6. #6  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Quote Originally Posted by Corleone View Post
    The ground is 62 object id's, the other 2 id's of the array are the two objects which are fine (and aren't removed when creating a new room). And when creating or deleting another room, the ground (62 objects) turn green, or blank (normal buildable object in construction). So, it has to do something with region stuff, since all other objects spawn/remove/stay perfectly fine.

    The habitat has five themes, so that's five arrays of 64 objects for a floor and two pieces of decoration :L. You can imagine that it was already a struggle to get the 62 ground objects orientated in the correct way.
    are these objects being spawned in when you construct the house? which is called from the refresh method


    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2012
    Posts
    1,279
    Thanks given
    331
    Thanks received
    257
    Rep Power
    69
    Quote Originally Posted by Santa Hat View Post
    are these objects being spawned in when you construct the house? which is called from the refresh method
    When you remove or add a room, switch building mode, ect.. you basically reload all the serialized data which contains all roomreferences, objects in every room. So everything what is already built, shouldn't change since it's serialized, but when I reload (add/remove room) the ground is green, like grass, the 62 objects are somehow 'gone' or covered by a layer of green grass, I'd call it.
    Reply With Quote  
     

  8. #8  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Quote Originally Posted by Corleone View Post
    When you remove or add a room, switch building mode, ect.. you basically reload all the serialized data which contains all roomreferences, objects in every room. So everything what is already built, shouldn't change since it's serialized, but when I reload (add/remove room) the ground is green, like grass, the 62 objects are somehow 'gone' or covered by a layer of green grass, I'd call it.
    I think I had something like that grass thing happen when I was coding construction, Although I think it happened when I removed a room, could it be something that is overriding all the objects for the floor?

    Also does the floor disappear if you build a room over the other side of the house (Not next to the desert room thing)


    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2012
    Posts
    1,279
    Thanks given
    331
    Thanks received
    257
    Rep Power
    69
    Quote Originally Posted by Santa Hat View Post
    I think I had something like that grass thing happen when I was coding construction, Although I think it happened when I removed a room, could it be something that is overriding all the objects for the floor?

    Also does the floor disappear if you build a room over the other side of the house (Not next to the desert room thing)
    Yuh, it happens as well when I build a room at the other side of the house. And since - I believe it is- it's only "object" which is the floor in construction, I guess it would do it for similar objects if they existed. That's why I'm convinced that it has something to do with region-stuff, since the two lines of code, which I mentioned above, are in a method which has to do with reloading th house.
    Reply With Quote  
     

  10. #10  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Quote Originally Posted by Corleone View Post
    Yuh, it happens as well when I build a room at the other side of the house. And since - I believe it is- it's only "object" which is the floor in construction, I guess it would do it for similar objects if they existed. That's why I'm convinced that it has something to do with region-stuff, since the two lines of code, which I mentioned above, are in a method which has to do with reloading th house.
    Isn't Rugs a floor object? wouldn't that be the same? but yeah it could be the fact that loading a region destroys any objects on the ground


    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Matrix] Region Spawn Objects Issue
    By The Stoned in forum Help
    Replies: 2
    Last Post: 06-05-2014, 06:00 AM
  2. 508 OBJECT ISSUE * Help
    By Mr House in forum Help
    Replies: 13
    Last Post: 11-21-2011, 12:04 AM
  3. Object issues i will give rep [Dementhium]
    By demon dylan001 in forum Help
    Replies: 9
    Last Post: 07-17-2011, 11:15 PM
  4. [614]Region object dumps
    By lukas265 in forum Configuration
    Replies: 9
    Last Post: 10-10-2010, 08:08 PM
  5. object issue
    By gamerx in forum Help
    Replies: 2
    Last Post: 11-25-2008, 02:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •