Main Site | Forum | Rules | Downloads | Wiki | Features | Podcast

NLSC Forum

A hub for everything related to NBA 2K22 modding. Releases, previews, requests, and other modding discussion belongs here.
Post a reply

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Mon Dec 27, 2021 8:47 am

[C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\render\util\Util.cpp:58] : Failed to Capture Texture

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Mon Dec 27, 2021 8:49 am

yodan4 wrote:
maumau78 wrote:
looyh wrote:
maumau78 wrote:[C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\render\util\Util.cpp:58] : Failed to Capture Texture

Bro when I press F8 I got this error...any idea on how to solve this issue?

Returns FAILED from function CaptureTexture( DirectXTex lib), try reinstall directX11 or you can disable Bg blur for hook gui.


It worked but Mahmood sent me Config.yml becouse was not created due to previous problem (Y)


Mind sharing that? I cannot get it to load and seem to have the same error.

Or....do you know how to blur the background like Looyh said in the quotes?
[C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\render\util\Util.cpp:58] : Failed to Capture Texture



I'm having this same problem. The f8 menu doesn't stay open long enough for me to change any settings. How can I get it to work?

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Mon Jan 03, 2022 10:42 pm

Can anyone help and share their config file with me?

Seems like config.yml is missing for me and can't open GUI with f8 due to this error:

[C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\hooking\input\InputHook.cpp:81] : Failed to create direct device

Want to check if that is a general solution for the f8 issues...

Edit: Found the issue and it had nothing to do with the error codes:
I read in the eyeuc forum somewhere that screen capture might lead to gui not showing up.
In my case Fraps was preventing the menu to show up - so for anyone struggling with this and not knowing it so far, make sure to turn off any fps or other screen capture programs.
Last edited by BonesBarbossa on Tue Jan 04, 2022 10:46 am, edited 1 time in total.

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Tue Jan 04, 2022 4:14 am

Is there a plugin like last year (2k21 tool) that can disable the player murals, so that a team's logo mural is the default (eg, logo793_mural.iff). So much easier to edit/select murals that way, and don't have to worry about changes.

Thank you and happy new year to all.

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Fri Jan 07, 2022 3:10 am

BonesBarbossa wrote:Can anyone help and share their config file with me?

Seems like config.yml is missing for me and can't open GUI with f8 due to this error:

[C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\hooking\input\InputHook.cpp:81] : Failed to create direct device

Want to check if that is a general solution for the f8 issues...

Edit: Found the issue and it had nothing to do with the error codes:
I read in the eyeuc forum somewhere that screen capture might lead to gui not showing up.
In my case Fraps was preventing the menu to show up - so for anyone struggling with this and not knowing it so far, make sure to turn off any fps or other screen capture programs.



shout out to you. (Y)

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Mon Jan 10, 2022 8:37 am

Hey, I seem to be having an issue with ''UnlockDebugOptions'' It says its enabled, but isnt coming up with any of the options. Wondered if It was just me being a dope and had done something wrong or if others are having the same issue? or if there has been an update that has stopped it from working.

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Mon Jan 10, 2022 9:22 am

T33j4y1802 wrote:Hey, I seem to be having an issue with ''UnlockDebugOptions'' It says its enabled, but isnt coming up with any of the options. Wondered if It was just me being a dope and had done something wrong or if others are having the same issue? or if there has been an update that has stopped it from working.


I have the same issue, I think it is due to 2K making an update

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Mon Jan 10, 2022 10:26 am

pc got an update hook doesnt work for now

Re: NBA2K_Hook For NBA2K22[ V0.0.7 & new script "UnlockDebugOptions" ]

Tue Jan 11, 2022 1:16 am

furkanjames wrote:why does it crash when i install reshade?


you need to put the game in window mode before installing reshade

Re: NBA2K_Hook For NBA2K22[ V0.0.15 & new script "UnlockDebugOptions" ]

Sun Jan 16, 2022 8:26 pm

1. More apis for lua script (api doc: soon)
2. SYNC.BIN file export. (logger / input file name to export, like
archive files)
3. Fix the issues of GUI renderer initialization failure in some cases in previous version.
Image

Re: NBA2K_Hook For NBA2K22[ V0.0.15 & new script "UnlockDebugOptions" ]

Mon Jan 17, 2022 6:22 pm

looyh wrote:1. More apis for lua script (api doc: soon)
2. SYNC.BIN file export. (logger / input file name to export, like
archive files)
3. Fix the issues of GUI renderer initialization failure in some cases in previous version.
[ Image ]


Thanks for this

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Wed Feb 23, 2022 12:27 am

Looyh released his Free Roam Camera Script in case you guys did not know.
Here is an installation tutorial


phpBB [video]

phpBB [video]

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Wed Mar 02, 2022 6:23 pm

is it possible to edit your teammates shoes/accessories in my career? I have a bunch of shoes i want to equip to my team/rest of league but can only do "team colors" and not actual colorways

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Fri Mar 04, 2022 11:34 am

did we ever get a fix for debug options

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Mon Mar 14, 2022 4:24 pm

TGsoGood wrote:Looyh released his Free Roam Camera Script in case you guys did not know.
Here is an installation tutorial


phpBB [video]

phpBB [video]


hi TG, what's new on the recently released V2 of the free roam camera script?

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Tue Mar 15, 2022 3:28 am

therealgrimmie wrote:hi TG, what's new on the recently released V2 of the free roam camera script?


fixes crashing in MyGM

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Mon Apr 11, 2022 1:39 am

How come on my Hook plugin under player editor, the headband, unlock shoe brands and unlock retired numbers aren't showing up and are disabled? I have the latest version.

Image Image Image



Image

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Mon Apr 11, 2022 1:58 am

Image

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Sun May 01, 2022 1:25 pm

Can anything scripthook related be used to boost a myplayer build?

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Mon May 23, 2022 1:13 am

Hey guys I have pretty simple problem here so I am using an external keyboard for my laptop and the f8 function on my external keyboard is different from my laptop keyboard so I have to press the f8 on my laptop keyboard for the 2k hook to show up. Does this happen to anyone? Btw I am using Logitech MX Keys Wireless Keyboard.

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Thu Jun 02, 2022 10:40 pm

Hi all, I'm having problems to running Hook as the game starts :cry:
Here are the log:

2022-06-02 14:17:45,500 INFO : Hook Init V0.0.7
2022-06-02 14:17:45,520 INFO : Hooked [NBA2K::LoadBootUpResource]
2022-06-02 14:17:45,556 INFO : Hooked [NBA2K::GetFileInfo]
2022-06-02 14:17:45,584 INFO : Hooked [NBA2K::LoadFile]
2022-06-02 14:17:45,612 INFO : Hooked [NBA2K::GetFileInfoFromSyncBin]
2022-06-02 14:17:50,617 ERROR [thread-14200] [void __cdecl Hook::Gui::Core::initWndProc(void)] [C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\gui\core\Core.cpp:106] : Failed to attach input hook for ImGui
2022-06-02 14:17:50,889 INFO : Hooked [IDXGISwapChain::Present]
2022-06-02 14:17:50,889 INFO : Hooked [IDXGISwapChain::ResizeBuffers]
2022-06-02 14:17:55,896 ERROR [thread-3352] [bool __cdecl Hook::Hooking::InputHook::init(void)] [C:\Users\Looyh\Repos\NBA2K_Hook\src\hook\main\hooking\input\InputHook.cpp:29] : Failed to attach input hook
2022-06-02 14:17:55,896 INFO : Hook Init Failed

Someone by chance, knows how to fix this?

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Fri Jun 03, 2022 4:19 am

I may be able to help. Disclaimer. I have no experience using Hook scripts if that's what you are doing.
To me it looks like you have Hook in the wrong folder. It should be similar to this.... D:\Program Files\Steam\steamapps\common\NBA 2K22\NBA2K_Hook
It definitely should be in the NBA 2K22\NBA2K_Hook folder. Two DLL files should be in the main 2K22 folder. Shuajota and TGsoGood have tutorials on how to install Hook (plus how to use it). I do know about PCs and file structures.
I doubt your user name (the Windows one) is looyh and I have no idea what Repos is. If you installed the game to the default location your path should be this or something similar.....C:\Program Files\Steam\steamapps\common\NBA 2K22. I rarely install games to the default location since I have multiple hard drives and I don't want to fill up my boot drive (C:\).
If it works reply here so this info may help others in the future.

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Fri Jun 03, 2022 6:16 am

Thanks for the tips, I tought the same.
The mods folder was read, but the scripts and the running at the same time as the game with the activation trough F8 was not.
Looking more closely I noticed that my version of Hook was not the last updated, differing in the NBA2K_Hook.dll (I use Hook since last year, the weird thing is that the previous version worked until yesterday, maybe some updates from 2k changed something).
Using the current version I fixed the problem, luckly now it works properly, 2K without the scripts is not the same :D

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Sun Jun 12, 2022 10:42 am

Is there a way to use this tool to export your MyLeague roster and save it to use in a different MyLeague save?

Re: NBA2K_Hook For NBA2K22[ V0.0.16 @ 2022-01-31 ]

Wed Jun 15, 2022 10:59 am

Hello looyh, can i ask? I already extracted the NBA2K_Hook inside my NBA2K22 folder and when i open the game the pop-up GUI doesn't show and when i press F8 nothing happens. Any fix to this?
Post a reply