Page 1 of 1

Cannot update new cm_weather1.xml

Posted: 10 Sep 2020, 00:06
by Scruffy
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

Posted: 10 Sep 2020, 01:10
by Scruffy
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

Posted: 10 Sep 2020, 02:14
by Chris
Hi,
can you please attach the XML file you're trying to upload?

Re: Cannot update new cm_weather1.xml

Posted: 10 Sep 2020, 09:09
by Scruffy
Your site wont let me upload an xml file. But as i said, i cannot even update livemap with the vanilla game cm_weather1.xml so doesn't seem to be the file that's an issue.

OK i zipped it.

Re: Cannot update new cm_weather1.xml

Posted: 10 Sep 2020, 10:35
by Chris
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

Posted: 10 Sep 2020, 10:51
by Scruffy
hmm.. ok i'll manually re-write the file i guess. thanks. But why does the vanilla cm_weather1.xml not work either? i mean, it should right?

Re: Cannot update new cm_weather1.xml

Posted: 10 Sep 2020, 11:05
by Scruffy
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