"Ultima Ratio": Simulating wide-range X-ray scattering and diffraction