Page 1 of 1

The New Bitfighter Level Database!

PostPosted: Sat Nov 30, 2013 11:27 pm
by kaen
For 019 we added a central level database for uploading, downloading, and rating levels from the Bitfighter client. This is a short overview of what it does and how to use it.

Getting Started
In order upload or rate maps, you will need to be logged in to the bitfighter client. If you haven't already, register on the forums and activate your account.

To tell if a level is in the database, hit F2 while playing that level. Maps in the database have a database icon next to their name, as well as the map's rating and your current rating for that map. For example:

Image

Uploading
To upload a map, simply open it in the editor and select Upload/Update from the ESC menu. The rules of uploading are:
  • You must be logged in
  • A level without the DB icon will be uploaded as a new level
  • A level with the DB icon will be uploaded as an update, overwriting the previous version. (Obviously, you cannot do this for a map that isn't yours)

Downloading
To download a map, must use the /dlmap command in-game. If you want to download Biosynthesis by kaen, you would type:

  Code:
/dlmap kaen_biosynthesis
 

The part after "dlmap" is chosen by the database. The rules are:
  • All characters that are not letters, hyphens, or spaces are removed
  • All letters are made lowercase
  • All remaining groups of spaces, hyphens, or underscores are converted into a single underscore

Some examples:
  • "my level" by "author" ==> author_my_level
  • "cool map!!11" by "author" ==> author_cool_map
  • "*!&@#$^*&!@#^" by "author" ==> author_

Rating
To rate a map, you can use the rate map key (defaults to [=]), or use the /rate command while playing. Rating again will change your old rating. You cannot rate your own map.

Conclusion
The dev team collectively put in a lot of work to make this happen, but it is far from perfect. As always, we appreciate any feedback, positive or otherwise.

Have fun! :zapdance:

Re: The New Bitfighter Level Database!

PostPosted: Sat Nov 30, 2013 11:58 pm
by sky_lark
This was one of my most hopeful long-term feature requests since early Zap!. Thanks for putting in the work, guys, it looks wonderful.

Re: The New Bitfighter Level Database!

PostPosted: Sun Dec 01, 2013 1:23 am
by Fordcars
Thanks guys, it's awesome!

Re: The New Bitfighter Level Database!

PostPosted: Sun Dec 01, 2013 10:01 am
by Little_Apple
This is super cool. But a small issue, some levels that I uploaded prior to 019's release don't seem to be on the database and I can't seem to re-upload.
Image

Re: The New Bitfighter Level Database!

PostPosted: Sun Dec 01, 2013 10:58 am
by kaen
Ouch, I didn't think about that situation. As a quick fix, you can delete the LevelDatabaseId line from the actual level file and try again (I think). I'll fix that bug on my end ASAP though.

PS: I wiped the DB before release in order to flush the system.

Re: The New Bitfighter Level Database!

PostPosted: Sun Dec 01, 2013 3:28 pm
by Little_Apple
It worked! Thanks!

Re: The New Bitfighter Level Database!

PostPosted: Thu Jan 16, 2014 1:51 am
by sam686
If your levels is bigger then 64 KB and uploaded to database before now, then they are cropped to 64 KB and breaks levels because of that. Limit is now increased to 16384 KB in database.
Levels affected:
http://bitfighter.org/pleiades/levels/view/112
http://bitfighter.org/pleiades/levels/view/114
http://bitfighter.org/pleiades/levels/view/178
If any of them is yours, edit and re-submit the level code from a working version.

The problem with levels being chopped off was the character limit in database, after seeing Warning: #1265 Data truncated for column 'content' when trying to insert my level directly into database.

The database 'Content' and 'levelgen" was 'text' type limited to a tiny 64 KB in size. Now changed to 'mediumtext' that changes the limit to 16384 KB or 16 MB.

Re: The New Bitfighter Level Database!

PostPosted: Fri Jan 17, 2014 5:19 pm
by amgine
thanks I had one level that i removed cause it did this......

Re: The New Bitfighter Level Database!

PostPosted: Sat Jan 18, 2014 10:24 am
by Quartz
Lawl. That would explain the downvote on Inca. Maybe next time somebody could get in touch with me to explain that my map is broken instead of just down voting and expecting me to get the idea.

Anyway. Thank you sam686! (:

Re: The New Bitfighter Level Database!

PostPosted: Sat Jan 18, 2014 3:15 pm
by amgine
Yeah thanks.

On a future note will we have any problems if the data base will be to large?

Re: The New Bitfighter Level Database!

PostPosted: Sun Jan 19, 2014 12:32 pm
by Fordcars
Shouldn't be

Re: The New Bitfighter Level Database!

PostPosted: Wed Jan 22, 2014 4:49 pm
by amgine
I have a idea for a restructuring of BF on pleadies but the admins will never go fir it :)

Re: The New Bitfighter Level Database!

PostPosted: Fri Apr 11, 2014 7:31 pm
by kaen
Bump.

Just added Comment Notifications, and the ability to delete comments of your own, or other's comments on your own levels.

Re: The New Bitfighter Level Database!

PostPosted: Sat Apr 12, 2014 7:30 pm
by amgine
bump bump

Re: The New Bitfighter Level Database!

PostPosted: Sat Apr 12, 2014 10:39 pm
by Skybax
amgine wrote:bump bump

Just... No.
Your bumping privileges have been revoked.

Re: The New Bitfighter Level Database!

PostPosted: Sat Oct 29, 2016 7:04 pm
by Zapped
Little_Apple wrote:This is super cool. But a small issue, some levels that I uploaded prior to 019's release don't seem to be on the database and I can't seem to re-upload.
Image


If you go to the level file there will be a db id if you clear that it will let you up load.