Difference between revisions of "Porting to Swarm and CSGO"

From AlliedModders Wiki
Jump to: navigation, search
(Created page with "This page is a stub. Somebody, anybody please pretty it up! <pre> [23:43] <MaxLap> hey psychon1c, is there a special sdk i need to make my extension compatible with csgo? [23:...")
 
m
Line 1: Line 1:
 
This page is a stub. Somebody, anybody please pretty it up!
 
This page is a stub. Somebody, anybody please pretty it up!
 +
 +
If coming from an Orangebox variant, [[Porting_to_Left_4_Dead]] may also be of interest.
 +
 
<pre>
 
<pre>
 
[23:43] <MaxLap> hey psychon1c, is there a special sdk i need to make my extension compatible with csgo?
 
[23:43] <MaxLap> hey psychon1c, is there a special sdk i need to make my extension compatible with csgo?

Revision as of 23:00, 16 August 2012

This page is a stub. Somebody, anybody please pretty it up!

If coming from an Orangebox variant, Porting_to_Left_4_Dead may also be of interest.

[23:43] <MaxLap> hey psychon1c, is there a special sdk i need to make my extension compatible with csgo?
[23:43] <psychon1c> hl2sdk-csgo
[23:44] <knivey> lol
[23:44] <MaxLap> is there a place where it says where the sdks are? i can never find them...
[23:44] <psychon1c> hg.alliedmods.net/hl2sdks
[23:44] <MaxLap> Thank you sir, i'll try try to remember that its in the source control!
[23:45] <psychon1c> for an sdk extension, make sure to also link the interfaces lib
[23:45] <psychon1c> (new starting with swarm)
[23:46] <psychon1c> you'll also have to define COMPILER_MSVC and COMPILER_MSVC32 on windows or COMPILER_GCC on linux/mac
[23:46] <psychon1c> the sample makefile and projects were updated
[23:47] <psychon1c> i think there are some other small differences. i was going to make a wiki page, similar to the porting to orangebox and porting to l4d pages
[23:47] <psychon1c> but then i didn't
[23:47] <psychon1c> the things for porting to l4d still apply if you're coming up from css
[23:47] <MaxLap> How complicated will it be for me to make my extension work for both css and csgo you think? its not really not deep in the sdk, but very deep in sm
[23:48] <psychon1c> MaxLap: if you have to use any of the sdk, you almost have to have separate builds (but you can use same code)
[23:48] <psychon1c> (or almost same code, maybe with a couple of ifdefs)
[23:48] <psychon1c> but anything using the sm apis is fine
[23:48] <MaxLap> Yeah, i feared that...
[23:49] <psychon1c> oh, for events, IEventListener2 has an extra member, starting in swarm i think
[23:49] <MaxLap> good thing i wasn't aiming at being ready for release then!
[23:49] <psychon1c> GetDebugId or GetEventDebugId, something like that
[23:50] <psychon1c> and just return 42 in the impl. there's a define for it, but i don't remember the name
[23:50] <psychon1c> should be in the header
[23:50] <psychon1c> Alaura: update to the latest snapshot of whatever branch you're running
[23:51] <psychon1c> it was already fixed
[23:52] <MaxLap> So you are saying there is no page for all this, so you repeat it to everyone you ask?
[23:52] <MaxLap> impressive!
[23:53] <MaxLap> Thanks a lot
[23:53] <psychon1c> i ported mms, sm, sdktools, and sdkhooks
[23:53] <psychon1c> and the sample plugins/extensions for each
[23:53] <psychon1c> and helped port the cstrike ext
[23:54] <MaxLap> I understand why you know it, i mean its impressive that you take the time to repeat it for everyone who may ask. (Still, a great resume)
[23:54] <psychon1c> lol
[23:55] <psychon1c> not only do i hate having to write docs, i'm also not very good at it
[23:55] <psychon1c> but i did get as far as having the edit page open
[23:55] <dvander> psychon1c: you deserve a purple heart for even doing that
[23:56] <MaxLap> you could just copy paste this conv in a page and then link to it lol