Is there a way to change values of the curve modifier in realtime?

As far as i know, modifiers have to be applied to give proper results inside the game engine.
Even if you do not apply them, they are like being applied when the game engine starts.
So there is no way to change their values in realtime.

I am working on a project that uses the curve modifier a lot and it would be much easier if there was a way to deform a mesh like the curve modifier does, but in realtime.(in this case, the relative offset Y needs to be changed).

Is there a way to achieve that or is there a script that does the same deformations as the curve modifier inside bge?

If this works it would save many hours of work and tons of extra geometry…

I tried to do it with shape keys but its TONS of hard work…

There is no build in oepration that does that. In the BGE curves do not even exist.

Yes, you can manipulate the vertex position of a mesh via Python (see BGE API).