Raised This Month: $32 Target: $400
 8% 

Edit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Angelina
Member
Join Date: Feb 2007
Old 10-21-2007 , 14:33   Edit
Reply With Quote #1

edit...

Last edited by Angelina; 11-30-2007 at 13:44.
Angelina is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-21-2007 , 16:26   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #2

"einfachste" möglichkeit wäre:

- deine formel mit in das maprankvote plugin einzubauen, und ergebniss mit in die datenbank zu schreiben
- das maptime müsste sich die daten dann aus der datenbank holen, nicht aus der ini

oder besser:

- alles in ein plugin
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.

Last edited by |PJ| Shorty; 10-21-2007 at 16:34.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-21-2007 , 16:44   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #3

mein neuestes aktuelles projekt heisst "anna" und ist 10 tage alt ^^

werd mal sehen was ich tun kann.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-21-2007 , 17:06   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #4

Quote:
Originally Posted by Angelina View Post
hmmm.... ich spüre leichte eifersuchtserscheinungen.. ;o)
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-21-2007 , 18:17   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #5

anna falls ich das richtig verstehe und du vater geworden bist dann gj und herzlichen glückwunsch ;D
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
schlumpf2005
Veteran Member
Join Date: Dec 2005
Location: Eckernförde (Germany)
Old 10-21-2007 , 20:41   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #6

der gute Shorty ist Vater und seine kleine heist "anna" von hinten wie von vorne a n n a ;)
__________________


Wir Bieten Ihnen Gameserver ohne Vertragsbindung an. (Prepaid Gameserver) Überzeugen Sie sich selbst
schlumpf2005 is offline
Send a message via ICQ to schlumpf2005
pwned.
Senior Member
Join Date: Jan 2007
Location: Germany
Old 10-22-2007 , 09:13   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #7

Hübsches OT Da bin ich immer dabei


Hertzlichen Glückwunsch ^^ wenn du Vater bist ;)


Und wie wärs denn wenn man das Plugin mit den map times einfach als ein zweites Vote Plugin nimmt? Das nach dem Mapchange einfach das Plugin ausführt und die Spieler Fragt wie lange die diese map spiele wollen?
__________________
pwned. is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-22-2007 , 14:22   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #8

ich werds in das mapvoting plugin als zusatzoption mit einbauen, ohne an der datenbank etwas zu verändern.
so bleibt es zum alten kompatibel, und ist nebenbei auch einfacher zu coden.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-22-2007 , 17:42   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #9

So, erster Test, einige defines zum einstellen.
Code:
#define CHOOSE_MOD 2  //1= time before mapchange; 2= time after mapchange
#define CHOOSE_TIME 300  //time to wait (sec)
#define USE_TIMELEFT_CALC //comment if you don´t want to use the timelimit change
#define CALC_MODE 1  //1= by ShOrTy:  good-bad (can change + or - OFFSET)
    //2= by Angelina: ((good*3)+(ok*2)+bad)/3 (can change + OFFSET)
#define MIN_VOTES 10  //min votes that must be made to change timelimit
#define MAX_TIME_OFFSET 15 //max offset to timelimit
#define MIN_TIMELIMIT 10 //min timelimit (can´t go below)
wie man sieht gibt es 2 Berechnungsarten, Angelinas und eine von mir.
meine verkürzt auch die Mapzeit, deine verlängert sie nur.
Auswahl ist Geschmackssache.

Sprachdatei bleibt vorerst die vom alten plugin.
Attached Files
File Type: sma Get Plugin or Get Source (maprank2time.sma - 711 views - 9.8 KB)
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-23-2007 , 05:13   Re: Sql-Daten (MapVoting) in MapTime übernehmen
Reply With Quote #10

deine 2 bisherigen plugins entfallen, nur das ist nötig

du berechnest die verlängerung mit if wenn, ich berechne sie dynamisch nach deiner formel
- je mehr die map positiv bewertet haben, desto höher wird die timelimit (minutenweise) bis MAX_TIME_OFFSET
- MIN_VOTES bedeutet, so viele votes müssen für die map abgegeben worden sein, sonst bliebt die eingestellte timelimit
- MIN_TIMELIMIT hat bei deiner formel keine bedeutung, da sie ja die map nicht verkürzen kann, das wär das minimum
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode