查看: 1958|回复: 1

[已经过期] 存取档 和 装备扩展 的冲突~

[复制链接]
梦石
0
星屑
1691
在线时间
2205 小时
注册时间
2010-6-27
回帖
1259
发表于 2010-10-11 23:25:50 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
1.jpg

看不懂~~
  1. class Scene_Load < Scene_File
  2.   #--------------------------------------------------------------------------
  3.   # ● 读取存档数据
  4.   #     file : 读取用文件对像 (已经打开)
  5.   #--------------------------------------------------------------------------
  6.   def read_save_data(file)
  7.     # 读取描绘存档文件用的角色数据
  8.     characters = Marshal.load(file)
  9.     # 读取测量游戏时间用画面计数
  10.     Graphics.frame_count = Marshal.load(file)
  11.     # 读取各种游戏对像
  12.     $game_system        = Marshal.load(file)
  13.     $game_switches      = Marshal.load(file)
  14.     $game_variables     = Marshal.load(file)
  15.     $game_self_switches = Marshal.load(file)
  16.     $game_screen        = Marshal.load(file)
  17.     $game_actors        = Marshal.load(file)
  18.     $game_party         = Marshal.load(file)
  19.     $game_troop         = Marshal.load(file)
  20.     $game_map           = Marshal.load(file)
  21.     $game_player        = Marshal.load(file)
  22.     $data_weapons       = []
  23.     $data_armors        = []
  24.     $data_weapons       = load_data("Data/Weapons.rxdata")
  25.     $data_armors        = load_data("Data/Armors.rxdata")
  26.     iii = Marshal.load(file)
  27.     for jjj in 1000...iii
  28.       $data_weapons[jjj]= Marshal.load(file)
  29.     end
  30.     iii = Marshal.load(file)
  31.     for jjj in 1000...iii
  32.       $data_armors[jjj] = Marshal.load(file)
  33.     end  
  34.     # 魔法编号与保存时有差异的情况下
  35.     # (加入编辑器的编辑过的数据)
  36.     if $game_system.magic_number != $data_system.magic_number
  37.       # 重新装载地图
  38.       $game_map.setup($game_map.map_id)
  39.       $game_player.center($game_player.x, $game_player.y)
  40.     end
  41.     # 刷新同伴成员
  42.     $game_party.refresh
  43.   end
  44. end  
复制代码

于是我也广告下…


  • 更新完成啦
  • 梦石
    0
    星屑
    894
    在线时间
    6267 小时
    注册时间
    2006-6-7
    回帖
    8173
发表于 2010-10-12 00:18:15 | 显示全部楼层
= =估计是装备数据没有写进Save

点评

好像是哦。。我去试试  发表于 2010-10-12 14:31
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部