No error anymore, but also not working, I set switch 100 ON and save it to save data, when I load game and test, switch 100 is still OFF , I already added $game_switches[100] = Marshal.load(file) in scene_load to load that switch and also added Marshal.dump($game_switches[100], file) in scene_save to avoid error when load save, in game, I load save and active event calls script:
file =
File.open("Save1.rxdata", "ab")
$game_switches[100] = true
Marshal.dump($game_switches[100], file)
file.close
to make sure, I check switch 100, it's ON now.
then I return to title screen and continue again, check switch 100 and result is still OFF.