Status
Not open for further replies.

Ozzy47

Former Developer
Customer
Version Beta10

While importing the game 10 Talismans I got this error in acp, even though it successfully imported. * is my admincp directory

Warning: copy(): The first argument to copy() function cannot be a directory in [path]/**********/arcade_admin.php on line 1162

The game does not seem to load in the arcade either, basically it is unplayable.

Here is the game, in the zip folder.

It may be a issue with that game only, I did import another one after that and no error, and the game plays fine.
 

Attachments

well thats interesting. this one has a directory in the gamedata of xml files. what a crazy mess. sadly confirmed.
 
Well that did not work I renamed the arcade_admin.php to customfolder/arcade_admin.php and the admin side of the arcade does not work.

I do not see how that has a affect on that game as all other IPB games I have installed went fine.
 
Looks good :) the problem was you renamed your admincp folder :p edit the admincp/arcade_admin to (whateveritis)/arcade_admin and you should be good! (should only appear once!)

First off you did not say nothing about htaccess in this post.

Second of all following this in the httaccess file "# Edit only the second admincp if you have changed it" renaming RewriteRule ^admincp/v3arcade_admin\.php admincp/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L]

to RewriteRule ^admincp/v3arcade_admin\.php custom folder/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L]

I still get this error upon importing 10 Talismans

Warning: copy(): The first argument to copy() function cannot be a directory in [path]/custom folder/arcade_admin.php on line 1162
 
............

ahh you know what. i thought we were talking about the other thread :(

please disregard my posts here tonight; i will get back to you properly in the morning (my connection is extremely laggy)
 
fixed this. kind of complicated, but you can do it for your uploads with:

edit admincp/arcade_admin.php find

PHP:
                    foreach ($set AS $field)
                    {
                        if ($gamedata)
                        {    //direct files to move
                            $oldfile = $filepath = $field;
                            $newfile = $folder . '/' . array_pop(explode('/', $filepath));
                        }

replace with

PHP:
                    foreach ($set AS $fname => $field)
                    {
                        if ($gamedata)
                        {    //direct files to move
                            $oldfile = $filepath = $field;
                            $newfile = $folder . '/' . $fname;

                            if (strpos($fname, '.') === false)
                            {    //make folder and continue
                                mkdir($newfile, 0777);
                                continue;
                            }
                        }

then in dbtech/vbarcade/systems/ipa.php and find

PHP:
                        if (is_dir($v32dir))
                        {    //copy all the junk out of the gamedata folder
                            foreach (arcade_scandir($v32dir, array(), array('index.html', 'v32game.txt', 'v3game.txt')) AS $file) $info['copyfile'][] = "$v32dir/$file";
                        }

replace with

PHP:
                        if (is_dir($v32dir))
                        {    //copy all the junk out of the gamedata folder
                            foreach (arcade_scandir($v32dir, array(), array('index.html', 'v32game.txt', 'v3game.txt')) AS $file)
                            {
                                $info['copyfile'][$file] = $subdir = "$v32dir/$file";

                                if (is_dir($subdir))
                                {    //add required files from subdirectory
                                    foreach (arcade_scandir($subdir, array('html', 'txt'), array(), true) AS $subfile) $info['copyfile']["$file/$subfile"] = "$subdir/$subfile";
                                }
                            }
                        }

theres more to this for v3a and such, but thats in the next beta
 
Well I just got some more, could be bad games, but if ya want to look here they are.

Warning: scandir([path]/dbtech/vbarcade/import/temp/game_cheesedreamsDR): failed to open dir: Permission denied in [path]/dbtech/vbarcade/functions_arcade.php on line 196

Warning: scandir(): (errno 13): Permission denied in [path]/dbtech/vbarcade/functions_arcade.php on line 196

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbarcade/functions_arcade.php on line 200

Warning: sort() expects parameter 1 to be array, boolean given in [path]/dbtech/vbarcade/functions_arcade.php on line 206

Warning: scandir([path]/dbtech/vbarcade/import/temp/game_cheesedreamsDR): failed to open dir: Permission denied in [path]/dbtech/vbarcade/functions_arcade.php on line 196

Warning: scandir(): (errno 13): Permission denied in [path]/dbtech/vbarcade/functions_arcade.php on line 196

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbarcade/functions_arcade.php on line 200

Warning: sort() expects parameter 1 to be array, boolean given in [path]/dbtech/vbarcade/functions_arcade.php on line 206

Warning: array_pop(): The argument should be an array in [path]/stayoutofhere/arcade_admin.php on line 1226

Warning: scandir([path]/dbtech/vbarcade/import/temp/game_cheesedreamsDR): failed to open dir: Permission denied in [path]/dbtech/vbarcade/functions_arcade.php on line 196

Warning: scandir(): (errno 13): Permission denied in [path]/dbtech/vbarcade/functions_arcade.php on line 196

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbarcade/functions_arcade.php on line 200

Warning: sort() expects parameter 1 to be array, boolean given in [path]/dbtech/vbarcade/functions_arcade.php on line 206

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbarcade/systems/v3a.php on line 246


And I have 3 folders in temp that will not go away again after multiple imports, thew tar's are not in the import folder either
 

Attachments

Last edited:
Well I finally managed to break it, now when I import games, I just get a list of errors, and no games to import.

The list is too long to post here so just check it out on my site.
 
cheesedream worked just fine, no errors, untar matches what mac untar'd to :)
splashy is a broken tar - mac wont open it either
 
one thing at a time man! im heading over there now :p

also - it does remove the sticky folders, but since the bad tars are still there, it just re-adds the sticky folders again :D
 
you clobbered my fix for cleaning up sticky folders:

in dbtech/vbarcade/arcade_functions.php find

PHP:
if (is_dir($file = "$folder/$f")) arcade_rmdir($file); else unlink($file);

replace with

PHP:
        chmod($file = "$folder/$f", 0777);//allow delete
        if (is_dir($file)) arcade_rmdir($file); else unlink($file);
 
i already did. im working through your games you had there to pick out the bad ones. i wonder if theres a way to stop/alert when theres a broken file...
 
That would be a good idea, or a junk folder and have it move the tar's there so it would be easier to find them and debug the issue with them.
 
Status
Not open for further replies.

Legacy vBArcade

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
902
Customer rating
0.00 star(s) 0 ratings
Back
Top