What's new

Solved MW2 won't load my dll_load.dll

Status
Not open for further replies.
T

Twain

Kamehameha!
Messages
707
Reaction score
253
Hello,
I just wanted to start working on a Project again, so i launched my default_mp.xex and got a blackscreen (worked with 5 other dlls i tried afterwards, just mine in particular didn't load). I tried moving the dll_load.dll over again, but it still didn't work, so i tried swapping out my default_mp.xex aswell. Nothing. It seems like the dlls entry is never entered, but it all worked fine when i turned off my rgh yesterday. I checked the Project Properties and everything is fine there. Couldn't find anyone with a smiliar problem online, so i thought i might ask here and see if one of you knows what the problem is.
Thanks in advance!
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
Sounds like it might be a problem with your hooking on the load of MW2 
or a bad offset that loads with the load of MW2 
Kinda hard to pin point any one thing without looking at the source.
 
T

Twain

Kamehameha!
Messages
707
Reaction score
253
Sounds like it might be a problem with your hooking on the load of MW2 
or a bad offset that loads with the load of MW2 
Kinda hard to pin point any one thing without looking at the source.
No it's not that i did remove all the hooks and stuff and just added prints like this:
Code:
BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
{
    printf("Entry...\n");
    if (dwReason == DLL_PROCESS_ATTACH)
    {
        printf("Attached!\n");
        //MW2::Launch();
    }
    return TRUE;
}
doesn't display anything in Watson. Copied the base address and everything from an old project. The weird thing is it was working fine yesterday. I just shut down the console and closed the project and today i turned on my xbox and launched the default_mp.xex and it didnt work, but other dll_load.dll mod menus work fine. I even moved everything to a new Project but it still doesnt work on this as well...
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
No it's not that i did remove all the hooks and stuff and just added prints like this:
Code:
BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
{
    printf("Entry...\n");
    if (dwReason == DLL_PROCESS_ATTACH)
    {
        printf("Attached!\n");
        //MW2::Launch();
    }
    return TRUE;
}
doesn't display anything in Watson. Copied the base address and everything from an old project. The weird thing is it was working fine yesterday. I just shut down the console and closed the project and today i turned on my xbox and launched the default_mp.xex and it didnt work, but other dll_load.dll mod menus work fine. I even moved everything to a new Project but it still doesnt work on this as well...
The base load address might not be correct
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
this is the base address i use 0x08000000
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
Does it black screen even if you run it the way you have it in the above code blocks?
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
Sorry I just got off work that is defiantly weird, to say the least, but I have no idea what could be causing it. 
Are settings are practically the same
 
T

Twain

Kamehameha!
Messages
707
Reaction score
253
Sorry I just got off work that is defiantly weird, to say the least, but I have no idea what could be causing it. 
Are settings are practically the same
ikr. especially because i didnt change anything so idk what could've caused ut.
Reinstalled MW2, created a new Project and triple checked all properties, but it still doesn't work, but only for this particular file...
 
I

ImOx

(^._.^)ノ
Retired
Messages
9,968
Reaction score
2,963
Remake your project.
Not a real solution, but I wouldn't call it a too bad of a suggestion since the real problem is unknown.
 
T

Twain

Kamehameha!
Messages
707
Reaction score
253
Remake your project.
Not a real solution, but I wouldn't call it a too bad of a suggestion since the real problem is unknown.
If Remake means to you creating a new project, creating all teh files again and copying the code over, i did that. But recoding it is no opportunity for me since that would be too much work. And the code has no errors, builds perfectly and i rmeoved any "real" code from the DllMain function, but it simply doesnt enter this function, so it's not a problem caused by my codes :S
 
I

ImOx

(^._.^)ノ
Retired
Messages
9,968
Reaction score
2,963
If Remake means to you creating a new project, creating all teh files again and copying the code over, i did that. But recoding it is no opportunity for me since that would be too much work. And the code has no errors, builds perfectly and i rmeoved any "real" code from the DllMain function, but it simply doesnt enter this function, so it's not a problem caused by my codes :S
Yeah I meant creating a new project and and copy pasting stuff over.
But well, if even that didn't work, rip I guess.
 
T

Twain

Kamehameha!
Messages
707
Reaction score
253
Well it was my code :biggrin: It was something real stupid that wouldn't show up as an error ^^
I did this as a global declaration:
Code:
int mWhite = Material_RegisterHandle("white", 0);
Well i guess problem solved and this thread can be closed/deleted!
 
Status
Not open for further replies.
Top Bottom