Alpha 9.5

User avatar
GFX47
Dev
Posts: 2861

Alpha 9.5

Post#1 » 06 Sep 2017, 14:48


User avatar
Kanishka
Skynet
Skynet
Posts: 1420
Contact:

Re: Alpha 9.5

Post#2 » 06 Sep 2017, 15:21

Thanks for keeping Black in the survey. Not many people consider Black as a possible favorite color. ^^
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
Kanishka
Skynet
Skynet
Posts: 1420
Contact:

Re: Alpha 9.5

Post#3 » 06 Sep 2017, 15:27

Bug: It is possible to create matches before deploying old ones
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
GFX47
Dev
Posts: 2861

Re: Alpha 9.5

Post#4 » 06 Sep 2017, 15:45

I've removed the deploying/max pending constraints.

User avatar
Kanishka
Skynet
Skynet
Posts: 1420
Contact:

Re: Alpha 9.5

Post#5 » 06 Sep 2017, 18:50

GFX47 wrote:I've removed the deploying/max pending constraints.


:shock:
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
0x1de
Automaton
Automaton
Posts: 156

Re: Alpha 9.5

Post#6 » 07 Sep 2017, 20:06

All the tournaments are marked as new, even the expired ones. I can't see how to clear the new status.

User avatar
GFX47
Dev
Posts: 2861

Re: Alpha 9.5

Post#7 » 07 Sep 2017, 20:51

Didn't refreshing the tournament tab remove the new tags?

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#8 » 07 Sep 2017, 21:15

Trello wrote:Add a matchmaking section to the stats website

Cant find this. How does it work?

Trello wrote:Sortable leaderboard (client side)

Don't get this to work. (neither mobile nor desktop)

I miss the old ingame leaderboard (as the mobile ingame browser shows the webpage distorted and far too big - cannot make it smaller)
If I want to see the stats I click on stats.
It is strange to have 2 buttons for the stats page.

On the Tournaments website the internal browser shows a cookie information I cannot click at.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#9 » 07 Sep 2017, 21:16

GFX47 wrote:Didn't refreshing the tournament tab remove the new tags?

Refreshing removes them here. Moving in and out of this page does not.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
GFX47
Dev
Posts: 2861

Re: Alpha 9.5

Post#10 » 07 Sep 2017, 21:39

LuBeNo wrote:
Trello wrote:Add a matchmaking section to the stats website

Cant find this. How does it work?


Removed it eventually as it's now on the wiki.

LuBeNo wrote:
Trello wrote:Sortable leaderboard (client side)

Don't get this to work. (neither mobile nor desktop)


It will be available when 9.5 will be live.

LuBeNo wrote:I miss the old ingame leaderboard (as the mobile ingame browser shows the webpage distorted and far too big - cannot make it smaller)
If I want to see the stats I click on stats.
It is strange to have 2 buttons for the stats page.


The "Leaderboard" button leads to the leaderboard of your league and the "Stats" button to your own stats.

LuBeNo wrote:On the Tournaments website the internal browser shows a cookie information I cannot click at.


I'll talk to them about it.

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#11 » 07 Sep 2017, 22:03

GFX47 wrote:
LuBeNo wrote:I miss the old ingame leaderboard (as the mobile ingame browser shows the webpage distorted and far too big - cannot make it smaller)
If I want to see the stats I click on stats.
It is strange to have 2 buttons for the stats page.

The "Leaderboard" button leads to the leaderboard of your league and the "Stats" button to your own stats.

I know, but I liked the old one better.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#12 » 07 Sep 2017, 23:01

Having no ingame leaderboard in 9.5 anymore, removes the possibility to deploy private matches in my league.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
Kanishka
Skynet
Skynet
Posts: 1420
Contact:

Re: Alpha 9.5

Post#13 » 08 Sep 2017, 07:25

Eh... It's possible to zoom out on the in-game leaderboard. I shared the screenshot on Telegram.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#14 » 08 Sep 2017, 08:02

Kanishka wrote:Eh... It's possible to zoom out on the in-game leaderboard. I shared the screenshot on Telegram.

Didn't work here.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
GFX47
Dev
Posts: 2861

Re: Alpha 9.5

Post#15 » 08 Sep 2017, 15:33

A preview of the new stats website in 9.5.
https://stats.gladiabots.com/?v=905

pier4r
Skynet
Skynet
Posts: 3339

