NeonScorpion Posted June 8, 2018 Share Posted June 8, 2018 I was going in and changing a few things in the xml files, making swimming faster, adding/tweeking a minor speed buff on asphalt, making a few custom items. Things I've done before and pretty much know how to do fine. But I exit my game, change the swim speed and asphalt buff, and now my game stops loading at 'Loading Block's. I hit F1 and it just says this: "ERR Loading and Parsing xml ('modify' is expected. Line 475, position 4.) I went back and looked through some xml's i touched but only the buffs.xml has a "modify" on line 475, its the asphalt running buff. But its written correctly, it has modify. All I did was add a speedmodifier to the buff that I copied from something else and just tweeked the number. The ERR doesn't tell me what file, but it stopped loading on Blocks so i assumed in that xml, but there's nothing on line 475 in blocks.xml that has to do with modify. What's going on? Link to comment Share on other sites More sharing options...
Tin Posted June 8, 2018 Share Posted June 8, 2018 I was going in and changing a few things in the xml files, making swimming faster, adding/tweeking a minor speed buff on asphalt, making a few custom items. Things I've done before and pretty much know how to do fine. But I exit my game, change the swim speed and asphalt buff, and now my game stops loading at 'Loading Block's. I hit F1 and it just says this: I went back and looked through some xml's i touched but only the buffs.xml has a "modify" on line 475, its the asphalt running buff. But its written correctly, it has modify. All I did was add a speedmodifier to the buff that I copied from something else and just tweeked the number. The ERR doesn't tell me what file, but it stopped loading on Blocks so i assumed in that xml, but there's nothing on line 475 in blocks.xml that has to do with modify. What's going on? Without seeing the output_log.txt file (in you're output log it should be the very first error you received that indicates what failed first) or your tweaks you did.. I would guess a typo or formatting error in a file. I would also guess it's in your buff.xml in that it's looking for a 'modify' type for the buff. Sorry with all the educational guessing but it would help ppl diagnose better if they could look at them. Not saying those are your 100% issues or I'll be able to find the problem but someone should be able to find the issue by being able to look at them. Link to comment Share on other sites More sharing options...
NeonScorpion Posted June 8, 2018 Author Share Posted June 8, 2018 Sorry im kinda new at coding and moding. Ill look in the output log. Its just weird because in buffs.xml line 475 is just the line at the end of the asphalt buff saying "</buff>" Wait i found it when i went back to check the line. I forgot to add the / after the mulValue for the speedmodifier. My bad! Thanks because I probably wouldn't have taken a closer look if you hadn't said anything! Thanks for the help! Link to comment Share on other sites More sharing options...
KhaineGB Posted June 8, 2018 Share Posted June 8, 2018 I'm going to take a wild guess that you're trying to get this to work (this is from the vanilla XML). <buff id="asphaltStaBoostTrigger" duration="1" actions="setvar(CTRroadrun, 10)" /> <buff id="asphaltStaminaEffect" duration="0" buffif="CTRroadrun greater 0" debuffif="CTRroadrun less 1" actions="increment(CTRroadrun, -1, 1, 0, 0)" > <modify id="0" stat="stamina" amount="1" rate="2"/> </buff> <!-- GTC <buff id="asphaltStaminaEffect" duration="0" buffif="CTRroadrun greater 0" debuffif="CTRroadrun less 1" actions="increment(CTRroadrun, -1, 1, 0, 0)" icon="ui_game_symbol_run" name_key="Road Runner" description_key="Meep meep!" tooltip_key="Meep meep!"> <modify id="0" stat="stamina" amount="1" rate="1"/> </buff> --> If so, I've found this works better because I had EXACTLY the same problem! <buff id="asphaltStaBoostTrigger" duration="1" actions="setvar(CTRroadrun, 10)" /> <!-- <buff id="asphaltStaminaEffect" duration="0" buffif="CTRroadrun greater 0" debuffif="CTRroadrun less 1" actions="increment(CTRroadrun, -1, 1, 0, 0)"> <modify id="0" stat="stamina" amount="1" rate="2" /> </buff> --> <buff id="asphaltStaminaEffect" duration="0" buffif="CTRroadrun greater 0" debuffif="CTRroadrun less 1" actions="increment(CTRroadrun, -1, 1, 0, 0)" icon="ui_game_symbol_run" name_key="Road Runner" description_key="Meep meep!" tooltip_key="Meep meep!"> <modify id="0" stat="stamina" amount="1" rate="1"/> </buff> Link to comment Share on other sites More sharing options...
Tin Posted June 8, 2018 Share Posted June 8, 2018 Sorry im kinda new at coding and moding. Ill look in the output log. Its just weird because in buffs.xml line 475 is just the line at the end of the asphalt buff saying "</buff>" Wait i found it when i went back to check the line. I forgot to add the / after the mulValue for the speedmodifier. My bad! Thanks because I probably wouldn't have taken a closer look if you hadn't said anything! Thanks for the help! Peace! Glad you got it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.