Open ghost opened 11 months ago
Hi @saratogacoach, thanks for the interest in this little project.
Someone in the thread you linked said that they got errors when trying to run it on the browser. If they're trying to load the generated .html file locally on the browser (e.g. file:///path/to/rotator.html
) it won't work, you need to go through a web server. You can host the files on the web somewhere (e.g. on Github pages), or run a local web server.
An easy way to run a local web server is with python: run python3 -m http.server
on the directory with the project files, and point your web browser to https://localhost:8000
.
Hi, Thank you for this suggestion. However, I did upload the files for testing on my website's web server. Theses are the latest compiled files from a Google Groups member who is helping. I still got the errors. Tried troubleshooting these errors using Firefox Mozilla developer tools on my testing site, but I was not successful in resolving the errors for these uploaded, compiled files. The Google Group member and I have not been able to get the compiled version working successfully without errors.
These compiled files are here, at GitHub, if anyone would like to test them on a server.
Would it be possible to upload a compiled set of files (HTML, JS, CSS, WASM, etc.), to your original Rotator repository on GitHub, that I could use to adapt for the helping exercise, or possibly another solution? This would be a big help.
Thank you for your continued help.
Best Wishes,
Recent research articles are demonstrating that engaging in 20 minutes of interactive visuospatial exercises, specifically mental rotation, within a 72-hour time window following exposure to a traumatic event can reduce subsequent flashbacks which are a critical component of PTSD. Also, some possible extrapolated evidence that GUI elements, like user buttons, links, timers, etc. relying on images may be preferable to verbal GUI elements (for example, text) to improve the helping effects. The latter can be achieved from adapting/changing the GUI elements, for example timer bars instead of numbers.
This tool in 3D is likely more effective in producing the needed results than 2D tools.
Adapting Rotator to create a web-deployed, open-access, PTSD-prevention app (WASM, HTML, JS, CSS) by making these changes can hopefully be achieved (for example, by editing the CSS, HTML, JS) once these are generated by WSL web assembly compiling.
For a beginner, like me, even after much reading, learning, following MS Learn tutorials about web assembly, Command, Power Shell and Bash terminals, CMake, Emscripten, SDL1 and SDL2, setting environment variables paths, etc. and using the repository-added instructions for compiling, haven't been successful, neither correctly setting up the Win 11 or Visual Studio 2022 development environment, VS project, nor getting a successful output. Just a lot of errors, which even after troubleshooting, remain (my background is in social work, and although self-taught in scripting/coding, I am still an amateur).
If anyone has configured the Win 11 environment, and then set up a Visual Studio 2022 project, and could share it, this would be helpful, so I could then get a web assembly compiled version of Rotator (HTML, CSS, JS, WASM, etc.) that I could then possibly edit/adapt (HTML, CSS, JS) for web deployment, as described above. Have also tried to get some additional help at a group here. So far compiling still results in error messages and failure to compile successfully.
Can be reached directly at 3principles at gmail.com.
Thank you in advance for your kind help.