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

Make the tilesheets deletable in the interface. #19

Open
xbony2 opened this issue Feb 10, 2016 · 10 comments
Open

Make the tilesheets deletable in the interface. #19

xbony2 opened this issue Feb 10, 2016 · 10 comments
Assignees

Comments

@xbony2
Copy link
Member

xbony2 commented Feb 10, 2016

The SheetManager doesn't allow the sheet to be deleted. Trying to click the checkmarks yields to nothing. The only way to delete it is using the API.

I literally had to use irb to delete it >.> and since the extension api isn't part of the butt gem yet I had to type out butt.post({action: "deletesheet", tsmod: "TDM", tssummary: "", tstoken: butt.get_token("edit")}) which was kind of annoying.

Edit: tsmod should be "tsmods" right now.

@xbony2
Copy link
Member Author

xbony2 commented Feb 10, 2016

And shit, it doesn't look like that really worked either. Trying to re-create my tilesheets reveals that it so appears the tile data is still there (it fails).

@elifoster
Copy link
Member

Hm. Perhaps there's something outdated in SheetManager as well as OreDictEntryManager, as the issue seems to be the same in both.

Also you are a noob for using irb. It's all about pry.

@elifoster elifoster self-assigned this Feb 11, 2016
@xbony2
Copy link
Member Author

xbony2 commented Feb 11, 2016

Will try pry out sometime I guess.

@xbony2
Copy link
Member Author

xbony2 commented Feb 11, 2016

Hmm.

irb(main):007:0> butt.post({action: "deletesheet", tsmod: "TDM", tssummary: "", tstoken: butt.get_token("edit")})
=> {"edit"=>{"deletesheet"=>[]}}

And it's in the tilesheet log...

‎ESAEBSAD (Talk | contribs) deleted the [INVALID] tilesheet. ‎

([INVALID] is a bugged-out name for a tilesheet, but we'll go with it)

But going on Special:TileList shows something disappointing...

The tilesheet is indeed deleted, but none of the tiles in it are. That's a bit disappointing, huh? The "Registered sizes" thing seemed to be bugged out too.

@xbony2
Copy link
Member Author

xbony2 commented Feb 11, 2016

The tiles on ESAETEST (the 1x1 test tilesheet) were deleted when running the same command. Yuck.

Maybe I'll try recreating TDM and deleting it again.

Test:

  • Re-creation: mod name "TDM", size "16, 32", data "0 0 Test" (overwrite not checked)
SUCCESS Adding new tilesheet...
FAIL Adding Test from TDM on [Tilesheet TDM %.png] (0,0) to entry list...

There's a new tilesheet, so that works.

And now running...

butt.post({action: "deletesheet", tsmod: "TDM", tssummary: "", tstoken: butt.get_token("edit")})

does the same thing; deletes the tilesheet but not the tiles. Yeh.

@elifoster
Copy link
Member

That's not a bug as far as I'm aware. Just bulk delete all the tiles then delete the sheet.

@xbony2
Copy link
Member Author

xbony2 commented Feb 11, 2016

But why would someone want to delete the sheet without deleting the tiles? >.> that's stupid.

@retep998
Copy link
Member

Deleting a sheet requires deleting every individual tile regardless, and for large sheets doing all that as a single operation will time out. Therefore if you add support to a bot to delete a sheet you will need to add support for having it delete the individual tiles in batches anyway, thus negating the need for deletesheet to delete tiles as well.

@xbony2
Copy link
Member Author

xbony2 commented Feb 11, 2016

That's what I was doing but I couldn't get it to work >.> but you can make it delete the tiles in batches on the wiki too.

@elifoster elifoster added the bug label Feb 11, 2016
@elifoster
Copy link
Member

I think this issue (along with the one in the OreDictEntryManager) might be caused by the entries being updated after they get deleted, because I have no problem in #28 doing it what seems to be properly.

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

No branches or pull requests

3 participants