WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: grandseb59 on April 24, 2020, 09:43:09 AM

Title: File failed to load: 0 byte file
Post by: grandseb59 on April 24, 2020, 09:43:09 AM
good morning,
I'm currently on a SMF 2.0.17 forum.
and the arcade mod 2.56.12
When I try to install these games:

game_AirportManagement2_Origon.tar
game_CiruShoterH5TH.tar
game_IceCreamBar_Origon.tar
game_walkrazy_Origon.tar
html5_donkeykong1.tar
html5_gauntlet.tar

It returns this error to me:
File failed to load: 0 byte file

while others have settled in without a problem.
What do I have to do to get the games installed?


For your information, I tried by checking and unchecking the "Use HTML5 Upload Script" checkbox.

Thank you in advance for your help.
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on April 24, 2020, 10:10:21 PM

With that version of the arcade try not to use the .gz file download.
Opt zip or tar but do not use tar.gz ... it has an issue with larger files.
Always use the HTML5 upload script if possible.
Let me know if that solved the problem.
Title: Re: File failed to load: 0 byte file
Post by: grandseb59 on April 25, 2020, 09:26:08 AM
So I did what you told me to do, I unzipped the .tar and created a .zip
I checked the html5 box in the admin panel of the arcade.
and when I try to load it by the "browse" button, it doesn't load it.
If I "drop" it, it downloads it to my computer.

Then I uncheck the html5 box.
The game has loaded, I installed it... but it doesn't work ... :(
Title: Re: File failed to load: 0 byte file
Post by: grandseb59 on April 25, 2020, 09:51:53 AM
In fact, only the donkeykong settles but doesn't work, the others return the same error.
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on April 25, 2020, 10:07:31 PM

I fixed a lot of things in the latest beta although there are still many things pending.
You are welcome to try the latest beta which is available from my GitHub repositories.
Look for SMF Arcade 2.57

All the mods on that page are not updated but the Arcade is as of last night.

https://github.com/Underdog-01?tab=repositories
Title: Re: File failed to load: 0 byte file
Post by: aquarius on April 26, 2020, 05:46:38 PM
Does this beta version house the auto responsive feature we discussed in this topic? https://web-develop.ca/index.php?topic=493.0
Title: Re: File failed to load: 0 byte file
Post by: grandseb59 on April 26, 2020, 05:47:42 PM
for github, I didn't understand anything, there are a lot of files that always modify the same script...arcade.php

And besides, installing new games, made me appear full of error messages.
So I uninstalled it.
Maybe I'll see you soon.
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on April 26, 2020, 07:16:33 PM
I wasn't sure if you knew how to deal with GitHub packages.
You can't just install it from the downloaded zip that you get from their site because it has sub-directories that the SMF installer does not take into account.

v2.5.7 of the arcade does deal with responsive layout although it is still in need of much work.
Mainly at this point the mobile games list template does not look proper in the SMF 2.0 branch but the game template is fine.

I will attach the beta here for a few days before removing it to make it easier for you.
Let me know if it fixes your game install problem.
Title: Re: File failed to load: 0 byte file
Post by: aquarius on April 26, 2020, 11:05:56 PM
Thanks
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on April 30, 2020, 08:29:32 PM

Does the beta release allow you to install games now?
Title: Re: File failed to load: 0 byte file
Post by: grandseb59 on May 04, 2020, 07:08:11 PM
Sorry to answer so late
.
Actually, with beta 11, I can't load games anymore.

I am told that my "Games" folder is not writable and the CHMOD has failed. Please make it manually writable.

While I put everything in 777 with the recursion of subfolders and apply to all folders and files.
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on May 04, 2020, 08:11:23 PM

Try using Arcade maintenance from your admin section for creating a .htaccess file for X-Frame same origin.
Select the Apache option and save the setting.

If this does not work it is possible that you previously created the file & it is causing problems.
If this is the case you can use the option on that page to remove the file.
Title: Re: File failed to load: 0 byte file
Post by: grandseb59 on May 05, 2020, 02:16:09 PM
Hello,
sometimes pictures speak better than words.
Here are some screens.

First of all, what you told me to do--
create an htaccess under apache after I did:
Delete: Remove any configuration files located in the directory.

(https://i.postimg.cc/TwHDf1WB/htaccess.png)

But there are two problems:
1: You recommend installing the Mod Header.
What is it? and does it self-install when you install the arcade mod?
And if not, where to get it?

2: we created an htaccess file, but where should it be? I can't find it anywhere?

Then the error that always appears the same...

(https://i.postimg.cc/vBmVJfDW/manage-Upload.png)

then proof that the chmod in the games folder is 777.

(https://i.postimg.cc/hvz7jnLv/chmod.png)

And the error log.


(https://i.postimg.cc/JhxXYP7r/errorLog.png)

Title: Re: File failed to load: 0 byte file
Post by: Skhilled on May 06, 2020, 09:46:20 AM
@grandseb59, Try setting your directories to 755 and files to 644 and see if that works. If not, you may need to ask your hosting to check ownership of the directories and files (chown). If you are on a VPS or dedicated server then you should be able to fix it yourself.

To change ownership (chown) run the following two lines of code in SSH. Replace "username" with your hosting name:

cd /home/username

chown -R username:username public_html

To change permissions (chmod) run these two lines of code in SSH:

find . -type d -print0 | xargs -0 chmod 0755 # For directories

find . -type f -print0 | xargs -0 chmod 0644 # For files

Or change the numbers to whatever your server is supposed to be.
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on May 07, 2020, 04:16:58 PM

The Arcade utility you referenced in #1 creates the .htaccess file for you.
In your case you you click on the Apache option & press save.
It puts the .htaccess file in the Games directory.
If you think the .htaccess file it creates is causing the problem then you can use the delete option to remove it.
Again, this only concerns a .htaccess file located in your Games directory.


Try what Skhilled suggests regarding permissions and ownership.
Something is awry with your settings if it is not letting website PHP files access folders or adjust permissions.
Although the line you referenced checks if it's writable to begin with.
Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on May 07, 2020, 04:29:06 PM

Also 755 permission setting is very important rather than 777.
For it to work correctly you need the proper ownership set on the forum directory in the first place.
Your forum directory should be set to apache ownership.
The command to set that will depend on your Distro.
Although if you have a control panel such as Plesk or CPanel, there should be an option to set that or fix ownership & permissions.

Title: Re: File failed to load: 0 byte file
Post by: Chen Zhen on May 31, 2020, 10:41:12 PM

The script for uploading is working fine on this site & doc skillz which is why I failed to see the issue.
Recently I created 2 fresh test forums (using both SMF versions) and have found there is an issue with the upload script.

What you can do until it is fixed is use FTP to upload the compressed game files to your "Games" directory.
From that point you can install the games from the Arcade admin section & they should work fine.
This issue will be fixed in the upcoming release.

Thank you for reporting the problem.
EhPortal 1.39.6 © 2024, WebDev