Jump to content
Sign In to follow this  
boxbroccoli

Changing plop point/face?

10 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Hey Eveyone,

 

I'm trying to figure out a way to change where the lot attaches to a plop point. An example would be making the bus depot plop backwards (changing the snap point to the back of the lot). Is that possible? I've looked at (and tested) rotating the model, however this leaves the lot rotated opposite the model. Any ideas/suggestions?

Share this post


Link to post
Posted:
Last Online:  
 

You can try looking at other modules of any building that plop in the back of them and see what makes them different from the bus depot ploppable :)

  • Like 2

Just an uninteresting person that plays video games for your falsified amusement.

http://www.youtube.com/c/CapTon

Share this post


Link to post
  • Original Poster
  • Posted:
    Last Online:  
     

    Hey CapTon!

     

    Thanks for the advice. I was doing that exact thing, but I can't think of a single model that plops reverse of something else. I was thinking maybe the convention center / stadium might be a good place to start. Any other suggestions of buildings to look at?

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    Maybe the hospital :) the patient rooms wing is plopped in the back as a plop-on to the building. Try looking at the model details of the modules.

    • Like 2

    Just an uninteresting person that plays video games for your falsified amusement.

    http://www.youtube.com/c/CapTon

    Share this post


    Link to post
  • Original Poster
  • Posted:
    Last Online:  
     

    My terminology is wrong. I meant the attach point of the lot to whatever it's attaching to (road, rail, coast). An example would be taking the bus depot and making it attach to the road at the back instead of the front. I'm not sure how to do this yet. I've stumbled onto .rast files that seem to have 2d ARGB8 (DXT5) style channels and that may be what determines the direction of the attach point. I'm really not sure. I was hoping it was just a vector2 with an X,Y or something simple. 

     

    I've tried exporting the .rast file to a .png, rotating the channels and then exporting to .dds and trying to import it back into the .rast. SimCityPak crashes every time I try to import it with DXT5. I've tried other formats and it doesn't crash, however I just get garbled graphics back on the .rast preview. I've attached an example of the .rast file exported to .png. I've tried using the old SPORE tools to modify the .rast file but I just get version errors and it won't do anything. 

    post-667864-0-95566700-1400997946.png

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    It seems like it SHOULD be something as simple as altering Vector2 properties. I don't believe it has anything to do with those RASTER files.

    • Like 2

    Just an uninteresting person that plays video games for your falsified amusement.

    http://www.youtube.com/c/CapTon

    Share this post


    Link to post
  • Original Poster
  • Posted:
    Last Online:  
     

    Hey CapTon,

     

    I've looked through every property and was able to find a transform matrix for the lot. I was able to rotate the lot 180 degrees (-1 in the matrix) for x/y. Now a new issue has arisen. The lot material under the overlay now starts at the back of where the lot should end and causes a lot of weird issues like the overlay disappearing when the terrain around the station is modified. I'll post some pictures and the .package in a little bit.

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    Okay :) I'd like to see a few pictures and take a look at that package file.


    Just an uninteresting person that plays video games for your falsified amusement.

    http://www.youtube.com/c/CapTon

    Share this post


    Link to post
  • Original Poster
  • Posted:
    Last Online:  
     

    I've attached two screenshots of the overlay texture disappearing when the terrain around the station is modified and also the package.
     
    Here are the values that I've changed and the files I've changed them in:

     

    FILE 0xE8792D59 (Passenger Train Station Property file (menu2))

    • 0x0D2E72D9 - Changed to  Parks path group for plop snapping (so it attached to roads)

    FILE 0x8357b87f (Passenger Train Station Property file (Unit))

    • 0x0caa680d [0] - Changed the Vector3 to move the highdensityroad(cb) path to the opposite side of the station
    • 0x0caa680d [1] - Changed the Vector3 to move the highdensityroad(cb) path to the opposite side of the station
    • 0x0cc8fe7a [0] - Changed from highdensityroad(cb) to Railroad Tracks (builds track when plopped instead of the highdensityroad
    • 0x0ccb7fd5 - Changed from 0x59c606f5 to 0x59c606f6 (the reverse raster for the overlay texture, this was already in simcity packages, found it by accident)
    • 0x0db7fb17 [0] - Changed the transform of the lot FROM (1,0,0) (0,1,0) (0,0,1) (0,23,0) (0) TO (-1,0,0) (0,-1,0) (0,0,1) (0,0,0) (0)

     

    Since I've transformed the x/y rotation of the overlay/model and not the lot itself, I'm thinking it's the cause of the disappearing overlay. I haven't figured out how to rotate the lot material yet. I'm thinking of trying to modify the bounding boxes or some other vector2s until something changes...

    post-667864-0-41703500-1401049252_thumb.

    post-667864-0-90349000-1401049253_thumb.

    Mod-train_station_rev.zip

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    Very good work :) after looking at the pics, I have concluded that you may indeed need to change a few more vector2s so it works out alright. Keep testing and we'll see what you come up with. After that, you can release it as a mod :D


    Just an uninteresting person that plays video games for your falsified amusement.

    http://www.youtube.com/c/CapTon

    Share this post


    Link to post

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account

    Sign In to follow this  
    • Recently Browsing   0 members

      No registered users viewing this page.

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections