1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you are going to register on XLNation, please make sure you do not use a proxy server.
    If you use a proxy server your registration will most likely get blocked due to spammers and hackers using proxy servers to hide their real IP address.

    If your using your home or work IP address and have not received your registration email, check your spam folder.
    PLEASE DO NOT ASK TO HAVE YOUR ACCOUNT DELETED IF YOU HAVE POSTED IN THE FORUM! If so we do not delete accounts due to the mess it can make on the forum.
    Dismiss Notice

Help please....

Discussion in 'Modding Help Quarter' started by DtwizzY, Mar 16, 2015.

  1. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    440
    Well, look at the dimensions: 814 x 1080 meters area and 957 meters height, that explains it why it's so huge in game. Use Scale option to reduce to proper size.
     
  2. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    I really have a problem and I do not know where it comes from ...

    cxl_sc13.jpg
    cxl_sc14.jpg

    On this building I checked the sizes and it was good but I had a problem somewhere, but where? When exporting in sgbin? When encoding with EasyMOD?

    It makes me crazy! :mad:
    I made 2 mods and none works ... I'm desperate :( ... but I know it can not be good at a time ...
     
  3. nicko2u

    nicko2u Governor

    Joined:
    Aug 22, 2014
    Messages:
    742
    Likes Received:
    1,108
    Ffirst make sure you max - customize > Unit Setup is correct.
    unit_setup.png

    Then create a simple Box in your scene, say 40m x 40m x 80m high to get an idea of the size compared to your model.

    If in doubt start as simple as possible, even start with just trying to model a simple Box. Once you have the correct sizes and idea of adding textures etc, proceed to create a more complex model. Well that's how i started. In other words learn to walk before you run.
     
  4. PaulJChris

    PaulJChris Governor

    Joined:
    Aug 23, 2014
    Messages:
    165
    Likes Received:
    537
    create a new scene with the units sets up correctly as Nicko2u describes above.

    Then import your old scene into the new one and allow it to "use scene settings" . This willgive you the scale of your model. You may have to rescale it.

    Turn on the grid in the viewer when you export the model. Each square is 1M . This should also easily show you if the sale of your model is correct.
     
  5. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    Thank you for all your advice! and above all continued to help me!

    For the size I think I succeeded, at least it looks

    cxl_sc16.jpg

    But I still have this problem at the base of the building, well I do not know how to call it ...

    cxl_sc15.jpg

    Any idea?
     
  6. Mr.X²

    Mr.X² Moderator
    Staff Member

    Joined:
    Aug 23, 2014
    Messages:
    1,338
    Likes Received:
    1,714
    reset your pivot point to the center of your models, then move z axis to the bottom of your model (use snap to edges to be precise)
    then center lod 1 in the scene and do reset x form for all lods and finally export it again
     
  7. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    I don't understand ... I'm sorry, maybe you can show me some pictures?

    3dspan10.jpg
     
  8. Mr.X²

    Mr.X² Moderator
    Staff Member

    Joined:
    Aug 23, 2014
    Messages:
    1,338
    Likes Received:
    1,714
    its all somewhere in my tutorial; incl step by step screenies ;)

    you are in the correct menu -> click "affect pivot only" and then "center to object"; then "select and move" in the menu bar on the top and move the z axis down to the base of your model with your mouse. do this for every lod.
    i guess you already know how to reset x-form?
    sry, im too lazy to do screenshots atm^^
     
  9. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    So I want to thank all those who helped to advance because I finally got me to import my building and sincerely I would not do this without your help ... Yes I know it is only the beginning but for me it is great! pride!:):)

    Thank you from my heart : Mr.X², Monty, nicko2u, pauliaxz, PaulJChris & Aitortilla01... :love:

    Your advice helped me :sneaky:

    cbdyin10.jpg
     
  10. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    Hi all,

    Here I was able to import my building but when I want to import one of my houses I'm always this big problem and duplicate the building ....

    problh10.jpg

    I have yet to use Reset XForm, but nothing changes ...

    So I wonder if it's not when I transformed with EasyMOD? or then maybe it is too small? My base is 10x10m and when I turn it puts me 40x40 ...

    easy10.jpg
     
  11. nicko2u

    nicko2u Governor

    Joined:
    Aug 22, 2014
    Messages:
    742
    Likes Received:
    1,108
    sounds like an issue with your layout file. try something like below.

    Code:
    <?xml version="1.0" encoding="Windows-1252"?>
    <Layout>
        <Type>BASE</Type>
        <BaseFileName>""</BaseFileName>
        <Tag>""</Tag>
        <FilterType>MAXIMUM</FilterType>
        <LayoutEntry>
            <ID>Plug</ID>
            <Type>PLUG</Type>
            <PrototypeFile>data/design/editor/plug.class</PrototypeFile>
            <Position>0.0,-5.0,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>      
        </LayoutEntry>
    
        <LayoutEntry>
            <ID>ParkingJunction</ID>
            <Type>JUNCTION</Type>
            <PrototypeFile>data/design/editor/track/trackjunctionparking.class</PrototypeFile>
            <Position>0,-5,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>      
            <Junction>
                <PlugID>Plug</PlugID>
                <IsAddress>1</IsAddress>
            </Junction>
        </LayoutEntry>
        <LayoutEntry>
            <ID>ParkingTrack</ID>
            <Type>TRACK</Type>
            <PrototypeFile>data/design/editor/trackparking.class</PrototypeFile>
            <Position>0,0,0</Position>
            <JunctionStart>ParkingJunction</JunctionStart>
            <JunctionEnd>ParkingJunction01</JunctionEnd>
        </LayoutEntry>
        <LayoutEntry>
            <ID>ParkingJunction01</ID>
            <Type>JUNCTION</Type>
            <PrototypeFile>data/design/editor/track/trackjunctionparking.class</PrototypeFile>
            <Position>0,0,0</Position>
            <Rotation>0,0,1,0</Rotation>  
        </LayoutEntry>
      
    
    
    
    </Layout>
     
  12. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    I still have the same problem ..

    proble10.jpg

    I show you my class files and layout below:

    LAYOUT
    Code:
    <?xml version="1.0" encoding="Windows-1252"?>
    <!--Layout file generated with 3ds Max scripted plugin by Altiris 2013-->
    <Layout>
        <Type>BASE</Type>
        <BaseFileName>""</BaseFileName>
        <Tag>""</Tag>
        <FilterType>MAXIMUM</FilterType>
        <LayoutEntry>
              <ID>Plug</ID>
              <Type>PLUG</Type>
              <PrototypeFile>data/design/editor/plug.class</PrototypeFile>
              <Position>0.0,-5.0,0.0</Position>
              <Rotation>0.0,0.0,0.0,1.0</Rotation>    
         </LayoutEntry>
        <LayoutEntry>
            <ID>Junction001</ID>
            <Type>JUNCTION</Type>
            <PrototypeFile>data/design/editor/track/trackjunctionPavement.class</PrototypeFile>
            <Position>9.99958,-0.0102002,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Junction002</ID>
            <Type>JUNCTION</Type>
            <PrototypeFile>data/design/editor/track/trackjunctionPavement.class</PrototypeFile>
            <Position>0.0211777,0.00905762,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Junction003</ID>
            <Type>JUNCTION</Type>
            <PrototypeFile>data/design/editor/track/trackjunctionRoad.class</PrototypeFile>
            <Position>0.0812866,10.0742,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Junction004</ID>
            <Type>JUNCTION</Type>
            <PrototypeFile>data/design/editor/track/trackjunctionRoad.class</PrototypeFile>
            <Position>10.0611,9.99784,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree001</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/bobo/bushes_bob_redyucca.class</PrototypeFile>
            <Position>7.85594,9.60081,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree002</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/no_cultured_tree/t_noc_agarwood01.class</PrototypeFile>
            <Position>5.82071,9.57454,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree003</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/no_cultured_tree/t_noc_agarwood01.class</PrototypeFile>
            <Position>4.14477,9.54844,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree004</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/no_cultured_tree/t_noc_agarwood01.class</PrototypeFile>
            <Position>1.25553,9.66846,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree005</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/no_cultured_tree/t_noc_agarwood01.class</PrototypeFile>
            <Position>0.342219,7.99285,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree006</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/no_cultured_tree/t_noc_agarwood01.class</PrototypeFile>
            <Position>9.6367,7.92987,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
        <LayoutEntry>
            <ID>Tree007</ID>
            <Type>TREE</Type>
            <PrototypeFile>data/design/decoration/tree/no_cultured_tree/t_noc_agarwood01.class</PrototypeFile>
            <Position>9.20656,9.45267,0.0</Position>
            <Rotation>0.0,0.0,0.0,1.0</Rotation>
            <Scale>0.75,0.75,0.75</Scale>
            <Tree>
                <PresenceProbability>1.0</PresenceProbability>
                <ScaleRandom_Min>0.25</ScaleRandom_Min>
                <ScaleRandom_Max>0.75</ScaleRandom_Max>
            </Tree>
        </LayoutEntry>
    </Layout>
    CLASS
    Code:
    <?xml version="1.0" encoding="Windows-1252"?>
        <!-- Residences T1R1-->
        <View>
            <Panel>BuildingSelection</Panel>
            <NameKey>&H_LOW_T1</NameKey>
            <NameKeySim>&H_LOW_T1_SIM</NameKeySim>
            <DescriptionKey>&H_LOW_T1_DES</DescriptionKey>
            <Param1Key>&H_LOW_T1_PARAM1</Param1Key>
            <Value1Key>&H_LOW_T1_VALUE1</Value1Key>
            <Param2Key>&H_LOW_T1_PARAM2</Param2Key>
            <Value2Key>&H_LOW_T1_VALUE2</Value2Key>
            <Param3Key>&H_LOW_T1_PARAM3</Param3Key>
            <Value3Key>&H_LOW_T1_VALUE3</Value3Key>
        </View>
        <Display>
            <Model>data/gfx/building/h_low_ser1_t1.sgbin</Model>
            <Placeholder>Data/Gfx/Placeholder/h_aahouse_t1.sgbin</Placeholder>
            <Fundament>
                <Use>1</Use>
                <Model>""</Model>
            </Fundament>
        </Display>
        <EntityPosition>
            <CollisionShape>
                <Dimension>10,10</Dimension>
                <Height>8</Height>
            </CollisionShape>
        </EntityPosition>
        <Placement>
            <Type>BUILDING</Type>
                      <GroundType>ANY</GroundType>
            <DelegatePrototype>""</DelegatePrototype>
            <OverPickable>1</OverPickable>
            <Merge>0</Merge>
            <LinkPrototypeFile>""</LinkPrototypeFile>
        </Placement>
        <Layouts>
            <LayoutFile1>data/design/layout/h_lowlife/h_lowser01_t1_low.layout</LayoutFile1>
        </Layouts>
        <Tag>Residence;T1;UnqualifiedWorker;MS18;GemCity</Tag>
        <Entity>
            <Type>RESIDENCE</Type>
            <Serializable>0</Serializable>
            <WithOptional1>SLACOLAYER</WithOptional1>
        </Entity>
        <CitizenHome>
            <MaxCitizen>1</MaxCitizen>
            <Richness>1</Richness>
        </CitizenHome>
        <Layer>
            <Shape01>
                <LayerName>LowLife</LayerName>
                <Radius>100</Radius>
                <InfluenceMin>0</InfluenceMin>
                <InfluenceMax>1</InfluenceMax>
                <Type>CIRCLE</Type>
                <DegressiveInfluence>1</DegressiveInfluence>
            </Shape01>
        </Layer>
        <Construction>
            <IsDestroyable>1</IsDestroyable>
            <IsZoneConstruction>0</IsZoneConstruction>
            <PlacementType>BUILDING</PlacementType>
            <Constructing>
                <TimeStep>2</TimeStep>
            </Constructing>
            <Destroying>
                <TimeStep>2</TimeStep>
            </Destroying>
        </Construction>
        <Conditions>
            <ConditionSet1>
                <ModeName>player_lock_all</ModeName>
                <ConstructionCost>200</ConstructionCost>
                <DestructionCost>20</DestructionCost>
                <VisibleConditions>
                    <MinNbBuildingOnMapWithTagsRelock1>
                        <Name>GemCity</Name>
                        <Name2>TownHall</Name2>
                        <Number>1</Number>
                    </MinNbBuildingOnMapWithTagsRelock1>
                    <NbCitizen>0</NbCitizen>
                    <MinNbBuildingOnMapWithTags1>
                        <Name>GemCity</Name>
                        <Name2>Allinone</Name2>
                        <Number>1</Number>
                    </MinNbBuildingOnMapWithTags1>
                </VisibleConditions>
                <UnlockConditions>
                    <NbCitizen>0</NbCitizen>
                    <MinNbBuildingOnMapWithTagsRelock1>
                        <Name>GemCity</Name>
                        <Name2>TownHall</Name2>
                        <Number>1</Number>
                    </MinNbBuildingOnMapWithTagsRelock1>
                    <MinNbBuildingOnMapWithTags1>
                        <Name>GemCity</Name>
                        <Name2>Allinone</Name2>
                        <Number>1</Number>
                    </MinNbBuildingOnMapWithTags1>
                </UnlockConditions>
            </ConditionSet1>
            <ConditionSet2>
                <ModeName>player_lock_achievement</ModeName>
                <ConstructionCost>200</ConstructionCost>
                <DestructionCost>20</DestructionCost>
            </ConditionSet2>
        </Conditions>
    You can also found the image that I do not have decorations ... weird ...
     
  13. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    440
    Where is the pivot point of your model placed? Take a photo of your model in 3ds Max where pivot point can be seen.
     
  14. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    Here

    maxvie10.jpg
     
  15. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    440
    Well I see the problem.
    Your pivot point should be in the center of the building (X and Y axes only) and 0 of Z axis. From the picture it seems it is correct, but your house together with its pivot should be in 0,0,0 (x,y,z) - which is not
     
  16. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    Ok and how to fix it?
     
  17. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    440
    Just select your lod1 then mouse right button click on move tool and set all coords to 0 for x, y, z axes

    Edit: In addition I am unable to see any junction or track layout helper near plug dummy, that could cause problems too
     
  18. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120
    Still the problem ...

    cxl_sc21.jpg

    And even better, I have this in a view in the first person ...

    cxl_sc22.jpg

    Yes I certainly do things wrong, but I try to understand ...

    Yet it looks correct ....

    maxvie11.jpg


    Want my max file?
     
  19. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    440
    Well, you did a lot of things wrong. For now I am writing from my phone so can't provide pics, well, you can upload your max file, so I could fix it and explain what I changed, only tommorow.
     
  20. DtwizzY

    DtwizzY Elite

    Joined:
    Aug 29, 2014
    Messages:
    82
    Likes Received:
    120

Share This Page