<relativeloc:> not working correctly. #87


  • New
  • Defect
Open
Assigned to _ForgeUser8773666
  • ancienttom created this issue Aug 29, 2013

    What steps will reproduce the problem?
        Use <relativeloc:-61,23,-764:7,-1,7> in a script.

    What is the expected output?
        Documentation says that <-54,22,-757> should be the result.

    What do you see instead?
         What is actually produced by <relativeloc:> is <-54.0,22.0,-757.0 0.0 0.0>

    Please provide any additional information below.
    <relativeloc:> is trying to do decimal numbers in an intager world and adding 2 extra positional coordinate numbers to it without comas as if it were going to be used for a Warp or a TP. I think there needs to be created, a seperate (<playerloc> <relativeloc:>) and (<playerpos><relativepos:>) sets of placeholders. One of these sets would deal with 3 number map position coordinates. The other set would be for dealing with the 5 number coordinates required for warps and such. I think that what we have here is an attempt to make the relative location placeholder a "one size fits all" thing and wasn't quite finished.

  • ancienttom added the tags New Defect Aug 29, 2013
  • _ForgeUser8773666 posted a comment Aug 29, 2013

    Not a bug. it is x,y,z and orientation which I used by the plugin in many other ways.

  • ancienttom posted a comment Aug 30, 2013

    I ran a test on these 2 placeholders and they return 2 different things. One returns coordinates and the other is full placement and orientation. They shouldn't be mixed and be expected to work in all applications. There are many times that map coordinates are needed and feeding the extra orientation parameters will cause the application to fail. The same holds true when using an application that requires full positional orientation and you only feed it the coordinates. This is why I suggested, rather than crossing the two needs like this, separate placeholders for each need would be vary much appreciated. If there was even a way to trunkate the string, that would be helpfull.

    While discussing coordinates here, there is another situation about saving coordinates I was going to put in the forum. All positions are stored as integer. A saved position being used to teleport to or to spawn mobs in, puts the entity at the beginning corner of the block and not in the middle of it. With integer coordinates it takes a spawn point of a four block square in order to keep the spawn outside adjacent walls or blocks. It would be nice when dealing with coordinates, if we could save and use them resolved to at least one decimal place so that entities can be placed in the middle of a block space and not the edge.


    Edited Aug 30, 2013
  • _ForgeUser9377008 posted a comment Sep 16, 2013

    the 2 extra positional coordinates are called Yaw, and Pitch.
    relative location is the location you would be also facing, not just x,y,z, but x,y,z,y,p.


To post a comment, please login or register a new account.