So what exactly is the error?
Disaster happened
Reason 0xc0000005 - EXCEPTION_ACCESS_VIOLATION atā¦ after this there are some numbers but always them are random.
When exactly does this show?
When game run (you know first videos).
I donāt see how Launcher mods could cause issues like that. Please make detailed report here with the list of installed mods, console log and everything else you know.
Firstly, say what creature mod are you talking about?
Question: is now for adventure map objects I cannot change standard text appearing?
I want to make Water Wheel - like object (Farm, subid object of Water Wheel), but to change text, that is showed when visiting.
As I remember, bonuses for war machines worked in >0.96
In 0.97 I add hero:
"lightcastleSiegeMaster1" :
{
"class" : "lightcastleSiegeMastert",
"female" :false,
"spellbook" :
],
"texts" :
{
"name" : "Mint",
"biography":"NO_TEXT",
"specialty" :
{
"description" : "Ballista +1 shot and health bonus",
"tooltip" : "Ballista +1 shot and health bonus",
"name" : "Ballista +1 shot and health bonus"
}
},
"images" :
{
"specialtySmall" : "lightcastle-heroes/ballista_32",
"specialtyLarge" : "lightcastle-heroes/ballista_44",
"large" : "lightcastle-heroes/siege-large/scout1.bmp",
"small" : "lightcastle-heroes/siege-small/scout1.bmp"
},
"army" :
{
"creature" :"lightcastleCompanyAgent",
"max" :22,
"min" : 18
},
{
"creature" :"ballista",
"max" :1,
"min" : 1
}
],
"skills" :
{
"level" : "advanced",
"skill" : "artillery"
}
],
"specialty":
{
"bonuses":
{
"type": "ADDITIONAL_ATTACK",
"val":1,
"limiters":
{
"type": "CREATURE_TYPE_LIMITER",
"parameters" : "ballista", true]
}
]
},
{
"type": "STACK_HEALTH",
"val":700,
"limiters":
{
"type": "CREATURE_TYPE_LIMITER",
"parameters" : "ballista", true]
}
]
}
]
}
]
},
and nothing happens - ballista doesnāt get +1 shot and hit points +700.
Is it a bug? Or iām doing something wrong?
Hi is it possible to blacksmith produce two war machines? Iām trying this:
āwarMachineā : āballistaā,
but, itās donāt work.
Now itās impossible.
Hi guys. Iām newbe.
Iāve installed latest 9,7c version with some basic mods (like wog and Hota) instaled automaticly.
I tried to modify mods a little bit. Tried change some ādefā graphics but the problem is: I canāt find those mods and def folders. Tried to find in āModsā folder but without succeed.
In game everything works fine. Iāve got commanders, Iāve got new Hota city- and that is very cool. Problem is: I cant find def graphics for modsā¦
Iāll be very glad for any helpā¦
I think, I have found right folder in: documents and settings/My games- folder. Try to replace some defsā¦
Edit: Ok. Problem solved. Everything workās fineā¦
As i can see in sources
github.com/vcmi/vcmi/blob/devel ā¦ ructor.cpp
JSON configuration for new/modified standard map objects is already implemented.
But there are no examples how how to use these features.
Have someone messed with adding new rewardable objects?
Can help be added to Wiki?
Does VCMI support recruiting multiple units from one building in town? I want one building upgrade to add two possible units to buy, same as upgrades in heroes 5: tribes of the east, looks like it does not work.
Because you must do two buildings for 2 units.
Like ābuilding43ā is upgrade for ābuilding36ā, you add it to hallSlots and assign it āredDragonā on 7th level.
Then you add ābuilding50ā, in āstructuresā write ārequiresā: ābuilding43ā], āmodeā:āautoā.
then donāt write it to hallSlots, but assign āblackDragonā to 3rd unit of level 7.
When 43 building builds, 50 building will be built automatically.
Example:
BUILDINGS.JSON
"building43": {
"id": 43,
"upgrades": "building36",
"requires" : "allOf" , "building2"]],
"cost": {
"gold": 10000,
"ore": 15,
"sulfur": 20
},
"description" : "Black Tower allows to recruit Red and Black Dragons.",
"name" : "Black Tower"
},
"building50": {
"id": 50,
"mode": "auto",
"upgrades":"building43",
"cost": {
"gold": 10000,
"ore": 15,
"sulfur": 20
},
"description" : "Black Tower allows to recruit Red and Black Dragons.",
"name" : "Black Tower"
}
FACTIONS.JSON
"hallSlots":"villageHall","townHall","cityHall","capitol"],"fort","citadel","castle"],"building5"],"building16"]],"building14","building15"],"building0","building1","building2","building3","building4"],"building21"],"building22"]],"building17"],"building23"],"building18","building19"]],"building30","building37"],"building31","building38"],"building32","building39"],"building33","building40"]],"building34","building41"],"building35","building42"],"building36","building43","building50"]]],
"creatures": "level1","level1Upgrade" ],
"level2","level2Upgrade"],
"level3","level3Upgrade"],
"level4","level4Upgrade"],
"level5","level5Upgrade"],
"level6","level6Upgrade"],
"greenDragon","redDragon","blackDragon" ]],
Have no one here experienced modding rewardable objects?
I tried to construct JSON from sources reading on GitHub, I got this object (I tried to recreate full structure of ārewardsā), but it donāt work (when visiting him on map I got only 1 empty message with OK button.
Where I am wrong?
{
//"core:learningStone": {
"someHistoryMuseum": {
"handler": "oncePerHero",
"name": "Museum Level 1",
"types": {
"ModernSomeMuseum01": {
//"soundID": 1,
"resetDuration": 0,
"canRefuse": true,
"onSelectMessage": "You must pay 200 gold to visit exposition of this museum of history.",
"onVisitedMessage": "You already had visited this museum in past and have no time or wish to visit it again.",
"onEmptyMessage": "This museum was closed due to budget shorting, and now only wind blows in these walls.",
"rewards":
{
"dice": 1.0,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
//"numOfGrants": 0,
//"dayOfWeek": 0,
//"minLevel": 1,
"resources": {
"gold": 200
},
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"creatures":
],
},
//"resources": {
"gold": 100
},
"gainedExp": 1000,
//"gainedLevels": 0,
//"manaPoints": 0,
//"manaPercentage": 0,
//"movePoints": 0,
//"movePercentage": 0,
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
{
"skill": "necromancy",
"level": "basic"
}
},
//"artifacts":
],
//"spells":
],
//"creatures":
],
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60,
},
{
"dice": 1.0,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
//"numOfGrants": 0,
//"dayOfWeek": 0,
//"minLevel": 1,
"resources": {
"gold": 200
},
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"creatures":
],
},
//"resources": {
"gold": 100
},
"gainedExp": 1500,
//"gainedLevels": 0,
//"manaPoints": 0,
//"manaPercentage": 0,
//"movePoints": 0,
//"movePercentage": 0,
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"spells":
],
//"creatures":
],
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60,
},
{
"dice": 1.0,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
//"numOfGrants": 0,
//"dayOfWeek": 0,
//"minLevel": 1,
"resources": {
"gold": 200
},
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"creatures":
],
},
//"resources": {
"gold": 100
},
"gainedExp": 1200,
//"gainedLevels": 0,
//"manaPoints": 0,
//"manaPercentage": 0,
//"movePoints": 0,
//"movePercentage": 0,
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"spells":
],
//"creatures":
],
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60,
},
{
"dice": 1.0,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
//"numOfGrants": 0,
//"dayOfWeek": 0,
//"minLevel": 1,
"resources": {
"gold": 200
},
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"creatures":
],
},
//"resources": {
"gold": 100
},
"gainedExp": 800,
//"gainedLevels": 0,
//"manaPoints": 0,
//"manaPercentage": 0,
//"movePoints": 0,
//"movePercentage": 0,
//"primary": {
"attack": 0,
"defence": 0,
"spellPower": 0,
"knowledge": 0
},
//"secondary": {
"necromancy": "basic"
},
//"artifacts":
],
//"spells":
],
//"creatures":
],
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60,
},
],
"name": "Museum Level 1",
"rmg": {
"zoneLimit": 3333,
"value": 500,
"rarity": 80
},
"templates": {
"138F": {
"animation": "test/objects/someMuseum/138F",
"visitableFrom":
"---",
"+++",
"+++"
],
"mask":
"VVVVVV",
"BBBBBV",
"BBBBBB",
"VABBVV"
],
"allowedTerrains":
"grass",
"rough",
"dirt"
]
},
},
},
}
}
}
I donāt think these are implemented yet.
At first please provide valid json file. Also please remove commented junk.
Itās not commented junk. Itās constructor of possible values object can have (to uncomment needed fields and make use in next object)
Cleared it with help of jsonlint.com:
{
"someHistoryMuseum": {
"handler": "oncePerHero",
"name": "Museum Level 1",
"types": {
"ModernSomeMuseum01": {
"resetDuration": 0,
"canRefuse": true,
"onSelectMessage": "You must pay 200 gold to visit exposition of this museum of history.",
"onVisitedMessage": "You already had visited this museum in past and have no time or wish to visit it again.",
"onEmptyMessage": "This museum was closed due to budget shorting, and now only wind blows in these walls.",
"rewards":
{
"dice": 1,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
"resources": {
"gold": 200
}
},
"gainedExp": 1000,
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60
},
{
"dice": 1,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
"resources": {
"gold": 200
}
},
"gainedExp": 1700,
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60
},
{
"dice": 1,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
"resources": {
"gold": 200
}
},
"gainedExp": 1300,
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60
},
{
"dice": 1,
"appearChance": {
"min": 25,
"max": 30
},
"limiter": {
"resources": {
"gold": 200
}
},
"gainedExp": 1500,
"message": "You have visited museum exposition, and now your knowledge of the world is getting up.",
"selectChance": 60
}
],
"name": "Museum Level 1",
"rmg": {
"zoneLimit": 3333,
"value": 500,
"rarity": 80
},
"templates": {
"138F": {
"animation": "test/objects/someMuseum/138F",
"visitableFrom":
"---",
"+++",
"+++"
],
"mask":
"VVVVVV",
"BBBBBV",
"BBBBBB",
"VABBVV"
],
"allowedTerrains":
"grass",
"rough",
"dirt"
]
}
}
}
}
}
}
Where I am wrong?
{ { "dice": 1, "appearChance": { "min": 25, "max": 30 }, }
You have same dice range 25-30 on all rewards - this means that you have 5% chance to get all rewards, and 95% to get nothing.