MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003133VCMIRandom Map Generatorpublic2020-06-17 20:012020-06-18 03:24
Reportermisiokles 
Assigned To 
PrioritynoneSeveritycrashReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSWindowsOS Version
Product Version0.99 
Target VersionFixed in Version 
Summary0003133: "allowedTerrains" command crashes custom mines.
DescriptionFor example HotA made new mines graphics belong to sand terrain.
Code for adding such mines to vcmi is easy.

{
"core:mine" : {
    "types" : {
        "hotaCrystalCavern" : {
        "templates": {
            "avmcrdn0" : { "animation" : "avmcrdn0", //hota sand
                    "mask" : ["VVVV","VBBB","VBAB"],
                    "allowedTerrains":["sand"]
                    },
                }
            },

Without "allowedTerrains":["sand"] command, such crystal mine is generated in every type of terrain. But with "allowedTerrains":["sand"] - game crash during map generation.
Steps To Reproducen/a
Additional Informationn/a
TagsNo tags attached.
Attached Filespng file icon hj.png [^] (1,142,552 bytes) 2020-06-17 20:03

- Relationships

-  Notes
(0007908)
Andruids (reporter)
2020-06-17 21:44
edited on: 2020-06-18 03:24

Let me correct this. Defining new type within mines won't do anything, of course.

misiokles meant this code:

{
"core:mine" : {
    "types" : {
    "crystalCavern" : {
        "templates": {
        "avmcrdn0" : {
        "animation" : "avmcrdn0", //hota sand
        "visitableFrom" : [ "---", "+++", "+++" ],
        "mask" : ["VVVV","VBBB","VBAB"]
                    }
                }
            },

And including:

"allowedTerrains":["sand"]

causes a different type of bug - game will start and RMG will run, but it will generate an empty map. Without borders and with only 2 zones iirc.


- Issue History
Date Modified Username Field Change
2020-06-17 20:01 misiokles New Issue
2020-06-17 20:03 misiokles File Added: hj.png
2020-06-17 21:44 Andruids Note Added: 0007908
2020-06-18 03:23 Andruids Note Edited: 0007908 View Revisions
2020-06-18 03:24 Andruids Note Edited: 0007908 View Revisions

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2020 MantisBT Team
Hosting provided by DigitalOcean