Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add //loadalign: load with player orientation and various helper functions #45

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dgm3333
Copy link

@dgm3333 dgm3333 commented May 28, 2014

** worldedit_commands/init.lua **
add /loadalign which replaces /load (with player orientation, optional offset, better error checking, and unknown mod list),
/loadaligntest which replaces /allocate (same improvements)
/loadalignpos and /loadalignpostest do same but use pos1 for location (but orientation from player)
optional /load and /allocate replacement commands are commented out currently
/correctorigin - move pos1 to the origin of the region
/loadalignoffset - set/clear the offset for above commands

** worldedit/serialization.lua **
deserializeAlign can replace both .deserialize and .allocate
optional .deserialize and .allocate replacement functions are commented out currently
.screwdriver_handler - helper fn to rotate nodes after being added by .deserializeAlign (hopefully not required)
.getNewRotation - helper fn to correctly set node rotation before being added by .deserializeAlign
.knownMod - check if mod is enabled for current world
.minmax - move pos1 to origin

/correctorigin = move pos1 and pos2 to correct origin (ie pos1 located with minimum x,y,z, pos2 with maximum x,y,z)
/loadalignoffset = sets or clears an offset to the player (or pos1) location for /loadalign
/loadalign = load schem file at player location, aligned to forward direction
/loadaligntest = test run of /loadalign (ie mark location, but don't place any nodes)
/loadalignpos = load schem file at pos1 location, aligned to forward direction
/loadalignpostest =  = test run of /loadalignpos (ie mark location, but don't place any nodes)
@sfan5 sfan5 changed the title add /loadalign load with player orientation and various helper functions add //loadalign: load with player orientation and various helper functions Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants