search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 12.22.24

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 16  Next
Author Message
PostPosted: 02.17.12 
Offline
Godlike
User avatar

Joined: 06.26.09
Posts: 674
irc in the weekend?

_________________
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin



 


Top
 Profile  
 
PostPosted: 02.18.12 
Offline
Godlike

Joined: 03.29.10
Posts: 1447
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63
havoc wrote:
irc in the weekend?

Will probably be there,
although I will probably need to discuss the database design on Mumble.



 


Top
 Profile  
 
PostPosted: 02.18.12 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
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
mumble in the weekend?

_________________
Image



 


Top
 Profile  
 
PostPosted: 02.18.12 
Offline
Godlike

Joined: 03.29.10
Posts: 1447
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63
wurst wrote:
mumble in the weekend?

Oh yes! :-)

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


.



 


Top
 Profile  
 
PostPosted: 02.21.12 
Offline
Godlike

Joined: 03.29.10
Posts: 1447
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63
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. =)

.



 


Top
 Profile  
 
PostPosted: 02.21.12 
Offline
Godlike
User avatar

Joined: 06.26.09
Posts: 674
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



 


Top
 Profile  
 
PostPosted: 02.21.12 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
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
yea.
we have automatic backup btw, db and flies

_________________
Image



 


Top
 Profile  
 
PostPosted: 02.21.12 
Offline
Godlike
User avatar

Joined: 08.30.08
Posts: 1602
-----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
Flies? :)



 


Top
 Profile  
 
PostPosted: 02.22.12 
Offline
Godlike
User avatar

Joined: 06.26.09
Posts: 674
files

_________________
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin



 


Top
 Profile  
 
PostPosted: 02.22.12 
Offline
Godlike

Joined: 03.29.10
Posts: 1447
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63
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. ;-)


.



 


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 16  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Imprint

Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009, 2010 phpBB Group

Skin by Lucas Kane
we use apache2 mod rewrite with phpBB SEO
map train_beta1-100 © 2009 by SteveMcQueen
Statistics Backend + Database by XLR Stats and B3 Bot
mapvote robot and gameserver monitor © 2009 by BlinKy
mumble viewer Copyright © 2008 Dominik Radner (aka Urmel)
mumble switcher and integration © 2008 by XTJ7, Unclefragger and Wursti
Localisation Plugin © 2009, Team Leads Plugin © 2009 and Knifer Plugin © 2009 by SvaRoX
for our stats we use Chart.js Copyright (c) 2013-2015 Nick Downie.
the stats also use some jQuery jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc.



voice server
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1730.63418631
NormaSnockers1865.75400492
Zottel1760.8276378
make.them.suffer1846.17269872
>8v=1825.35230156
moon1777.56195615
sjas1692.49192315
peace1878.86190660
Wagner_Moura1562.9188001
Goomba1859.75182677
z0rn1608.41181016
Mad1803.76179124
[dswp]PLZ1847.85178516
Graf_ZahlIII1835.73167407
Zohan1611.07159737
ubercunt1634.93159240
Yarrr!1917.33156233
I_am_nOOb1909.64151268
Pandageddon1891.75148319
Pirat1664.08145798