-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayIndexOutOfRange #15
Comments
Cant seem to reproduce it. As some added info, the error report looks something like this:
The error occurs inside some internal game code, At hispoinnt it becomes a bit confusing as to why it even happened in the first place. I totally do not see this occuring on my side... Edt: seeing that the code referennesthhe NetManager, I am thinking that the road network is somehow broken so that it causes problems. Maybe mods like 81 tiles can cause problems like that? |
Hi, I encountered this error, but the cause seems different. The message comes from Invert IPT2 determine unbunching etc (modules?). It showed up soon after I switch to aggressive unbunching. Switching back to legacy/prudential avoids the problem. I'm using 81 Tiles, however I'm only playing with my city in 25 tiles so far except external roads and other infrastructure (I have drawn an approximate border around it). |
I still haven't yet confirmed it myself, but yeah I can see why 81 Tiles is a problem 81 Tiles will have to modify the game's data structure to support potentially using every bit of 81 tiles, and so even though you are using less than 25 tiles, the inner workings of the game are already changed, and the aggresive mode (which asks about where is the next bus stop) will be very likely to be affected. Legacy/prudential is not affected because it only counts and modifies the waiting time at stops; it does not interact with the inner workings of the game that deep. It is mainly because normally I dont use 81 Tiles that I cant see this problem during development; besides, testing with 81 Tiles adds in some complexity |
Hi, I've had this issue for a few months now but have only got around to looking at the full error log in the pop-up (Through Extended Error Reporting). I worked out early on that, for me at least, the error relates to Sunset Harbour intercity buses reaching a node on the highway a few hundred metres before the map edge (I also use 81 tiles). It doesn't seem to always happen but when it does, all Intercity buses get caught and fling backwards and forwards. I have been periodically checking and removing these vehicles with TMPE delete button. I've attached an example log below to help confirm that this is the same issue. I've started a new city on a new map in the last few days and get the error both on this new map and my previous (Both were custom), but I don't think the map is the issue. ` System.IndexOutOfRangeException: Array index is out of range. |
Does this mod interact with intercity buses??? |
Ah with the new info, everything becomes a bit clearer. First thing: my testing environment:
This may explain why I seeming just cannot see any problem with this mod even when a lot of people outside are saying "this mod got problems". Second: whether this mod made sense:
I can think about this and make an update later, and then you may check if it works on your side. |
Yeah, shortening turnaround time for intercity bus doesn't make it much more realistic. It only takes up stand at a bus terminal, not streetside stop. |
Hi all, the update was released on Steam alongside the release of #12, so you may recheck if the update fiixed this issue. |
Hi, I've loaded up Cities to test. I've definitely got the update as I've observed the "service self-balancing" which works very well. I did, however, get the same error with the intercity buses. An exception occured during VehicleAI simulation step. System.IndexOutOfRangeException: Array index is out of range. I looked a bit more closely and the issue occurs at the final node before the map boundary and the bus is in the second lane trying to get across one to the outside lane. |
This comment was marked as duplicate.
This comment was marked as duplicate.
I guess this is an improvement? I have the impression that previously it was "every kind of bus does not work all the time", and now it looks like it is "intercity bus does not work near map edge". This is still an unresolved bug though. This means that I have missed some cases when checking for intercity buses. Hopefully this can be fully fixed in the next update. |
Hi, I also got this error. No IPT2 or TLM, self-balancing is disabled...
|
Hi all, I have reimplemented the fix, see if it works now. |
I have tried for a few hours today and everything appeared to work. I observed a few intercity buses successfully exit the map. Thank you for your time fixing this. |
Nice! Also thanks to the Sunset harbour owners for testing this on my behalf. I can therefore close this. |
AFAIK, reported both from Steam and Discord.
Should be sth like, when loading into map, or when simulating, it throws ArrayIndexOutOfRange, and the stack trace immediately mentions ExpressBusServices.
The text was updated successfully, but these errors were encountered: