New Maps for the mapcyclevote

like jump? feel bored with algiers?
just know a nice map and nobody wanna listen?
post it here!

Re: New Maps for the mapcyclevote

Postby havoc » 02.17.12

irc in the weekend?
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin
User avatar
havoc
Godlike
 
Posts: 674
Joined: 06.26.09

Re: New Maps for the mapcyclevote

Postby Pirat » 02.18.12

havoc wrote:irc in the weekend?

Will probably be there,
although I will probably need to discuss the database design on Mumble.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: New Maps for the mapcyclevote

Postby wurst » 02.18.12

mumble in the weekend?
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: New Maps for the mapcyclevote

Postby Pirat » 02.18.12

wurst wrote:mumble in the weekend?

Oh yes! :-)

Don't know if I can make it today, but tomorrow, I should be prepared!


.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: New Maps for the mapcyclevote

Postby Pirat » 02.21.12

Pirat wrote:
wurst wrote:mumble in the weekend?

Oh yes! :-)

Don't know if I can make it today, but tomorrow, I should be prepared!

Weeeeell ... I was in mumble indeed, but too tired to talk about
databases.

Nevertheless, it seems I have found a working database structure
that lets me do whatever is needed to implement the map list.

Now I just need:
  • Short discussion with Wursti about using primary keys
  • Some thought put into the map properties which users
    can edit. After some initial thought, I will share my ideas here
    in the forum and together, we'll find a nice solution. :-)
  • The PHP frontend. Basic database access works, but the
    interface is totally unfinished. =)

.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: New Maps for the mapcyclevote

Postby havoc » 02.21.12

just add a table for comments with these columns:

comment id
map id
date/time
user id/name/whatever
comment text
type of comment

with type of comment being one of 3 - a pro, a con, or just comment

can u please paste your maps table?


p.s. your primary in the maps table should be the map id
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin
User avatar
havoc
Godlike
 
Posts: 674
Joined: 06.26.09

Re: New Maps for the mapcyclevote

Postby wurst » 02.21.12

yea.
we have automatic backup btw, db and flies
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: New Maps for the mapcyclevote

Postby Crusher » 02.21.12

Flies? :)
User avatar
Crusher
Godlike
 
Posts: 1602
Joined: 08.30.08
-----tdm:  
nick: Blah
skill: 1113.98
kills: 15850
deaths: 10118
ratio: 1.56
-----bomb:  
nick: I_Play_Games
skill: 734.04
kills: 2551
deaths: 2228
ratio: 1.14

Re: New Maps for the mapcyclevote

Postby havoc » 02.22.12

files
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin
User avatar
havoc
Godlike
 
Posts: 674
Joined: 06.26.09

Re: New Maps for the mapcyclevote

Postby Pirat » 02.22.12

havoc wrote:just add a table for comments with these columns:

comment id
map id
date/time
user id/name/whatever
comment text
type of comment

with type of comment being one of 3 - a pro, a con, or just comment
[...]
p.s. your primary in the maps table should be the map id

AFAIK, this won't work, as in your table, there is more than one row
for each map (because there can be more than one comment per
map). Therefore, the map id is not unique and thus cannot act
as a primary key.

Would should work, however, is using a composite primary key that
comprises all columns. I'll probably use such a key for all of my
tables except for my main table where the map name/id is the
primary key.

havoc wrote:type of comment

with type of comment being one of 3 - a pro, a con, or just comment

Ah, this let another idea pop up in my head ... thanks, havoc! :-)

havoc wrote:can u please paste your maps table?

I will do so today or -- at the latest -- tomorrow.

But some sparse info I can give you now:

Currently, I have one main table (urtmaps) with columns that
describe the non-list/unique data for each map (filename, filesize,
levelshot, homepage, release date, is installed on dswp, can be
voted for, etc.).

List data for the maps are stored in other tables, like urtmaptags,
urtmapauthors, urtmaplicenses (a map can be dual-licensed, for
instance), urtmapdownloads, etc.

Accusations of over-engineering this map list are automatically
redirected to /dev/null. ;-)


.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

PreviousNext

Who is online

Users browsing this forum: No registered users and 0 guests

Misc