UFO:Alien Invasion
Technical support => Windows => Topic started by: Pillat on January 19, 2015, 01:28:19 am
-
Hi,
I am new here, but played UFO:AI for a long time now.. I started with XForce: Fight for Destiny, but that game was/is not finished at all and it was quite fast very boring.. so I downloaded UFO:AI some time ago and it is still awesome to play.. but unfortunately, I can't finish the campaign because at a certain point, my savegame(s) get corrupted, and all the game says is 'Bad XML data' or something like that, and then I can start from 0.. quite frustrating.. so I hope you can help me out with this.
Anyway, I download 2.6 atm, and I am kind of a Bugreporter for another game, so if you want, I can do that here too^^
And one last question:
Is it possible to add new weapons like assault rifles and so on just by copy+pasting the existing assault rifle, and then change parameters? I can't model, but I want at least some imaginary variety here for myself, so would be nice if you can explain me the steps for doing this ;)
Thanks in advance :)
-
HI Pillat, and welcome to the forum,
It seems that you have encountered bug #5392 (http://ufoai.org/bugs/ufoalieninvasion/issues/5392) if you can provide a savegame where this is easily reproducible it would be a big help
BTW the bug tracker I linked is the preferred place to report this kind of issues, and sure we appreciate all the help people can give :)
Yes what you ask is possible I suggest that you start by reading this thread (http://ufoai.org/forum/index.php/topic,6780.0.html) first but keep in mind that the number of items that can be added to the game is limited (http://ufoai.org/bugs/ufoalieninvasion/issues/5165)
-
Unfortunaly, this is now the 2nd time I encountered this bug.. the first time I was like 'ah man.. okay that won't happen again' so I saved 4 savegames each time when I started a new campaign.. and now all 4 have this error again
Attached is one of my 4 savegames.
Yes I already encountered that object limit.. too bad that there is no script-define for this atm :/ And when I add a new rifle and then add it to the campaign inital market, the campaign wont start anymore?
-
Is that save before or after the bug? (I could take a look later of course)
Well I guess the number of items could be increased, Duke was palnning to increase it some more but testers didn't report back, on the other hand the game has worked fine so far with his experimental increase of two items (only in 2.6-dev) so there shouldn't be a problem going along with his original plan, I guess?
And when I add a new rifle and then add it to the campaign inital market, the campaign wont start anymore?
With which error? Maybe you missed to add the required technology for the rifle to be available?
-
The save is after the bug^^ So you won't be able to load that save anymore :D
Hmm no error.. I just can't start a new campaign.. there's just an empty worldmap, and I can't do anything^^
Well what do I have to add to play the campaign with the new items?
-
I've opened your savegame (with cli tools) and it was broken on the very same message (Alien activity was detected), the very same way. More over: you are playing on German language just like the last reporter did. So I've opened the language file with PoEdit, looked up the string aaand found something like:
msgid "Alien activity has been detected in %s."
msgstr "Alien Aktivitäten wurden gemeldet in: '%s'."
msgid "Alien activity has been detected."
msgstr "Außerirdische Aktivitäten wurden gemeldet in: '%s'."
The second pair is the problem. The original text does not need a %s template but the translation has one, which on saving get replaced by some memory-garbage which corrupts the XML.
I can't imagine that it could happen, especially with so many German ppl in the team. :)
I fixed the po file in the branch for next releases. For a workaround: please play on English.
-geever
-
Ok.. uhm.. can you correct the savegame and give it back to me? :D Don't want to start from new again
-
Hmm no error.. I just can't start a new campaign.. there's just an empty worldmap, and I can't do anything^^
Odd I thought the game would throw an error and exit... anyway you can find your ufoconsole.log (http://ufoai.org/wiki/Manual/FAQ#General) which should contain any errors, that might have been generated that weren't bad enough for the game to exit (or crash).
Well what do I have to add to play the campaign with the new items?
You'll need to add a tech that 'provides' the item (one for each item) (see research.ufo) and if you want it to be available from the start you might need to add that techs to the appropriate list in researched_list.ufo
-
Odd I thought the game would throw an error and exit...
Well, honestly, I did not test it. I just assumed that it caused the issue. Let's hope it is enough. :D
-geever