Search found 25 matches

by demario
January 18th, 2021, 10:35 pm
Forum: Coder’s Corner
Topic: Questions about replays, random seed, recruit and unit checksum
Replies: 6
Views: 784

Re: Questions about replays, random seed, recruit and unit checksum

To give an ancient example: Drain used to be able to "heal" units above max HP. A replay played with that logic will unlikely work now. A little more recently drain was changed to only drain as much as the victim had HP left. (It always drained half damage regardless before.) Same outcome...
by demario
January 18th, 2021, 5:17 am
Forum: Coder’s Corner
Topic: Questions about replays, random seed, recruit and unit checksum
Replies: 6
Views: 784

Re: Questions about replays, random seed, recruit and unit checksum

You're focusing a lot on random number generation as the source of OOS but surely there are countless other reasons. I will clarify the limits of my endeavor: I am not interested in recovering local campaign replays to keep playing in the next version. I am only interested in multiplayer game repla...
by demario
January 14th, 2021, 6:27 am
Forum: Coder’s Corner
Topic: Questions about replays, random seed, recruit and unit checksum
Replies: 6
Views: 784

Re: Questions about replays, random seed, recruit and unit checksum

Third question: is is there any incompatibility in random seed (new_seed in replays) between the two versions? A replay from BFW1.12 is giving seed as integer while the seed for BFW1.14 is a string. So it seems that the incompatibility must be broken down in two parts: - integer vs string format: B...
by demario
January 8th, 2021, 2:34 am
Forum: Coder’s Corner
Topic: Questions about replays, random seed, recruit and unit checksum
Replies: 6
Views: 784

Questions about replays, random seed, recruit and unit checksum

I am trying to load some 1.12 replays in wesnoth 1.14.14. It raises a couple of OOS that I have trouble to understand. Maybe someone is knowledgeable to help? First question: how many random calls to recruit a unit? In BFW1.12, it seems all "drake faction" units are recruited with 14 calls...
by demario
December 9th, 2020, 9:50 am
Forum: Multiplayer Development
Topic: Ladder Era - Competitive 1v1 play on the Ladder of Wesnoth
Replies: 24
Views: 7145

Re: Ladder Era - Competitive 1v1 play on the Ladder of Wesnoth

Hi guys, thanks for the great work on this era. I wish I could play it more and be good enough to give insight. Let me suggest some changes in the random map picker that could increase the usability: 1. While this is part of the ladder era add-on (and your own work), using the random map picker for ...
by demario
October 31st, 2020, 8:40 am
Forum: WML Workshop
Topic: Questions about [event] name=time over
Replies: 8
Views: 463

How to value a wounded unit?

[unit] Next factor is the all-or-nothing choice between XP and HP. Maybe something like type.cost * (%hp + %xp) or type.cost * (type.max_hp * %hp + best_adv.max_hp * %xp)/type.max_hp would be better. Another problem with the formula is that a very low XP, from 1 HP to less than type.max_hp/type.cos...
by demario
October 27th, 2020, 6:09 am
Forum: WML Workshop
Topic: Questions about [event] name=time over
Replies: 8
Views: 463

What gold difference leads to sure defeat?

Seems the code is running now with the modified am_i_victorious from Creep wars (from Vasya N, well done!). I also want to improve the tie criteria so as to make a draw more an usual result when game stops at fixed number of turns. The current code is checking equality of score, which make it unlike...
by demario
October 24th, 2020, 7:18 am
Forum: WML Workshop
Topic: Questions about [event] name=time over
Replies: 8
Views: 463

How to use [endlevel] in PvP multiplayer?

Awarding victory to one side can probably be done with an [endlevel]result=victory inside the time over event. Man, I am completely confused here. It is not working. The victory (or defeat) result is passed to both sides equally. If I try to write both turn_limit_victory and turn_limit_defeat and c...
by demario
October 23rd, 2020, 8:47 am
Forum: WML Workshop
Topic: Questions about [event] name=time over
Replies: 8
Views: 463

Re: Questions about [event] name=time over

it's all in data/multiplayer/eras.lua , and it's triggered by an [event]name="time over" in data/multiplayer/eras.cfg. Kudos octalot, things are very clear now: final score = income score + unit score + gold score gold score = team's gold income score = income * 5 unit score = math.max(ty...
by demario
October 19th, 2020, 9:44 am
Forum: Release Announcements, Compiling & Installation
Topic: Compiling ancient wesnoth versions on debian (lenny)
Replies: 0
Views: 768

Compiling ancient wesnoth versions on debian (lenny)

I had some weird kind of fun :geek: compiling old versions of wesnoth on debian. Since I am not the first to consider such a plan, I am sharing my progress on this. The whole thread is worth checking for those interested. It gives basically the full range of possibilities: run old win binaries on wi...
by demario
October 13th, 2020, 12:53 am
Forum: WML Workshop
Topic: WML for tournament settings
Replies: 4
Views: 784

Re: WML for tournament settings

I made an update of the first post to suggest the v0.4 of the WML schema. Biggest change is that brackets are now defined at the round level. Later rounds can also reference to a previously defined bracket name to keep the bracket for the round. This change is to support a UEFA champions league-like...
by demario
October 11th, 2020, 6:36 am
Forum: Coder’s Corner
Topic: A bot assistant for tournament organization
Replies: 0
Views: 846

A bot assistant for tournament organization

I am ripping off from ReNoM 's wonderful work on fastbot for the wesnoth life Russian sister community for map picking and I am targeting a bot that can assist in organization of wesnoth tournament (1v1 only at this time). I am looking for tournament players or organizers to provide some feedback on...
by demario
October 2nd, 2020, 6:28 am
Forum: WML Workshop
Topic: WML for tournament settings
Replies: 4
Views: 784

Re: WML for tournament settings

Thanks Soliton, a fair system that allows a tournament to use less balanced map would be great indeed. I know nothing about Uniwar and it is quite useful to hear from a different background. They seems do have a stronger tournament history than wesnoth (with ladder :mrgreen: ). This is how they desc...
by demario
September 30th, 2020, 11:25 pm
Forum: WML Workshop
Topic: WML for tournament settings
Replies: 4
Views: 784

WML for tournament settings

HI, I am defining some WML for tournament setting. I am wondering if the structure or the keywords could be improved. Maybe some past tournament organizers for wesnoth or elsewhere have some ideas to share. Here is an example: [tournament] version="v0.4" id=16p_dembot_qualification name=_&...
by demario
September 24th, 2020, 9:49 am
Forum: WML Workshop
Topic: Questions about [event] name=time over
Replies: 8
Views: 463

Questions about [event] name=time over

I am playing around with turn limits in players vs player games (PvP). It appears that when the turn limit is reached or that time over event is fired, a nice dialog is showing giving a computer generated estimation on the status of the game. Like in the attached picture. I have several questions on...