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

Pyramid command error #134

Open
mathiascode opened this issue Aug 22, 2017 · 4 comments
Open

Pyramid command error #134

mathiascode opened this issue Aug 22, 2017 · 4 comments

Comments

@mathiascode
Copy link
Member

The //pyramid command doesn't always work. When running //pyramid stone 50 after a server startup, this happens:

[23:18:10] Player Wither_Skeleton is executing command "//pyramid stone 50" in world "flatlands" at world age 8261.
[23:18:10] Write: Requesting datatypes not present in the cBlockArea. Got only 0x00, requested 0x23
[23:18:10] Parameters on the stack
[23:18:10] LUA: Write: Requesting datatypes not present in the cBlockArea. Got only 0x00, requested 0x23
[23:18:10] Stack trace:
[23:18:10]   [C](-1): Write
[23:18:10]   Plugins/WorldEdit Plugin/Commands/Generation.lua(352): (no name)
[23:18:10] Stack trace end
[23:18:10] Error in <attached> calling function <callback>()
@mathiascode
Copy link
Member Author

The issue seems to be that ChunkStay isn't used in the pyramid command.

@Seadragon91
Copy link
Contributor

Seadragon91 commented Aug 23, 2017

It's cBlockArea again, all the Write-calls has to be corrected. In my plugin SkyBlock I had to add the 3 to the function Write to correct it.

@mathiascode
Copy link
Member Author

mathiascode commented Aug 23, 2017

The problem seems to be that no info is available (0x00), which after a quick change in the code to use ChunkStay seemed to fix the issue.

The recent changes in cBlockArea might have started causing it though, I don't remember.

@madmaxoft
Copy link
Member

Finally a case where the new stricter cBlockArea API has found an actual problem with the plugin code :D

@Seadragon91 Please don't use naked number. Ideally, use blockArea:GetDataTypes() as the param; or if you have specific needs, use the named constants cBlockArea.baTypes, cBlockArea.baMetas etc., added together using +.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants