Jump to content
  1. Русскоязычное сообщество

    1. Новости и анонсы

      Официальные новости, анонсы и объявления.

      210.1k
      posts
    2. 42.3k
      posts
    3. Вопросы и ответы

      Задай вопрос - получи ответ от более опытных игроков.

      53.9k
      posts
    4. Общий раздел

      Обсуждение игры "Warspear Online".

      55k
      posts
    5. 6k
      posts
    6. 173.6k
      posts
    7. Предложения

      Здесь вы можете оставить свои предложения и пожелания о развитии проекта.

      161.3k
      posts
    8. Поддержка

      Если у вас что-то сломалось и не работает - вам сюда.

      91k
      posts
    9. Тестовый сервер

      Тут мы обсуждаем все, связанное с тестовым сервером.

      127
      posts
    10. Гильдии

      Здесь можно обсудить дела гильдейские. Счетчик сообщений отключен.

      14.6k
      posts
    11. Конкурсы

      Конкурсы, которые мы проводим время от времени в мире Аринара. Участвуйте и выигрывайте!

      50.3k
      posts
    12. 9.2k
      posts
    13. Таверна

      Разговоры на любые темы. Все что выходит за рамки игры и не попадает в другие разделы. Счетчик сообщений отключен.

      202.6k
      posts
  2. International

    1. News & Announcements

      Official news & announcements.

      68.8k
      posts
    2. Game events

      Guild and alliance events

      109
      posts
    3. Must read for everybody

      Here you will find a lot of useful pieces of advice from administration and other players

      18.2k
      posts
    4. Support

      If you have something broken and not working - you are in the right place.

      31.1k
      posts
    5. New Players

      Just started playing? You can simply say "Hi!" or ask your first question about the game.

      7.7k
      posts
    6. Videos of the game

      Here we will be collecting all your game videos of Warspear Online

      3.9k
      posts
    7. General

      General topics discussion.

      61.1k
      posts
    8. 2.7k
      posts
    9. 32.1k
      posts
    10. PvP and Arena

      All Player versus Player and Arena related discussions

      9.3k
      posts
    11. Suggestions

      Here you can leave your opinions and suggestions about the project development.

      46k
      posts
    12. Test server

      Discussing testing of upcoming updates

      23
      posts
    13. Guilds

      All guild related conversations. Post count disabled.

      18.6k
      posts
    14. Tavern

      Discussions on any topic or off-topic. All that goes beyond the game and doesn't get in other sections. Post count disabled.

      86.9k
      posts
    15. Fan Art

      The history of the universe Warspear Online and content from players

      911
      posts
    16. Contests

      Contests that happen from time to time in the world of Arinar

      21.7k
      posts
  3. Fórum Português

    1. Notícias e Anúncios

      Notícias e anúncios oficiais

      5.9k
      posts
    2. Eventos do jogo

      Eventos de Guilda e Aliança

      36
      posts
    3. Perguntas e respostas

      Faça uma pergunta e obtenha respostas dos jogadores mais experientes

      1.6k
      posts
    4. Suporte

      Se você tem algo que não está funcionando funcionando como deveria - você está no lugar certo.

      3.1k
      posts
    5. Assuntos Gerais

      Tópicos gerais de discussão

      2.1k
      posts
    6. 527
      posts
    7. Sugestões

      Aqui você pode deixar suas opiniões e sugestões sobre o desenvolvimento do jogo.

      2.5k
      posts
    8. 15
      posts
    9. PvP e Arena

      Todas discussões relacionadas a PvP e Arena

      594
      posts
    10. Guildas

      Todos os assuntos relacionados as Guildas. Contagem das postagens desabilitada.

      100
      posts
    11. 3.1k
      posts
    12. Taverna

      Discussão sobre qualquer assunto fora do tópico. Tudo que se encaixa além do jogo e não poderia ser postado em outras seções. Contagem das postagens desabilitada.

      1.3k
      posts
    13. 41
      posts
    14. 1.9k
      posts
  4. Fansites

    1. 406
      posts
    2. 2.4k
      posts
    3. 582
      posts
    4. 7.2k
      posts
    5. 10.9k
      posts
  • Новые ответы

    • Каждый год темы про рассинхрон, каждый год одни и теже вопросы от тп про провайдера/вайфай. Конструктив
    • @Robin @Nolan @snorlax @Holmes   Any update on this? It’s been over 2 weeks. Even if you guys are looking into it can we please get a response. This skill damages/stuns/ and slows and has a big area. How does a skill like this get out of testing?  Are we playing the same game here? This skill is hard to reach any of the enemy and when you get more druids together nobody can move. Not to mention this skill is hitting pylon flag etc .   Thank you and  I appreciate all that you guys do!
    • "Selected faction is overpresented in this realm. Please, either select a hero from another faction, or choose another realm" is the advice I see after trying to create an elf faction class.   Is the statement true? It depends on how the algorithm works. The databases contains a set of player instances. But most of them don't play anymore, which does not make the equation impartial.     In the following content, using the Django framework, I present a scalable solution to the developers. The code will change from one programming language to another but the logic remains the same.   1. Add a field named last_active to the Player table. 2. Add a field named active_players to the Faction table. 3. Use Celery and Redis for a task schedule that will be executed every 30 days, updating the variable of active_players in each faction.     #models.py # Using the Django ORM to give an example of how this would work   from django.db import models from django.utils import timezone from datetime import timedelta LIMIT = 100000 #e.g. class Server(models.Model):     name = models.CharField(max_length=50) class Faction(models.Model):     name = models.CharField(max_length=20)     server = models.ForeignKey(Server, on_delete=models.DO_NOTHING)     total_players = models.IntegerField(default=0)     active_players = models.IntegerField(default=0)   class Player(models.Model):     name = models.CharField(max_length=12, unique=True)     faction = models.ForeignKey(Faction, on_delete=models.CASCADE)     last_active = models.DateTimeField(auto_now=True)     def create_account(self):         faction = self.faction         if faction.active_players < LIMIT:             faction.total_players += 1             faction.save()             ...             self.save()         else:             raise ValueError("Selected faction is overpresented.")    # settings.py   pip install celery redis   CELERY_BROKER_URL = 'redis://localhost:6379/0' CELERY_RESULT_BACKEND = 'redis://localhost:6379/0' from celery import Celery app = Celery('project_name') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks()    # tasks.py   from celery import shared_task from django.utils import timezone from datetime import timedelta from .models import Faction, Player @shared_task def update_active_players():     one_month_ago = timezone.now() - timedelta(days=30)     factions = Faction.objects.all()         for faction in factions:         active_players_count = Player.objects.filter(             faction=faction, last_active__gte=one_month_ago         ).count()         faction.active_players = active_players_count         faction.save()    # celery.py from celery import Celery from celery.schedules import crontab app = Celery('your_project_name') app.conf.beat_schedule = {     'update-active-players-monthly': {         'task': 'app_name.tasks.update_active_players',         'schedule': crontab(0, 0, day_of_month='1'),      }, }  
  • Recent Topics

  • Recent Achievements

×
×
  • Create New...