Spoiler: minor remark
well. I couldn't get an answer to my question in any community ...
and although my knowledge in programming tends to zero, I will probably find the answer myself rather than get help from at least someone, which, frankly, greatly surprises me.
anyway, I continue my research on my own:
and so, I replaced in scripts in class Spriteset_Map
@ viewport1 = Viewport.new
by
$ viewport1 = Viewport.new
(well, throughout the class, respectively).
then, calling a script from an event:
$ game_variables [30] = nil
$ game_variables [30] = Sprite.new ($ viewport1)
$ game_variables [30] .bitmap = Bitmap.new (544,416)
$ game_variables [30] .bitmap.fill_rect (0, 0, 544, 416, Color.new (255,0,0,255))
# $ game_variables [30] .z = 0
$ game_variables [30] .x = 0
$ game_variables [30] .y = 0
drew the same picture between the tiles and the character.
from here I can conclude that direct access to the @ viewport1 variable does not work and it is necessary to access the variable in a different way. but I have no idea how. I hope that there is at least someone who will tell me a solution.