Arcade Update In Progress

Status
Not open for further replies.

Scott Greczkowski

Welcome HOME!
Original poster
Staff member
HERE TO HELP YOU!
Cutting Edge
Sep 7, 2003
102,593
25,973
Newington, CT
I am currently working on upgrading our Arcade to a totally new arcade system. The arcade will be unavailable for a short period.

Thanks for your understanding!
 
Ok done working for the moment. I only got a little over 100 games imported from the old arcade. I will import the rest tonight when I get home. :)
 
Guessing your back home working on it.....I tried to play barb jump and it kicked me back to home page..:D
 
Found out why some of the scores are not submitting correctly, and it requires some changes to the web server config.

So I am going to attempt these changes now.

As I do this you might get an error or the site wont load for a few seconds. It's ok... :)

Again I am working on it, so be back in a few if we go down! :D
 
Ok got some of the score submissions working but not all.

The problem is we use NGINX as our webserver and not apache. NGINX does not use .htaccess which is needed by the new arcade to submit scores, so I had to try converting the .htaccess into a file for which NGINX understands.

Here is the origional code that was in the .htaccess
Code:
# Merge everything after this line into your forum root's .htaccess file so certain games can process scores, then try importing again:

<IfModule mod_rewrite.c>
RewriteEngine on

# If vbulletin is in a subdirectory, add it here
RewriteBase /Forum/

# Retrieve gamedata requests and send to new dbtech locations
RewriteRule ^arcade/gamedata/(.*) dbtech/vbarcade/media/$1 [L]

# Retrieve crossdomain requests and send to new dbtech location
RewriteRule ^crossdomain\.xml dbtech/vbarcade/crossdomain.xml [L]

# Send hardcoded ipa scores to arcade instead
RewriteCond %{QUERY_STRING} act=Arcade [OR]
RewriteCond %{QUERY_STRING} autocom=arcade
RewriteRule ^index\.php arcade.php [L,QSA]

# Send hardcoded pnf scores to arcade instead
RewriteCond %{REQUEST_METHOD} POST [NC]
RewriteCond %{HTTP_COOKIE} vbarcade_session
RewriteRule ^index\.php arcade.php [L,QSA]

# Reroute v3arcade liveinstaller
RewriteCond %{QUERY_STRING} do=liveinstall
RewriteCond %{REQUEST_URI} v3arcade_admin\.php

# If you renamed your admincp directory, change it here
RewriteRule .* %{DOCUMENT_ROOT}/admincp/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L,R=301]
</IfModule>

And here is the code converted to what NGINX understands.

Code:
rewrite ^/arcade/gamedata/(.*) /dbtech/vbarcade/media/$1 last;
    rewrite ^/crossdomain\.xml /dbtech/vbarcade/crossdomain.xml last;
if ($args ~ "act=Arcade"){
    set $rule_2 1;
}
if ($args ~ "autocom=arcade"){
    set $rule_2 1;
}
if ($rule_2 = "1"){
    rewrite ^/index\.php /arcade.php last;
}
if ($request_method ~* "POST"){
    set $rule_3 1$rule_3;
}
if ($http_cookie ~ "vbarcade_session"){
    set $rule_3 2$rule_3;
}
if ($rule_3 = "21"){
    rewrite ^/index\.php /arcade.php last;
}
if ($args ~ "do=liveinstall"){
    set $rule_4 1$rule_4;
}
if ($uri ~ "v3arcade_admin\.php"){
    set $rule_4 2$rule_4;
}
if ($rule_4 = "21"){
    rewrite /.* /$document_root/admincp/arcade_admin.php?$args&do=review&import=browse&system=v3a permanent;
    break;
}

I am giving up for tonight but will try more tomorrow. :)

If I can't get it working I will revert back to the old arcade.

Thanks for your patience and understanding.
 
Just an update to say I haven't forgotten about the Arcade. am in meetings until 11:30 here at work and will jump in with both feet when I am back at my desk. :D
 
Ok out of my meeting. :)

I have switched us back to our old arcade for now until the new arcade fixes it's NGINX issues. :)

Have fun!
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Who Read This Thread (Total Members: 1)