Results 1 to 11 of 11

Thread: Prefabs NESW settings ?

  1. #1
    Hunter
    Join Date
    Feb 2018
    Posts
    133
    Rep Power
    0

    Prefabs NESW settings ?

    Is there a set direction you should be facing when creating a prefab ? Thanks As in if facing the front of the building should I be seeing North ?

  2. #2
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    18,370
    Rep Power
    1
    If I'm looking North I should see the front door.

  3. #3
    Hunter
    Join Date
    Feb 2018
    Posts
    133
    Rep Power
    0
    Not that I wanna be a pain but trying to understand, When you spawn a new Gen world is it the game that spawns building facing the wrong way sometimes ? Like on 1 spawn my prefab will always be facing the road then if I visit another town or city there will be instances where the building faces away from the road.. Just wondered if that was something im doing wrong or if its the game, Thanks

  4. #4
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    18,370
    Rep Power
    1
    It depends on how you build it; if you're facing south and put in a front door, the prefabs will be backwards. The game defaults to 0, or "facing north", as if you're facing north, you'll see the front of the prefab.

    In the prefab's xml there is a line:

    <property name="RotationToFaceNorth" value="2" />

    ...0 is "Default", 2 means that the house would need to be rotated twice in order to see the front door if you're facing north.

    I hope this information helps (and more importantly, I hope it's accurate. )

  5. #5
    Hunter
    Join Date
    Feb 2018
    Posts
    133
    Rep Power
    0
    Yeah I knew about the Direction thing 0 North 1 East 2 South 3 West... Did wonder about the other though so thanks So do you know why sometimes if the game makes a Road it then decides to spawn building facing the wrong way lol... Its a shame their needs to be a special block (Named what ever) Bit like the Trader block so the game knows no matter what it auto fixes that block to the road.. That way the whole direction thing would be mute & ALL building would face correctly when spawned...

  6. #6
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    18,370
    Rep Power
    1
    Not all prefab xml's have that line in it. Especially user made ones.

  7. #7
    Hunter
    Join Date
    Feb 2018
    Posts
    133
    Rep Power
    0
    Yeah the editor adds those lines so alls good

  8. #8
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    18,370
    Rep Power
    1
    Does it? I've found that it doesn't add the lines unless you change the numbers. But I may be using an older version.

  9. #9
    Hunter
    Join Date
    Feb 2018
    Posts
    133
    Rep Power
    0
    Yeah it has an xml part that you just fill in to the best of your understanding.. Like you said you still need to fill it in but gives you control & a better understanding of the code, If it wasnt for that id have NO idea what I was putting lol...

  10. #10
    Colony Founder StompyNZ's Avatar
    Join Date
    Apr 2015
    Posts
    3,835
    Rep Power
    1
    I assume it's wilderness poi's that are not facing the right way.

    I haven't tested it recently but I think they always spawn facing the same way and don't consider the road at all.

    Also gup, I thought it was if you face south (in game) then you will see the front door if said door is placed on the north/top of the prefab and it has no rotation applied?

  11. #11
    Hunter
    Join Date
    Feb 2018
    Posts
    133
    Rep Power
    0
    Quote Originally Posted by StompyNZ View Post
    I assume it's wilderness poi's that are not facing the right way.

    I haven't tested it recently but I think they always spawn facing the same way and don't consider the road at all.

    Also gup, I thought it was if you face south (in game) then you will see the front door if said door is placed on the north/top of the prefab and it has no rotation applied?
    Yep it is..... It seems that Biome dictates its facing the wrong way.. & Thats what I thought lol... Cos when facing north its south & sometimes other if in the waste biome, & in the wilderness they face west or east ....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •