236 fájlt kedvelt
188 hozzászólás
1 videó
6 feltöltés
22 követő
48 723 letöltés
  • 226131 ghil icon

    @ZenMaster Hi, I am the project lead of ScriptHookVDotNet. Since the v2 API is deprecated and SHVDN *may* stop supporting the v2 API in the future, I suggest you migrate your scripts to the v3. I thought you had reasons to choose the v2 API regarding to compatibilities (such as game versions), but your scripts are built against, which comes from the archive of v3.6.0. Can I ask what made you choose the v2 API instead of the v3 if not about compatibility issues? You might want to know that nightly versions warn of deprecated scripts running, too.

  • 226131 ghil icon

    @nep nep ああ、pain系の音声が出る状況ならいつでも出るようにしたいのであって無効化したいのじゃなかったんですね。だからメモリ書き換えしてたと。まだDISABLE_PED_PAIN_AUDIOの機械語の中身は見てないけどどうせpain系の音声を出させないフラグ立てるだけのはずやから、これじゃpain系の音声が出ないのを防ぐのは無理でしょうね(無敵フラグは対応するのが1つあれば防げるってののに似てるでしょう)。

    For those who speaks English: considering what the author said in the latest comment, this scripts aims to make sure the player ped/character uses pain audio speeches and tries to prevent the player ped from not saying them, not prevent them from using pain speeches. I thought what this script is for wrong until now though.

    2023. szeptember 26.
  • 226131 ghil icon

    @nep nep 最新版以外のexe持ってないけど危険すぎる野良のアップロード物に手を出さずに他のバージョン試したいなら、RTA用のProject 1.27があります。Steam版を持ってるならDepotDownloaderでダウンロードする手も一応使えますね。

    2023. szeptember 26.
  • 226131 ghil icon

    @nep nep YouTubeで確認した限り日本語話すようですから日本語で伝えること書きますね。まず、pain系の音声が全部出なくてもいい(落下の声とかもなくていい)ならDISABLE_PED_PAIN_AUDIOってネイティブ関数あるので、それ使えばアップデートの心配しなくてもよくなるはず。次に、このスクリプトはv1.0.2944.0で動かす限りはクラッシュしないけどアプデでexeの構造は変わります。メモリの内容を直接読み書きするなら、固定のアドレスを使うのでなくsigとかメモリパターンとかいうメモリの中身で探して見つかったところからアドレスを抜き出すとアプデ耐性がはるかにあがりますね。exeはファイルとして置かれてる状態だと暗号化されているので、IDAとかGhidraとかで解析するなら起動した状態で(x64dbgと)Scyllaでも使ってダンプする必要があります。まあsigの作り方はやみくもにexe間の違い見るだけじゃなくて正直x64のアセンブリの動き方でも覚えたほうが近道かな…

    For those who speaks English: this script does not work without a flaw, and it may crash your game if the game version is not v1.0.2944.0. I think the author is not too experienced about memory editing and we could forgive for being ignorant.

    2023. szeptember 26.
  • 226131 ghil icon

    @YotoTor You must be meaning "Can't find native 0x95812F9B26074726". LemonUI may call DRAW_SPRITE_ARX_WITH_UV, which is introduced in v1.0.1868.0, and you can't call it in any versions prior to v1.0.1868.0, so you should use v1.0.1868.0 or later versions so you won't see that error by ScriptHookV (for calling that native function in LemonUI). If you wish to use scripts that's dependent on LemonUI in older ones, consult the authors and they may propagate the issue to LemonUI's repo on GitHub if they are convinced.
    Not really important for you, but I left the note like "you can find what DRAW_SPRITE_ARX_WITH_UV eventually calls with "48 8B 41 10 66 39 70 58 74 06 48 8B 78 50 EB 07" ", so those who like to reverse engineer find a way to workaround for older game versions in ScriptHookVDotNet's codebase btw.

    As of v1.10. LemonUI calls DRAW_SPRITE_ARX_WITH_UV when ScaledTexture.DrawSpecific is called or that method is indirectly called by NativeGridPanel.Process when NativeGridPanel.Style is set to GridStyle.Row or GridStyle.Column. I searched the codebase, and DRAW_SPRITE_ARX_WITH_UV is the only native that isn't available in all game versions out of the natives LemonUI may calls.

    2023. szeptember 19.
  • 226131 ghil icon

    For those wondering how ScriptHookV would be used for this mod, not really (the description said false info). No need to install ScriptHookV, only the ASI loader required as OpenIV.asi isn't dependent on SHV.

    2023. szeptember 18.
  • 226131 ghil icon

    This mod doesn't have compatibility issues in between b2802 and b2944. You can find memory patterns used in this mod in those versions (use ILSpy or some similar tool to extract). No Rockstar Editor Restrictions is to blame in the compatibility issues.

    2023. augusztus 8.
  • 226131 ghil icon

    @dani703q Game.Player.Money works only for the 3 protagonists models, kinda by the design. https://github.com/scripthookvdotnet/scripthookvdotnet/blob/64242f7a21bdc84044ff213602801670f8ca44fa/source/scripting_v3/GTA/Player.cs#L72-L100

    I know they use hardcoded joaat hashes of "SP0_TOTAL_CASH", "SP1_TOTAL_CASH", "SP2_TOTAL_CASH" for money logic code in the exe, but I'm not sure how exactly they read or write an appropriate stat for money transaction.

    2023. augusztus 6.
  • 226131 ghil icon

    original version uploaded by jedijosh920 has a fundamental flaw that is not even about compatibility. When you are in the driver seat of a car and you press the interact key ("J" by default), the script will throw System.IndexOutOfRangeException if there's no pedestrean in 3-meter circle of the player. Using older ScriptHookVDotNet 2.10.10 doesn't fix the problem, of course (you just won't see the exception log, one OnKeyDown call stops at where a exception is throwed in all SHVDN versions). Instead, use Ganjitsu's fixed version which is uploaded on January 14, 2022, the problem is fixed in that version (requires 2.10.12 or later that comes with SHVDN 3.0.2 or later).

    2023. július 30.
  • 226131 ghil icon

    @HKH191 Since JohnFromGWN said you should use SHVDN v3 (not v2) and as the current project lead of SHVDN (crosire retired his position in May 2023), I would say you would want to have your scripts migrate to v3.
    Although we keep maintaining the v2 API for compatibility reasons for now (in both game versions and existing scripts), we aren't adding features to v2 API (since v3.0.0 has been released). Maybe we may add some support for some edge cases, but no more. New warnings would annoy you starting from v3.7.0 and possibly we abandon the support for v2 API sometime… SHVDN will compile against source/uncompiled scripts against v3 API by default since v3.7.0, too (although you still have an option to specify an API version). I'm going to create a migration guide after v3.7.0 is released though.

    2023. július 5.