Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BPModLoader] How do I load a mod ? #597

Open
justmdj opened this issue Jul 20, 2024 · 18 comments
Open

[BPModLoader] How do I load a mod ? #597

justmdj opened this issue Jul 20, 2024 · 18 comments
Labels
question Further information is requested

Comments

@justmdj
Copy link

justmdj commented Jul 20, 2024

Originally posted by justmdj July 20, 2024
Real noob for this tool, I have seen in the documentation where you say the BP mod function of this tool is modeled after Apparate blueprint mod loader. I see there is a video on how to create a BP mod. My question is how do I load a BP mod I have tried adding the BP mod through the BP mod txt file and I have tried to load it using the mod file I am asking for a couple reasons 1 to be able to debug and 2 if I create a BP mod and for some reason have to reset my directory I would like to be able to add the mod back in that I created instead of having to start all over
In Apparate you hit F8 then enter the mod name how do I do this in UE4SS?

@UE4SS
Copy link
Collaborator

UE4SS commented Jul 21, 2024

There's no reason to spread the talking around to different places so I removed your discussion, and any discussion can be had in this issue instead.

@UE4SS UE4SS changed the title BP mod loader [BPModLoader] How do I load a mod ? Jul 21, 2024
@UE4SS
Copy link
Collaborator

UE4SS commented Jul 21, 2024

If your BP pak file is in /Content/Paks/LogicMods, then your mod should automatically be loaded.
You can hit the INS key on your keyboard to manually load your mod for testing purposes.

We don't support changing the status of a BP mod via the regular mods.txt file, that file is only for Lua and C++ mods.
There's /Binaries/Win64/Mods/BPModLoaderMod/load_order.txt, but that's only for the load order, it doesn't affect whether a mod is loaded or not.
There's also /Content/Paks/LogicMods/<ModName>/config.lua, but this file just allows you to change the default mod actor name.

@justmdj
Copy link
Author

justmdj commented Jul 21, 2024

Hi, Thank you for deleting the other I thought I did so after creating the issue from the post. I tried hitting the INS key in the game as well as in the debug console and nothing happens so I may have something messed up. If it helps to know my specific issue and reasons for trying this.
I have made mods for skyrim and so has one of my kids we both got hogwarts legacy and it seems to be a decent game but a little short for my taste I was looking at some of the mods for the game and found one called anytime companion I found BPApparate mod loader and it worked fine for me however it did not work at all for my kid we have been looking at modding hogwarts and then i found this tool for scripting and mod loading as well as debugging so I was hoping by using this tool on her PC with the mod in question I would be able to get it to load and hopefully be able to debug why it is not working and then me and her could get a grip on this games engine and the modding aspect of it and make a few mods for it going to go back through and see if something is off on the ini also if it helps this is the dev version

@UE4SS
Copy link
Collaborator

UE4SS commented Jul 22, 2024

Double check that the mod files are in the correct location, and then try loading them manually and then show us the log file.

@justmdj
Copy link
Author

justmdj commented Jul 27, 2024

Ok working on that information for you but Hogwarts updated and now the tool is throwing a fatal error
9:40:17] FName::ToString address: 0x1437f6770 <- Built-in
[09:40:17] Scan attempt 59
[09:40:18] AOB scans could not be completed because of the following reasons:
Was unable to find address for 'StaticConstructObject_Internal'
You can supply your own in 'UE4SS_Signatures/StaticConstructObject'

[09:40:18] Engine Version: 4.27 <- Built-in
[09:40:18] FName::ToString address: 0x1437f6770 <- Built-in
[09:40:18] Fatal Error: AOB scans could not be completed because of the following reasons:
Was unable to find address for 'StaticConstructObject_Internal'
You can supply your own in 'UE4SS_Signatures/StaticConstructObject'

@UE4SS
Copy link
Collaborator

UE4SS commented Jul 27, 2024

It would appear that the current release of UE4SS (3.0.1) is no longer compatible with Hogwarts.
You'll need to download an experimental version, like this one (current latest) for example.
Apparently, you'll also need manually set the engine version in UE4SS-settings.ini, where Major should be 4, and Minor should be 27, according to #601.

@justmdj
Copy link
Author

justmdj commented Jul 27, 2024

T/Y doing that now

@justmdj
Copy link
Author

justmdj commented Jul 27, 2024

Hi,
Ok I tried what you outline above and as soon as i click a button to go from the load screen to the screen where you select your Hogwarts game you want to ply IE character name It crashed to desktop i also went in and tried to disable the bUseUObjectArrayCache = true to false. still crashes to desktop

@Noodneek
Copy link

It would appear that the current release of UE4SS (3.0.1) is no longer compatible with Hogwarts. You'll need to download an experimental version, like this one (current latest) for example. Apparently, you'll also need manually set the engine version in UE4SS-settings.ini, where Major should be 4, and Minor should be 27, according to #601.

Hi, Ok I tried what you outline above and as soon as i click a button to go from the load screen to the screen where you select your Hogwarts game you want to ply IE character name It crashed to desktop i also went in and tried to disable the bUseUObjectArrayCache = true to false. still crashes to desktop

