If you're on linux, you can break with CTRL-C and used
dlopen("path/used/in/vdf/plugin.so", RTLD_NOW). If it fails (returns 0),
then use dlerror and print the return value to see an error message.
On Wed, Feb 11, 2009 at 6:59 AM, Andrew Armstrong <[email protected]>wrote:
> Unfortunately I now just get the 'Failed to load' and then 'Unable to load'
> (I made sure -allowdebug is off).
>
> Is there a way to get more info other than 'it failed'? :)
>
> Perhaps my compilation settings are wrong.
>
> Thanks
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Tony Sergi
> Sent: Thursday, 12 February 2009 12:52 AM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Left4Dead Plugin?
>
> Oops my bad. Try building it in release, it's probably something to do with
> the fact that the orange box libs (tier1 etc) are different from L4D (not
> different enough to be completely incompatible though)
>
>
> -Tony
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Andrew
> Armstrong
> Sent: February-11-09 8:46 AM
> To: 'Discussion of Half-Life Programming'
> Subject: Re: [hlcoders] Left4Dead Plugin?
>
> I did though (see -allowdebug there in the command line); so I'm not sure
> what the problem is - I must be missing something obvious.
>
> - Andrew
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Tony Sergi
> Sent: Thursday, 12 February 2009 12:34 AM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Left4Dead Plugin?
>
> It's because you're building the plugin in debug, and not adding
> -allowdebug
> to the command line options.
>
>
> -Tony
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Andrew
> Armstrong
> Sent: February-11-09 7:07 AM
> To: 'Discussion of Half-Life Programming'
> Subject: Re: [hlcoders] Left4Dead Plugin?
>
> Hi,
>
> Okay, I've *only* made the below eiface.h change (any other changes I
> cannot
> find the appropriate place to make the change).
>
> I am running my test server like this:
> srcds.exe -game left4dead -allowdebug -console -norestart -nocrashdialog
> +maxplayers 8 +map l4d_vs_farm01_hilltop +port 21000 +exec server.cfg
> +sv_lan 1
>
> I have the debug build located in
> c:\srcds\l4d\left4dead\addons\serverplugin_empty.dll
>
> I have in that same \addons directory a file named serverplugin_empty.vdf
>
> Inside it I have:
> "Plugin"
> {
> "file" "../left4dead/addons/serverplugin_empty"
> }
>
>
> Inside my server.cfg file I have this at the end:
> plugin_load serverplugin_empty
>
> When the game server starts up, the console finishes with these messages:
> Module serverplugin_empty is a debug build
> Failed to load plugin "serverplugin_empty"
> Unable to load plugin "serverplugin_empty"
>
> What am I doing wrong? I suspect its because I have not made all of the
> required changes, but I cannot find out where to do so.
>
> If you could point out where I make these changes specifically that would
> be
> great.
>
> Thanks again,
> Andrew
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Saul
> Rennison
> Sent: Wednesday, 11 February 2009 8:26 PM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Left4Dead Plugin?
>
> Yeah just change it in eiface.h. Ask if you need any more help.
>
> Sent from my iPhone
>
> On 11 Feb 2009, at 08:17, "Andrew Armstrong" <[email protected]>
> wrote:
>
> > Hi again,
> >
> > I am following that wiki article and have made the
> > "IVEngineServer::UserMessageBegin now takes an additional string
> > parameter
> > containing the message name." change in eiface.h (by changing the
> > signature
> > to UserMessageBegin( IRecipientFilter *filter, int msg_type, const
> > char*
> > name ) = 0;)
> >
> > Is this the only place that needs the change?
> >
> > Points 2 and 3 of the changes list I have not made, I am not sure
> > where to
> > make them.
> >
> > Any other hints?
> >
> > Thanks again,
> > Andrew
> >
> >
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Andrew
> > Armstrong
> > Sent: Wednesday, 11 February 2009 8:46 AM
> > To: 'Discussion of Half-Life Programming'
> > Subject: Re: [hlcoders] Left4Dead Plugin?
> >
> > Awesome, thank you.
> >
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Saul
> > Rennison
> > Sent: Wednesday, 11 February 2009 4:42 AM
> > To: Discussion of Half-Life Programming
> > Subject: Re: [hlcoders] Left4Dead Plugin?
> >
> > Here is the actual link:
> > http://wiki.alliedmods.net/Porting_to_Left_4_Dead
> >
> > 2009/2/10 Saul Rennison <[email protected]>
> >
> >> Check alliedmods.net wiki under Left4Dead interface changes.
> >>
> >> Sent from my iPhone
> >>
> >>
> >> On 10 Feb 2009, at 11:00, "Andrew Armstrong" <[email protected]>
> >> wrote:
> >>
> >> Hi guys,
> >>>
> >>>
> >>>
> >>> Is it possible yet to create a simple server plugin for Left4Dead?
> >>>
> >>>
> >>>
> >>> I've compiled the serverplugin_empty file, installed it as per the
> >>> wiki
> >>> etc,
> >>> but when trying to load the plugin from the console I receive:
> >>>
> >>>
> >>>
> >>> Failed to load plugin "serverplugin_empty"
> >>>
> >>> Unable to load plugin "serverplugin_empty"
> >>>
> >>>
> >>>
> >>> Is this because the Source SDK is still out of date and the game
> >>> does not
> >>> know how to compile this version of the plugin?
> >>>
> >>>
> >>>
> >>> Cheers,
> >>>
> >>> Andrew
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> To unsubscribe, edit your list preferences, or view the list
> >>> archives,
> >>> please visit:
> >>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >>>
> >>>
> >
> >
> > --
> > Thanks,
> > - Saul.
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> > archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders