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

Project1

 找回密码
 注册会员
搜索
查看: 24386|回复: 52

[RMVX发布] [原创发布]动画数据库 RMXP -> RMVX,继续编辑制作

 关闭 [复制链接]

Lv1.梦旅人

66RPG站长

梦石
0
星屑
54
在线时间
615 小时
注册时间
2005-10-10
帖子
5734

RMVX自由创作大赛亚军第2届短篇游戏比赛亚军第5届短篇游戏比赛冠军

发表于 2008-1-15 18:41:15 | 显示全部楼层 |阅读模式

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

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

x
XP时当年那么多的动画,浪费可惜。

转换方法如下:

1、RMXP中插入代码1并执行

2、生成一个animations2.xp_to_vx,复制到RMVX的工程下

3、RMVX中插入代码2并执行。关闭VX工程重开后就会发现动画已经正确添加完毕。




代码1:
  1. $data_animations    = load_data("Data/Animations.rxdata")

  2. module RPG
  3.   class Animation
  4.     class Timing
  5.       def initialize
  6.         @frame = 0
  7.         @se = RPG::AudioFile.new("", 80)
  8.         @flash_scope = 0
  9.         @flash_color = Color.new(255,255,255,255)
  10.         @flash_duration = 5
  11.         @condition = 0
  12.         @se_name = ""
  13.         @se_volume = 80
  14.         @se_pitch = 100
  15.       end
  16.       attr_accessor :frame
  17.       attr_accessor :se
  18.       attr_accessor :se_name
  19.       attr_accessor :se_volume
  20.       attr_accessor :se_pitch
  21.       attr_accessor :flash_scope
  22.       attr_accessor :flash_color
  23.       attr_accessor :flash_duration
  24.       attr_accessor :condition
  25.     end
  26.   end
  27. end

  28. module RPG
  29.   class Animation2
  30.     def initialize
  31.       @id = 0
  32.       @name = ""
  33.       @animation_name = ""
  34.       @animation_hue = 0
  35.       @position = 1
  36.       @frame_max = 1
  37.       @frames = [RPG::Animation::Frame.new]
  38.       @timings = []
  39.     end
  40.     attr_accessor :id
  41.     attr_accessor :name
  42.     attr_accessor :animation_name
  43.     attr_accessor :animation_hue
  44.     attr_accessor :position
  45.     attr_accessor :frame_max
  46.     attr_accessor :frames
  47.     attr_accessor :timings
  48.   end
  49. end

  50. module RPG
  51.   class Animation2
  52.     class Timing
  53.       def initialize
  54.         @frame = 0
  55.         @flash_scope = 0
  56.         @flash_color = Color.new(255,255,255,255)
  57.         @flash_duration = 5
  58.         @condition = 0
  59.         @se_name = ""
  60.         @se_volume = 80
  61.         @se_pitch = 100
  62.       end
  63.       attr_accessor :frame
  64.       attr_accessor :se
  65.       attr_accessor :se_name
  66.       attr_accessor :se_volume
  67.       attr_accessor :se_pitch
  68.       attr_accessor :flash_scope
  69.       attr_accessor :flash_color
  70.       attr_accessor :flash_duration
  71.       attr_accessor :condition
  72.     end
  73.   end
  74. end

  75. $ani = []
  76. for ani in $data_animations
  77.   next if ani == nil
  78.   temp_ani = RPG::Animation2.new
  79.   temp_ani.id = ani.id
  80.   temp_ani.name = ani.name
  81.   temp_ani.animation_name = ani.animation_name
  82.   temp_ani.animation_hue = ani.animation_hue
  83.   temp_ani.position = ani.position
  84.   temp_ani.frame_max = ani.frame_max
  85.   temp_ani.frames = ani.frames
  86.   temp_ani.timings = []
  87.   for timing in ani.timings
  88.     if timing.se != nil
  89.       timing.se_name = timing.se.name
  90.       timing.se_volume = timing.se.volume
  91.       timing.se_pitch = timing.se.pitch
  92.       timing.se = nil
  93.     end
  94.     temp_timings = RPG::Animation2::Timing.new
  95.     temp_timings.frame = timing.frame
  96.     temp_timings.se_name = timing.se_name
  97.     temp_timings.se_volume = timing.se_volume
  98.     temp_timings.se_pitch = timing.se_pitch
  99.     temp_timings.flash_scope = timing.flash_scope
  100.     temp_timings.flash_color = timing.flash_color
  101.     temp_timings.flash_duration = timing.flash_duration
  102.     temp_timings.condition = timing.condition
  103.     temp_ani.timings.push(temp_timings)
  104.   end
  105.   $ani.push(temp_ani)
  106. end


  107. save_data($ani, "animations2.xp_to_vx")
  108. p "ready~~~~go!"
  109. exit
复制代码


代码2:
  1. module RPG
  2.   class Animation2
  3.     def initialize
  4.       @id = 0
  5.       @name = ""
  6.       @animation_name = ""
  7.       @animation_hue = 0
  8.       @position = 1
  9.       @frame_max = 1
  10.       @frames = [RPG::Animation::Frame.new]
  11.       @timings = []
  12.     end
  13.     attr_accessor :id
  14.     attr_accessor :name
  15.     attr_accessor :animation_name
  16.     attr_accessor :animation_hue
  17.     attr_accessor :position
  18.     attr_accessor :frame_max
  19.     attr_accessor :frames
  20.     attr_accessor :timings
  21.   end
  22. end

  23. module RPG
  24.   class Animation2
  25.     class Timing
  26.       def initialize
  27.         @frame = 0
  28.         @flash_scope = 0
  29.         @flash_color = Color.new(255,255,255,255)
  30.         @flash_duration = 5
  31.         @condition = 0
  32.         @se_name = ""
  33.         @se_volume = 80
  34.         @se_pitch = 100
  35.       end
  36.       attr_accessor :frame
  37.       attr_accessor :se_name
  38.       attr_accessor :se_volume
  39.       attr_accessor :se_pitch
  40.       attr_accessor :flash_scope
  41.       attr_accessor :flash_color
  42.       attr_accessor :flash_duration
  43.       attr_accessor :condition
  44.     end
  45.   end
  46. end

  47. $data_animations_xpvx    = load_data("animations2.xp_to_vx")
  48. $data_animations    = load_data("Data/Animations.rvdata")

  49. for ani in $data_animations_xpvx
  50.   new_ani = RPG::Animation.new
  51.   new_ani.id = ani.id
  52.   new_ani.name = ani.name
  53.   new_ani.animation1_name = ani.animation_name
  54.   new_ani.animation1_hue = ani.animation_hue
  55.   new_ani.animation2_name = ""
  56.   new_ani.animation2_hue = 0
  57.   new_ani.position = ani.position
  58.   new_ani.frame_max = ani.frame_max
  59.   new_ani.frames = ani.frames
  60.   for timings in ani.timings
  61.     temp_timings = RPG::Animation::Timing.new
  62.     temp_timings.frame = timings.frame
  63.     temp_timings.se = RPG::SE.new(timings.se_name, timings.se_volume, timings.se_pitch)
  64.     temp_timings.flash_scope = timings.flash_scope
  65.     temp_timings.flash_color = timings.flash_color
  66.     temp_timings.flash_duration = timings.flash_duration
  67.     new_ani.timings.push(temp_timings)
  68.   end
  69.   $data_animations.push(new_ani)
  70. end

  71. save_data($data_animations, "Data/Animations.rvdata")
  72. p "大家好,今天66RPG的网速似乎不错啊。"
  73. exit
复制代码


Lv1.梦旅人

66RPG站长

梦石
0
星屑
54
在线时间
615 小时
注册时间
2005-10-10
帖子
5734

RMVX自由创作大赛亚军第2届短篇游戏比赛亚军第5届短篇游戏比赛冠军

 楼主| 发表于 2008-1-15 18:41:15 | 显示全部楼层 |阅读模式

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

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

x
XP时当年那么多的动画,浪费可惜。

转换方法如下:

1、RMXP中插入代码1并执行

2、生成一个animations2.xp_to_vx,复制到RMVX的工程下

3、RMVX中插入代码2并执行。关闭VX工程重开后就会发现动画已经正确添加完毕。




