Project1
标题:
【 存档 】 的奇葩问题……
[打印本页]
作者:
Ceopal
时间:
2013-8-5 18:02
标题:
【 存档 】 的奇葩问题……
将A工程copy一份,名为B
给B工程添加一个地图加强脚本
运行A工程,进游戏后存档
把存档扔到B工程后读取、然后报错
存档这货不就是下面这些东西吗?跟脚本哪有关系呢?
数据库一样,脚本点开始游戏运行也没有冲突,怎么读档就会有问题呢?
<FONT size=2> #--------------------------------------------------------------------------
# ● 生成存档的头数据
#--------------------------------------------------------------------------
def self.make_save_header
header = {}
header[:characters] = $game_party.characters_for_savefile
header[:playtime_s] = $game_system.playtime_s
header
end
#--------------------------------------------------------------------------
# ● 生成存档内容
#--------------------------------------------------------------------------
def self.make_save_contents
contents = {}
contents[:system] = $game_system
contents[:timer] = $game_timer
contents[:message] = $game_message
contents[:switches] = $game_switches
contents[:variables] = $game_variables
contents[:self_switches] = $game_self_switches
contents[:actors] = $game_actors
contents[:party] = $game_party
contents[:troop] = $game_troop
contents[:map] = $game_map
contents[:player] = $game_player
contents
end</FONT>
复制代码
作者:
Sion
时间:
2013-8-5 18:05
很明显脚本修改了存档的内容。目测是 Game_Map 报错。
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1