Code Monkey home page Code Monkey logo

deresute's Introduction

deresute

banner

GitHub license GitHub forks GitHub stars GitHub last commit

PHP from Packagist Travis CI Packagist version Packagist download

deresuteについて

deresuteはCGSS API / AssetBundle ToolのPHP用ライブラリです。

セットアップ

必要なパッケージのインストール

$ apt -y install git g++ make cmake composer curl php-dev php-bcmath php-curl php-mbstring php-msgpack php-sqlite3

php-unity-lz4のコンパイル

  • php-unity-lz4をGitからクローン
$ git clone https://github.com/towa0131/php-unity-lz4
$ cd php-unity-lz4
  • コンパイル及びインストールを実行
$ ./install.sh

php-cgssのコンパイル

  • php-cgssをGitからクローン
# サブモジュールも同時にクローン
$ git clone --recursive https://github.com/towa0131/php-cgss
$ cd php-cgss
  • libcgssをコンパイル
$ cd libcgss
$ cmake .
$ make
$ cp bin/x64/libcgss.* /usr/lib/
  • php-cgssをコンパイル
$ cd ..
$ phpize
$ ./configure

# インストール
$ make install

エクステンションがインストールされるのでphp.iniファイルにextension=unitylz4, extension=cgssを追加し、有効化してください。

deresute本体のセットアップ

下記のいずれかの方法でインストールが可能です。

Gitからクローン

  • deresuteをGitからクローン
$ git clone https://github.com/346Cafe/deresute
$ cd deresute
  • 各ライブラリのインストール
$ composer install

Packagistからダウンロード

  • deresuteのダウンロード / 各ライブラリのインストール
$ composer require towa0131/deresute

テストの実行

  • Gitからダウンロードした場合

$ php test-app.php
  • Packagistからダウンロードした場合

$ php vendor/towa0131/deresute/test-app.php

機能

音声ファイル/アセットバンドルのダウンロード

deresuteの機能の一つとして、音声ファイル、アセットバンドルのダウンロード機能があります。

$ cd tools/AssetDownloader/
$ php app.php

音声ファイルはすべてのファイルのダウンロード完了後、自動でWAVEフォーマットに変換されます。

追加予定の機能

  • アカウントの作成機能
    • 正規クライアントへのアカウントの引継ぎ
  • ダウンロードするデータをユーザが指定可能にする

FAQ

unitylz4のコンパイルでエラー

事前パッケージのインストールはされていますか? もしされていないならコンパイルの前にインストールを行なってください。

本体のAPIの使用時にエラー

必要なエクステンションがインストールされていない可能性があります。一度、php test-app.phpでテストスクリプトを実行し、エラーが発生しないか確認してください。

test-app.phpの実行時にエラー

No module loaded : msgpackなどの文が表示されていませんか? もしされているのならば、必要なエクステンションがインストールされていません。インストールを行うことでエラーが発生しなくなります。

わからないことがあれば

お気軽にIssuesTwitterにてご質問お願いします。

使用しているライブラリ

deresute's People

Contributors

dependabot[bot] avatar towa0131 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

2to8 omame-omame

deresute's Issues

書き直したい

あまりにもコードが汚い、可読性が悪いので書き直したい

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.