Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/34/d258180810/htdocs/phpAR/viewtopic.php on line 954

Strict Standards: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/34/d258180810/htdocs/phpAR/viewtopic.php on line 954
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3778: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3780: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3781: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3782: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
Arcade Room • View topic - Adding vNES to phpAR

Adding vNES to phpAR

Discuss anything about phpAR here unless there is an alternative forum for it.

Adding vNES to phpAR

Postby Gleasonator » Sat May 30, 2009 6:19 pm

I'd like to add a fully featured vNES plugin to phpAR. Here's the link to vNES: http://www.virtualnes.com/

The Java applet can be directed to a .nes ROM file and will run it from your browser. The HTML to embed is:

Code: Select all
<applet name="vNES" code="vNES.class" archive="JARFILE.JAR" width="512" height="480">
<param name="sound" value="on" />
<param name="timeemulation" value="on"/ >
<param name="fps" value="off" />
<param name="stereo" value="off" />
<param name="rom" value="ROMFILE.NES" />
<param name="showsoundbuffer" value="off" />
<param name="scale" value="on" />
<param name="scanlines" value="off" />
<param name="nicesound" value="on" />
<param name="romsize" value="24592" />
</applet>


A column could be added to the games table in the database called "type", having a numerical value to differentiate the games such as:

1 = SWF game
2 = NES game

Then conditions can be made in the HTML so that when the value is 1 it will display the Flash embed code, and when it is 2 it will display the vNES code. I can do all of this myself, but NES games would have to be added via FTP manually, and to the database manually.

I have no clue how I would implement this into the ACP. All that should be needed in the interface is a radio button so you can choose between "NES" and "SWF" as game type, but I don't know how to code this. Can anyone help?

Thanks.
User avatar
Gleasonator
VIP
VIP
 
Posts: 39
Cash: 59
Donate
Joined: Wed Sep 17, 2008 10:41 pm

Trophies

gold: 1
silver: 0
bronze: 2

Re: Adding vNES to phpAR

Postby Gleasonator » Wed Jun 03, 2009 8:51 am

Never mind. I tried an entirely different approach: allowed more filetypes than .swf to be uploaded, then appended their proper file extension, then made the HTML conditional by game file extension.
User avatar
Gleasonator
VIP
VIP
 
Posts: 39
Cash: 59
Donate
Joined: Wed Sep 17, 2008 10:41 pm

Trophies

gold: 1
silver: 0
bronze: 2


Return to phpAR Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron