It appears that some road rules just don’t apply in Indonesia.
22 things you see or experience on Indonesian roads (link) paints the picture, but something we’re seeing for the first time is a train not having the right of way.
The following was taken at pintu kereta api 81 proyek bekasi: