@2: If you are using direct user Network Bitstreams and trying to set
replicated CVars with it, then you need to change the value of this from 5
to 6. Ignore this, you won't be using i...@3: You won't be using this either.

I suspect you haven't INTERFACEVERSION_VENGINESERVER. Please replace the
contents of your eiface.h with this:
http://rafb.net/p/ymkhzu36.html

Warning: removes in 24 hours.

2009/2/12 Andrew Armstrong <[email protected]>

> Hi,
>
> Lduke; thanks, but I'm on Windows so no gdb for me (although VS may be able
> to help instead!).
>
> Bl4nk, thanks - ive done that and have identified the reason for failure in
> that the engine interface does not get loaded:
> bool CEmptyServerPlugin::Load(  CreateInterfaceFn interfaceFactory,
> CreateInterfaceFn gameServerFactory )
> {
> ...
>        engine =
> (IVEngineServer*)interfaceFactory(INTERFACEVERSION_VENGINESERVER, NULL);
> ...
>        if (!engine)
>                printf("Failed to load engine interface\n");
> ...
>        if(     ! ( engine && gameeventmanager && g_pFullFileSystem &&
> helpers && enginetrace && randomStr ) )
>        {
>                return false; // we require all these interface to function
>        }
> ...
> }
>
> Engine is NULL here (other interfaces load successfully).
>
> The wiki indicates I should make these changes
> (http://wiki.alliedmods.net/Porting_to_Left_4_Dead):
> 1) IVEngineServer::UserMessageBegin now takes an additional string
> parameter
> containing the message name.
> I've opened eiface.h and updated that line to now read:
>        virtual bf_write        *UserMessageBegin( IRecipientFilter *filter,
> int msg_type, const char* messageName) = 0;
> (added const char* messageName)
>
> 2) The low-level datagram type for setting replicated convars on clients
> has
> changed from 5 to 6.
> No idea what this is.
>
> 3) CreateEntityByName appears to have a third parameter (SourceMod sets it
> to true).
> I do not use this and cannot see where it has been defined
>
> Could you assist with points 2 & 3? I assume its failing to load because I
> have not finisehd the needed changes?
>
> Thanks everyone for the continued help.
>
> - Andrew
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of bl4nk
> Sent: Thursday, 12 February 2009 6:34 AM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Left4Dead Plugin?
>
> Add in some debug print to see where in the plugin it's failing.
>
> Andrew Armstrong 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
>
>
>
> _______________________________________________
> 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

Reply via email to