I use the current release UE4SS 3.0.1, not the experimental version, and with edited UE4SS-settings.ini to set [EngineVersionOverride] to 4.27 it worked flawlessly until about two days ago, when it started to cause crashes for some reason...
Either it crushes to desktop when loading, just before "preparing shaders" (here's WinDbg analysis of the crash.dmp) or in a middle of a broom flight (here's the analysis of the crash.dmp). If the game loads (which is about 50/50 chance), it usually crashes after several min (the longest I played before it crashed was about an hour)... And when I load saves or fast travel, with the UE4SS-RE it is much slower and can also cause a crash...

@Noodneek
Copy link

Just tried the experimental version with edited UE4SS-settings.ini to set [EngineVersionOverride] to 4.27, so far so good... The only external mod I use is Better and instant timeskip...

@justmdj
Copy link
Author

justmdj commented Jul 28, 2024

@Noodneek yes it has worked for me except for a couple mods and i was working on getting thos working then the patch hit and broke everything lol

@UE4SS
Copy link
Collaborator

UE4SS commented Jul 28, 2024

It seems like it's working for @Noodneek, but still isn't working for you @justmdj ?
That's weird if that's the case.
Try disabling all your mods if you didn't already, just to verify that this problem isn't related to a mod.

@Noodneek
Copy link

Noodneek commented Jul 28, 2024

@Noodneek yes it has worked for me except for a couple mods and i was working on getting thos working then the patch hit and broke everything lol

@justmdj, July 24 patch broke it for me as well - read my post here: #601.
V.2.5.1 was unable to find address for 'StaticConstructObject_Internal', exactly as you wrote; then I upgraded to v.3.0.1, but it failed to find EngineVersion, which I resolved by editing UE4SS-settings.ini to set [EngineVersionOverride] to Major = 4 and Minor = 27. It worked fine but after 2 days started causing frequent crashes.
This version works fine though, no crashes or lags so far... (Big thanks to @UE4SS for suggesting it!). So I also think your particular mods could be the cause of your crashes, and not the UE4SS-RE...
[!] Pay attention that all the files of the new experimental version (except for dwmapi.dll) are now in a separate folder ue4ss, and not directly in the \Phoenix\Binaries\Win64 folder!

@UE4SS
Copy link
Collaborator

UE4SS commented Jul 28, 2024

Pay attention that all the files of the new experimental version (except for dwmapi.dll) are now in a separate folder ue4ss, and not directly in the \Phoenix\Binaries\Win64 folder!

This is true, but it's still compatible with the old file structure as well but obviously then you need to extract the contents of the ue4ss directory instead of the ue4ss directory itself.
Choose either one, but we obviously are going to recommend the new structure since that's the one we're going to go forward with and the old one will be deprecated and might be deleted in a future version after everyone has caught up to the new one.

@justmdj
Copy link
Author

justmdj commented Jul 28, 2024

@UE4SS @Noodneek I figured out what was causing the Crash to desktop I had thought about it being mobs as well but found instead that it was me I tend to make backups of everything so what i did when I installed this version was remove win64 instead of just the files and copied my old win64 to the directory then installed this version and changed the version number so in essence it was this version of UE4SS with 4 27 as engine with an exe file 4 23 so yeah my silliness caused it. that said it is loading and working correctly but when I enable the debug tools the dos prompt comes up with feedback like normal but the debugging tools window is a blank white screen with nothing if either of you have thoughts on why this might be or how to fix it I would appreciate the advice

@UE4SS
Copy link
Collaborator

UE4SS commented Jul 28, 2024

@UE4SS @Noodneek I figured out what was causing the Crash to desktop I had thought about it being mobs as well but found instead that it was me I tend to make backups of everything so what i did when I installed this version was remove win64 instead of just the files and copied my old win64 to the directory then installed this version and changed the version number so in essence it was this version of UE4SS with 4 27 as engine with an exe file 4 23 so yeah my silliness caused it. that said it is loading and working correctly but when I enable the debug tools the dos prompt comes up with feedback like normal but the debugging tools window is a blank white screen with nothing if either of you have thoughts on why this might be or how to fix it I would appreciate the advice

Try changing GraphicsAPI in UE4SS-settings.ini to dx11.

@Noodneek
Copy link

Noodneek commented Jul 28, 2024

...when I enable the debug tools the dos prompt comes up with feedback like normal but the debugging tools window is a blank white screen with nothing if either of you have thoughts on why this might be or how to fix it I would appreciate the advice

Try changing GraphicsAPI in UE4SS-settings.ini to dx11.

Yeah, I was wondering about that too. Debugging tools window stopped appearing after I swapped v.2.5.1 for v.3.0.1. I changed GuiConsoleVisible from 0 to 1, it appeared, but was a blank white screen. Changing GraphicsAPI in UE4SS-settings.ini from opengl to dx11 fixed it, thanks!

@justmdj
Copy link
Author

justmdj commented Jul 28, 2024

dx11 solved the gui issue now I can get back to the issue with the mod loading..... maybe i will get lucky and it will just load now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants