Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-01-15 07:46:41

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Leaderboards

How many people know how to make a leaderboard? I am debating making a tutorial for it, and i am wondering if it will go to any use.


If you would like me to make a bot for you, go here.

Offline

Wooted by:

#2 2016-01-15 12:48:25

shadowda
Member
From: somewhere probably.
Joined: 2015-02-19
Posts: 1,015

Re: Leaderboards

whats a leaderboard? but sure. i love your tutorials.


color = #1E1E1E       

latest?cb=20150604065609

Offline

#3 2016-01-15 19:23:26

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: Leaderboards

I assume the people who can make leaderboards are those who know how to read from and write to text files, and have a little intuition.

It'd be more helpful to make a tutorial on Streamwriter, string splitting and File.ReadAllLines().


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Wooted by:

#4 2016-01-15 23:16:31

ewoke
Member
Joined: 2015-02-20
Posts: 412

Re: Leaderboards

database
userid,points
thats it?


if you can read this....good for you

Offline

#5 2016-01-15 23:24:51

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Leaderboards

perhaps we're discussing the output of the leaderboard onto the map? :o

Offline

#6 2016-01-15 23:28:16

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Leaderboards

ewoke wrote:

database
userid,points
thats it?

People would still have to learn how to make a database and how to add/retrieve from them.

Offline

Wooted by:

#7 2016-01-16 00:23:33

AlphaJon
Member
From: Who knows
Joined: 2015-07-21
Posts: 1,297

Re: Leaderboards

For things of a very limited size, like a leaderboard, which typically contain 10 or 20lines, I prefer having a non-db file(basically a text file), but that's just my opinion
This comes from someone who works with databases daily.

Offline

#8 2016-01-16 00:48:01

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Re: Leaderboards

I only use text files because i find them to be pretty easy, i don't have any-much experience with databases(If someone would like to teach me i would be more than happy to learn). But all the above would be in there tutorial. I would break it up to teach people how to use streamwriters and streamreaders, how splitting text works and how to split it into lines. Once they know that i would then teach them how to apply that knowledge to make a leaderboard. Afterwards i would show people how to read letters and put them into a string from a bitmap and put them onto the map. THEN once all of that is done, i would wrap it all up to make a on the map leaderboard that can automatically update by calling a void.


If you would like me to make a bot for you, go here.

Offline

#9 2016-01-16 02:50:18

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Leaderboards

sounds like fun. idk if you should actually get help from anyone here about databases, I think the knowledge herein obtained is not of a prime source.

oh well gl

Offline

#10 2016-01-17 16:48:41

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Leaderboards

I used to use CSV files too (so text files that you split to get the info), but then I discovered XML writers which do all the work for you. They might give bigger files (more text), but hey, I doubt any bot on EE would ever really have size of files as an issue.

Offline

#11 2016-01-17 18:38:31

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Leaderboards

I used to use CSV except without commas as well. Then I saw XML and went lol too much work
then somebody told me about binarywriters, so I was like woot
now I use sqlite for dbing and it's slowish for what I want it to do, but whateverz.

Offline

#12 2016-01-17 20:01:21

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: Leaderboards

The extra work needed to set up something like a SQL compact DB is greater than the benefit you get from it over using plaintext files. Don't bother teaching people.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

#13 2016-01-17 20:17:27

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Leaderboards

^Yeah, I'd think it better to teach the nubs who don't know much of anything in the world of computer science their way around a text file before a database.

Offline

#14 2016-01-17 20:43:04

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Leaderboards

hummerz5 wrote:

Then I saw XML and went lol too much work

You literally just define a serializable object, run the command for saving/loading and you're done, don't see where all the work is?

Offline

#15 2016-01-17 21:28:56

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Leaderboards

den3107 wrote:
hummerz5 wrote:

Then I saw XML and went lol too much work

You literally just define a serializable object, run the command for saving/loading and you're done, don't see where all the work is?

then I must have not had it figured out right, eh?
probably in the serialization
> json tho
which one is more compact?

Offline

#16 2016-01-17 22:51:54

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Leaderboards

hummerz5 wrote:

which one is more compact?

I'm pretty certain binairy, since obviously an integer needs way less data than a string (which is the base of all other methods).
After that I'm pretty sure it's CSV, because you just have values and separating delimiters.
JSON has tons of 'junk' compared to CSV, since it has all kinds of formatting (like [] and {}) and specifies all the names of the values (which are static, hence why a CSV file can be used).
XML is basically just an exploded version of JSON, meaning it's the same principle, just with more 'junk'.
And I think we can all safely agree a database would BY FAR have the most 'junk'.

Do mind how I quote junk, since it's not actually junk, it can be very useful, it's just unnecessary in the current context (leaderboard).

Offline

Wooted by:

#17 2016-01-17 23:58:54

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Leaderboards

Heh. for all that is holy, don't number the lines in the csv! lel

Offline

hummerz51453071534576390

Board footer

Powered by FluxBB

[ Started around 1732441045.313 - Generated in 0.057 seconds, 13 queries executed - Memory usage: 1.55 MiB (Peak: 1.72 MiB) ]