Getting HTML5 going

Colin Holgate colinholgate at gmail.com
Mon Mar 23 12:16:54 EDT 2020


I deselect everything in standalone application settings except for HTML5. I choose Save as Standalone Application, and when it is done I copy the files into a folder inside my home / Sites folder. I do rename the html to index.html because another approach I was trying required there to be an index.html file. I tested without renaming the file, same symptoms.

I start the localhost server with php -S localhost:8080, and then use Chrome to look at http://localhost:8080/Sites/MyAppName/MyAppName.html <http://localhost:8080/Sites/MyAppName/MyAppName.html>. The stack loads and I see card 1. Graphics are there but buttons are missing icons, which is understandable. The stack would normally go on to another card, but it stays on card 1, not responding.

These are the lines that appear in Terminal:

[Mon Mar 23 10:02:44 2020] [::1]:58416 [404]: / - No such file or directory
[Mon Mar 23 10:02:44 2020] [::1]:58417 [404]: /favicon.ico - No such file or directory
[Mon Mar 23 10:03:09 2020] [::1]:58451 [200]: /Sites/MyAppName/MyAppName.html
[Mon Mar 23 10:03:09 2020] [::1]:58452 [200]: /Sites/MyAppName/standalone-community-9.5.1.html.mem
[Mon Mar 23 10:03:09 2020] [::1]:58453 [200]: /Sites/MyAppName/standalone-community-9.5.1.js
[Mon Mar 23 10:03:12 2020] [::1]:58454 [404]: /Sites/MyAppName/stdio.html - No such file or directory
[Mon Mar 23 10:03:12 2020] [::1]:58455 [200]: /Sites/MyAppName/standalone.zip
[Mon Mar 23 10:03:12 2020] [::1]:58456 [404]: /Sites/MyAppName/stdio.html - No such file or directory
[Mon Mar 23 10:03:15 2020] [::1]:58457 [404]: /Sites/MyAppName/stdio.html - No such file or directory


I tried a test build to Mac 64 bit, and that works fine. Next I will try the simplest possible stack, and see if that shows any errors.


> On Mar 23, 2020, at 9:53 AM, Pi Digital via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> You shouldn’t need the stdio.html file at all. It is a placeholder effectively for some other command you are referencing. 
> 
> Again, both using community and Indy and html5deployment versions I have no issue with 404 errors like this. So it’s likely something in your setup. So a step-by-step guide of your process will help us pin it down for you 
> 
> Sean Cole
> Pi Digital
> 
> 
>> On 23 Mar 2020, at 15:48, Colin Holgate via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> stdio.h is file I/O, and I have copies of that in Unity. The missing file is stdio.html, not sure what that is, but maybe a JavaScript variation of the C header file. 
>> 
>> I have Indy installed now, and am trying to retrieve my license to give that a go.
>> 
>>> On Mar 22, 2020, at 5:59 PM, Pi Digital via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Hi Colin
>>> 
>>> I’ve done a bit of digging and stdio is an api for file IO used in emscripten. It’s also used for accessing external site pages. Additionally, LC uses it to write to the log message box on your main page. 
>>> 
>>> So, I’m curious about the method you go through to get to this point of error. Here are a series of questions that should get to the bottom of it. 
>>> 
>>> What platform are you running on?
>>> What platforms are you building for as set in the standalone settings?
>>> What browser are you running the HTML5 deployment in?
>>> How have you setup your localhost server?
>>> 
>>> Finally
>>> What is your recipe for failure from the point you load your stack in to LC to when you get the 404 message, step by step?
>>> 
>>> Sean Cole
>>> Pi Digital
>>> 
>>> 
>>>>> On 21 Mar 2020, at 23:30, Colin Holgate via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>> 
>>>> I have only used the standalone publishing, I’m not doing anything custom. Line 48 of standalone-community-9.5.1.js is what is talking to the stdio.html file. That part of the code says this:
>>>> 
>>>> http.open("POST",”stdio.html"
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list