MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001061VCMIAI - Adventure Mappublic2012-08-30 04:222014-05-30 17:41
ReporterWarmonger 
Assigned ToTow 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001061: Crash at AI visiting Dragonflies.
DescriptionThis bug looks quite different than others and is easily reproductible.
TagsNo tags attached.
Attached Filesrar file icon CrashDragonflies.rar [^] (254,365 bytes) 2012-08-30 04:22

- Relationships

-  Notes
(0002951)
Warmonger (administrator)
2012-08-30 04:59

I noticed that game crashes usually along these lines:

        if(creatureBank)
            pos = attackerCreBank[armies[0]->stacksCount()-1][k];
        else if(armies[0]->formation)
            pos = attackerTight[armies[0]->stacksCount()-1][k];
        else
            pos = attackerLoose[armies[0]->stacksCount()-1][k];
(0002952)
Tow (developer)
2012-08-30 09:56

Quite an achievement AI made — Theodorus the Wizard has EIGHT stacks in army. Causes all kinds of out-of-range behaviours. The question is how that happened. I'll look into the code.
(0002954)
Tow (developer)
2012-08-30 16:04

Server should not allow creating such state with changes from r2866.
I also fixed the crash (so using your save to continue game is possible), though having creature in 7+ slot will probably crash it somewhen later (or cause other issues).

Marking as resolved, though there is still probably bug in the AI making it send illegal requests.

- Issue History
Date Modified Username Field Change
2012-08-30 04:22 Warmonger New Issue
2012-08-30 04:22 Warmonger Status new => assigned
2012-08-30 04:22 Warmonger Assigned To => Tow
2012-08-30 04:22 Warmonger File Added: CrashDragonflies.rar
2012-08-30 04:59 Warmonger Note Added: 0002951
2012-08-30 09:56 Tow Note Added: 0002952
2012-08-30 16:04 Tow Note Added: 0002954
2012-08-30 16:04 Tow Status assigned => resolved
2012-08-30 16:04 Tow Resolution open => fixed
2014-05-30 17:41 beegee Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean