Jump to content

[BF4] Stats webpage for XpKiller's Stats Logger Plugin


tyger07

Recommended Posts

Originally Posted by Gijzijtdood*:

 

In other news, I have been working on the code.

 

These are the changes I have been working on:

- Improved directory structure (makes finding specific files easier)

- Reduced code size (less duplicated code and less spaghetti code)

- More asynchronous loading (page contents are asynchronously loaded into the page)

- Should be easier to navigate via mobile device due to larger click/"touch" areas for links.

 

You can view current progress here:

http://open-web-community.com/bf4stats/test/index.php

 

^It's not done and therefore you will see some broken images, some broken links, and some things haven't been changed yet.

 

If I could also add Final Stand vehicles and weapons at the same time, that would be nice. I just need someone's help in order to do so (see post above).

Hey ty_ger,

 

Do you still need this info? I'll be happy to help.

Just give me a pm and i'll get on it :ohmy:

 

Greetz,

 

http://noob-fighters.com/

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by Gijzijtdood*:

 

Yes, I know.

 

But I don't know what the 'Fullname', 'Friendlyname', or 'Damagetype' is according to xpkiller's plugin.

 

XpKiller's plugin comes up with some pretty bizarre random stuff sometimes and it is very hard to predict. Impossible for me to know since I don't have a server.

 

So, any idea for these items?

 

Final Stand Weapons:

'Rorsch Mk-1'? Friendlyname? Fullname? Damagetype?

'Phantom Bow'? Friendlyname? Fullname? Damagetype?

 

Final Stand Vehicles:

'Snowmobile'? Friendlyname? Fullname? Damagetype?

'HT-95 Levkov'? Friendlyname? Fullname? Damagetype?

'Shipunov 42'? Friendlyname? Fullname? Damagetype?

'Pod Launcher'? Friendlyname? Fullname? Damagetype?

'XD-1 Accipiter'? Friendlyname? Fullname? Damagetype?

 

If I knew the output of XpKiller's plugin, it would make it much easier for me to implement stats for these items. It is a fairly simple thing for anyone to do. If you have a BF4 server with updated B4.def file, I just need to know the weapon information from the newest weapons in the weapons table of the database.

 

For example:

weapon_example.jpg

 

If someone can help me out with the above questions, that would REALLY help. Thank you!

 

Since they are the newest weapons, they should be easy to find since they will be the last weapon IDs in the table. I already know everything up to 'Unica6'.

Here's the weapons file you requested. (the list was to long to fit in one screen :biggrin:)

Can't find the 'Rorsch Mk-1' and the 'Phantom Bow' though.

 

ScreenShot001.jpg

 

 

ScreenShot002.jpg

 

 

Greetz,

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Thank you!

 

The phantom bow is 'dlSHTR'. I am not sure yet what Rorsch Mk-1 is.

 

From your list, I have found these missing items:

Code:

Friendlyname	Fullname						Damagetype
dlSHTR		dlSHTR							none
XP4		XP4/Gameplay/Gadgets/MKV/MKV				impact
Railgun		U_Railgun						projectileexplosive
XP2		XP2/Gameplay/Vehicles/PatrolHovercraft/PatrolHover...	vehiclepersonal
XP4		XP4/Gameplay/Vehicles/PodLauncher/Launcher_Pod_Pla...	vehiclepersonal
XP0		XP0/Gameplay/Vehicles/SkidLoader/SkidLoader		vehiclepersonal
XP4		XP4/Gameplay/Vehicles/Snowmobile/Snowmobile		vehiclepersonal
XP4		XP4/Gameplay/Vehicles/HoverTank/XP4_HoverTank		vehicleheavy
XP4		XP4/Gameplay/Vehicles/MetalStorm/XP4_MetalStorm		vehiclestationary
There are two problems though. Two items have their name chopped off in your table due to the long lengths. Could you tell me the rest of "XP2/Gameplay/Vehicles/PatrolHovercraft/PatrolHover..." and "XP4/Gameplay/Vehicles/PodLauncher/Launcher_Pod_Pla..."? Thank you!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gijzijtdood*:

 

