Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

RomStation.org - Your favorite emulation resource

Mortar

Sponsor

OK, I added the cycle script, the banner will now automatically cycle between Luigi, Wario, Paper Yoshi and Toon Link, though it sometimes takes a while for the image to change.

EDIT: I found out it takes ages to cycle in Firefox, works immediately in IE7 though. =/

EDIT 2: Fixed it.
 

___

Sponsor

Don't use a hosting service to post ROMs/ISOs, they'll remove them due to copyright infringement so often you will find it more hassle than it's worth.  Whatever web hosting service you're using is definitely less likely to intrude on what you have on your site.  I would seriously suggest linking directly to a torrent site and letting the torrent network carry the load for ISOs though, you can find anything on there and your visitors will likely be able to download it faster over torrent than from you.  Besides that you won't be paying for the bandwidth.  Old SNES, etc. roms are small though.
 

e

Sponsor

I say, Nphyx, you're quite the pirate. You wouldn't actually consider it, would you? You, a Linux, open-source advocate! I can't believe it! I shan't believe it!

@Mortar: Good work on the cycling script!
 

___

Sponsor

Well, when a free, open-source alternative isn't an option, I say stick it to the man!  The dinosaurs will die anyway, whether or not they go unharassed till the big extinction... 
(disclaimer: I do not advocate piracy)

I <3 the characters.
 

e

Sponsor

I don't like the hover images at the top right, but apart from that, it's better than the other one imo.
 

___

Sponsor

Mortar:  That's a huge step up from your other design.  Much more cleanly defined sections with good margins.  I'm not a big fan of glossy header bars, but I'd cut down the contrast on yours in any case, they're a little sharp.  It's interfering with your text.  Other than that, pretty cool, nice and clean, simple, easy to read.  Amazing what such a small change can accomplish. :)
 

Mortar

Sponsor

Yeah, the old one didn't really look like a banner for the kind of site I want to create, so I decided to change it.

Soon, when my friend has enough time, I hope he'll help me make a PHP script that automatically grabs the info of the files I upload and adds them to the MySQL database, which will allow me to upload large amounts of roms easily.
 

___

Sponsor

Do you mean you want a php script that will generate metadata out of a rom's header?  Or just get its file location and filename and stick it into sql for you?  The former would be exceedingly difficult since it'd have to recognize various header types from binaries and properly extract the appropriate bits of text - if that's what you're trying to accomplish though it would be awesome.  In the latter situation it's really easy to do, I can give you a snippet if you are going to know how to use it and you can give me a little info on how you do your uploading (do you ftp things in, do you have a form on the page that lets you pick out a file and upload it, etc).
 

Mortar

Sponsor

Nphyx":3q42by1t said:
Do you mean you want a php script that will generate metadata out of a rom's header?  Or just get its file location and filename and stick it into sql for you?  The former would be exceedingly difficult since it'd have to recognize various header types from binaries and properly extract the appropriate bits of text - if that's what you're trying to accomplish though it would be awesome.  In the latter situation it's really easy to do, I can give you a snippet if you are going to know how to use it and you can give me a little info on how you do your uploading (do you ftp things in, do you have a form on the page that lets you pick out a file and upload it, etc).
Well, basically I want the script to add the file's name to the database without the extension. It should also grab the file's size and put that in the database as well. Since I put my files in different folders, for example, my NES roms would go in a folder called 'something/something/nes', I'd think it would be possible for the script to recognize the folder the file is in and use it to enter it in the database as the file's console. Then for the correct path to the file, the script should grab the file's name again but this time it won't get rid of the extension (i.e. .zip or .rar) and put that in the database as the path. It should automatically make a new ID for the file. It will also check if there is already a file in the database with the same name, if so, it won't add the file to the database.

I will use a cronjob for this script so it runs at least a couple of times an hour to check if there are any newly uploaded files on the server.

I'm not sure if this is all possible though, I would like to hear your thoughts about it.
 

___

Sponsor

Yeah that's pretty easy, do you have pearDB installed on your server by any chance (makes life easier when interacting with a database)
 

e

Sponsor

pearDB is actually database abstraction API; in other words, it uses the same common interface to interact with all types of databases (MySQL, MySQLI, MSSQL, PostgreSQL, etc.). It makes life easier, if you plan on making it redistributable; considering you don't, it hardly matters.
 

___

Sponsor

Thanks for savin me typing Eth.  I built a dynamic object for database interaction that I tend to port around to any project where I'll be working with a database, it's based on pearDB and I'm rather fond of it (and pear's error handling) so I always ask ahead of time :)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top