Moving gameobjects menu

User Tag List

Results 1 to 13 of 13
  1. #1
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Moving gameobjects

    So basically, im trying to make gameobjects move along a path like deeprun tram or ships. I know the transport type needs to be 11 and the flags 40. But yeah it don't move. Any ideas? DBC editing? client patch?

    edit: I'm on burning crusade 2.4.3 trinitycore 1.


    edit2: What also would work is, changing the deeprun tram subway to go instead of

    Code:
    start ----> down ----> forward ----> up ----> end
    into

    Code:
    start ----> up ----> forward ----> down ----> end
    so instead of moving down in the tunnel i want it to go up. I'm pretty sure the path is somewhere in the dbc's, i just dont know where. Anyone?
    Last edited by diviee3; 09-15-2010 at 04:00 PM.
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

    Moving gameobjects
  2. Thanks i, schp (1 members gave Thanks to diviee3 for this useful post)
  3. #2
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump 140 views no replies... wtf mmowned. no one knows in what dbc the deeprun tram path is stored? :\
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

  4. #3
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at the DBC files that start with "Taxi".
    Ignorance is bliss.

  5. #4
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeh no shit i know that part but theres nothing like deeprun tram or subway in those that i can see. Hence my question. or if it is then its under some other name idk.
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

  6. #5
    Zymus's Avatar Active Member
    Reputation
    15
    Join Date
    Sep 2009
    Posts
    87
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll look into this for a quick second.

    EDIT: it works the same way that the zeppelins work. Are zeppelins working in private servers?

    EDIT: Map ID 369, look in the Maps.dbc, i think there might be a reference to another table in there that might have the right data.

    EDIT: In TaxiPathNodes.dbc, check out the second column for 965, 966, and 967. one of those may be the one you're looking for.(Note: TaxiPathNodes is the dbc that basically deals with each position in a path.)
    Last edited by Zymus; 09-16-2010 at 10:50 PM.

  7. #6
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    zeppelins are working yes. I know where the path of those is stored aswell. However TaxiPathNodes.dbc only counts to 807 for burning crusade... And strangely, there isn't even a map 369 in there at all. Nor in any of the taxi dbc's. :\
    Last edited by diviee3; 09-17-2010 at 04:05 PM.
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

  8. #7
    Zymus's Avatar Active Member
    Reputation
    15
    Join Date
    Sep 2009
    Posts
    87
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, there is in the 3.3.5 so i guess it wouldn't be that then since it's not in there in tbc.

  9. #8
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait a sec... The path could never be in the dbc's. atleast not in the taxi nodes. because when the subway cart gobject is spawned somewhere else, like in kalimdor, it moves along the same path as in the tunnel but free in air. THAT means, the path isn't made up by fixed xyz's coords relative to the map, but with xyz coords relative the gobject itself. Also, It moves in sync with any other subway cart of the same train, no matter its position.

    I'm starting to think this shit is fixed in the core itself, Same goes for the elevators in thunderbluff etc. Any ideas though?
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

  10. #9
    Zymus's Avatar Active Member
    Reputation
    15
    Join Date
    Sep 2009
    Posts
    87
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Umm, maybe just do like the zeppelins, or is the zeppelins in the dbc? If not you can just make the tram follow a certain path. I don't know how the current bases do it, but I would do something like this:

    Code:
    GameObject tram = new GameObject(tramId);
    Location[] path = new Location[] {
        tram.getLocation().transform(-5, 0, 0, 0), tram.getLocation.transform(-5, 0, 3, 0)//Decrease the trams position on the x axis by 5, then decrease it by 5 again, while increase the Z, or height by 3
    };
    PathGenerator.followPath(tram, path);//Basically says take the tram and follow the path

  11. #10
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    zeppelins path is in the dbc's

    but yeah im kinda new to c++... i was hoping all this would work without recompiling but i guess i cant avoid it no more :P

    I will look in to this at a later time. for now, thanks alot for the effort +rep
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

  12. #11
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, it's been a long time, but I finally managed to get the solution. In TBC (and probably in WOTLK aswell), the path nodes of those small transports like elevators and the deeprun tram are stored in the TransportAnimation.dbc. This means that if we add some new entries in there, we can create our own deeprun trams, which is what I originally aimed to achieve.

    Just writing it here in case someone is as confused as I was and stumbled on this old thread.
    WARNING: The above post may contain sarcasm and/or sophisticated satire. Any psychological damage sustained is purely your fault.

  13. Thanks i, schp (1 members gave Thanks to diviee3 for this useful post)
  14. #12
    i, schp's Avatar Member
    Reputation
    1
    Join Date
    Jan 2018
    Posts
    6
    Thanks G/R
    7/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After 7 years playing wow i wish to create my own unique server with new flight path's. You did help me with this topic. Thanks a lot.
    p.s. Russian community don't have any ideas for solve that question therefore i'm here now.

  15. #13
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    This guide explains how to do this quite well: [TUTORIAL] Custom transports, taxis (fly/wind paths)

    Text in case this link ever goes dead:

    [paragraph:1vwrp73r]Hello there little whelps, there have been quite a lot of requests for transports tutorial and guy who promised that he will write it didn't do so, so I decided I will write this tut for you on my own.[/paragraph:1vwrp73r]

    What are transports?

    [paragraph:1vwrp73r]Transports in WoW are in fact gameobjects which are being moved along a path specified in DBCs, which are quite easy to understand and edit, so this should not be anything difficult even for beginners. Players who stand on gameobject working as transport move together with it, until they leave it. It seems there are 20 blizzlike transports in blizzlike TC2 world database and all are ships and zeppelins, it works quite nice for water and air traveling. Sadly, this system doesn't work very well for ground traveling, I will explain why later. Transport system shares DBCs with taxi (fly/wind path/master) system, and is very similiar to it, with just a few differences.[/paragraph:1vwrp73r]

    What will you need?

    [paragraph:1vwrp73r]- MyDBCEditor (or other WORKING DBC editor, forget Taliis, please)
    - any editor for MySQL databases
    - TaxiNodes.dbc
    - TaxiPath.dbc
    - TaxiPathNode.dbc[/paragraph:1vwrp73r]

    TaxiNodes.dbc


    [paragraph:1vwrp73r]You can see example of my 2 custom TaxiNodes. These nodes are in fact just to specify where destination lays (docks for example), but they have nothing to do with actual paths which transports will follow. Make sure you enter correct map ID (its in hex here, 0x25 is 37 in dec, and thats ID of map I was using here), but X, Y and Z coords don't need to be really exact. Name is in fact just a note for you and last 2 columns specify entry of creature used as mount for taxi path, but have no effect for transports and thus I left them empty.[/paragraph:1vwrp73r]

    TaxiPath.dbc


    [paragraph:1vwrp73r]This is really fast and simple step, TaxiPath is a connection between two TaxiNodes. Just create a new row with entries of 2 nodes you want to have connected with transport, last column specifies prize for taxi (and we are doing transports, that prize would have no effect even if there was another value than 0). While you can connect only 2 TaxiNodes with one TaxiPath, you may make your transport stop on whatever point of path you wish, it can enter 50 docks and stop there if you want, so both TaxiNodes and TaxiPath aren't important at all - they are there in fact just to make server and client happy and you a little bit more busy.[/paragraph:1vwrp73r]

    TaxiPathNode.dbc


    [paragraph:1vwrp73r]This will take most of your time. You need to specify path which will be followed by transport. Enter (correct) ID of TaxiPath (which connects 2 of your TaxiNodes) and coordinates of each waypoint into #5, #6 and #7 column (you can get your character's coords by command .gps, path on screen belongs to ship, so Z coord was always 0 for me). Don't forget to assign unique point ID in column #3 for every waypoint of your path, otherwise either your client or server may crash. You can notice that I left all other columns 0, they are rarely used and I am not sure what they are for. There are only 2 exceptions, you can notice those 2 rows with values 2 and 10 in #8 and #9 column. In that case, transport stops at that waypoint and waits there for 10 seconds. You can have more than 2 of such points, as I have already mentioned earlier, so your ship/zeppelin can visit as many docks as you wish and wait there as long as you want for passangers.

    You can try to experiment more with last 5 columns in this DBC, hopefully you will find out how at least some of them work.[/paragraph:1vwrp73r]

    A few tips and notes for creating path

    [paragraph:1vwrp73r]- Every TaxiPath needs to be made of at least 3 waypoints, otherwise you get crash.
    - Path itself is made of curves which are being calculated from waypoint positions and distances between them. Its good to keep distances between waypoints even, otherwise you can get unpleasant buggy results. Also don't make too sudden and sharp turns, otherwise your transport can either go very far from waypoints while turning (and even pass through some objects around, and thats obviously quite unpleasant) or bug a little bit and jump/teleport suddenly.

    - Mark waypoint you have already entered into DBC with some sort of gameobject or NPC while spawning a path. I use wisp NPC Waypoint (entry 1) for this, because it can fly and is invisible for players. You can delete your marks when you are finished.
    - Make damn sure you don't mistype anything while entering coord values into this DBC. One mistype can send your ship across world and you will be there standing like fool, waiting in docks for ship which is basically never coming, because it is following dozens of kilometres long path.
    - To make transport follow exact path is very, very difficult, because, like I said, exact path is calculated and calculations are just based on coords of your waypoints. While transport passes waypoints themselves directly, you can't modify its path very easily between waypoints at all. Avoid narrow passages if you can, or create such passages based on already created and finished transport path, not otherwise. For this reason, ground transports just don't work well, they tend to fly above or sink under terrain all the time between waypoints.
    - While being in transport, players ignore all collision with world around. You can surround for example your island with impassible flags or with some models which can't be passed by players, but they will always pass them in transports. So you can make players to just have to use transports quite easily.
    - If you wish to make transport teleport players from map A to map B (and thats what basically are mostly transports for in blizzlike setting), just make transport move to some waypoint at map A and then enter a new waypoint with mapID of map B into DBC. Thats whole magic around.
    - Transports tend to teleport between last and first waypoints of their path. Don't ask me why, I never found out. It seems that transports in fact don't move in circles, they are always respawned after finishing their path. Players are, luckily, not dropped into sea when this happens, but just appear on new transport. Its still a little bit unpleasant effect, especially if you want to have transport travelling around one map without any teleports, but I have never found real solution for this. Just make those last and first waypoints close to each other. Blizzlike transports don't seem to have such problems, I am not sure what is going wrong here.[/paragraph:1vwrp73r]

    world.gameobject_template

    [paragraph:1vwrp73r]You will need to create your gameobject which will be used by transport. Fields which are not noted here don't seem to be important/working and should be left with base values (0/NULL), but again, you are free to experiment.
    - Entry, do I have to explain anything?
    - Type needs to be 15 (11 is for elevators, which work with entirely different than transport system).
    - DisplayID is up to you, which means that transports don't have to be huge WMO ships, you can use even a small M2 boat doodad, if you want to. Just make sure your model has collisions.
    - Name, again, self-explanatory.
    - Flags, most transports have flags=40, some have 0, but I would not use 0.
    - Size can be used other than 1 for M2s.
    - data0 is ID of your TaxiPath
    - data1 should be speed but it appears to not work as one would expect. 30 is most common and fine-working value. You can ofc try both lower or higher and see how results will fit to you.
    - data2 should be some kind of acceleration modifier...? All blizzlike transports with speed 30 have 1 accelRate.
    - data5, I don't know what this field is for.
    - data6, specifies ID of group of NPCs spawned onboard and travelling with transport, however, I don't know to what table this field reffers to.
    - data7, a few transports have value 3481, again, I have no idea what this is for.
    - data8, a few transports have value 1 and again, I have no idea what this is for.
    - AIName, ScriptName, you can, obviously, assign any scripts you wish to this gameobject. I have never tryed to assign some, for instance, SmartAI script to transport, but I see no reason why it should not work. One blizzlike transport has SAI scripts.
    - VerifiedBuild, you should always everywhere use value 12340 (3.3.5a revision number) to avoid any possible problems.[/paragraph:1vwrp73r]

    world.transports

    [paragraph:1vwrp73r]And here we go, the last thing to do is to place our transport here. Make sure you have placed your edited DBCs both into server's data folder and into your client's custom MPQ patch, create a new row in this table with new, unique GUID, enter entry of your transport gameobject, name is just for description. Older TC2 revisions have also period field, which appears to specify how long should core wait to respawn transport (put it on start of path), but it was removed and system seems to obtain that value on its own, automatically.

    The most easy way to disable transport is just deleting it from this DB table, you don't need to delete its data from DBCs. Your transport should be there, waiting just for you, but it usually takes a few (sometimes dozens) of attempts to make your path smooth, not-running into any terrain or models and clean it of teleport bugs made by too sharp curves or by too big differences of distances between waypoints. Especially making transport really dock properly with proper rotation and position can be pretty terrible task to do.[/paragraph:1vwrp73r]



    EDIT: About taxis, just to make this complete:
    Quote from: "Amaroth"
    [paragraph:1vwrp73r]Someone asked me about taxi systems... They are basically the same. You create TaxiNodes (btw again, if memory serves me well, nodes themselves aren't part of paths of taxis), connect them with TaxiPaths (in this case you might also want to specify prize for TaxiPath in copper), spawn TaxiPath which will, in this case, be not a circle, but straight path from point A to point B. And you are, basically, done.

    Taxi pros:
    + you can make player pay for travelling
    + you can link taxis to SmartAI scripts (there is action to send player somewhere by taxi)
    + you don't have to worry so much about boat fitting and sailing around docks without colliding with them, you just need to land on floor and there you go

    Taxi cons:
    - player on taxi has no collisions, so hello, boat which has just passed across my face
    - unlike transport, taxi always connects only 2 points, creating 1 path with 3 docks means creating 2 or 3 TaxiPaths
    - players can't travel together in taxi
    - more players travelling together mean more taxis... imagine those 20 boats in one, overlapping group
    - a map where you select to which TaxiNode you want to be taken never worked for me on maps where no fly masters originaly are, I never found solution, possibly core/LUA issue, I found a way around, you can simply make gossip menu for every fly master where gossip menu options will send you via taxi to wished point, buuut... its not ideal


    In general, I found myself still preferring taxi system over transport system, even while taxis have quite a lot of cons. However, taxi system just works better for me while I want to make players pay for travelling and while I want to be able to easily disable some paths from time to time. I also love possibility to assign taxi to SAI script. Being able to have conversation with NPC, during which you will be informed where will you be taken, how long it will take, what are hazards and so on? Sign me in, for RP servers definitely great possibilities. Taxis are also great as part of quests and Blizzard uses them in such manner very often. Its cool and in fact quite simple to make.[/paragraph:1vwrp73r]

  16. Thanks Eryx, i, schp (2 members gave Thanks to stoneharry for this useful post)

Similar Threads

  1. Nogg It - Move gameobjects for longe distances?
    By Amicitus in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 07-24-2008, 07:48 AM
  2. level 2 priest water moves
    By Tinytimy in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 12-04-2006, 12:46 PM
  3. HOW TO MOVE FILES INTO A MPQ at the speed of light
    By bloodofwar in forum World of Warcraft Model Editing
    Replies: 15
    Last Post: 11-29-2006, 12:46 PM
  4. Thought id move this here Crash A Computer!!!
    By codycondame in forum World of Warcraft General
    Replies: 6
    Last Post: 10-11-2006, 06:03 PM
  5. MMOwned's Server Move + Forum Change
    By Matt in forum OC News
    Replies: 0
    Last Post: 03-25-2006, 04:52 AM
All times are GMT -5. The time now is 12:32 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search