[SOLVED] A Path Issue. Curious what it can be? [Answer: typo in .xml file]
-
EDIT: SOLVED! It seems I did everything okay, but I somehow made a stupid typo ( instead of ) in an .xml file, which prevented an entire section of modified code to be implemented **I swapped some bases, and although I thought I had done it properly, some (all?) of the paths beginning / ending at one of the bases, trigger game crashes (do we still call these crashes CTDs btw?)
Background of this particular mod:
The setting is the New Berlin system.
-
I moved around some bases, and I made sure that:
on every place where there used to be a base, there is now a base too, run by the same faction, and with the same factions to be found in the bar (albeit in somewhat different weights). (I did BTW not sync the commodities and equipment, but of course I should, if only for in-game continuity; I can’t imagine it is related to this issue though. But my assumptions aren’t always correct.) -
The crash-triggers seems to be path_junkers4, path_police5 and path_police7.
-
The base that seems to be the issue, is the relocated The Ring, which is now at the place where the docking ring of Planet New Berlin used to be (well, it moved from 51956, 0, 9796 to 52000, 0, 9800, but I checked whether that tiny difference triggered the crash by moving it to the original position, and it didn’t.)
-
The crash sometimes appears when I am flying around (presumably when I come near one of the paths, and always when I take a tradelane to the relocated The Ring. I presume that, when a player takes a Tradelane to a place, the game will already calculate what should be happening at the arrival destination; in this case I presume it tries (and fails) to render an encounter with Police and/or Junker ships leaving or entering the base at this end of the trade_path.
-
Eliminating the paths solves the issue.
I know the moving around of the bases is risky, but as far as I can tell* I made no mistakes. The new The-Ring-where-used-to-be-Berlin is a Police-run base, and there is a small Junker presence as well, just like New Berlin which was the original base on that spot.
(Which is a limited phenomenon, which is why I’m throwing it on the forum )*
-
-
path_junkers4
path_police5
path_police7 -
Seems awfully familiar, check this and see if you did it like I said in the last post:
-
And yet another crash…
In hindsight I realize I should have kept all the bases at their place, and change the names instead. I did that with two other bases, but not Rh01_01 and Rh01_03. (I moved Rh01_01, planet New Berlin, to where there was no base before, Rh01_03 to where Rh01_03 was, and made a new base at where Rh01_04 used to be. I assumed it wouldn’t matter, and logic-wise it shouldn’t in my perception — but it would have been less messy anyway)
I did succesfully swap Bases in NY though: Trenton and the Manhattan Docking Ring (and of course the entire planet). But maybe these are so close together that it doesn’t produce a crash there — a lucky coincidence rather than a proven method.
-
Cpt_Rei_Fukai wrote:
Seems awfully familiar, check this and see if you did it like I said in the last post:I was about to tell you that I made sure that I did cover the mBase entry for this base, but now that I check it, I see that none of the alterations are there! (??)
So, thanks!!
Maybe it is as simple as the mBase modifier for this station (I try to make it a habbit to do most stuff thru .xml scripts) doesn’t work properly. I’ll report back.
-
Aaaaaaaaaaaarghh
It turned out that instead of
there was
in the section before the one that set the mBase properties for Rh03_01! So, there were no Police or Junker people at the base at all. At least not from the point that this typo slipped into the file (they were there before, and I can't remember having touched that file prior to when the crashes started — but obviously I must have). This cost me several hours, spread over two days :-o :cry: :roll: :oops: Anyway, thanks again Cpt_Rei_Fukai :)
-
Lol, I now have PTSD: everytime I dock at a trade_lane I’m almost losing it.