You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'gapern'

We found 81 matches.


<< < > >>

Viewing 1-30 of 81 matches. 1 | 2 | 3

1.

None

Topic: Sound Wont Work In Dosbox?

Posted: 11/08/09 09:38 AM

Forum: Programming

Use zdoom.


2.

None

Topic: Obama's secret copyright bill

Posted: 11/07/09 03:34 PM

Forum: General

What? You mean I won't be able to steal games/movies/music anymore? That's not fair! I deserve everything for free! People shouldn't be making money off of their hard work!

....

stfu.


3.

None

Topic: YMail or Gmail?

Posted: 11/07/09 12:57 PM

Forum: General

Gmail.


4.

None

Topic: The Metric System

Posted: 10/27/09 06:47 AM

Forum: General

It's not that easy. You can't just say "Ok, we're going to use the metric system now" and expect everybody in the entire country to suddenly start using it and stop using what they're comfortable with. The only way I see the USA switching to the metric system is if it is illegal to not use metric and that's just not going to happen. I really don't see why it matters what we use anyway. Who gives a shit?


5.

None

Topic: my dad broke my pc hes an asshole

Posted: 10/20/09 06:10 AM

Forum: General

Like PhysX said, the pc was not yours, it was your parents. That was definitely an asshole thing for him to do but he can do what he wants with his stuff. As for the girlfriend, get over it. I'm not trying to be mean or anything but you're in high school. High school relationships are not real, you do not love her, she does not love you. Period. Don't argue. They are great practice for later in life when you have matured a little more and know what you want, but right now no relationship is going to be serious or long term. That's just how it is.

I'm sure this has been said plenty in this thread but I'll say it once more. Your dad needs help. Drunk dads are not good dads and are certainly a bad influence on their kids. I don't recommend you get a job so you can move out asap at 18, you need to focus on your school work right now. What needs to happen is you need to tell somebody what's going on. Is your dad going to get in trouble? Most likely if he hits you and drinks often but something needs to be done. Talk to a school counselor. They are free. Once you're out of high school you have to pay for counseling and it costs a lot. Use what you can get now for free. You can also call the police but I probably wouldn't do that right away unless you felt you were in danger.

....I just went through the thread a little more and read that you were 13 so I guess you're not quite in high school yet, but everything I said still applies. Just pretend the word high school says junior high instead! Whatever you decide to do, good luck.


6.

None

Topic: detecting key being pressed C++

Posted: 10/06/09 05:09 PM

Forum: Programming

At 10/6/09 12:39 PM, urbn wrote:
At 10/5/09 11:27 PM, gapern wrote: a console game
Maybe I missed something, but I wasn't aware he specified that it was a console game?

Well looks like the OP took off so I don't feel as bad about possibly derailing the thread.

He didn't specify anything at all. I'm under the assumption it is a console program because when I googled the kbhit function it looked like it was only usable with the console. It also requires conio.h to use, which I think is safe to assume stands for console input output. I'm aware that he is not wanting to use the kbhit function, but if he's referencing a console function then I can assume it's a console game he's trying to make. I could of course be dead wrong here. I'm not a mind reader or an expert at c++.


7.

None

Topic: detecting key being pressed C++

Posted: 10/05/09 11:27 PM

Forum: Programming

Well yea, I'm aware of the uses of holding a key down, just not in a console game. I'm sure all the actions you mentioned have been done in a console game but judging by the lack of info in the first post I'm going to assume this guy isn't at the skill level to do much of that. That sentence I wrote probably shouldn't have even been mentioned as it wasn't relevant to the topic. Let's not hijack his topic please.


8.

None

Topic: detecting key being pressed C++

Posted: 10/05/09 08:17 PM

Forum: Programming

kbhit looks like a console function so I'm kinda doubting he is using win32, or any library at all. I'm assuming you are making a "rogue" game because I don't see how checking if a key is being held would be valuable with any other type of console game. More information about what you're making and any libraries you are using would be helpful.


9.

None

Topic: C# - Game AI issues

Posted: 05/06/09 07:17 PM

Forum: Programming

if (aiActive && ball.position.Y >= ball.position.Y + ball.size.Y)
{
       //Move down
       player2.position.Y += 5;
}

I don't know the differences between c++ and c#, but if I had to guess what the problem was I'd say it was this if statement. It needs to be else if, or whatever the c# equivalent to else if is. Also, shouldn't you be comparing the balls position to the player 2 paddle? It looks to me like you're comparing the balls position to itself. Wouldn't something like this be what you're trying to do?

