SuperWeaSq

SuperWeaSq SuperWeaSq — underground
Heroes V Scenario
Download 317 KB
3.8 (4 ratings)
Downloads
86
File
SuperWeaSq.h5m
Added

At a glance

Read from the map file
Players
3 1 human-playable
Teams
Free-for-all
Map size
Medium — 136×136 Two levels
Map language
Russian
Towns
4 1 neutral
  • Scripted
  • Hero level cap: 40
Player slots 3
Colour Played by Faction Team
Player 1 Human only
Player 2 Computer only
Player 3 Computer only
Author
Победитель
Uploader
AliveSnack

The map is unplayable on the "Hero" difficulty level due to a script error.

The error occurs in this line:
AddHeroCreatures(Hero2, 159, (4-diff)*100);

On the "Hero" difficulty, diff=4, and attempting to add 0 creatures results in:
(Script) ERROR: Quantity cannot be negative

Consequently, the script crashes, no triggers are activated, quests are not updated, demon cities are not destroyed upon capture, and it is impossible to pass through the dwarf garrison.

I completed the first part of the map. It is quite interesting. I did not reach the second part due to this error.

UPD. Since the map author has not been active here for over a year, I am taking the liberty of posting a corrected version. Two minor changes have been made to the script: an if diff < 4 condition has been added to prevent the script from crashing on the "Hero" difficulty, and a break statement has been added to the obj2_end function to terminate the thread, so that the cutscene does not repeat after capturing the second demon castle.

Unfortunately, old saves on the "Hero" difficulty will not work; you will have to start over. Even using the console will not help, as the saves store the complete state of the Lua virtual machine, and there is no way to fix a crashed script.

Forum Discussion

Similar maps