Thank you!

 

The phantom bow is 'dlSHTR'. I am not sure yet what Rorsch Mk-1 is.

 

From your list, I have found these missing items:

Code:

Friendlyname	Fullname						Damagetype
dlSHTR		dlSHTR							none
XP4		XP4/Gameplay/Gadgets/MKV/MKV				impact
Railgun		U_Railgun						projectileexplosive
XP2		XP2/Gameplay/Vehicles/PatrolHovercraft/PatrolHover...	vehiclepersonal
XP4		XP4/Gameplay/Vehicles/PodLauncher/Launcher_Pod_Pla...	vehiclepersonal
XP0		XP0/Gameplay/Vehicles/SkidLoader/SkidLoader		vehiclepersonal
XP4		XP4/Gameplay/Vehicles/Snowmobile/Snowmobile		vehiclepersonal
XP4		XP4/Gameplay/Vehicles/HoverTank/XP4_HoverTank		vehicleheavy
XP4		XP4/Gameplay/Vehicles/MetalStorm/XP4_MetalStorm		vehiclestationary
There are two problems though. Two items have their name chopped off in your table due to the long lengths. Could you tell me the rest of "XP2/Gameplay/Vehicles/PatrolHovercraft/PatrolHover..." and "XP4/Gameplay/Vehicles/PodLauncher/Launcher_Pod_Pla..."? Thank you!
This is more like it :biggrin:

 

ScreenShot003.jpg

 

Greetz :mad:

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Update released!

 

https://github.com/tyger07/BF4-Server-Stats

 

Changes:

- Cleaned up a lot of spaghetti code

- New directory structure to make editing/upkeep easier

- More asynchronous loading of page contents for a smoother/faster experience

- Bug fixes and performance improvements

- Added missing Final Stand weapons

 

http://open-web-community.com/bf4sta...tats/index.php

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gijzijtdood*:

 

Hey Ty_ger,

 

I updated XPkillers plugin to version 1.1.0.1 and now i get this error on your stats page.

 

"The game 'BF4' was not found in this database! Please notify this website's administrator."

 

Any ideas?

 

Greetz

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hey Ty_ger,

 

I updated XPkillers plugin to version 1.1.0.1 and now i get this error on your stats page.

 

"The game 'BF4' was not found in this database! Please notify this website's administrator."

 

Any ideas?

 

Greetz

Version 1.1.0.1 is older than 1.0.0.2. I know the version numbers don't make sense. I don't know how 1.0.0.2 is a newer number than 1.1.0.1, but it is. 1.1.0.1 was not designed to work with BF4 and won't work with this stats page.

 

1.1.0.1: BF3 Chat, GUID, Stats and Mapstats Logger[1.1.0.1][bF3]

1.0.0.2: BF4 BF3 BC2 MOH Chat, GUID, Stats and Mapstats Logger[1.0.0.2]

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Bierfassl*:

 

Hi ty_ger07,

 

nice work! Thank you for that!

 

I think i found a bug on index page ("STATS INDEX") side. The first Server is not in the same position of the other. He is too far on the right side.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hi ty_ger07,

 

nice work! Thank you for that!

 

I think i found a bug on index page ("STATS INDEX") side. The first Server is not in the same position of the other. He is too far on the right side.

Can you give me a link?

 

On my version, it works fine:

http://open-web-community.com/bf4sta...tats/index.php

 

So, I need to see your version.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Bierfassl*:

 

Can you give me a link?

 

On my version, it works fine:

http://open-web-community.com/bf4sta...tats/index.php

 

So, I need to see your version.

I think it's an error with Firefox. On IE and Chrome it works fine. I tested it after your post.

 

Same error in your page using Firefox as my.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I think it's an error with Firefox. On IE and Chrome it works fine. I tested it after your post.

 

