About Store Forum Documentation Contact



Post Reply 
World Teleport Location
Author Message
dragonfly3 Offline
Member

Post: #16
RE: World Teleport Location
My lead programmer has been programming for 10+ years and is very experienced in C++ (so please everyone, don't say go learn C++...this seems to be the common answer to problems people post) but we just can't seem to get this working. We have spent weeks trying and testing different things. He understands much more than me so here is his response:

"Teleport player to different pos in the world? Did not work in the SaveGame context. Player and Players are not defined. I figured we could use World:GetObj to somehow retrieve the player, but not sure how.

save/load during game -- works. Tested. Position saved and restored fine. We had to move the test out of SaveGame --in side SaveGame we got into an infinite load loop. Moved it to GameUpdate in Game.cpp instead. Worked fine.

Also wanted to try updating player position immediately after Game::World.objInject in SaveGame (code directly from the tutorial): couldn't get a working reference to the player object. It seems the engine loads things "behind the scenes". Not sure best way to access it right there.

Summary: Not sure why the pos parameter seems to not be working. Willing to try changing location immediately after injection, not sure how."

We are stuck and the tutorials just aren't showing us what we need in order to make this work. We aren't asking for anyone to do the work for us, we are genuinely stumped so some more detailed help would be greatly appreciated so we can move forward with other development tasks.

Thankssmile
12-09-2011 12:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #17
RE: World Teleport Location
(12-09-2011 12:27 AM)dragonfly3 Wrote:  Summary: Not sure why the pos parameter seems to not be working. Willing to try changing location immediately after injection, not sure how."

I'm surprised he hasn't already tried this. However, if he doesn't know how to change the position of an object in the game world, then you got bigger problems than not teleporting. obj.pos( newPos )???

Anyway, why doesn't your programmer come and talk directly here on the forums rather than going through you. Things might get resolved quicker.
12-09-2011 06:51 AM
Find all posts by this user Quote this message in a reply
dragonfly3 Offline
Member

Post: #18
RE: World Teleport Location
(12-09-2011 06:51 AM)fatcoder Wrote:  
(12-09-2011 12:27 AM)dragonfly3 Wrote:  Summary: Not sure why the pos parameter seems to not be working. Willing to try changing location immediately after injection, not sure how."

I'm surprised he hasn't already tried this. However, if he doesn't know how to change the position of an object in the game world, then you got bigger problems than not teleporting. obj.pos( newPos )???

Anyway, why doesn't your programmer come and talk directly here on the forums rather than going through you. Things might get resolved quicker.

We decided that I would talk because the community is familiar with me and they used to be more helpful to familiar community members. New members always catch attitude and are never helped. They get told, "go learn C++" and "go read the tutorials." We wanted to skip the whole new person post-and-get slammed series of posts that typically happens and have myself post instead. When I first joined this community over a year ago I myself got slammed but as I continued to post I was treated better, until recently. Now it seems that anyone who posts who isn't part of the super tight knit community who posts on a daily basis gets thrown attitude and receives little or no help. To be honest, this isn't a good selling point for the engine. A strong, friendly community is one of the reasons I chose EE-I figured if we ever ran into any problems that the community was always there to help happily. This has turned out not to be the case.

We aren't asking people to write our game for us. We aren't brand new with EE and jumping ahead. We aren't 13 year old wanna bes who just have an idea. We aren't incompetent. We simply have a problem in which no documentation exists and we need help finding a solution. There are a few long-time regular members on here who typically receive this with no issue at all. Somehow that doesn't seem to be happening for us.

Our teleport works. The position that the player is teleporting to does not. We just want help in getting the position (in our case, a waypoint...but we'd settle for just a specified position at this point) to work. The tutorial only goes so far in that it works for particle teleport, not an object. We copied the tutorial inasmuch as we could. Again, it does teleport the player to the other game world. It places them at location 0,0,0 no matter what we do to the code. We need it to place them at a specified location.

Why is it so hard to say, "hey, ok, here is a couple of suggestions..." instead of posting very vague comments as if to hold on to some sort of secret that must not be leaked out, copping attitude, and posting replies assuming we haven't looked at the tutorials or worked with the engine before? It's not like we were vague in our question. We posted our code for viewing. We explained the problem clearly. No responses would've been better than these, especially if no one knows the answer. Even a, "Sorry, not sure how to solve this issue" would've been a pleasant enough answer.

If my programmer had posted this thread it would have taken even longer than this because he would have had to fight for his reputation & establish himself as a worthy and intelligent adult who has been working with the engine for more than just 2 days (people tend to assume that when you post for help it means you are brand new to the EE) before being taken seriously.

My programmer does know about obj.pos but that does not apply in this circumstance. In order to try to get a straight response and hopefully a little help, my programmer will post a reply himself.
12-11-2011 01:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #19
RE: World Teleport Location
Firstly, a couple of comments in regards to the community here. I agree that a lot of new people get slammed (for various reasons) and I remember seeing you get some too when you joined. We both know why you took heat, but it doesn't justify it and I for sure don't condone it. I find that the more you help others on here, the more they help you. It usually pays to spend some time on here now and then to try and answer other people's questions if you can.

OK, now on to your teleporting issue. I think you're not getting the help your looking for due to the nature of the problem. I would highly recommend putting together a test case using the bare amount of code in one of the tutorials to reproduce the issue. If you take a look at some of my recent threads with problems I've had you'll see that's what I've done and I've received a response pretty quick from someone that can point me in the right direction.

So what I suggest you do, is grab the teleporting tutorial and then modify it to work the way you want, i.e. teleporting to an object position rather than to a particle position. Use the least amount of code possible and change the original tutorial code as little as possible. Then you can include the code in your next post. Perhaps as a zip if you need to include a world or something.

I know it is more work to do this, but it serves two purposes. Firstly, some times you stumble across the very solution to the problem. Secondly it allows us to look at the complete code and run it ourselves. By using an existing tutorial as the base and modifying it as little as possible, it makes it very easy for us to scan over the code and know what's what. Esenthel is usually pretty good at advising you if you present the problem to him like this (not that I'm claiming he can help you with this particular problem).

Finally, I apologies for coming across rude in my previous post. smile
12-11-2011 06:51 AM
Find all posts by this user Quote this message in a reply
dragonfly3 Offline
Member

Post: #20
RE: World Teleport Location
Thank you fatcodersmile That was a very thoughtful and respectful post.

We tried to duplicate the problem with the tutorial but were unable to do so. It's difficult to duplicate things in the tutorials because they are simple little tutorials and don't have all of the extra "game" stuff that we have. The tutorial kept working perfectly.

When it comes to developing an actual game the tutorials are extremely limited. They give a very basic start but because they are not integrated into an actual game and because they have very simple and limited functionality it is impossible to "just read the tutorials" and be successful. I wish more people on this forum would understand that when attempting to help others.

It turns out that the problem was a simple issue of ordering. It was in our Game.cpp (which I did not post our code for on this thread, so maybe that would've been more helpful to do). The problem was where we placed DetectTeleport(). After days of tinkering we moved it (while tinkering) and now the player does teleport to the proper location. We also have a lot of accompanying bugs, though but hopefully we can work them out. The largest hurdle was to actually get the player to teleport to the proper world and location.

Now we have the bugs to work out: Camera doesn't teleport to the proper location but you can move it. Once it gets close to the player it snaps into place. The camera movement controls don't work so they didn't "teleport" with the player. We have no keyboard controls so they seemed to have not "teleported" with the player. Player inventory seems to not be teleporting with the player-The window opens but no items "teleport." We also have some weird delay in response to camera zoom and other commands such as the esc key to pop up the menu and bringing up inventory.



I don't think it's very fair to not help people just because they are not active every single day on the forum and because they do not help on every other thread asking for help. I have posted a few posts in an attempt to help others. But it should not be a requirement to receive help.

I also don't think it's very fair to ostracize someone just because they are making an "MMO." I'm not making WoW and I don't want to make WoW. Just because people don't believe that my team can make an MMO doesn't mean we shouldn't be taken seriously. I purchased my license, we are working hard to develop our project, I am going to upgrade my license, and we are enjoying what we are doing. Who cares if it never gets off the ground? We are customers, we are hobbyists, we are gamers, and we are working on it now. That's all that should matter. Just because the typical belief is that no one can make an MMO (we call it an MORPG, subracting the "massive" part) doesn't mean we should be treated like our questions don't matter. These forums are supposed to be informative. Esenthel always asks for people to post on the forum instead of sending him a PM so that others can see the answers and solutions in case they have the same problem. No one can tell me that people will never need to know how to teleport between worlds using objects and waypoints. So why not help answer the question instead of deciding not to help the person because you don't believe in what they are doing? I have not been very happy with the EE forum community lately, which is another reason why I'm not as active on it as I used to be (the other reason is that I'm spending my time developing my game and managing my team of 9 located around the world).

For the record-Hedron Online has been in development for almost 2 years now and is coming along very well (aside from having to completely rebuild the server architecture). Trust me in that you will see the first demo release of it by the end of 2012 and the fully implemented game by the end of 2013.

I'll step down off my soapbox now.
12-13-2011 03:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kasinova Offline
Member

Post: #21
RE: World Teleport Location
For anyone still having trouble with this the injection, in my world, there is one vector in each world for the player to spawn at. when calling the saveGame, it saves the old world and loads the new one, but the vector it would use to inject the player would come from the previous world.

my work-around to that was to bool it saying true for the frame of transition, then the next frame has the new world coords and i inject then.

and sorry for the two year time difference lol but I'm sure the problem still exists
07-23-2013 09:58 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #22
RE: World Teleport Location
It isn't a problem it is just how you handle Game::World.update
07-26-2013 07:27 AM
Find all posts by this user Quote this message in a reply
Post Reply