Advertisement
Guest User

Untitled

a guest
Dec 6th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.03 KB | None | 0 0
  1. Gmail Renato Zuma <renatozuma@gmail.com>
  2. ro2 stats
  3. 6 mensagens
  4. Renato Zuma <renatozuma@gmail.com> 27 de julho de 2015 03:07
  5. Para: narrowcape@gmail.com
  6. Hey mate!
  7.  
  8. I was making the template when something crossed my mind:
  9.  
  10. Are you aware if it's possible to have custom console commands in mutators?
  11.  
  12. I mean, a logged in admin would input specific custom commands and the mutator would read them.
  13.  
  14. This would make it easy for us to link the .xml files to their respectitive matches at ro2arena. Admins would input match ID before starting a map (or match, if we really need it more complex) by typing something like matchID 236 (I would of course expose the ID for them in the match arrangement tab, although it's already possible to notice from the browser url).
  15.  
  16. What do you think? Have you thought about something different?
  17.  
  18. --
  19. Renato Zuma Bange
  20. narrowcape <narrowcape@gmail.com> 28 de julho de 2015 05:05
  21. Para: Renato Zuma <renatozuma@gmail.com>
  22. Hey,
  23.  
  24. I was thinking that we should try to make it a little easier for Leaders. Match report has date (+time) in file name but also as record in file too. And I have map name there already too.
  25.  
  26. Could it go something like this:
  27.  
  28. 1. Round end is detected by RO2LeagueMutator and match report xml file is written to game server directory (see note 1)
  29. 2. Match report file is transferred to demorecs.ro2league.com so that all reports from all servers are in one single place (see note 2)
  30. 3. Match report file is transferred to ro2arena.com and inserted into DB (see note 3)
  31. 4. Team Leader opens match reporting and chooses (dropdown maybe) Server, Date and Map, then ro2arena.com backend will "suggest" matching match report data
  32.  
  33. Note 1: Atm, mutator does not write intermediate reports while round is in progress. I will look into this, because we have seen some sore losers leaving server before 4th round is over. However, I don't see this as a major problem. There is also a small delay (we are talking about roughly 1 second) before mutator can detect round end. But this falls into the same category as "sore losers" above, if someone leaves server within 1 second after round has ended, his match stats are empty.
  34. Note 2: demorecs.ro2league.com is Ubuntu server and match reports are being fetched from game servers using wget (ftp) shell scripts triggered from cron. Just like with demorec files already. There is small delay, but I can make fetching match reports frequent enough. Maybe some minutes interval is ok.
  35. Note 3: There is no ftp server running on demorecs.ro2league.com atm, just http server. But I suppose ro2arena.com could just fetch files using http as well. If ftp is a must, I can start ftp server there ofc.
  36.  
  37. Please let me know how you see this "plan" :D
  38.  
  39. -Rivimies
  40.  
  41. ps. It is always nice to know something about people around you :D Please see this picture: -- editted --
  42. It is already 1 year old, but I probably look the same, maybe a little more tired perhaps :D :D
  43.  
  44. [Texto das mensagens anteriores oculto]
  45. Renato Zuma <renatozuma@gmail.com> 29 de julho de 2015 02:09
  46. Para: narrowcape <narrowcape@gmail.com>
  47. Hey!
  48.  
  49. That sounds like a reasonable plan. It wouldn't be so hard to test for a filename with date close to the expected date. Further tests would be teams and maps played. As long as the teams don't change anything without updating ro2arena, we will be fine.
  50.  
  51. Hey nice family you have there haha. Cute daughters. Is the third one a girl too?
  52. [Texto das mensagens anteriores oculto]
  53. --
  54. Renato Zuma Bange
  55. Renato Zuma <renatozuma@gmail.com> 14 de agosto de 2015 11:12
  56. Para: narrowcape <narrowcape@gmail.com>
  57. Hello!
  58.  
  59. Some things to discuss before I write the xml template (some of which we probably have already discussed at some point in time and then I forgot :P):
  60. Assuming you are writing to a file only AFTER each ROUND, are you able to keep a reference to the file on server memory so you can create only 1 file per MATCH (reopening it after each round), instead of 1 new file per round? That would make things much easier and less error prone for me (less guessing data).
  61. Since I'll have to rely on both server and match (or round, if 1st answer is a no) starting time to guess the exact file(s), are all your game servers able to be queried, or (as I believe you mentioned before) you prefer having your own separate data server querying the game servers each few minutes only to serve the .xml files to me? If the second alternative is true, can you put all your game servers info and references to your directory structure into a .xml file which I would query before querying the actual stats files? For example:
  62. - server1_folder
  63. - server2_folder
  64. - server3_folder
  65. servers.xml
  66.  
  67. On a side note, the ideal approach should really involve server booking, in order to avoid errors and any further manual monitoring proccess.
  68.  
  69. Let's say the .xml file is created by ro2arena instead, whenever a match is arranged. Then, prior to match starting (first player joins the server), your mutator would somehow trigger a script to search for that file in my server. If that script doesn't find a file, it would somehow tell the mutator back that the server has not been booked and thus it should either deny the match to start or just not write to any stats file at all (scrims). I say "somehow" because I don't really know UE and RO mutator capabilities, but I imagine that if it can't directly communicate to other servers, it should at least be able to trigger an internal server routine to do the job, and after a few seconds search for the response in a log file.
  70.  
  71. Do you know if this approach is any possible?
  72. [Texto das mensagens anteriores oculto]
  73. --
  74. Renato Zuma Bange
  75. Renato Zuma <renatozuma@gmail.com> 14 de agosto de 2015 11:33
  76. Para: narrowcape <narrowcape@gmail.com>
  77. ps.: the "servers.xml" mentioned in the second point would make for easier updates (add or change) of servers info. I could instead require competition admins to manage that info directly at ro2arena.
  78. [Texto das mensagens anteriores oculto]
  79. --
  80. Renato Zuma Bange
  81. Renato Zuma <renatozuma@gmail.com> 14 de agosto de 2015 15:02
  82. Para: narrowcape <narrowcape@gmail.com>
  83. I've attached a XML Schema (.xsd) file.
  84.  
  85. This schema was made considering the worst case scenario, in which in addition to guessing the exact file to be read, I'd also have to guess the teams vs factions relationship for each round by checking the steamids. This is again very error prone, since a match can start right after in the same server and ro2arena supports multi-clan (a player can be part of multiple teams), giving yet another reason for the approach I've suggested in the previous email, in which basically all information you don't have (match id, team ids, maps to be played, etc) would be provided to you and the mutator would just have to fill data in the retrieved file. It could be so great if that approach is doable that in addition to server booking, we could make it even easier for the players by changing maps automatically without the need of voting/admin changing.
  86. [Texto das mensagens anteriores oculto]
  87. --
  88. Renato Zuma Bange
  89.  
  90. ro2arena_stats_schema.xsd
  91. 7K
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement