Print Page | Close Window

Player Created Tournaments

Printed From: Illyriad
Category: Miscellaneous
Forum Name: Fansites
Forum Description: Listings of fansites, and resources for creating your own.
URL: http://forum.illyriad.co.uk/forum_posts.asp?TID=10744
Printed Date: 16 Apr 2022 at 18:39
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Player Created Tournaments
Posted By: Tensmoor
Subject: Player Created Tournaments
Date Posted: 11 Jan 2020 at 09:11
Non-API based Tournament System

One thing that I've noticed during my time in Illy is that all the tournaments (player or dev run) are based around alliances. This excludes those who either choose not to join an alliance or are new to the game and still trying to decide which one to join. It also means that if an alliance wants to run an 'inhouse' tournament that they need somebody who has the time and ability to record all the results and all the other stuff that goes along with it.

For player run tourneys such as the excellent ones done by Koda there is also a need to share API keys which some players (rightly or wrongly) are not willing to do.

I decided to have a look and see if I could create something that would allow non-IT-experts to create and run combat based tournaments without the need to share API keys.

The first thing I looked at was how to share the combat reports without the need to share an API key. This is fairly simple as each combat report has an xML button at the bottom. This allows the viewing (and processing) of the underlying data that makes up the combat report. This XML data DOES NOT contain any API key. Rather it has a key to access that specific report. So a player can share only those combat reports that are relevant and they are happy don't contain info they would rather not potentially make public.

Creating a tournament is the more complex part and I'm working on that at the moment. Currently the creator can set start and end dates, restrict to particular regions and define which (if any) alliances can take part. They can even make it so only those not in an alliance can enter.

To try and give as many options to the organisers as possible when it comes to deciding the 'winners' I include the MDQ rating of any NPCs involved in the combat as well as the population of the town that sent the troops. Hopefully this will allow the grouping of the combats by individual town, by player, by alliance, by # of kills, by population, by NPC, by MDQ rating... the list goes on Smile

At present the system is only for hunting style tournaments (these are the easiest to set up) but perhaps in the future I may be able to expand it to include other styles of tournaments.

I'll post some screenshots of the system later. As always comments and suggestions (positive or negative) are warmly welcomed.

Tens




Replies:
Posted By: Tensmoor
Date Posted: 11 Jan 2020 at 18:50
As promised above - a couple of screenshots.

Listing of tournaments

Tournament Details, Standings and Submit Report button



If you want to have a play about adding reports to the current tournaments please go to https://illystuff.uk/tourneyMaker/index.html" rel="nofollow - https://illystuff.uk/tourneyMaker/index.html
Note that the Manage Tournaments button is currently disabled as that is the part I'm working on.

Tens



Posted By: Kimmyeo
Date Posted: 11 Jan 2020 at 18:57
This is amazing Tensmoor! Thank you for all you do in IIly!


Posted By: Rikkos
Date Posted: 11 Jan 2020 at 19:02
Fantastic work Tensmoor Beer

-------------
Illy playername: Tamerlane. Used to play as Rikkos


Posted By: GM Stormcrow
Date Posted: 11 Jan 2020 at 19:10
This is pretty darn fantastic, Tens - and I hope the system gets used extensively!

Really, really amazing stuff.

/me showers plaudits

SC


Posted By: OssianII
Date Posted: 12 Jan 2020 at 09:14
Guid mornin ye auld skinflint. This half eaten haggis of a tool might have it's uses. Mark my words - I only said might, mind ye. Approve

-------------
“If anyone was to ask for my opinion, which I note they’re not, I’d say we were taking the long way around.”
Gimli son of Gloin.


Posted By: Tensmoor
Date Posted: 12 Jan 2020 at 09:35
All the comments are much appreciated folks.
Been working on the Tourney management side of things and have got the parts done to create and edit a tourney. Still got some way to go on the editing side though. If the restrictions of a tournament (regions or alliances) are changed that may affect any reports already submitted for it so I need to write some code to handle that - probably going to be a nightmare as usual Wink
After that I need to create a method for the tourney creator to be able to download the details of all reports submitted to their tournaments. Same query as for showing the tournament standings coupled with the same code that I used for the download in the price grabber tool.
Few other things bubbling away in the braincell but a bit early to say if any of them will work or not.

Tens


Posted By: Tensmoor
Date Posted: 12 Jan 2020 at 17:23
Request for help testing and developing

Hi folks. I've created a tournament that I will use to help me create the code to produce results sets for tournament creators. To do this I need as many different players of all sizes to submit hunting reports to it. Just follow the link below then having read the instructions on the right side of the page, click Tournaments and then select the Initial Test Tournament to submit your reports.

There will not be any prizes for this tourney but everyone who submits reports will have my thanks.

https://illystuff.uk/tourneyMaker/index.html" rel="nofollow - https://illystuff.uk/tourneyMaker/index.html

Tens


Posted By: Tensmoor
Date Posted: 12 Jan 2020 at 23:45
Below is a screenshot summarizing the calculations done by the system at present.




Posted By: DeliciousJosh
Date Posted: 13 Jan 2020 at 05:55
Great Tens, Ill get testing and send some reports! 

Also, does the calculation MDQ mean that the fewer units we send to kill those larger NPC,the more points it gives? 

Say I send 300 kights equipped in elite division armies  to kill a legion of rats. Would that give me more points than if I sent 1000 knights?


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

PublicRelations
HumanResources


Posted By: Tensmoor
Date Posted: 21 Jan 2020 at 17:40
New Version ready for testing
The revised database and code is now ready for testing/evaluation. I've created 4 tournaments for folks to look at and evaluate. Unfortunately all the previously submitted reports were not compatable with the new version of the database and software.

I've also added a bunch of battle reports from my main account to each of them so you can have a look at how they currently work. If you want to you can also add your own battle reports to any of them (I hope you do).

Restrictions on battle reports:
  • The battle must have taken place during the period of the tournament.
  • It must be a battle where you attack an NPC. For the purpose of this factions are not counted as NPCs.
To include a report in more than one tournament you have to add it to each separately.

The management of tournaments is currently disabled.

I'm currently working on a help file that will explain the various terms used and how the calculations are done.

All feedback/suggestions (good, bad or indiferent) are more than welcome.


Posted By: Tensmoor
Date Posted: 21 Jan 2020 at 17:47
Suppose a link to it would be handy...
https://illystuff.uk/tourneyMaker/" rel="nofollow - https://illystuff.uk/tourneyMaker/


Posted By: eowan the short
Date Posted: 21 Jan 2020 at 20:36
Looks great!


https://illystuff.uk/tourneyMaker/" rel="nofollow - ⠀


-------------
This is the thread that never ends, yes it goes on and on my friend. Some person started it, not knowing what it was, and we'll continue posting on it forever just because...


Posted By: Tensmoor
Date Posted: 25 Jan 2020 at 07:59
Progress report

Pretty much all my coding time is going into this and I am slowly but surely finding bugs and fixing them.

I recently had to completely re-design the database that holds the data from the submitted reports and this resulted in having to re-work all the serverside scripts that access it. Most of that is now done. During this I found some errors in my logic for parsing the XML that meant all the data stored on casualties for both sides of the battle were wrong - I'm now pretty sure I've got that sorted and will be pushing that change out very shortly.

A side effect of working on that was I also realised that a battle where the attacker lost no troops would crash the system. The cause of this is that things like the Kill Ratio are:

Defenders killed
Attackers killed
Looks inoccuous but computers really don't like trying to divide by 0. A simple solution would be to replace 0 attackers lost with 1 attackers killed when storing the report but that would destroy the integrity of the stored data so that option was discarded. I also didn't like the fact that this approach would show no difference in the ratio if the attacker lost 0 troops or 1 troop so I decided to go for 0.9 instead of 1 as the divisor.
The way the system works is that all the calculations are done by the database so that meant I had to go do a load of reading on how I could incorporate all of that into the database query. Again, pretty sure I've now got that worked out.

I've added a 'Terms Explanation' button that hopefully will explain what I mean by things like MDQ and how they affect the results. If there are any parts/terms that you're still not clear on please ask.

I'm now working on double checking and tweaking the Tournament Management part of the system. I need to make sure that this part of the system is as foolproof as possible so that those without great computer skills can also create and run tournaments.

In summary, I'm not there yet but certainly getting closer Big smile





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net