[service]Flight duration, server info, kill counter, cash...

YSFlight addon development, questions, tutorials, & more!
Post Reply
User avatar
vincent
Contributor
Contributor
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times
Contact:

[service]Flight duration, server info, kill counter, cash...

Post by vincent » Wed Jul 27, 2011 6:45 am

YS SERVERS




Flight durations

You can have several statistics:
- the stats of the month
- the stats of the previous month
- the total stats
- stats by server (if you click on the server icon in the server stats)
- stats by username (if you click on the link on the usernames)

WARNING: accentuated/special characters will be delete.

How it works
If you want your flights to be logged, you must check the server uses YSChat (you can see a ~yschat user)

Stats of the month:

Pilots by duration:
http://marcjeanmougin.free.fr/ys_server ... ration.php
Aircrafts by durations:
http://marcjeanmougin.free.fr/ys_server ... ration.php
Aircrafts by number of pilots:
http://marcjeanmougin.free.fr/ys_server ... pilots.php
Server by duration:
http://marcjeanmougin.free.fr/ys_server ... ration.php
Server by players:
http://marcjeanmougin.free.fr/ys_server ... pilots.php
Pilots by duration:
http://marcjeanmougin.free.fr/ys_server ... ration.php
Aircrafts by durations:
http://marcjeanmougin.free.fr/ys_server ... ration.php
Aircrafts by number of pilots:
http://marcjeanmougin.free.fr/ys_server ... pilots.php
Server by duration:
http://marcjeanmougin.free.fr/ys_server ... ration.php
Server by players:
http://marcjeanmougin.free.fr/ys_server ... pilots.php



---------------------------------



Kill counter

Works with YSPS2 only.
For the moment it's very brutal (for testing purpose), the final system will be easier. The following information are saved for the moment:
- the username of the killer
- the aircraftname of the killer
- the username of the killed (or the ID if it's an endurance mode aircraft)
- the aircraftname of the killed (if it's not a ground object)
- the kind of kill (0=ground object, 1 = aircraft)
- the kills= number_of_kills*strength_of_the_weapon
- the method (10=AAM, AGM, rockets directly ; 11=gun, bombs directly ; 12=rockets indirectly, bombs indirectly), this was fixed by Soji in the YS protocol.

If you click on the username of a killer, you'll only see the kills made by him

About the strength:
gun=1, except the A10=5 or other special aircraft
AAM=12
AGM=12
rockets=10 if you touch directly the object, else it depends of the distance of between the object and the impact
250lb bombs=35 if you touch directly the object, else it depends of the distance of between the object and the impact
500lb bombs=50 if you touch directly the object, else it depends of the distance of between the object and the impact
I can get the IFF of the killer and of the killed.

Any ideas?


---------------------------------


Airline services

Money
Most of the airlines requested a money system. They all earn about 400$/min and don't count flights shorter than 10min. The Echelon system is more innovative with random and risky profits.

Comparative of airlines
A flight is counted if there is:
"(eai)" in the username and "(eai)" in the aircraftname
"(jbu)" in the username and "jetblue" in the aircraftname
"(sal)" in the username and "saloha" in the aircraftname
...
Officials stats (with the rules):
http://marcjeanmougin.free.fr/ys_server ... rative.php
http://marcjeanmougin.free.fr/ys_server ... riod=total
http://marcjeanmougin.free.fr/ys_server ... eriod=last
Unofficial stats (do not check the tags):
http://marcjeanmougin.free.fr/ys_server ... _tag=false


---------------------------------



Signatures


Every pilot can have his own signature.
Two sizes are available, depending if you want to keep your old signature.
You can modify the color, the background, ... of the big signatures

- big signatures
- tiny signatures

In this forum, you'll get an error if you try the signatures because phpBB cannot find the size of the pictures.
The solution is to change the link of the picture with this website
http://www.tiny.cc/

See my signature!


---------------------------------



Server-list


Enables you to know who is flying, and on which server.
Only works with servers using YSChat.
Some airlines have their own page displaying only the pilots from their company.


---------------------------------


Fusions
If you use several usernames, you can ask for a fusion between 2 usernames.
You can only merge 2 usernames that are in the "top-list of the month".
If your username isn't in the list, contact me by mail.
Your fusion request will be validated by an admin to avoid cheat use.


---------------------------------


Privacy

To don't be recorded, put a "@" before your username.
The following information are saved in the database: aircraftname, username, servername, flights, month, year
The following information are saved in the log: aircraftname, username, servername, flights, month, year, day, time


---------------------------------


Bugs

It can occurs that many flights are not recorded.
The most common explanations are:
- too old version of YSChat
- you sent a text message with "your_username has left" before to end your flight
- you are not in the page flying.php
- YSChat has a problem
- I am updating the website
- Two instances of YSChat are connected on the server
- YSChat crashed, and was restarted after you took-off and before you left.
- Flight longer than 3 hours (considerated as cheating)
- Two pilots use the same username
- Unknown aircraft (because YSChat failed to find)


Send me a mail when you notice a problem. I can track all the calls made, so I can know why your flight wasn't recorded. Most of the unlogged flights are kept in a separate database.

User avatar
Eric
Senior Veteran
Senior Veteran
Posts: 1519
Joined: Thu Feb 10, 2011 5:30 am
Favorite Aircraft: Super Hornet
Location: Chicago, Illinois
Has thanked: 59 times
Been thanked: 155 times
Contact:

Re: [service]Flight duration, server info, kill counter, cas

Post by Eric » Wed Jul 27, 2011 6:50 am

I make this website.

User avatar
vincent
Contributor
Contributor
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: [service]Flight duration, server info, kill counter, cas

Post by vincent » Sat Feb 04, 2012 4:38 pm

The flights sent to ys_servers are now forwarded to a new website (still under construction) much more easier to maintain and with an admin interface to easily include new va.

The virtual airline page
http://vins.alwaysdata.net/va/allVA

The 100 last take-off
http://vins.alwaysdata.net/flight/lastTakeOff

The 100 last flights
http://vins.alwaysdata.net/flight/lastFlights

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests