this buff crashes the game, tell me whats wrong please. <spell name="5 Second Energy" type="self" icon="skills/5hour32.png" > <buff usetimer="1" time="5" allowstacking="0" icon="skills/5hour64.png" smallicon="skills/5hour32" bad="0" > <primarybuff id="2" amount="8"/> <!-- Nimbleness --> </buff> this i'll help me alot so thank you in advance
This: Code: <spell name="5 Second Energy" type="self" icon="skills/5hour32.png" > <buff usetimer="1" time="5" allowstacking="0" icon="skills/5hour64.png" smallicon="skills/5hour32.png" bad="0" > <primarybuff id="2" amount="8"/> <!-- Nimbleness --> </buff> </spell>
You didn't put a file extension on the smallicon argument. Change "skills/5hour32" to "skills/5hour32.png". And there's no closing tag for the spell. Other than that, I can't think of why it wouldn't work.
<buff usetimer="1" time="5" allowstacking="0" icon="skills/5hour64.png" smallicon="skills/5hour32" bad="0" />
Nope. <buff> is an opening tag, not a singleton. It's got the closing tag </buff> later on. Only tags that don't encompass other ones need a "/>" at the end.
I believe using this tool would help you find common errors like this: http://community.gaslampgames.com/threads/mod-xml-validator.3390/
Yeah definitely use the mod validator, it'll flag errors like this one with "File not found 'blah'" which is really handy 'cause I've made exactly this error like a dozen times. (Also the using > when I want /> and vice versa ahhhhh)