Raised This Month: $32 Target: $400
 8% 

Extension compiles, but doesn't load


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-18-2016 , 23:08   Extension compiles, but doesn't load
Reply With Quote #1

So I compiled an extension using metamod, sourcemod 1.8, and the hl2sdk2013, and the build completes successfully without any warnings or errors.

Then when I load the extension to the server, it gives me error code 0x0000007e, which is apparently "The specified module could not be found.".

Can I get any clue on what is the cause of this error?

A previous cryptic error was "could not find interface IGameHelpers", which happened because the extension was compiled against SM 1.8 but loaded on SM 1.7. However, I compiled against both 1.7 and 1.8 and neither of them load on SM 1.8.

Thanks in advance for any advice.
Potato Uno is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-19-2016 , 07:45   Re: Extension compiles, but doesn't load
Reply With Quote #2

The module not found error is likely from it not finding some library that you are dynamically linking against.
psychonic is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-19-2016 , 10:55   Re: Extension compiles, but doesn't load
Reply With Quote #3

Is there any way to find out what library it is that it's not finding?

I have hardly any experience with extensions... I only have an AMBuild and MSVC 2013 setup to just compile the source code. The extension works fine on linux.
Potato Uno is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-19-2016 , 11:17   Re: Extension compiles, but doesn't load
Reply With Quote #4

Probably, but I don't know the best way offhand.

If you're compiling with /md instead of /mt, it could be the MS VC++ 2013 32-bit redistributable.

Else it's going to be some library that you're explicitly linking against in your ambuild files.
psychonic is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 07-19-2016 , 13:35   Re: Extension compiles, but doesn't load
Reply With Quote #5

give http://www.dependencywalker.com/ a try?
__________________
WildCard65 is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-03-2016 , 13:42   Re: Extension compiles, but doesn't load
Reply With Quote #6

The problem was the .autoload file. I renamed the ext file and it loaded successfully. I have no idea how the .autoload files work, but since it works now... I have no complaints.

Thanks for all the help, as it may be useful when troubleshooting future extension problems.

Last edited by Potato Uno; 08-03-2016 at 17:02.
Potato Uno is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode