Dwight
Member
|
Teleportation
Dear reader,
I looked at the teleportation tutorial (ofcource), and I wanted to implement that teleportation to the MMO.
Im getting a "Just-in-Time" Debug "error", and I am forced to close the game. This is when I add
to the Player.h
Now my question: why? And what can I do to fix this small thing (since the source compiles just sweet.)
Thanks in advance! I know Im bugging you, and Im sorry for that
Edit: it was ctrl_pos, and not ctrl.pos. I know, an idiotic type that can kill someone. Though I did type it correctly in the source.
SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
(This post was last modified: 02-16-2011 09:50 PM by Dwight.)
|
|
02-15-2011 05:06 PM |
|
Dynad
Member
|
RE: Teleportation
Well are you sure that the ctrl.pos is not NULL before you're using it?
There is always evil somewhere, you just have to look for it properly.
|
|
02-15-2011 05:14 PM |
|
Dwight
Member
|
RE: Teleportation
When I add it, I can still go into first person view and control the character.
That was the only difference with the actual code from the Teleportation tutorial. Finding one little mistake is a pain in the butt, even because VS doesn't show any errors where a problem might arise.
SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
|
|
02-16-2011 05:43 PM |
|
Esenthel
Administrator
|
RE: Teleportation
Vec ctrl.pos;
this is invalid code, you can't declare members with . in name
please study c++ more
|
|
02-16-2011 06:22 PM |
|
Dynad
Member
|
RE: Teleportation
heh if thats the case im gonna shoot myself :/
funny tho that it compiles normally
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 02-16-2011 07:09 PM by Dynad.)
|
|
02-16-2011 06:59 PM |
|
Dwight
Member
|
RE: Teleportation
(02-16-2011 06:22 PM)Esenthel Wrote: Vec ctrl.pos;
this is invalid code, you can't declare members with . in name
please study c++ more
sorry for the typo, but I actually typed:
Sorry! Daaaaamn this was not one of my smartest moves hehe
However, the rest is still the same.
SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
|
|
02-16-2011 09:34 PM |
|
Zervox
Member
|
RE: Teleportation
(02-16-2011 09:34 PM)Dwight Wrote: sorry for the typo, but I actually typed:
Sorry! Daaaaamn this was not one of my smartest moves hehe
However, the rest is still the same.
No, you actually wrote
but your intention was to write
Have you tried placing breakpoints in VS?
(This post was last modified: 02-16-2011 10:50 PM by Zervox.)
|
|
02-16-2011 10:50 PM |
|