Jump to content

lukasyee

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by lukasyee

  1. On 27/03/2019 at 22:13, X7123M3-256 said:

    The process for creating a new track element for an existing track (there are extra steps if you are looking to add an altogether new track style) looks like this:

    • Create the sprites. This is the hard part.
    • Place the sprites in the appropriate subdirectory of resources/g2/track/ (if there isn't a subdirectory for the new track type, create it. It doesn't actually matter where they go, but it's a good idea to keep the sprites organized).
    • Edit /resources/g2/sprites.json and add entries for the new sprites.
    • Run "make g2" to generate a new g2.dat file.
    • Edit src/openrct2/sprites.h and add symbolic constants for the new sprites. You can skip this step, but it will make rebasing very tedious if any new sprites have been added to develop since you started development of your new track elements.
    • Add the code to draw the element. The track drawing code is found in src/openrct2/ride/coaster - most of the time you can just copy the code from a ride that already has that element, and just change the sprites. Also make sure to modify get_track_paint_function_* (at the end of the file) to let OpenRCT2 know about the new track.
    • Finally, you need to alter src/openrct2/ride/TrackData.cpp to add the new track element to the list of supported track elements for that ride (this is stored in RideTypePossibleTrackConfigurations). If you don't want the track element to be available to build without cheats, you can skip this step (if your track piece requires sprites that vanilla trains don't have, and you intend to submit it for inclusion in the official release, the developers will probably not want it to be available without cheats).

    Really, if you can just create sprites that look good I'd be happy to help you with getting them in the game - as I mentioned above, I had a go at implementing this myself and the only thing I really struggled with is making sprites that go well with the vanilla ones - I already have this working, it just doesn't look very good (for the screenshot above, I replaced all the vanilla track as well, just so that the new ones wouldn't look out of place).

    Isn't there just a way to basically get the sprites, And make them into scenery objects, So you build a twister coaster as intamin or mack, Change it to giga, have those inversions invisible, and just place scenery objects of the inversions into the place of the inversion and then have a good looking intamin or mack coaster??

×
×
  • Create New...