strategyonly
C2C Supreme Commander
nvrmd
I now get this error message when starting a game??
Traceback (most recent call last):
File "CvWBInterface", line 230, in writeDesc
File "CvWBDesc", line 1545, in write
File "CvWBDesc", line 1193, in write
File "CvWBDesc", line 809, in write
UnicodeEncodeError: 'latin-1' codec can't encode character u'\ufffd' in position 17: ordinal not in range(256)
ERR: Python function writeDesc failed, module CvWBInterface
EDIT: Also did the city AI Gov change, because now its building outriggers ALOT, it never used to build units, just buildings?? And now even dog worker??
I now get this error message when starting a game??
Traceback (most recent call last):
File "CvWBInterface", line 230, in writeDesc
File "CvWBDesc", line 1545, in write
File "CvWBDesc", line 1193, in write
File "CvWBDesc", line 809, in write
UnicodeEncodeError: 'latin-1' codec can't encode character u'\ufffd' in position 17: ordinal not in range(256)
ERR: Python function writeDesc failed, module CvWBInterface
EDIT: Also did the city AI Gov change, because now its building outriggers ALOT, it never used to build units, just buildings?? And now even dog worker??
Not a bug. It s the way that building is defined. We could change it to only be built by a subdued pigeon. The building is on the border between two modders mods mine (Subdued Animals) and Hydro's buildings.To build a Homing Pigeon Coop, it appears that you need Poultry in the vicinity, even if you are using a Subdued Pigeon. That's a bug, right?
Not a bug. It s the way that building is defined. We could change it to only be built by a subdued pigeon. The building is on the border between two modders mods mine (Subdued Animals) and Hydro's buildings.
The big question is: Why is it running that code in the first place? That is code for writing a worldbuilder save which does not make sense at the start of a normal game.I'm getting these also - I think its because something in the XML has a bad description that contain illegal characters, but I'm not sure.
Can we PLS get the auto city AI Gov back to building only buildings, like before thx.
I was not aware this had changed - it's building units for you now?
Correct, it builds, Outriggers alot of them, and dog workers, so far,
but I don't think there has been taken a note of yet![]()
Does anyone actually use that file?Every time you start a new game or load a save it automatically writes a WB save file called WBQuickSave.CivBeyondSwordWBSave in Saves\Worldbuilder.
Edit: Btw, at the error location given it tries to write a unit name (not the type name). Is there some unit name generation happening now that produces names with non latin-1 characters?
Doubtful, as it is happening for people in America using English versions of Windows. I'd say it is more likely that Stormwind is right and that there is corruption in some caching mechanism.
The original RapidXML does not care for encodings at all, only what you set as parse settings and even then it only changed how it expanded codes like & 235 ; and similar. I changed that so it checks for the encoding set in the header of the XML file and if that is set to ISO-8859-1 then it expands & 235 ; into latin-1 characters so it fits with the rest.Consider the specific value: fffd.
This is not a normal unicode character. It is listed as the "replacement character", which is supposed to be used to replace a character that is not a valid unicode character. This could happen if the encoding used for the text was not the expected one, or if the input is somehow being broken in the middle of a multi-byte character. If the input was done using 8-bit Latin-1 characters but the file is saved as UTF-8 then this is also possible as some pairs of 8-Bit latin-1 characters towards the upper end of the range (vowels with accents and such; I think perhaps only the first one has to be up there) can be interpreted as a single UTF-8 character, but it isn't a valid one. I suppose that switching the XML parser could actually have caused this if it is now interpreting a file as UTF-8 that used to be interpreted as Latin-1.
The characters at 0xFF and 0xFD are ÿ and ý which likely should not be in a text right after each other, especially not in an English text.So a question is, in how many places does the English text actually use characters that are not 7-bit? I'm pretty sure there are some in there. English itself doesn't use any, but it is not unusual to include some in words taken from non-English sources (city names, unit types, and that sort of thing are good candidates).