There is a workaround you can do with non stackable items:
0) start the game and the trainer (trainer with root privileges)
1) in game, enable the trainer (F1, you have to hear the robotic voice "trainer activated") select a stackable item with mouse
2) in trainter, replace that stackable item...