Re: Alpha 9.5

Post#16 » 08 Sep 2017, 19:34

nice! but look a bit broken.

woah it is super slow on a mac, i5 core, 16 GB of ram. Where do I find the code about the tables?

Wikipedia has something really slick in comparison. (still nice attempt)


Edit, found.

Code: Select all

function sortTable(tableID, colIndex, childTag=null, childIndex=0, defaultAscSort=true)
{
   var table, rows, switching, i, x, y, xValue, yValue, shouldSwitch, ascSort, switchcount;

   switchcount = 0;
   table = document.getElementById(tableID);
   switching = true;
   
   //Set the sorting direction to ascending:
   ascSort = defaultAscSort;
   
   /*Make a loop that will continue until
   no switching has been done:*/
   while (switching)
   {
      //start by saying: no switching is done:
      switching = false;
      rows = table.getElementsByTagName("TR");
      
      /*Loop through all table rows (except the
      first, which contains table headers):*/
      for (i = 1; i < (rows.length - 1); i++)
      {
         //start by saying there should be no switching:
         shouldSwitch = false;
         /*Get the two elements you want to compare,
         one from current row and one from the next:*/
         x = rows[i].getElementsByTagName("TD")[colIndex];
         y = rows[i + 1].getElementsByTagName("TD")[colIndex];
         
         if (childTag != null)
         {
            x = x.getElementsByTagName(childTag)[childIndex];
            y = y.getElementsByTagName(childTag)[childIndex];
         }
         
         /*check if the two rows should switch place,
         based on the direction, asc or desc:*/
         xValue = parseInt(x.innerHTML);
         yValue = parseInt(y.innerHTML);
         if (isNaN(xValue)) xValue = x.innerHTML.toLowerCase();
         if (isNaN(yValue)) yValue = y.innerHTML.toLowerCase();
         
         if (ascSort)
         {
            // Asc sort
            if (xValue > yValue)
            {
               //if so, mark as a switch and break the loop:
               shouldSwitch= true;
               break;
            }
         }
         else
         {
            // Desc sort
            if (xValue < yValue)
            {
               //if so, mark as a switch and break the loop:
               shouldSwitch= true;
               break;
            }
         }
      }
      
      if (shouldSwitch)
      {
         /*If a switch has been marked, make the switch
         and mark that a switch has been done:*/
         rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
         switching = true;
         
         //Each time a switch is done, increase this count by 1:
         switchcount ++;     
      }
      else
      {
         /*If no switching has been done AND the direction is "asc",
         set the direction to "desc" and run the while loop again.*/
         //if (switchcount == 0 && dir == "asc")
         if (switchcount == 0)
         {
            ascSort = !ascSort;
            switching = true;
         }
      }
   }
}


BUBBLESORT. REALLY?

1000 rows can be 1 million checks.

Anyway bubblesort I think can stay, the problem is that you work with the document and that may be heavy. What about you copy the values of the colum in an array and the index of the columns in another, then you sort the array with values (and move accordingly the array of the rows), and then you switch the rows at the end.

In that way you need to do at most 1000 rearrangements (using an additional row as temp row) and not 1000000. Even bubblesort can be pretty fast on modern system (any smartphone since 2010?) if it does not work with heavy objects.
Attachments
Bildschirmfoto 2017-09-08 um 19.33.24.png
Bildschirmfoto 2017-09-08 um 19.33.24.png (74.08 KiB) Viewed 1067 times
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
GFX47
Dev
Posts: 2861

Re: Alpha 9.5

Post#17 » 08 Sep 2017, 19:57

I just copied the first piece of code I found via Google.
Didn't even try to understand it as it's a temporary solution.

pier4r
Skynet
Skynet
Posts: 3339

Re: Alpha 9.5

Post#18 » 08 Sep 2017, 20:16

Ah
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#19 » 10 Sep 2017, 15:45

pier4r wrote:Image

Looks similar here too. The overlapping numbers should be fixed...
leaderboard.png
leaderboard.png (92.53 KiB) Viewed 1039 times
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Alpha 9.5

Post#20 » 10 Sep 2017, 16:11

GFX47 wrote:A preview of the new stats website in 9.5.
https://stats.gladiabots.com/?v=905

I would like to sort by max score.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

Return to “Release candidates”

Who is online

Users browsing this forum: No registered users and 1 guest