Travian Game / Offline Version / C# / STAGE 17



Travian Game / Offline Version / C# / STAGE 17

Travian Game / Offline Version / C# / STAGE 17

Изучаю C# на примере создания этой браузерной онлайн игры.
Оффлайн версия с Блэк Джеком и ботами на Windows Forms.
Получился Франкенштейн из разных версий игры Travian.

Помочь проекту / Help the project: Bank VTB: 4893 4704 7715 8775

I am studying C# using the example of creating this browser-based online game.
Offline version with Blackjack and bots on Windows Forms.
It turned out to be Frankenstein from different versions of the Travian game.

В этой версии реализовано:
ФРОНТЕНД:
– Для ботов добавлены 4 типа названий, присваиваемых случайно при создании объекта:
a) 350 ников. Чтобы добавить свой вариант ника в игру, нужно перевести его для остальных языков, добавить ник в конец каждого списка всех языков, предварительно проверив свой вариант поиском по словам в файле Resources.json во избежание дубликатов
b) 126 имён героев. Если сгенерированное имя повторяется, на конце добавляется римская цифра (как у вождей/лордов/королей/императоров). Свои варианты имён героев добавляются так же как и никнеймы
c) 212 названий деревень. Свои варианты названий деревень добавляются так же как и никнеймы
d) 80 названий альянсов попарно: сокращение (тег/аббревиатура) + полное название. Свои варианты названий альянсов добавляются так же как и никнеймы, за исключением того что добавлять их нужно в 2 списка, расположенных друг за другом
– Добавлено меню выбора скорости игрового сервера. Доступно 2 варианта: [x1, x3]. Настройка скорости влияет на: 1) кол-во накапливаемой культуры для последующих деревень, 2) продолжительность времени восстановления героя, 3) кол-во преодолеваемых полей в час войсками, время исследования и обучения войск, 4) время строительства/сноса ресурсных и деревенских построек
– Добавлена сортировка таблицы по героям на вкладке статистики
БЭКЕНД:
– Поиск игрока/деревни по названию на вкладке статистики выполняется независимо от регистра, номер бота в скобках можно не писать
– Добавлена возможность включать/отключать отладочные тесты игры (только для разработчика). Теперь я могу не удалять тестовый код каждый раз в множестве файлов перед очередной компиляцией exe файла
– Исправлен баг с цветом альянсов и игроков. В прежних версиях цвет мог измениться вместе с изменением ранга игроков и альянсов. Теперь однажды сгенерированный цвет, останется с альянсом и игроком до конца игры
– Добавлено правило обработки отрицательного производства зерна, согласно которому невозможно начать строительство здания или ресурсного поля, если в результате завершения строительства производство зерна станет отрицательным. В данном правиле есть исключение, подробнее на сайте оригинальной игры
##################################################
This version implements:
FRONTEND:
– 4 types of names have been added for bots, assigned randomly when creating an object:
a) 350 nicknames. To add your own version of the nickname to the game, you need to translate it for the other languages, add the nickname to the end of each list of all languages, after checking your version by searching for words in the Resources file.json to avoid duplicates
b) 126 names of heroes. If the generated name is repeated, a Roman numeral is added at the end (as in chiefs/lords/kings/emperors). Their variants of the names of heroes are added in the same way as nicknames
c) 212 names of villages. Their own versions of the names of villages are added in the same way as nicknames
d) 80 alliance names in pairs: abbreviation (tag/abbreviation) + full name. Their variants of alliance names are added in the same way as nicknames, except that they need to be added to 2 lists located one after the other
– Added a game server speed selection menu. There are 2 options available: [x1, x3]. The speed setting affects: 1) the amount of accumulated culture for subsequent villages, 2) the duration of the hero’s recovery time, 3) the number of fields overcome per hour by troops, the time of research and training of troops, 4) the time of construction/demolition of resource and village buildings
– Added sorting of the table by heroes on the statistics tab
BACKEND:
– The search for a player / village by name on the statistics tab is performed regardless of the case, the bot number in parentheses can not be written
– Added the ability to enable/disable debugging tests of the game (only for the developer). Now I can not delete the test code every time in a lot of files before the next compilation of the exe file
– Fixed a bug with the color of alliances and players. In previous versions, the color could change along with the change in the rank of players and alliances. Now, once generated, the color will remain with the alliance and the player until the end of the game
– Added a rule for processing negative grain production, according to which it is impossible to start construction of a building or resource field if grain production becomes negative as a result of completion of construction. There is an exception to this rule, read more on the website of the original game