GeneralVimes / AS32JS

Automatically converting Action Script 3 classes to Javascript
MIT License
2 stars 0 forks source link

Would love to try your tool #1

Open Devin-Licastro opened 2 months ago

Devin-Licastro commented 2 months ago

Hey there, would love to give your tool a shot and see what comes out! Looks very interesting.

I've tried first putting my src directory into a new source_as3 folder like this: image

Then when running python class_processor.py I get:

image

Any idea what I should be doing differently?

I think my use case may be a bit too tricky for auto conversion, (it uses local sqlite database and lots of api calls and stuff) but it would be great to see how far I can get with it. It would be amazing to have an html 5 version of my app even if it took some work.

Thanks for any tips

GeneralVimes commented 2 months ago

Thank you for trying! Are there only .as3 files in the source_as3 folder?

GeneralVimes commented 2 months ago

Also, could you please send me to general@cardswars.com the file ExtendedTimer.as?

Devin-Licastro commented 11 hours ago

Hey! Really sorry I didn't get back to you on this, I had notifications off and then got distracted by other things and forgot to follow up.

So I'm still eager to try, if you're happy to help :)

I've removed the ColorFilter and ExtendedTimer classes as it turns out my project wasn't using them anymore. The next file it tries to process is called Helper.as it gets stuck there. That file is full of a bunch of random functions for processing dates and images and stuff.

image

If I temporarily remove that file then it makes it much further, but still seems to be getting a lot of errors: image image

Is there some process I can follow to try to help it find parents when it is struggling?

I've attached both the Helper and AnswerData_WA files here both_files.zip if you'd like to take a look.

Thanks,

GeneralVimes commented 10 hours ago

Oh, cool! Thank you, I'll take a look at these files and will see, what should I add into my python script. In the meanwhile I also improved the conversion algorithm from my own cases, going to update the tool soon