Skip to content
/ rv2da Public

an application and ruby scripts which compose and decompose rvdata2 (except Scripts) of rpgvxace.

License

Notifications You must be signed in to change notification settings

ctmk/rv2da

Repository files navigation

rv2da

an application and ruby scripts which compose and decompose rvdata2 (except Scripts) of rpgvxace. if you need to handle Scripts.rvdata2, use rv2sa (https://github.com/ctmk/rv2sa).

rvdata2をjsonファイルに変換するツールです。 Scripts.rvdata2を変換したい場合は rv2sa (https://github.com/ctmk/rv2sa) を使用できます。

使用方法

rv2da.exe --help でオプションの詳細を確認できます。

rvdata2 -> json の変換

rv2da.exe -d Path/To/Data/Dir -o Path/To/Output/Dir -e exclude

Path/To/Data/Dir: .rvdata2ファイルの置かれたフォルダ(Data/など)へのパス、または.rvdata2ファイルへのパスを指定します。 ディレクトリを指定した場合は、そのディレクトリにある全ての.rvdata2ファイルが処理の対象になります(excludeで指定されたものは除く)。

Path/To/Output/Dir: 変換した.jsonファイルを出力するディレクトリを指定します。

exclude: 処理をしない条件を書いたファイルを指定します。(デフォルトではScriptsのみが指定されています。) ファイルに記載する条件には、正規表現を利用できます。

※ System.rvdata2 を .json に変換する際、@version_idは常に0に設定されます。

json -> rvdata2 の変換

rv2da.exe -c Path/To/Json/Dir -p Path/To/Output/Dir -e exclude

Path/To/Json/Dir: .jsonファイルの置かれたフォルダへのパス、または.jsonファイルへのパスを指定します。 ディレクトリを指定した場合は、そのディレクトリにある全ての.jsonファイルが処理の対象になります(excludeで指定されたものは除く)。

Path/To/Output/Dir: 変換した.rvdata2ファイルを出力するディレクトリを指定します。

exclude: 処理をしない条件を書いたファイルを指定します。(デフォルトではScriptsのみが指定されています。) ファイルに記載する条件には、正規表現を利用できます。

スクリプトの実行方法

rv2da.rb を実行するには、RGSS3で定義されている各クラスの定義が必要になります。 下記の手順でそれらを生成することができます。

RPGVXAce.chm の準備

RPGツクールVX Ace をインスールした場所にあるRPGVXAce.chmを、rv2daのsource/に置いてください。

.chm ファイルの分解

CLIでrv2daのsource/に移動し、hh.exe -decompile decompiled RPGVXAce.chm を実行してください。 source/decompiledに.chmを分解したファイルが生成されます。

定義ファイルの生成

ruby generate_rpg_definitions.rbを実行してください。rpg/ファイルに、RGSS3で定義されているクラス定義を行う.rbファイルが生成されます。

スクリプトの実行

スクリプトを実行するための準備は以上です。ruby rv2da.rbでスクリプトを実行できます。

LICENSE

rv2da

rv2daのrubyスクリプトはNYSLで公開されています。

rv2da.exe

rv2da.exeはrv2daをocraでexe化したものです。 内包する全てのソフトウェアのライセンス条件に従って使用できます。

Ruby

Ruby は Ruby'sライセンス で公開されています。

https://www.ruby-lang.org/ja/

ocra

ocra は MIT License で公開されています。

https://github.com/larsch/ocra

Copyright c 2009-2010 Lars Christensen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

an application and ruby scripts which compose and decompose rvdata2 (except Scripts) of rpgvxace.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages