Cannot update new cm_weather1.xml

1
I have previously added a custom cm_weather1.xml to livemap and it seemed to work ok. Now when I try to add a new cm_weather1.xml i just get a blank browser window and it does nothing. Is there a way to update the weather again? or do i have to complete delete the livemap and start over? (which would be a massive amount of work with all the changes i made)
  • Are you using a hosted livemap on FeudalTools or did you download the map script from nyuton.net and host it on your own webserver?
    FeudalTools hosted yes: https://livemap.feudal.tools/index.php?livemap_id=6706
  • If hosting yourself, did you make changes to the script or layout files, apart from config-dedicated.php?
  • If hosting yourself, what livemap verson are you running?
  • Is the server-mod (TTmod) installed on your gameserver?
    Yes TTmod is installed and working.
  • Include a link to your map or provide screenshot(s) of the issue you're experiencing
http://prntscr.com/uekjpb

Re: Cannot update new cm_weather1.xml

2
On a side note. the cm_weather1.xml is working fine in-game (so the file itself has no errors). And I also tested uploading the default vanilla cm_weather1.xml to overwite the current custom file and still didn't work. Seems like maybe you cannot update the cm_weather1.xml once its already changed?

Re: Cannot update new cm_weather1.xml

5
Well your file is invalid xml. You can verify XML syntax with i.e. https://www.truugo.com/xml_validator/

What I figured is a problem with the space characters within the <day> tags. Manually replacing the spaces between <day and id and before season= seems to make the lines work. So whatever is in there seems to be no regular space character. @Nyuton maybe knows more about this. But definitely the livemap should at least display a useful error message in this case instead of a blank page with http/500 error.

Note that the vanilla xml might have this problem too. The game isn't very strict with syntax checking as opposed to web implementations.

Re: Cannot update new cm_weather1.xml

7
Chris wrote: 10 Sep 2020, 10:35 Well your file is invalid xml. You can verify XML syntax with i.e. https://www.truugo.com/xml_validator/

What I figured is a problem with the space characters within the <day> tags. Manually replacing the spaces between <day and id and before season= seems to make the lines work. So whatever is in there seems to be no regular space character. @Nyuton maybe knows more about this. But definitely the livemap should at least display a useful error message in this case instead of a blank page with http/500 error.

Note that the vanilla xml might have this problem too. The game isn't very strict with syntax checking as opposed to web implementations.
OK, i just updated livemap with corrected cm_weather1.xml and it all seems to be working. In-game i actually HAVE weather now also. so almost certainly that was the issue. Thanks! I'll be sure to validate XML's in the future... very weird.

Solved