if(ball.position.y <= player2.position.y)
{
      player2.position.y -= 5;
}
else if(ball.position.y >= player2.position.y + player2.height)
{
     player2.position.y += 5;
}

You don't need the AiActive variable either, unless you're using it somewhere else in your code perhaps. If it's just being used in the block of code you posted then it's not doing anything, it's just repetitive.


10.

None

Topic: Storing level data

Posted: 02/21/09 09:54 PM

Forum: Flash

Well I don't need to read from an external file if I don't have to. That's just the only way I know how from my experience with c++. I may just have to download the free trial to fully understand how it's done. If I can use flash itself as the level editor and just drag and drop things that would be awesome.


11.

None

Topic: Storing level data

Posted: 02/21/09 07:56 PM

Forum: Flash

So I'm a c++ coder looking to move to flash. My goal is to make games of course! I'm just curious how level data is created and stored with flash. As far as I know you are not able to read from a separate file to populate an array. It seems to me that all the level data is "hard coded" into the swf. Is that correct? Let's say I was going to make a game where I was using tiles and there were several hundred placed in a single level. Would I be typing every single x and y coordinate by hand into an array? Would I be making a level editor that writes to an array for me and I would somehow copy the contents of the array into the games swf? Fill me in on how it's done please.


12.

None

Topic: Restoring DLL files

Posted: 12/01/08 04:01 AM

Forum: Programming

Did you right click on it, hit "open with....", and then select notepad? There's a little checkbox in that menu that opens up that says always use the selected program to open this type of file. I'm assuming that was checked when you decided to open it with notepad. If that's the case then it's no big deal. You will never need to open a dll file. All your programs that use them will still be able to open them properly. I'm fairly certain that windows would not even be able to start up if all your dlls were turned into text files. Just be a tad bit more observant/careful next time.


13.

None

Topic: Help Me! C++

Posted: 11/12/08 11:08 PM

Forum: Programming

You're going to need to include <windows.h> to use WM_KEYDOWN. cin.get() just pauses until you press any key. I'm not at all familiar with <windows.h> so I cannot give you any example code, but i've at least given you something else to look up.


14.

None

Topic: c++ vectors in class objects

Posted: 08/02/08 03:06 AM

Forum: Programming

Ok so back to the original problem. gusts solution did not work as I suspected. authorblues is closer I think, but if you're using new you need to use pointers. I am not really familiar with pointers. Pointing to a vector appears to be a tad more difficult than pointing to other regular variables. Here's what i've done.

vector<thing>* thisscene;
thisscene = new vector<thing>;

scene sc1(thisscene);
scene sc2(thisscene);

Here's the error I get.

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

That error is on the second line of code. Any ideas?


15.

Happy

Topic: c++ vectors in class objects

Posted: 08/01/08 05:18 PM

Forum: Programming

firstly, why do you insist on naming a parameter and a class member the same thing?

When I started writing my classes I didn't know it wasn't a good idea to do that. I quickly found out why it was a bad idea and had to add this-> to fix the issue. I will eventually get around to changing it so the parameters and members do not have the same names, but it's very low priority right now. I have more important things to fix.

:It is not a good idea to place the method body in the class/struct/union declaration, so stop doing :that.

This I disagree with. The only reason i've been given that this is a bad idea is if you want to distribute your files whoever you give them to will be able to see your source code and separating the function body into a cpp file prevents that. But I won't be distributing my code. If theres another good reason i'd like to hear about it. But it won't break my code doing it the way i'm doing it.

Thanks for your ideas on how to fix the issue I was having with my object vectors. Right now i'm working on trying gust's solution, but for some reason I think i'll need to use the new keyword like authorblues suggested. I'm having another issue right now and need to fix that before I can compile and test. Hopefully one of the two suggestions given work.


16.

None

Topic: c++ vectors in class objects

Posted: 07/31/08 06:09 PM

Forum: Programming

Ok so why do I need to do that? What if I wanted all of the vectors in my objects to have different names? I'd have to declare every single one of them? That almost defeats the point of what I am trying to do.


17.

None

Topic: c++ vectors in class objects

Posted: 07/31/08 05:27 AM

Forum: Programming

Here's my struct. Theres more to it but you don't need to see all the rest of it.

struct scene
{
          //constructor
          scene(vector<thing> thisscene)
          {
                this->thisscene = thisscene;
          };
         
         //data member
         vector<thing> thisscene;
};

Here's the object i'm trying to create.

