-- [ Picked text/plain from multipart/alternative ] did you even look at the macro?
On 10/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > thats right... but... > > When i define my ConCommand like this: > > CON_COMMAND(my_version, "Logs/prints plugin version.") > { > engine->LogPrint(MY_PLUGIN_VERSION "\n"); > Msg(MY_PLUGIN_VERSION "\n"); > } > > all links fine but i have to replace the engine->Cmd_Argv(1) with > args.ArgV(1) > But how is args defindet? > Is it allready in the macro??? > > Or have i to define my ConCommand like: > > CON_COMMAND( my_version, "Logs/prints plugin version.", CCommand *args ) > { > engine->LogPrint(MY_PLUGIN_VERSION "\n"); > Msg(MY_PLUGIN_VERSION "\n"); > } > > Thats my question :) When i define it with CCommand than i cant use it > anymore becouse i have 1 param more than defined... > > You know what i mean? > > With friendly reguards > > Ratman2000 > > ----- Original Message ----- > From: "Tony "omega" Sergi" <[EMAIL PROTECTED]> > To: <hlcoders@list.valvesoftware.com> > Sent: Friday, October 05, 2007 9:37 PM > Subject: Re: [hlcoders] TF2 Plugin Headstart? VEngineCvar004? > > > > -- > > [ Picked text/plain from multipart/alternative ] > > going straight from the wiki post he made: > > > > CON_COMMAND arguments > > > > References to these commands: > > > > engine->Cmd_Argv(i) > > engine->Cmd_Args() > > engine->Cmd_Argc() > > > > are no longer available from the server. Console commands now get their > > arguments via an extra parameter passed to the CON_COMMAND(). The > argument > > is an instance of the CCommand class and typically is passed as "args" > if > > you use the built-in CON_COMMAND macro. As such, the corresponding code > > would be (notice the change in case, too): > > > > args.Arg(i) > > args.ArgS() > > args.ArgC() > > > > > > > > On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > Hey Mattie, > > > > > > i have replaced all files with that from the ftp. > > > Now, when i compile i have that problem, that he dont like my > > > > > > CON_COMMAND(my_version, "Logs/prints plugin version.") > > > > > > Commands. > > > They tell me, that i cant use Cmd_Argv to get the params (becouse the > > > update) > > > So i thinked, that i have to declare args or is it declared as default > by > > > tha macro? > > > > > > Thanks for your Wiki Page! Thats realy nice for beginners :) > > > I have fixed all before you have posted that page but its verry > helpfull > > > :) > > > > > > With friendly Reguards > > > > > > Ratman2000 > > > > > > ----- Original Message ----- > > > From: "Mattie Casper" <[EMAIL PROTECTED]> > > > To: <hlcoders@list.valvesoftware.com> > > > Sent: Friday, October 05, 2007 5:16 PM > > > Subject: Re: [hlcoders] TF2 Plugin Headstart? VEngineCvar004? > > > > > > > > > > -- > > > > [ Picked text/plain from multipart/alternative ] > > > > Hey Ratman-- > > > > > > > > I didn't have that problem. My console commands worked just fine > like > > > this > > > > with no change involving the macro: > > > > > > > > CON_COMMAND(my_version, "Logs/prints plugin version.") > > > > { > > > > engine->LogPrint(MY_PLUGIN_VERSION "\n"); > > > > Msg(MY_PLUGIN_VERSION "\n"); > > > > } > > > > > > > > If you leave yours as they were for earlier Source, what error are > you > > > > getting? Did you overlook updating your convar.h? > > > > > > > > -Mattie > > > > > > > > On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hello Mattie, > > > > > > > > > > thats a nice idee! > > > > > Have you a solution for Commands like: > > > > > > > > > > CON_COMMAND_F( my_test, "Test GameDLL Command", FCVAR_GAMEDLL ) > > > > > { > > > > > UTIL_LogPrintf( "Test ok!" ); > > > > > } > > > > > > > > > > Or for : > > > > > > > > > > CON_COMMAND( my_test2, "Test Command 2" ) > > > > > { > > > > > UTIL_LogPrintf( "Test 2 ok!" ); > > > > > } > > > > > > > > > > Becouse the compiler gives errors so we have to add the args param > to > > > it! > > > > > I think thats a think that have to add to your wiki page! > > > > > > > > > > With friendly Reguards > > > > > > > > > > Ratman2000 > > > > > > > > > > ----- Original Message ----- > > > > > From: "Mattie Casper" <[EMAIL PROTECTED]> > > > > > To: <hlcoders@list.valvesoftware.com> > > > > > Sent: Friday, October 05, 2007 10:57 AM > > > > > Subject: Re: [hlcoders] TF2 Plugin Headstart? VEngineCvar004? > > > > > > > > > > > > > > > > -- > > > > > > [ Picked text/plain from multipart/alternative ] > > > > > > FYI-- I started a page on the wiki and filled out a few of the > steps > > > > > needed > > > > > > to convert plugins to the new model. I'm not quite awake, so I > > > apologize > > > > > in > > > > > > advance for any incoherencies: > > > > > > > http://developer.valvesoftware.com/wiki/Orange_box_server_plugins > > > > > > > > > > > > Please correct and add your own experiences there. I know > there's > a > > > good > > > > > bit > > > > > > left out. > > > > > > > > > > > > Like others here, I was able to get at least one of my plugins > (a > > > minor > > > > > one) > > > > > > to build/compile/load/work on Windows TF2 srcds. > > > > > > -Mattie > > > > > > > > > > > > > > > > > > > > > > > > On 10/4/07, Mike Durand <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Just out of curiosity: has anyone else gotten close to getting > > > their > > > > > > > updated plugin to build/work? > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: [EMAIL PROTECTED] > > > > > > > [mailto:[EMAIL PROTECTED] On Behalf Of > Mike > > > > > Durand > > > > > > > Sent: Thursday, October 04, 2007 11:15 AM > > > > > > > To: hlcoders@list.valvesoftware.com > > > > > > > Subject: RE: [hlcoders] TF2 Plugin Headstart? VEngineCvar004? > > > > > > > > > > > > > > OK. I added these: > > > > > > > > > > > > > > byteswap.h > > > > > > > convar_serverbounded.h > > > > > > > vstdlib.lib > > > > > > > mathlib.lib > > > > > > > tier0.lib > > > > > > > tier2.lib > > > > > > > vstdlib.lib > > > > > > > > > > > > > > Do you still get an unresolved when you link tier1.lib but > don't > > > > > compile > > > > > > > > > > > > convar.cpp? I would try that route if you haven't already. > > > > > > > > > > > > > > -Mike > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: [EMAIL PROTECTED] > > > > > > > [mailto:[EMAIL PROTECTED] On Behalf Of > David > > > > > > > Anderson > > > > > > > Sent: Wednesday, October 03, 2007 6:14 PM > > > > > > > To: hlcoders@list.valvesoftware.com > > > > > > > Subject: Re: [hlcoders] TF2 Plugin Headstart? VEngineCvar004? > > > > > > > > > > > > > > Phew! Still a few more errors... > > > > > > > > > > > > > > - Looks like CByteswap isn't defined in utlbuffer.h > > > > > > > - tier1/convar_serverbounded.h is missing > > > > > > > - Unresolved externals while linking: _GetCVarIF, ConMsg, > etc > > > not > > > > > > > found. do we need new tier0 and vstdlib libs? > > > > > > > - Another unresolved link error, to ConCommand::ConCommand > when > > > > > using > > > > > > > CON_COMMAND. I can't include both convar.cpp and tier1.lib > (since > > > > > they > > > > > > > overlap), but if I cherry-pick code out of convar.cpp then it > > > works. > > > > > > > > > > > > > > ---David Anderson > > > > > > > http://www.bailopan.net/ > > > > > > > > > > > > > > > > > > > > > Mike Durand wrote: > > > > > > > > They are there now. > > > > > > > > > > > > > > > > -Mike > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: [EMAIL PROTECTED] > > > > > > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > David > > > > > > > > Anderson > > > > > > > > Sent: Wednesday, October 03, 2007 2:51 PM > > > > > > > > To: hlcoders@list.valvesoftware.com > > > > > > > > Subject: Re: [hlcoders] TF2 Plugin Headstart? > VEngineCvar004? > > > > > > > > > > > > > > > > Seems to be compiling after some strtools fixes -- the next > step > > > is > > > > > > > > linking ;) I think we're gonna need a new tier1.lib or > > > convar.cpp. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > ---David Anderson > > > > > > > > http://www.bailopan.net/ > > > > > > > > > > > > > > > > Mike Durand wrote: > > > > > > > >> I've added 'iconvar.h' and 'convar.h'. That should keep > those > > > > > > > crickets > > > > > > > >> under control until the next compilation error. :) > > > > > > > >> > > > > > > > >> -Mike > > > > > > > >> > > > > > > > >> -----Original Message----- > > > > > > > >> From: [EMAIL PROTECTED] > > > > > > > >> [mailto:[EMAIL PROTECTED] On Behalf Of > > > Spencer > > > > > > > >> 'voogru' MacDonald > > > > > > > >> Sent: Wednesday, October 03, 2007 11:42 AM > > > > > > > >> To: hlcoders@list.valvesoftware.com > > > > > > > >> Subject: RE: [hlcoders] TF2 Plugin Headstart? > VEngineCvar004? > > > > > > > >> > > > > > > > >> I hear crickets. > > > > > > > >> > > > > > > > >> - voogru. > > > > > > > >> > > > > > > > >> > > > > > > > >> _______________________________________________ > > > > > > > >> 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 > > > > > > > > > > > > -- > > -omega > > -- > > > > _______________________________________________ > > 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 > > -- -omega -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders