if $DEBUG
$data_mapinfos = load_data("Data/MapInfos.rxdata")
x = load_data("Data/Map001.rxdata")
for i in 2..1009
m = RPG::MapInfo.new
m.name= sprintf("MAP%03d",i)
m.parent_id = 0
m.order = i % 1000
$data_mapinfos[i] = m
fn = sprintf("Data/Map%03d.rxdata", i)
save_data(x, fn)
end
save_data($data_mapinfos, "Data/MapInfos.rxdata")
exit
end
if $DEBUG
$data_mapinfos = load_data("Data/MapInfos.rxdata")
x = load_data("Data/Map001.rxdata")
for i in 2..1009
m = RPG::MapInfo.new
m.name= sprintf("MAP%03d",i)
m.parent_id = 0
m.order = i % 1000
$data_mapinfos[i] = m
fn = sprintf("Data/Map%03d.rxdata", i)
save_data(x, fn)
end
save_data($data_mapinfos, "Data/MapInfos.rxdata")
exit
end