-
Notifications
You must be signed in to change notification settings - Fork 432
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
Hscript console, closes #1156 #1637
Conversation
Compiles and works, but I cut/commented out a lot of stuff.
Need to test legacy vs next and flash vs cpp.
neato |
Getting there. Most functions re-implemented. Need an adult soon to check my work. Still need to test cpp.
Everything works but maybe not like it used to.
I'm mainly done now, but yeah it's a breaking change. Since hscript deals with objects directly instead of strings, I removed all the parsing code and string parameters from functions. ie: |
Pausing and TAB don't work on neko, but they probably never did. Didn't test html5 or -Dnext. |
The travis script and unit tests seem ok on my computer, and the build does install hscript. Why can't it find hscript.Expr? |
Had to add hscript, hopefully it works now
As is, every flixel project that doesn't include hscript in the xml manually won't compile - would be better to have that in the include.xml. In theory it would be nice to only include it if it's installed (and only have the console be usable in that case), but I'm not sure if there's a way to do that with the project xml format... |
I added it to include.xml, but would it go somewhere besides the |
|
Ugh ok. I see what you mean now about always including it. I guess it would always be included for |
The unit tests look fine, but it's still breaking coverage on the |
The unit tests use a .hxml file for flash. https://github.com/HaxeFlixel/flixel/blob/dev/tests/unit/test.hxml |
I'm never adding an external lib to flixel again. |
Oh hey, dev cpp is working again. Haxe recently fixed the multiple inheritance issue which was preventing flixel-ui from compiling. |
This change looks great! Has anyone been able to test this functionality? |
Me lol. Do you need a rundown of the changes or are you making sure it works for other people? |
I was mostly wondering if there was someone in the community that opposes this change or has something to say before I merge it in. @HaxeFlixel/owners any opposition or can I merge this? |
i haven't checked this pull request, but i don't mind replacing current functionality with hscript as far as it works |
typedef PathToVariable = { | ||
object:Dynamic, | ||
variableName:String | ||
private class Interp extends hscript.Interp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FlxInterp? lol
I'm not 100% sure if the Watch tab still works all the time, but the I'm also not sure why the |
The ability to run arbitrary Haxe code from the console is pretty amazing. :) Also:
👍 Not too mention, seems like it's not as crashy on neko anymore. |
In the original issue, you said that it'd be cool if we could |
It's not possible unless we remove the |
We could try using |
The console itself works fine now, but now I need some confirmation that these changes are ok. There are some breaking changes now.