And why not on windows phone ?
Opened this issue · 5 comments
Hello, so first thank you you're awesome :-)
Next This scripting language is the only one that I manage to make work on WP8 platform (ironpython : do not support, ironruby : do not work, standard LUA : too many things to change, ...) the only thing I needed to change was the reference to
Console.OpenStandardInput () //in LUAParser.cs
/*to*/ Console.In
My question is can you make a nuget package for this platform by default, it would be great for every wp7/wp8 developer :-)
I don't personally develop on Windows, but if someone were to contribute nuget packages for Windows Phone that would be great :)
I've modified your code, and it works at Windows Phone 8 SDK in C#. I didn't add dll's, but added source files and modyfied them a little.
First, I've added function(s) to save .lua files on IsolatedStorage. Then I modified the LuaParser constructor, that he can now read files from IsoStore. Next, I modified 'Console.Write' and 'Console.WriteLine' to 'System.Diagnostics.Debug.WriteLine'. The lines with 'Write', I've changed also to writeline, but with buffer. The 'IfThenElse' I've changed to 'Condition'. That is what I remember now.
But, I have a question: Will you implement associative table create by {} like:
local tab = {n = "z", f = 123}
It doesn't work now. Works only:
tab.n = "z"
tab.f = 123
or
tab["n"] = "z"
tab["f"] = 123
Do you mind sharing your modifications ?
Sure,
https://github.com/michalmicpaw/AluminiumLua-for-Windows-Phone-8-SDK
I've added one extra function to change background color. This Lib is supported for XNA 4.0 and C# for WP8. You have to add main.lua file to your project (not to content folder, but to folder, where are .cs files). Also you have to add src folder there. The files .lua have to have modified properties 'Embded resource' and 'Copy always'
Thanks a lot !