What's new

Solved MW2 won't load my dll_load.dll

Status
Not open for further replies.
Twain

Twain

Kamehameha!
Messages
707
Reaction score
257
Points
190
Sin$
0
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!
 
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
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.
 
Upvote 0
Twain

Twain

Kamehameha!
Messages
707
Reaction score
257
Points
190
Sin$
0
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...
 
Upvote 0
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
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
 
Upvote 0
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
this is the base address i use 0x08000000
 
Upvote 0
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
Does it black screen even if you run it the way you have it in the above code blocks?
 
Upvote 0
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
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
 
Upvote 0
Twain

Twain

Kamehameha!
Messages
707
Reaction score
257
Points
190
Sin$
0
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...
 
Upvote 0
ImOx

ImOx

(^._.^)ノ
Retired
Programmer MotM Platinum Record
Messages
9,961
Reaction score
2,963
Points
2,180
Sin$
0
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.
 
Upvote 0
Twain

Twain

Kamehameha!
Messages
707
Reaction score
257
Points
190
Sin$
0
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
 
Upvote 0
ImOx

ImOx

(^._.^)ノ
Retired
Programmer MotM Platinum Record
Messages
9,961
Reaction score
2,963
Points
2,180
Sin$
0
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.
 
Upvote 0
Twain

Twain

Kamehameha!
Messages
707
Reaction score
257
Points
190
Sin$
0
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!
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register