<< Back to Programming Forum   Search

Posts 1 - 9 of 9   
Limited Multiattacks mod malfunctioning (?): 2/2/2020 00:22:39

M. Poireau 
Level 57
Report
Hello!

I've been fooling around with the Limited Multiattacks mod, and something strange has happened. I wonder if anyone knows why or how.

Here's what I have done:

I have attached it to the Reconnaissance card, so you can only multiattack on turns where you play one. There is no limit to the multiattacks (range is set to 0), so you can make them freely.

I also have the multi-attack option toggled "on" (which, perhaps, is causing trouble? I don't see why, but I'll mention it just in case).

Here's the problem:

It seems to work very well. When you don't play a card, you can't multi-attack (the mod skips those orders), but when you do, you can multi-attack to your heart's content.

AIs cannot multiattack, because they do not play Reconnaissance cards. Their orders get skipped, too, by the mod.

However, once in a while (it happened twice in about 100-150 turns of play), an AI suddenly successfully makes a multiattack. This is strange, and I have no idea why it's happening!

Does anyone have an idea for why this might be the case?
Limited Multiattacks mod malfunctioning (?): 2/2/2020 00:52:28


TBest 
Level 60
Report
Can you link a template example? (I assume this is a Singelplayer template?)
Limited Multiattacks mod malfunctioning (?): 2/2/2020 03:21:19

M. Poireau 
Level 57
Report
Its main use was in the following scenario (although it happened in testing on other maps, with other settings, too):

https://www.warzone.com/Forum/403587-creativity-tactics-zombie-apocalypse

(You'll find a template link in there.)

It happened twice: once when I used the "Autopilot" option (much to my surprise, the AI made a multi-attack against the enemy!), and once by an enemy AI (in a second game).

Since then, I've disabled multi-attack, and it hasn't happened again. However, it happened so rarely that I can't be sure whether that means it's never going to happen again, as a result.
Limited Multiattacks mod malfunctioning (?): 2/2/2020 05:14:36


TBest 
Level 60
Report
Not sure what is going on yet. But at least this I can say:

I also have the multi-attack option toggled "on" (which, perhaps, is causing trouble? I don't see why, but I'll mention it just in case).

Should not matter at all. The mod turns multi-attack on regardless of your settings.
function Server_Created (game,settings)
  settings.MultiAttack = true;
  settings.AllowPercentageAttacks = true;
end




EDIT: Hmm. If you have a screenshots of the orders where an AI multi-attack that might be helpful. I read through the mod code and didn't spot anything obvious that should make the AI do multi-attacks, thru I do have some suspicions.

EDIT 2 : Ok, I managed to have it occur and completely break stuff. Let me see if I can figure out why :)

Edited 2/2/2020 06:25:27
Limited Multiattacks mod malfunctioning (?): 2/2/2020 07:01:58


TBest 
Level 60
Report
Turned out my suspicion was correct. If you have one type of card enabled for multi-attack (say Spy card), then all the other cards are active as well.

In terms of your settings, an AI can do multi-attack when that AI plays a reinforcement card, despite your mod settings only turning on Recon cards.

This is a relative easy fix for the mod creator.

Edited 2/2/2020 07:03:11
Limited Multiattacks mod malfunctioning (?): 2/3/2020 19:40:20

M. Poireau 
Level 57
Report
Thanks, TBest! You seem to be living up to your handle. :)

Does this mean that, until it's fixed, people shouldn't use this mod unless their template doesn't use any of those cards (to avoid the accidental multi-attack)?
Limited Multiattacks mod malfunctioning (?): 2/12/2020 08:13:39


dabo1
Level 57
Report
I think I fixed it now, sadly I have no membership any longer so I ironically can't test my mods.
Maybe someone can check if it is still possible to:
-create games(there should be 6 options to bind to cards(prev only 5))
-View mod settings

And if the following settings work:
-bound to spy card, reconnaissance, surveillance card

Edited 2/12/2020 08:20:36
Limited Multiattacks mod malfunctioning (?): 2/14/2020 22:04:44

M. Poireau 
Level 57
Report
Thanks, dabo1!

It's good to know you've tried to fix the mod. I'll try to test it sometime over the next couple of days!

If this problem is solved, that's good news for my scenario, at least (https://www.warzone.com/Forum/403587-creativity-tactics-zombie-apocalypse).
Limited Multiattacks mod malfunctioning (?): 2/14/2020 23:37:15

M. Poireau 
Level 57
Report
dabo1,

In a single-player test, everything worked as it should:

There are six card options available during game start, and even though the AIs were playing Reinforcement cards, their multiattacks were skipped by the mod. So far so good!
Posts 1 - 9 of 9