First time creating a mod

Grab your favourite IDE and tinker with the innards of game engines

First time creating a mod

Postby Tomalla on Sun Aug 08, 2010 5:25 pm

Hi there. As the subject states, it's my first time compiling and running a mod, and unfortunately, I'm at the dead end. Hope someone here can help me. I'm working in Visual C++ 2008 Express Edition in case it's relevant.

So ... I opened Source SDK and went to 'Create a Mod' option with 'Source Engine 2007' selected at the bottom. In a wizard, I chose 'Modify Half-Life 2 Single Player' and created my mod eventually. After that I opened solution 'src\Game_Episodic-2005.sln', Visual C++ asked me about upgrading a project, I agreed and moved on. I chose 'Release' mode in Toolbox and compiled the project. There was no errors after a compile, although some warnings were present. I don't think they were important though, as they stated some headers were just skipped. However, when I try to run my brand new mod, the game crashes with not-so informative message:

"Instruction "0x0d755aea" points at the memory at "0x0f7a33e4". Memory cannot be "read"."

Silly kind of, but I had to translate the message ( it was in my native language ). Hope it's clear enough. I didn't change a thing in those solutions, I just compiled it as it was originally. It doesn't work anyway so I'm currently unable to proceed with a modified code on the other hand. ¬_¬

Any ideas why doesn't it work? Tomalla
Tomalla
Dumpling
Dumpling
 
Joined: Sun Aug 08, 2010 5:04 pm

Re: First time creating a mod

Postby Corewarp on Sun Aug 08, 2010 8:15 pm

User avatar
Corewarp
Been Here A While
Been Here A While
 
Joined: Thu Mar 13, 2008 6:29 pm

Re: First time creating a mod

Postby BubbleQ on Sun Aug 08, 2010 9:24 pm

Corewarp wrote:You followed this right?

http://developer.valvesoftware.com/wiki ... er_Choices


<3
---------------------------------
I am a happy mapper!
Archlinux
User avatar
BubbleQ
1337 p0st3r
1337 p0st3r
 
Joined: Sat Jun 07, 2008 11:03 pm
Location: Sweden, Steungsund

Re: First time creating a mod

Postby Tomalla on Sun Aug 08, 2010 10:08 pm

I suppose so, because I followed this tutorial:

http://developer.valvesoftware.com/wiki ... der_VS2008

I did 'Install Visual Studio 2008' and 'Open the solution' paragraphs only.
Tomalla
Dumpling
Dumpling
 
Joined: Sun Aug 08, 2010 5:04 pm

Re: First time creating a mod

Postby Tomalla on Mon Aug 09, 2010 5:38 pm

Sorry for double posting.

First of all, I admit I made a silly, tiny mistake ... I compiled "Client" project only and "Server" DLL was missing. :-D

Then, the game was crashing like previously, but this time it was throwing out an engine error: "SetupArrayProps_R: array prop '(null)' is at index zero." I googled this phrase and I got into this thread:

viewtopic.php?f=25&t=32850

I've edited my gameinfo.txt and added the following entries:

Code: Select all
SteamAppId      218
ToolsAppId         211
AdditionalContentID   420


and ... it worked. But I had to download Source SDK Base 2007 in order for it to work. And that is something I don't get. This is supposed to be HL2 modification, not Source SDK Base 2007 modification. And everyone who wants to play this mod, will be forced to download Source SDK Base 2007 as well. Is this necessary? Does client always have to download Source SDK Base 2007 in order to play hl2 based mods? It's hard for me to believe it. Could anyone confirm it ... somehow?
Tomalla
Dumpling
Dumpling
 
Joined: Sun Aug 08, 2010 5:04 pm

Re: First time creating a mod

Postby Furling on Mon Aug 09, 2010 9:28 pm

Yeah, that's a fact, Source SDK Base is required for playing Source engine mods, Depending on what version of SDK base the mod is made, client will need to download either SourceSDK Base 2006 or SourceSDK Base 2007
~ Heaven won't take me and Hell's afraid I'll take over ~

Stargate: Legacy a Half-Life2 modification. Learn more at http://www.stargatelegacy.net
User avatar
Furling
Been Here A While
Been Here A While
 
Joined: Sat Nov 21, 2009 2:00 pm
Location: Latvia

Re: First time creating a mod

Postby Tomalla on Wed Aug 11, 2010 2:33 pm

Thanks for clearing that up! Now ... it's time to play around with the code :) Cheers
Tomalla
Dumpling
Dumpling
 
Joined: Sun Aug 08, 2010 5:04 pm

Return to Programming

Who is online

Users browsing this forum: No registered users

cron