Same error in your page using Firefox as my.

Ok, I was able to duplicate the issue.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GhostS0ul*:

 

Hey Ty_ger

 

So I updated to the latest version and the maps and server info pages are broken.... ?

 

http://stats.battlebornegaming.net/i...p_p=maps&sid=2

 

The older version from the beginning of December still shows them.....

http://stats.battlebornegaming.net/b...p_p=maps&sid=2

 

Any thoughts?

 

I'll look at it closer tomorrow, im tired time for bed.

Thank You so much for making the stats pages

 

Ghost

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hey Ty_ger

 

So I updated to the latest version and the maps and server info pages are broken.... ?

 

http://stats.battlebornegaming.net/i...p_p=maps&sid=2

 

The older version from the beginning of December still shows them.....

http://stats.battlebornegaming.net/b...p_p=maps&sid=2

 

Any thoughts?

 

I'll look at it closer tomorrow, im tired time for bed.

Thank You so much for making the stats pages

 

Ghost

I am guessing that the .htaccess file is not working on your web server. Perhaps your web server is not set up to allow it. You need to enable AllowOverride All on your Apache server if you have access to it as an option or have access to the apache2.conf file. Maybe you can ask your web server host.

 

If you can't get the .htaccess file to work, you will need to change the code so that it won't be required. You would need to delete the .htaccess files from the ./maps directory, the ./server-banner directory, the ./server directory, and the ./signature directory. Then, you would need to change the references to the image files. For instance in ./maps/maps.php it says strong> which would need to be changed tphp'.

 

Do you understand? The php files which create the image end with .php extension, but I am calling on them using a .png name and the .htaccess file redirects the .png request to the correct .php file. They need to be .php files to work, but I was calling them by the fake .png name for image embedding compatibility reasons. If you get rid of the non-functioning .htaccess files, you will need to refer to those file names by their true names.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MRniceGuy*:

 

Hi

is there any ways to show the stats page inside an HTML page?

for example i can create a page in my forum its an external page, and i have created a tab for it and named "stats"

when people click on "stats" an external page opens inside my forum,its an empty HTML page and i can add whatever i want, so is there any ways to show the stats inside the page?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Could you add a possibility to define the background image in the config file? :tongue:

 

Doesn't fit my style the last one...

It's in stats.css. It's a standard cascading stylesheet which any web admin should find no problem editing.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hi

is there any ways to show the stats page inside an HTML page?

for example i can create a page in my forum its an external page, and i have created a tab for it and named "stats"

when people click on "stats" an external page opens inside my forum,its an empty HTML page and i can add whatever i want, so is there any ways to show the stats inside the page?

In an iFrame, yes.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Is there a way to use this for Battlefield 3?

In ./common/connect.php, if you change 'BF4' to 'BF3' on line 24, it will work for BF3. But you will need to change the map and weapon names and codes in ./common/constants.php and add the weapon, map, and rank images in ./common/images/weapons, ./common/images/maps, and ./common/images/ranks.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MRniceGuy*:

 

In an iFrame, yes.

Great!

so i added the stats webpage link inside

 

now the stats webpage shows up but the window is very small

how can i make the link to be opened in full screen or manage it as i want

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Great!

so i added the stats webpage link inside

 

now the stats webpage shows up but the window is very small

how can i make the link to be opened in full screen or manage it as i want

The iframe size is specified in the iframe code. Look at the "attributes" here:

http://www.w3schools.com/tags/tag_iframe.asp

 

You can use fancy css and javascript tricks to figure out a person's browser window size and adjust the iframe size based on that. I would google it.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MRniceGuy*:

 

The iframe size is specified in the iframe code. Look at the "attributes" here:

http://www.w3schools.com/tags/tag_iframe.asp

 

You can use fancy css and javascript tricks to figure out a person's browser window size and adjust the iframe size based on that. I would google it.

alright thank you very much
* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.