https://next-level-arcade.com


Results 1 to 10 of 10
  1. #1
    Administrator stangger5's Avatar

    Join Date
    Nov 2005
    Posts
    1,633
    Thanks
    666
    Thanked 620 Times in 320 Posts

    How to install Ruffle with cpanel server side

    Ruffle is a Flash Player emulator written in Rust.

    Download the latest version from:
    https://ruffle.rs/#releases

    Step 1 − Open cPanel MIME Types by clicking on MIME Types in Advanced Section of cPanel.
    mime_type_advanced.png

    Step 2 − In Create A MIME Type interface, Enter your MIME type.
    create_mime.png

    Step 3
    Add this line to your .htaccess file.
    Code:
    AddType application/wasm .wasm
    Step 4
    Unzip the files from the zipped folder you downloaded from https://ruffle.rs/#releases.
    The newest today is ruffle_nightly_2021_02_03_selfhosted.zip
    Rename that folder ruffle
    Upload the ruffle folder to your servers root directory.

    Step 5
    Add this to the top of the game page code.
    Code:
    <script src="./ruffle/ruffle.js"></script>
    html5 game mod ibproarcade v1.1 will already have step 5 included.

  2. The Following 5 Users Say Thank You to stangger5 For This Useful Post:

    blind-eddie (11-05-2021), junkyman (02-03-2021), lagrace (02-03-2021), Rinkrat (02-03-2021), RoboCop (09-04-2021)

  3. #2
    Junior Member

    Join Date
    Jan 2021
    Posts
    9
    Thanks
    2
    Thanked 1 Time in 1 Post
    I don't have CPanel but do have root access, can I just do this at server level on Apache?

  4. #3
    Administrator stangger5's Avatar

    Join Date
    Nov 2005
    Posts
    1,633
    Thanks
    666
    Thanked 620 Times in 320 Posts
    Apache doesn't serve these files correctly by default, you will need to add this to your httpd.conf configuration file and reload it:

    Code:
    AddType application/wasm .wasm
    More info here:
    AddType Directive

  5. #4
    Junior Member

    Join Date
    Jan 2021
    Posts
    9
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by stangger5 View Post
    Apache doesn't serve these files correctly by default, you will need to add this to your httpd.conf configuration file and reload it:

    Code:
    AddType application/wasm .wasm
    More info here:
    AddType Directive
    OK I added to httpd.conf. Should I edit .htaccess as above? Also I don't see a .js file just one called ruffle. Should I put it in VB root. or root of server ie /root ? Thx. Sorry for so many questions.
    Last edited by Rinkrat; 02-07-2021 at 06:07 PM.

  6. #5
    Game Downloader lagrace's Avatar

    Join Date
    Jan 2018
    Posts
    12
    Thanks
    17
    Thanked 3 Times in 3 Posts
    you download this and extract the ruffle folder to the root of your website

    https://github.com/ruffle-rs/ruffle/...selfhosted.zip

  7. #6
    Administrator stangger5's Avatar

    Join Date
    Nov 2005
    Posts
    1,633
    Thanks
    666
    Thanked 620 Times in 320 Posts
    You do not need to make the .htaccess edit, if you have done the httpd.conf one.

    The newest is ruffle_nightly_2021_02_09_selfhosted.zip
    Rename ruffle_nightly_2021_02_09_selfhosted to just ruffle

    Up load it to your root.

    public_html/ruffle

    Just like your arcade should be:
    public_html/arcade

  8. #7
    Game Downloader

    Join Date
    Aug 2021
    Posts
    3
    Thanks
    2
    Thanked 1 Time in 1 Post
    Hello it's Hunter1985 from vb.org. I'm not sure if this is the way to get faster contact with you. But my Ibproarcade isn't quite working and I don't use cPanel and not sure if I need to change the MIME Type settings from OVH.

  9. #8
    Administrator Doc's Avatar

    Join Date
    Dec 2006
    Posts
    1
    Thanks
    7
    Thanked 1 Time in 1 Post
    You need to ask your host about setting the MIME type.

  10. The Following User Says Thank You to Doc For This Useful Post:

    RoboCop (09-06-2021)

  11. #9
    Game Downloader

    Join Date
    Aug 2021
    Posts
    3
    Thanks
    2
    Thanked 1 Time in 1 Post
    Well I cannot guarantee OVH will explain things properly or help much, but I'll ask them.

  12. #10
    Junior Member

    Join Date
    Nov 2022
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by stangger5 View Post
    Step 5
    Add this to the top of the game page code.
    Code:
    <script src="./ruffle/ruffle.js"></script>
    html5 game mod ibproarcade v1.1 will already have step 5 included.
    Where exactly do I need to post that code? I've tried putting it in the arcade.php file, but it results in an error. The actual games are in *.swf format, and when I try to edit those, it's all gibberish. So where should it go? ETA Nevermind, I tried the other link: <script src="https://unpkg.com/@ruffle-rs/ruffle"></script> at the top of the arcade.php file and it works now. :)
    Last edited by judel; 11-13-2022 at 07:39 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Link Exchange - Affiliates/Friends