Need a more experienced programmer

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

Need a more experienced programmer

Postby Corewarp on Sat Feb 04, 2012 12:31 pm

Vague thread title is vague.

Quick Facts:
    Language: C++
    Engine: Source Engine
    Experience Level Needed: Intermediate-Advanced.

Alright so, I need a more experienced programmer who has messed with the Source Engine. Preferably with quite a bit of free time on his hands. I don't need help with anything too complex and I'm quite surprised I can't figure out what to do myself but if anyone is up for helping me then I'd be very appreciative.

Skype: corewarp(Chris Nielsen)
Steam: nrno2001@yahoo.dk(corewarp)
User avatar
Corewarp
Been Here A While
Been Here A While
 
Joined: Thu Mar 13, 2008 6:29 pm

Re: Need a more experienced programmer

Postby Blink on Sat Feb 04, 2012 1:11 pm

Probably going to need to share a bit more information than that.
User avatar
Blink
Cool 'n that
Cool 'n that
 
Joined: Fri Oct 08, 2004 4:16 pm
Location: UK

Re: Need a more experienced programmer

Postby Corewarp on Sat Feb 04, 2012 1:16 pm

Blink wrote:Probably going to need to share a bit more information than that.


Basically, I'm messing around with some stuff in the source code to get better at coding. All I need is someone who already knows about how the source engine works, code wise, and someone well-versed in C++. Pretty simple actually :D

Vagueish example of what's wrong right now:

Image


The CON_COMMAND isn't working and it's because of the CInventory.CreateInventory();
I just can't understand why.
User avatar
Corewarp
Been Here A While
Been Here A While
 
Joined: Thu Mar 13, 2008 6:29 pm

Re: Need a more experienced programmer

Postby stoopdapoop on Sat Feb 04, 2012 1:52 pm

You've declared InventoryList as a local variable, which I'm pretty sure is not what you actually want to do. Once the function reaches it's end the vector will go away. You want to declare it as a member variable, outside of a function. That way it'll exist as long as the object exists in memory. This is a big issue, but not the reason why it's not compiling

CInventory isn't an object, you're trying to call a method on a class which doesn't work unless it's static. CreateInventory() is not a static method, you could fix your compile error by making it so, but you'd need to use the "::" operator to call it, not the "." operator.

Also, your second function doesn't have a name. CON_COMMAND is the return type, and you've (partially) listed two parameters but you've failed to declare their types. I'm not exactly sure what you're trying to do with that section of code because it doesn't really look like C++.

Moral of the story is that there are quite a few things wrong with this (probably more than I listed).

If you want to want to post a more specific description of what you want to do then I'd be willing to help in a more detailed way. Sounds like you just want to get it to compile, but even if you get it to compile it won't be doing what you think it is.
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: Need a more experienced programmer

Postby Corewarp on Sat Feb 04, 2012 2:06 pm

stoopdapoop wrote:You've declared InventoryList as a local variable, which I'm pretty sure is not what you actually want to do. Once the function reaches it's end the vector will go away. You want to declare it as a member variable, outside of a function. That way it'll exist as long as the object exists in memory. This is a big issue, but not the reason why it's not compiling

CInventory isn't an object, you're trying to call a method on a class which doesn't work unless it's static. CreateInventory() is not a static method, you could fix your compile error by making it so, but you'd need to use the "::" operator to call it, not the "." operator.

Also, your second function doesn't have a name. CON_COMMAND is the return type, and you've (partially) listed two parameters but you've failed to declare their types. I'm not exactly sure what you're trying to do with that section of code because it doesn't really look like C++.

Moral of the story is that there are quite a few things wrong with this (probably more than I listed).

If you want to want to post a more specific description of what you want to do then I'd be willing to help in a more detailed way. Sounds like you just want to get it to compile, but even if you get it to compile it won't be doing what you think it is.


This is the kind of help I'm talking about. However, I'd much prefer to be on Skype & Teamviewer with both of us able to look at all the code in real time.

I realized that I was probably doing something horribly wrong and you addressed the main issues. However I'm still not sure what my best course of action would be so.. Skype anyone? :P
User avatar
Corewarp
Been Here A While
Been Here A While
 
Joined: Thu Mar 13, 2008 6:29 pm

Return to Programming

Who is online

Users browsing this forum: No registered users