I'm really new to game programmming and i'm trying to pull over somebody elses example game to mine to just understand it a bit at a time but i'm stuck. When trying to pull the game over i'm getting the error :
Implicit declaration of function 'ccDrawColor4B'
I've done a bit of a look around for the method and I can't find it so i've looked at the project which i'm copying from for clues and found that there's loads more files. Below is the one i'm copying from..
And here is mine..
Am I missing a framework or something? When I type ccDr... it doesn't autofill either. Thanks for any help, sorry if this is totally a noobie question
Related
I'm doing a simple Line Trace for Objects in Blueprints inside Unreal Engine,
that problem is that it always return -1 when I try to get the faceIndex of a static mesh with multiple materials.
I have read from past discussions that I would need to turn on the bReturnFaceIndex variable for Line Trace
to work with FaceIndex, but I do not know how to do it or expose it.
I am aware that I need to use c++ to do this, but again I work only in blueprints because with c++
I'm a complete noob, I only know, how to create a new empty class
(I tried to make something reading
other discussions, but without success, I don't know for example where do I need to put UFUNCTION, or UPROPERTY, or basic things like these..)
I have 6 months of work on my project at the moment, everything works perfectly and now I'm stuck
with this variable...
I hope that someone can guide me in the right way, thank you guys!
I currently I have a problem that when I run my code, it stops at an exception at line 3467 in the xstring system file. Here is a few screenshots of it:
.
I figured it had to do something to do with loading the file or the file is corrupted. Something is wrong with how it parses. Here is the link to my Github page. I used the tmxlite parser to load the file, here is also a link to the tmxlite Github page. Thanks so much! Sorry if this is a dumb question. I really have not programmed C++ for long, and done it without proper training. This is the tmx file link
I am so sorry for those who looked at this. It turns out I needed to edit my tmx files to include the tsx files and add the tsx files to the project. I am so sorry if I made anyone look for the answer when all I had to do was just use the resources in front of me. Thanks to underscore_d for telling me make it into a MCVE, leading me to find the answer. All this time... Sorry anyone whose time I wasted.
I am new to programming, VERY new. I am reading a C++ book and doing beginner level problems on the side to get a practical grasp. But there seems to be a very specific issue here.
With my VERY limited understanding, i have tried to check and recheck things but for some reason, i can't get rid of this error in line 16.
This is no homework or assignment, i am learning C++ just to add to my resume.
Any and all help + tips will be highly appreciated.
Here is the image associated with the problem showing the code and error statement at the bottom
You are not supposed to add ">" before the ";".
Remove the ">" and recompile.
As I write code in Dev-C++ and scroll around to write another function and come back to the previous function I was working on Dev-C++ will have had entirely deleted my previous function! It also puts my code in all different places all over the screen randomly, messes up my code when I do edit --> undo and will give me error statements when I don't even have errors. I am running Windows 8. Can anybody help me get this straightened up please? It recently messed up a very large product I was working on with over 500 lines of code so I am rather upset about it. Thank you very much in advance for any help or any suggestions of other simple IDEs.
Good morning,
I´m facing a very strange problem on which I haven´t found a solution yet.
I hope someone could give me a clou.
I´m having a class compiled to a static lib.
I´m using this class in a simple console program to perform tests on that class.
The class worked like a charm until I added a new data member (std::string) to the class.
Even if I don´t use that string I get strange errors when the dtor of the class is called (access violation when the string got no value or bufferoverflow when the string got initialized).
Debugging the class showed that the new std::string is not present though a the old members are there.
I even tried to initialize that string in the ctor (strLPath.str("Appletree")) and output it before the dtor.
The output of the string shows something like "Ap tre ".
When I remove that new string everything is fine again.
Can somebody help me ?
Thx for any answers in advance.
Phil
thx to everybody who were spending time thinking about my problem.
Anyway - i solved it last night.
When I created the test program I was a lazy fool it seems.
Instead of including the original header, I copied it to the test project.
Don´t know what got into me that eve.
Sorry for wasting your time!
Regards,
Phil