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

Untwee doesn't work for visually authored games #14

Open
alex-calderwood opened this issue Oct 20, 2021 · 1 comment
Open

Untwee doesn't work for visually authored games #14

alex-calderwood opened this issue Oct 20, 2021 · 1 comment

Comments

@alex-calderwood
Copy link

alex-calderwood commented Oct 20, 2021

untwee doesn't work on any of the files I've experimented with on mac due to these lines:

divs_re = re.compile(
			r'<div id="storeArea"(.*)</html>',
			re.DOTALL
		)
divs = divs_re.search(source)

divs is always empty list, as the regex does not match anything.

Specifically, here is an example that cannot be 'untweed': https://www.brainygamer.com/files/lessons-from-the-lake_tyler_hampton.html

@alex-calderwood
Copy link
Author

The issue appeared to be that some games authored with Twine 2 could not be decompiled into Twee because there were additional attributes of the #storeArea div. I authored a fix that shouldn't break any working untwee commands but fixes this use case.

@alex-calderwood alex-calderwood changed the title Untwee Doesn't work (on mac?) Untwee Doesn't work for visually authored games Oct 28, 2021
@alex-calderwood alex-calderwood changed the title Untwee Doesn't work for visually authored games Untwee doesn't work for visually authored games Oct 28, 2021
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

1 participant