代码1:
  1. $data_animations    = load_data("Data/Animations.rxdata")

  2. module RPG
  3.   class Animation
  4.     class Timing
  5.       def initialize
  6.         @frame = 0
  7.         @se = RPG::AudioFile.new("", 80)
  8.         @flash_scope = 0
  9.         @flash_color = Color.new(255,255,255,255)
  10.         @flash_duration = 5
  11.         @condition = 0
  12.         @se_name = ""
  13.         @se_volume = 80
  14.         @se_pitch = 100
  15.       end
  16.       attr_accessor :frame
  17.       attr_accessor :se
  18.       attr_accessor :se_name
  19.       attr_accessor :se_volume
  20.       attr_accessor :se_pitch
  21.       attr_accessor :flash_scope
  22.       attr_accessor :flash_color
  23.       attr_accessor :flash_duration
  24.       attr_accessor :condition
  25.     end
  26.   end
  27. end

  28. module RPG
  29.   class Animation2
  30.     def initialize
  31.       @id = 0
  32.       @name = ""
  33.       @animation_name = ""
  34.       @animation_hue = 0
  35.       @position = 1
  36.       @frame_max = 1
  37.       @frames = [RPG::Animation::Frame.new]
  38.       @timings = []
  39.     end
  40.     attr_accessor :id
  41.     attr_accessor :name
  42.     attr_accessor :animation_name
  43.     attr_accessor :animation_hue
  44.     attr_accessor :position
  45.     attr_accessor :frame_max
  46.     attr_accessor :frames
  47.     attr_accessor :timings
  48.   end
  49. end

  50. module RPG
  51.   class Animation2
  52.     class Timing
  53.       def initialize
  54.         @frame = 0
  55.         @flash_scope = 0
  56.         @flash_color = Color.new(255,255,255,255)
  57.         @flash_duration = 5
  58.         @condition = 0
  59.         @se_name = ""
  60.         @se_volume = 80
  61.         @se_pitch = 100
  62.       end
  63.       attr_accessor :frame
  64.       attr_accessor :se
  65.       attr_accessor :se_name
  66.       attr_accessor :se_volume
  67.       attr_accessor :se_pitch
  68.       attr_accessor :flash_scope
  69.       attr_accessor :flash_color
  70.       attr_accessor :flash_duration
  71.       attr_accessor :condition
  72.     end
  73.   end
  74. end

  75. $ani = []
  76. for ani in $data_animations
  77.   next if ani == nil
  78.   temp_ani = RPG::Animation2.new
  79.   temp_ani.id = ani.id
  80.   temp_ani.name = ani.name
  81.   temp_ani.animation_name = ani.animation_name
  82.   temp_ani.animation_hue = ani.animation_hue
  83.   temp_ani.position = ani.position
  84.   temp_ani.frame_max = ani.frame_max
  85.   temp_ani.frames = ani.frames
  86.   temp_ani.timings = []
  87.   for timing in ani.timings
  88.     if timing.se != nil
  89.       timing.se_name = timing.se.name
  90.       timing.se_volume = timing.se.volume
  91.       timing.se_pitch = timing.se.pitch
  92.       timing.se = nil
  93.     end
  94.     temp_timings = RPG::Animation2::Timing.new
  95.     temp_timings.frame = timing.frame
  96.     temp_timings.se_name = timing.se_name
  97.     temp_timings.se_volume = timing.se_volume
  98.     temp_timings.se_pitch = timing.se_pitch
  99.     temp_timings.flash_scope = timing.flash_scope
  100.     temp_timings.flash_color = timing.flash_color
  101.     temp_timings.flash_duration = timing.flash_duration
  102.     temp_timings.condition = timing.condition
  103.     temp_ani.timings.push(temp_timings)
  104.   end
  105.   $ani.push(temp_ani)
  106. end


  107. save_data($ani, "animations2.xp_to_vx")
  108. p "ready~~~~go!"
  109. exit
复制代码


代码2:
  1. module RPG
  2.   class Animation2
  3.     def initialize
  4.       @id = 0
  5.       @name = ""
  6.       @animation_name = ""
  7.       @animation_hue = 0
  8.       @position = 1
  9.       @frame_max = 1
  10.       @frames = [RPG::Animation::Frame.new]
  11.       @timings = []
  12.     end
  13.     attr_accessor :id
  14.     attr_accessor :name
  15.     attr_accessor :animation_name
  16.     attr_accessor :animation_hue
  17.     attr_accessor :position
  18.     attr_accessor :frame_max
  19.     attr_accessor :frames
  20.     attr_accessor :timings
  21.   end
  22. end

  23. module RPG
  24.   class Animation2
  25.     class Timing
  26.       def initialize
  27.         @frame = 0
  28.         @flash_scope = 0
  29.         @flash_color = Color.new(255,255,255,255)
  30.         @flash_duration = 5
  31.         @condition = 0
  32.         @se_name = ""
  33.         @se_volume = 80
  34.         @se_pitch = 100
  35.       end
  36.       attr_accessor :frame
  37.       attr_accessor :se_name
  38.       attr_accessor :se_volume
  39.       attr_accessor :se_pitch
  40.       attr_accessor :flash_scope
  41.       attr_accessor :flash_color
  42.       attr_accessor :flash_duration
  43.       attr_accessor :condition
  44.     end
  45.   end
  46. end

  47. $data_animations_xpvx    = load_data("animations2.xp_to_vx")
  48. $data_animations    = load_data("Data/Animations.rvdata")

  49. for ani in $data_animations_xpvx
  50.   new_ani = RPG::Animation.new
  51.   new_ani.id = ani.id
  52.   new_ani.name = ani.name
  53.   new_ani.animation1_name = ani.animation_name
  54.   new_ani.animation1_hue = ani.animation_hue
  55.   new_ani.animation2_name = ""
  56.   new_ani.animation2_hue = 0
  57.   new_ani.position = ani.position
  58.   new_ani.frame_max = ani.frame_max
  59.   new_ani.frames = ani.frames
  60.   for timings in ani.timings
  61.     temp_timings = RPG::Animation::Timing.new
  62.     temp_timings.frame = timings.frame
  63.     temp_timings.se = RPG::SE.new(timings.se_name, timings.se_volume, timings.se_pitch)
  64.     temp_timings.flash_scope = timings.flash_scope
  65.     temp_timings.flash_color = timings.flash_color
  66.     temp_timings.flash_duration = timings.flash_duration
  67.     new_ani.timings.push(temp_timings)
  68.   end
  69.   $data_animations.push(new_ani)
  70. end

  71. save_data($data_animations, "Data/Animations.rvdata")
  72. p "大家好,今天66RPG的网速似乎不错啊。"
  73. exit
复制代码


Lv1.梦旅人

66RPG站长

梦石
0
星屑
54
在线时间
615 小时
注册时间
2005-10-10
帖子
5734

RMVX自由创作大赛亚军第2届短篇游戏比赛亚军第5届短篇游戏比赛冠军

 楼主| 发表于 2008-1-15 18:44:00 | 显示全部楼层
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
0 小时
注册时间
2007-8-10
帖子
399
发表于 2008-1-15 20:01:26 | 显示全部楼层
hoho~~面白~~
不过还是比较期待vx->xp的,就算只保留一个素材文件也好啊~~
柳大有没有兴趣弄啊?
少跟我装神秘,你当你是夜神月?
回复 支持 反对

使用道具 举报

Lv3.寻梦者 (暗夜天使)

精灵族の天使

梦石
0
星屑
1697
在线时间
3038 小时
注册时间
2007-3-16
帖子
33731

开拓者贵宾

发表于 2008-1-15 20:29:05 | 显示全部楼层
强烈建议制作一个rmvx->rmxp的动画数据库转换脚本,这样rmxp也能使用rmvx的素材动画了。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
25 小时
注册时间
2006-6-16
帖子
48
发表于 2008-1-16 00:25:11 | 显示全部楼层
本帖需要VIP点 11 才能浏览!

哭,直接从2003跳到VX是不是太快了点,..我对XP可没怎么弄过呀...
那份情,为谁而留;那份爱,为谁执着;那颗心,为谁而动。从遇上到爱上,只是一瞬间的事……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

66RPG站长

梦石
0
星屑
54
在线时间
615 小时
注册时间
2005-10-10
帖子
5734

RMVX自由创作大赛亚军第2届短篇游戏比赛亚军第5届短篇游戏比赛冠军

 楼主| 发表于 2008-1-16 01:40:48 | 显示全部楼层
导出来原理倒是一样,不过如果是原来两张素材的改为一张,这种丢一半图象的效果似乎很怪……不信你把那些用两张素材的第二张图去掉角知道了。

以下引用冰封世界于2008-1-15 16:25:11的发言:

本帖需要VIP点 11 才能浏览!

哭,直接从2003跳到VX是不是太快了点,..我对XP可没怎么弄过呀...

跨度不大,刚刚好。习惯2003的话,习惯VX应该很快。我觉得VX和XP都是同一个时代的版本,只在一些对大型RPG制作和超小型RPG制作的支持上做得比XP好。对中型RPG制作的支持让我崩溃般地差,以至于我想不出来以后怎么培养一个从VX开始使用的达人作者……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
25 小时
注册时间
2006-6-16
帖子
48
发表于 2008-1-16 16:16:48 | 显示全部楼层
那也不枉我一直在等这个版本了...为了赶上它,我连XP也没碰上...素材都制定了...

那个,问一个可能比较BC的问题,VIP点怎么有的...画圈圈...我的没显示....
那份情,为谁而留;那份爱,为谁执着;那颗心,为谁而动。从遇上到爱上,只是一瞬间的事……
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

Mars-火星机械

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
2713
发表于 2008-1-16 20:13:08 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

月下可怜人

梦石
0
星屑
50
在线时间
10 小时
注册时间
2005-11-23
帖子
4085

第1届短篇游戏比赛亚军

发表于 2008-1-16 20:18:30 | 显示全部楼层
以下引用雪雾明日晴于2008-1-15 12:01:26的发言:

hoho~~面白~~
不过还是比较期待vx->xp的,就算只保留一个素材文件也好啊~~
柳大有没有兴趣弄啊?


…………运行方式一样,只是格式不一样,应该自己试试,很简单。
纵然千里外,我等雁归来。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-3-28 21:52

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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