设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

读档时发现错误,为什么!?

查看数: 1445 | 评论数: 5 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2011-5-15 03:00

正文摘要:

本帖最后由 xuyangyang 于 2011-5-15 03:10 编辑 提示说108行错误不知道为什么#============================================================================== # ■ Scene_Save #----------------------------- ...

回复

「旅」 发表于 2011-5-22 15:22:12
  1. class Scene_Save
  2. def read_save_data(file)
  3.     # 读取描绘存档文件用的角色数据
  4.     characters = Marshal.load(file)
  5.     # 读取测量游戏时间用画面计数
  6.     Graphics.frame_count = Marshal.load(file)
  7.     # 读取各种游戏对像
  8.     $game_system        = Marshal.load(file)
  9.     $game_switches      = Marshal.load(file)
  10.     $game_variables     = Marshal.load(file)
  11.     $game_self_switches = Marshal.load(file)
  12.     $game_screen        = Marshal.load(file)
  13.     $game_actors        = Marshal.load(file)
  14.     $game_party         = Marshal.load(file)
  15.     $game_troop         = Marshal.load(file)
  16.     $game_map           = Marshal.load(file)
  17.     $game_player        = Marshal.load(file)
  18.     # 魔法编号与保存时有差异的情况下
  19.     # (加入编辑器的编辑过的数据)
  20.     if $game_system.magic_number != $data_system.magic_number
  21.       # 重新装载地图
  22.       $game_map.setup($game_map.map_id)
  23.       $game_player.center($game_player.x, $game_player.y)
  24.     end
  25.     # 刷新同伴成员
  26.     $game_party.refresh
  27.   end
  28. end
复制代码
把这段脚本放在他的下面试试~
xuyangyang 发表于 2011-5-15 03:44:09
提示: 作者被禁止或删除 内容自动屏蔽
wbsy8241 发表于 2011-5-15 03:28:33
这个脚本不完全
或许你没有全部复制过来
或者本来就有问题(write_save_data写在里面了 read_save_data却没有)
xuyangyang 发表于 2011-5-15 03:17:05
提示: 作者被禁止或删除 内容自动屏蔽
wbsy8241 发表于 2011-5-15 03:10:50
这是你自己改的吗

Scene_Save 类里没有 read_save_data
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-7-22 05:27

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表