Help with mods - questions

For this one to work you need two bonuses

one with GLOBAL_EFFECT propagator, val: -250 and one with TEAM_PROPAGATOR val: 250. (there is no “enemy player” propagator)

Thanks. Now -250 gold/daily works as intended.
But still I try to figure out how to block 1st level spells at enemy army.
Fact is:

  		"type" : "BLOCK_MAGIC_BELOW",
  		"val" : 2,
  		"valueType" : "INDEPENDENT_MAX",
  		"propagator": "BATTLE_WIDE"

works fine. Both sides can’t cast 1st level spells, but such code:

  		"type" : "BLOCK_MAGIC_BELOW",
  		"val" : 2,
  		"valueType" : "INDEPENDENT_MAX",
  		"effectRange" : "ONLY_ENEMY_ARMY",
  		"propagator": "BATTLE_WIDE"

does nothing - both sides cast spells normally :frowning:

effectRange is very tricky and buggy :slight_smile:

how to add new terrain, is it possible with json files?

Unfortunately new terrains are not yet implemented.

Hello! I am new to the forums! Is it possible for homm3 to have more combat music? For example at the moment it only has 4, is it possible for me to add 5 or 6 or any other amount? Can each faction have specific music that will play when you face it in combat? Thank you very much!

  1. Yes, it’s quite easy to have more combat music. Just add as a mod or copy to Mp3 folder combatXX.mp3 files where XX is suffix for example combatRolf01.mp3 or combatRolf02.mp3. But specific music is not possible.

I see, so if I add words before the number in combat, I can add technically as many as I want?

Words are not neccesarilly. Files can be named combat05.mp3, combat06.mp3 and so on. Adding your own suffix saves situation when you’ll enable other music mod sharing the same filenames. And yes - you can add many files as you want. But I guess it could reduce performance if you add dozen tons of new music :wink:

Wonderful! Thank you very much I greatly appreciate it!

Hello.
Please help with my mod. I ported ukrainian translation from HD_mod.
What am I doing wrong with repositories.json? the launcher does not want to download the mod.
https://github.com/burunduk/vcmi-mod-ce-ukr

Launcher is outdated and buggy. There’s no even acces to serwer. For now - it’s better to give link at https://wiki.vcmi.eu/Mod_list#Utilities
(in the future there will be new mod repository system, but creator temporarily doesn’t have free time).

Maybe “Translation”?

I added your link to Utility section. You can edit it if something is incorrect.

@olexn
If you want to set up your own repository then I see that there may be two problems:

  1. If you don’t see your mod in launcher then you provided wrong link to your repository file in launcher settings, it should look like that: https://raw.githubusercontent.com/burunduk/vcmi-mod-ce-ukr/master/repository.json
  2. If you see your mod but cannot download it(same as me) then this may be problem with link to mod https://github.com/burunduk/vcmi-mod-ce-ukr/releases/download/v1.0/ce-ukr.zip.
    Maybe there is problem with accessing release file, try to use https://github.com/burunduk/vcmi-mod-ce-ukr/archive/master.zip (link under clone or download -> download zip).
    If that doesn’t help then I don’t know

Thanks. But (2) not work.
I must search normal hosting.

It may be problem with how your mod files are organized. Content directory should be next to mod.json Look at mod that is used as example on wiki:

I have problem with Aggregate Limiters. I want to make bonus, that works with neutral creatures, but not flying and shooting ones.

		"bonuses":
		[
			{
				"type" : "JOUSTING",
				"limiters" : [
					"allOf",
					{
						"type" : "CREATURE_ALIGNMENT_LIMITER",
						"parameters" : ["neutral"]
					},
					"noneOf",
						"SHOOTER_ONLY",
						{
						"type" : "HAS_ANOTHER_BONUS_LIMITER",
						"parameters" : [ "FLYING" ]
						}
				]
			}
		]

But console says it doesn’t know noneOf command…

Try something like that (allOf should be optional, so you can omit them):

{
  "bonuses": [
    {
      "type": "JOUSTING",
      "limiters": [
        "allOf",
        [
          "allOf",
          {
            "type": "CREATURE_ALIGNMENT_LIMITER",
            "parameters": ["neutral"]
          }
        ],
        [
          "noneOf",
          "SHOOTER_ONLY",
          {
            "type": "HAS_ANOTHER_BONUS_LIMITER",
            "parameters": ["FLYING"]
          }
        ]
      ]
    }
  ]
}

It works! Thanks!