View Full Version : Map editor - Modified hero = unable to target anything
Techies
12-17-2010, 04:47 PM
I'm having a problem with my map atm. I tried adding a witchslayer with a modified ulti into the mapfile. Ingame however, I can't target anything with his ulti then. If I completely replace the withslayer he can't even auto-attack a target anymore.
LonJAXsoN
12-17-2010, 05:42 PM
How to edit a hero's skills:
Navigate to resources0.s2z/heroes
Copy the desired hero folder.
Create a folder titled "resources", then a subfolder called "heroes"
Paste the hero's folder into the "heroes" folder
Edit the ability.entity, projectile.entity, whatever.
Zip up all the map files including the resource folder, change extension to .s2z.
http://i51.tinypic.com/25kjxj5.png
What did you do to witch slayer's files?
Techies
12-17-2010, 06:54 PM
Just changed the cooldowns and manacost. Did exactly what you mentioned above.
I also tried putting in the scorpion dota port into the mapfile. Had the same effect, the hero couldn't target enemy units directly.
LonJAXsoN
12-17-2010, 07:01 PM
Well that's odd.. i don't know what to tell you. I've been editing devourer's spells with no problem. Oh, you're making that mod where you have to kill the incoming creeps, aren't you?
I'll try doing it quick..
I got it to work first try. Make sure that
maxlevel="3"
is equal to the number of options
manacost="5,5,5"
cooldowntime="1000,1000,1000"
So if you only want 1 level of the ult with a certain manacost and cooldown, just do
maxlevel="1"
manacost="5"
cooldowntime="1000"
but then you have to make sure every other value only has one option, also.
Oloko
12-17-2010, 07:45 PM
I'm having a problem with my map atm. I tried adding a witchslayer with a modified ulti into the mapfile. Ingame however, I can't target anything with his ulti then. If I completely replace the withslayer he can't even auto-attack a target anymore.
This is probably caused by a scripting error, you can try to look at your console to see if there was an error related to your scripts.
If you put your scripts on pastebin or if you upload your map, I can take a look.
Techies
12-17-2010, 08:24 PM
Ok I've noticed something:
1. If I start up HoN and load my map, I get the invalid target message.
2. If I start up HoN and load Caldavar first, disconnect, then load my map. everything works.
ScreenShotx
12-17-2010, 08:42 PM
Ok I've noticed something:
1. If I start up HoN and load my map, I get the invalid target message.
2. If I start up HoN and load Caldavar first, disconnect, then load my map. everything works.
This works for me to.. O.O strange
Techies
12-21-2010, 04:40 AM
Ok found the solution, you must include the resource file "base.gamemechanics" even if you didn't even make any modifications to it.
ScreenShotx
12-21-2010, 06:43 PM
Ok found the solution, you must include the resource file "base.gamemechanics" even if you didn't even make any modifications to it.
ahh Thnx, now i no longer have the need to load my map twice :3, Thnx