• Source 2007 Modding Problem
    10 replies, posted
Hello fellow programmers, I'm here with a problem about creating a mod for Source 2007. My problem is that nothing I seem to do to edit my source code can actually change anything ingame. I'm following [URL="https://developer.valvesoftware.com/wiki/My_First_Mod"]this tutorial on the developer wiki[/URL]. But when I change the RPG_SPEED property, it doesn't affect it ingame. I've also tried putting commands to print to the console in the ignite function, to no avail. [B]Things I have done:[/B] I've gone to my sourcemods folder and checked that my client/server dlls have been recently modified (about the time I built the solution). There are no fatal errors in VS2013, only intellisense ones. My output says that all projects have succeeded. [B]I'm running my mod from VS by pressing F5, when I run my mod through Steam it crashes...[/B]
Why 2007? 2013 is the latest SDK version available and supports the VS2013 compiler.
[QUOTE=Sam Za Nemesis;51982669]I strongly recommend Alien Swarm Scratch or the ASW port of Alien Swarm over 2013 even Either way both are available here and you really shouldn't use the legacy orangebox sdk [url]https://github.com/ValveSoftware/source-sdk-2013[/url] [url]https://github.com/Sandern/aswscratch[/url] / [url]https://github.com/stanriders/hl2-asw-port[/url][/QUOTE] As long as you're not making a multiplayer mod. ASW is still vulnerable to many exploits including RCEs, plus it doesn't support VPKv2 if content mounting is something you want.
Okay, I am making a Multiplayer mod here, and there is no option in the Source SDK tool to use 2013, I have to download it from the Github repository, and I'm not sure how to get my mod to run that way. The only working engine version on the Source SDK tool is 2007, which is supposed to work fine for modifying HL2:Death match, which is what I'm going for. The fact that it is in the Source SDK, and it seems to be able to build properly excluding my problem, makes 2007 look like the best option.
[url]https://developer.valvesoftware.com/wiki/Source_SDK_2013[/url] this should help you build the 2013 sdk
Thanks, I'll try that right now and edit the results. Just quickly though, what do I do with the DLLs I get from the build? [B]EDIT[/B] The build succeeded with 2 projects failed, 19 succeeded.
[QUOTE=KO #1;51983882]Thanks, I'll try that right now and edit the results. Just quickly though, what do I do with the DLLs I get from the build? [/QUOTE] Put them in steamapps/sourcemods/your_mod_directory/bin
[QUOTE=KO #1;51983882] [B]EDIT[/B] The build succeeded with 2 projects failed, 19 succeeded.[/QUOTE] I'm sure someone would be willing to help you with those failing builds if you posted some more information about what is failing and how.
1. Download Visual Studio 2013 Community edition (most time I install everything) [URL]https://go.microsoft.com/fwlink/?LinkId=517284[/URL] 2. Download (or clone via Git) everything from the source2013 github page [URL]https://github.com/ValveSoftware/source-sdk-2013[/URL] 3. Go to [B]/sp/src/[/B], copy [B]createallprojects.bat[/B] and rename it to [B]createallprojects2013.bat[/B]; 4. Open [B]createallprojects2013.bat[/B] with any text editor (you can use Visual Studio) and add [B]/2013[/B] at the end: [code]devtools\bin\vpc.exe /hl2 /episodic +everything /mksln everything.sln /2013[/code] 5. Run [B]createallprojects2013.bat[/B] it will generate the solution and project files; 6. Open the solution file [B]everything.sln[/B] with Visual Studio and in build options change it from [B]debug[/B] to [B]release[/B], now you can compile the source code. Also the tutorial on wiki is weird... you don't have to install [B]Multibyte MFC Library[/B] and [B]Microsoft Speech SDK[/B], the community edition of Visual Studio is everything you need to work with public SDK code.
[QUOTE=Nicolas;51993905]1. Download Visual Studio 2013 Community edition (most time I install everything) [URL]https://go.microsoft.com/fwlink/?LinkId=517284[/URL] 2. Download (or clone via Git) everything from the source2013 github page [URL]https://github.com/ValveSoftware/source-sdk-2013[/URL] 3. Go to [B]/sp/src/[/B], copy [B]createallprojects.bat[/B] and rename it to [B]createallprojects2013.bat[/B]; 4. Open [B]createallprojects2013.bat[/B] with any text editor (you can use Visual Studio) and add [B]/2013[/B] at the end: [code]devtools\bin\vpc.exe /hl2 /episodic +everything /mksln everything.sln /2013[/code] 5. Run [B]createallprojects2013.bat[/B] it will generate the solution and project files; 6. Open the solution file [B]everything.sln[/B] with Visual Studio and in build options change it from [B]debug[/B] to [B]release[/B], now you can compile the source code. Also the tutorial on wiki is weird... you don't have to install [B]Multibyte MFC Library[/B] and [B]Microsoft Speech SDK[/B], the community edition of Visual Studio is everything you need to work with public SDK code.[/QUOTE] iirc those two libraries are only needed for modifying source's lipsync phoneme system
Sorry, you need to Log In to post a reply to this thread.