Transportman wrote:Yes, this is the best place to get help with the code.NekoMaster wrote:I dunno if this is the right place to get help with 2cc Trains Code...
I'm having a weird issue with 10/8 size electrics clipping on the diagonal views even though the horizontal sprites are just fine.
Heres the code for the EP2 bipolar which is the one in the image thats clipping.
I'm 100% sure that the sprite is 10/8 size.
Regarding your issue: I might have made a mistake with the offsets for longer vehicles, as I had to do those myself. Does the issue also happen with the actual set (preferably a recent nightly)? If so, it is something I should fix.
I used articulated parts to create the whole consist, and then used the default callback to determine on which parts to draw the sprites and on which to draw an empty sprite. On the first part of a long vehicle I've placed the actual sprite, on the second part I've drawn the empty sprite.NekoMaster wrote:Though I have a new Issue that might need someone like transport man's answer.
I need some way to code 3 part articulated locomotives with large sprites.
I could just code them as separate parts but I'd rather have them coded as one big long locomotive.
Hopefully someone can help me with this.
EDIT : I should mention that I'm working with the 2cc Trains in NML code which is why I'm asking here incase someone might have an answer I can use with the 2cc Trains Code
I actually solved my issue by tweaking my long sprites and the template so now I dont have the clipping issue or none that I can see.
Also, I was wondering if perhaps you could show me in a PM or something the code I might use to make a 3 part articulated vehicle with long vehicles (which they themselves are technically coded as articulated vehicles)
I have no idea how to make a locomotive comprised of multiple articulated parts as I still dont quite understand how to work it.