scene sc1(thisscene); //want my vector in this object to be named "thisscene".

But this is not right. I get an error.

error C2065: 'thisscene' : undeclared identifier

I've googled it and don't know what the problem is. I want to have a vector in every single object I create and the only way to accomplish that is constructing it along with my other data members. What am I screwing up here?


18.

None

Topic: c++ question?

Posted: 05/27/08 12:19 AM

Forum: Programming

It looks almost like a looping animation that is also rotating.


19.

None

Topic: C++ Loops

Posted: 05/24/08 09:39 PM

Forum: Programming

A while loop will only work if the condition is true, otherwise it'll be skipped. A do while will always run at least once. The condition is checked last with a do while and first with a while.


20.

None

Topic: php redirect after an error

Posted: 05/14/08 10:46 PM

Forum: Programming

Well the second post in that thread gave me an idea, but it's not a great solution. I could make the index page an ajax check and have it display an error if it isnt supported, else javascript could redirect. But people would still be able to get to the ajax page that way if they knew the url. I need the check to be on the ajax page and then a redirect away from it if ajax is not working.

The user will be submitting a form, and they can do this more than one time. They could submit once and then turn javascript off and submit again if they wanted to without ever leaving the page. I'll be checking for javascript/ajax everytime the form is submitted.

I do know how to check if ajax is supported, what I need is the redirect. I didn't see anything about that in the thread you linked.


21.

None

Topic: php redirect after an error

Posted: 05/14/08 08:49 PM

Forum: Programming

What I want to do is check if a browser is capable of using ajax, and if not redirect to an error page. According to this page though, I can't do that because redirects have to be the first things written in the page. http://us3.php.net/header

Maybe redirect is the wrong word to use, but googling php redirect only comes up with that header function. I was thinking maybe javascript is what I need to use to accomplish this, but if javascript is off then ajax wouldn't work, right? That would defeat the whole point then. I need to redirect if javascript is off or the browser is old and not compatible with ajax. Any ideas on how I can do this?


22.

None

Topic: C++ help

Posted: 05/14/08 08:25 PM

Forum: Programming

You need to include <string>.

Main needs to be opened and closed with { }.

Your name variable is an int. It needs to be a string. Int's are for storing numbers.

And i'm pretty sure " if (name == ArtFlo )" needs to be this " if (name == "ArtFlo" ). But i'm not 100% sure, I haven't used strings much. Someone else will be able to correct me if i'm wrong. Same with "else if ( name == BLA )".


23.

None

Topic: C++ help

Posted: 05/14/08 08:03 PM

Forum: Programming

You need to post your code if you want help.


24.

None

Topic: I'm looking for a programmer...

Posted: 05/09/08 04:51 AM

Forum: Programming

I can maybe do the uploader if you tell me exactly what you need it to do. I haven't done anything with php in a long time and am looking to start working with it again, and any practice I can get would be great. I'll of course do it for free. Send me a pm if you want.


26.

None

Topic: htaccess trouble

Posted: 01/14/08 01:46 PM

Forum: Programming

I did get a 500 when I filled it with garbage.


27.

None

Topic: htaccess trouble

Posted: 01/14/08 10:19 AM

Forum: Programming

Well that did not work either. I give up. The support guy had told me there is no way to make cpp act like a txt file. Maybe because i'm on a shared server. I'm just gonna have to put txt on the end of the files. Thanks for trying to help guys.


28.

None

Topic: htaccess trouble

Posted: 01/13/08 07:45 PM

Forum: Programming

Didn't work. In a followup ticket support staff said there was a misunderstanding and the mime type was what needed changing. The support guy changed it for me and it still does not work. He said firefox may remedy the problem, but I am using firefox. Any more ideas?


29.

None

Topic: htaccess trouble

Posted: 01/13/08 07:01 PM

Forum: Programming

I'm trying to get cpp files to act like txt/html files. I want them to just display the text in the browser instead of asking to be downloaded. My hosts support staff told me to put AddType text/html cpp into the htaccess file, but it still is not working correctly. And yes the file is named .htaccess, not .htaccess.txt. :) Any ideas?


30.

None

Topic: Visual C++ Express Edition 2008

Posted: 12/20/07 09:21 PM

Forum: Programming

I didn't have any trouble. Maybe the site is down? The only way is to answer their survey questions, then they email you the code.


All times are Eastern Standard Time (GMT -5) | Current Time: 10:39 PM

<< < > >>

Viewing 1-30 of 81 matches. 1 | 2 | 3