Raised This Month: $51 Target: $400
 12% 

newbie help - sample plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ahrex
Junior Member
Join Date: Dec 2005
Location: Perth, Australia
Old 12-29-2005 , 07:40   newbie help - sample plugin
Reply With Quote #1

Hi guys,

Just trying to get the sample plugin going for the first time. It compiles and creates the .so binary, I chuck that in the addons folder and add the plugin to the metaplugins.inf.

However when I start the server and type 'meta list', I get

Code:
meta list
-Id- Name              Version   Author       Status
[01] -                 -         -            FAIL
I've tried with gcc 3.4 and gcc 4 to no avail...

I should clarify there, I have both the gcc (version 4.0.3 IIRC) and gcc-3.4 (version 3.4.5) packages installed, running Debian. To change the gcc version used, I just need to change "g++" to "g++-3.4" in the Makefile, correct?

Any help would be appreciated greatly![/code]
Ahrex is offline
BAILOPAN
Join Date: Jan 2004
Old 12-29-2005 , 09:25  
Reply With Quote #2

Use "meta retry 1" to see why it's not loading.
__________________
egg
BAILOPAN is offline
Ahrex
Junior Member
Join Date: Dec 2005
Location: Perth, Australia
Old 12-29-2005 , 10:03  
Reply With Quote #3

Thanks mate. I did that last night but it was late (early) and I'd forgotten all about it by the time I posted. You know how it is

Code:
meta retry 1
Error reloading plugin: Could not find interface ServerGameDLL003
If it helps, I get the same error with my compiled stub plugin, but other precompiled plugins work OK.

Thanks!
Ahrex is offline
Ahrex
Junior Member
Join Date: Dec 2005
Location: Perth, Australia
Old 12-29-2005 , 10:04  
Reply With Quote #4

Edit: double post, sorry.
Ahrex is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 12-29-2005 , 10:33  
Reply With Quote #5

CSS and DOD:S now use "ServerGameDLL004"

Change your m_ServerDll line to look like this:
Code:
m_ServerDll = (IServerGameDLL *)((ismm->serverFactory())("ServerGameDLL004", NULL));
L. Duke is offline
Ahrex
Junior Member
Join Date: Dec 2005
Location: Perth, Australia
Old 12-29-2005 , 11:38  
Reply With Quote #6

I couldn't find that - but I had a look around, changed the definition of INTERFACEVERSION_SERVERGAMEDLL in "eiface.h" to "ServerGameDLL004".

Recompiled, didn't work. Hmm. Had a more thorough look, still couldn't find the line you refer to...eventually just deleted the sourcemm folder, re-extracted, made the necessary changes and recompiled again, then it worked fine.

Any idea why it would do that? It seems gcc is caching alot of stuff (it takes a lot less time to make after the first time...); can you force it to redo everything?

I've only really worked in interpreted languages before...
Ahrex is offline
Reply



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 02:14.


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