About Store Forum Documentation Contact



Post Reply 
Teleportation
Author Message
Dwight Offline
Member

Post: #1
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
Code:
Vec ctrl_pos;
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 smile

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
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
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
Visit this user's website Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
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
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: Teleportation
heh if thats the case im gonna shoot myself :/

funny tho that it compiles normally pfft

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
Visit this user's website Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #6
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:

Code:
Vec ctrl_pos;

Sorry! Daaaaamn this was not one of my smartest moves hehe smile

However, the rest is still the same.

SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
02-16-2011 09:34 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #7
RE: Teleportation
(02-16-2011 09:34 PM)Dwight Wrote:  sorry for the typo, but I actually typed:

Code:
Vec ctrl_pos;

Sorry! Daaaaamn this was not one of my smartest moves hehe smile

However, the rest is still the same.

No, you actually wrote
Code:
Vec ctrl.pos;
but your intention was to write
Code:
Vec ctrl_pos;
pfft

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
Find all posts by this user Quote this message in a reply
Post Reply