Do you forgot to load the file?
$flag_contents = Marshal.load(file)
$flag_contents = Marshal.load(file)
Última edição por RD12 em Sáb Abr 20, 2013 1:01 pm, editado 1 vez(es)
Icon_Size = 3
#==============================================================================
# ** Auto Save
#------------------------------------------------------------------------------
# By Valentine
# SiS RD12
#==============================================================================
def autosave
name = Network::Main.name
char_id = $char_id
file = File.open("Jogadores/#{name}-#{char_id}.rxdata", "wb")
characters = []
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
characters.push([actor.character_name, actor.character_hue])
end
Marshal.dump(characters, file)
Marshal.dump(Graphics.frame_count, file)
Marshal.dump($game_switches, file)
Marshal.dump($game_variables, file)
Marshal.dump($game_self_switches, file)
Marshal.dump($game_actors, file)
Marshal.dump($game_party, file)
Marshal.dump($game_player, file)
#Marshal.dump($ABS, file)
Marshal.dump($distribuir_pontos, file)
Marshal.dump($guild_name, file)
Marshal.dump($guild_position, file)
Marshal.dump($flag, file)
Marshal.dump($guild_points, file)
Marshal.dump($guild_lider_name, file)
Marshal.dump($hotkey, file)
Marshal.dump($flag_contents, file)
file.close
#fdata = $SiS.file_encode("#{name}-#{char_id}.rxdata")
#nfile = File.open("Jogadores/#{name}-#{char_id}.rxdata", "wb")
#nfile.write(fdata)
#nfile.close
$SiS.send(char_id)
end
def resetwindows
$equip_w.visible = false
$equip_w.active = false
$member_list.visible = false
$member_list.active = false
$item_w.visible = false
$item_w.active = false
$janela_gold_w.visible = false
$help_w.visible = false
$help_w.active = false
$help_w_2.visible = false
$help_w_2.active = false
$help_w.visible = false
$help_w.active = false
$painel_adm.visible = false
$painel_adm.active = false
$convite.visible = false
$convite.active = false
$teleport.visible = false
$teleport.active = false
$skill.visible = false
$skill.active = false
$guild_w.visible = false
$guild_w.active = false
$msg.visible = false
$msg.active = false
$guild_created.visible = false
$guild_created.active = false
$memorizando_skill = false
$memorizando = false
$status.visible = false
$status.active = false
$quest_list.visible = false
$quest_list.active = false
$quest_w.visible = false
$quest_w.active = false
end
mesma coisa q o gringo ali.RD12 escreveu:
Agora no script [SC] Scene_Title, linha 320 procure por
$game_map.setup($game_map.map_id)
Em cima dessa linha coloque esta:
$flag_contents = Marshal.load(file)