Jump to content

Crash when adding scenery


Recommended Posts

Posted

Hi,I'm making a gigantic amuzement/resort park and I'm 75% done with this.But when I want to place some scenery (original and/or custom) it crasheswith the following problem: ANIM_TYPE_COUNT error (something like that).It's like that the scenery limitation cannot be unlimited :(What can I do about this because I really want to have no limits ? :(Greetings,Zion

Posted

As long as the program is not fully decompiled and uses the original rct2 save format, those limits will exist. They will eventually be removed, but it'll take some time (don't expect it within a month).An assertion is a manual check in the code to prevent further issues. Instead of failing the assertion the game should warn you that you can't place any more scenery.

Posted

This error seems to happen a lot lately. It's nothing to do with the limitations, it's to do with corrupted map data. It seems like your saved games got corrupted, but the devs still don't know where this happens exactly. Do you have the saved game form just before the crash and after, and do you remember what you did between the two?It's easiest if you redo the changes you've done again, but if you don't have one maybe one of the devs can fix this file for you by hand.

Posted

It's not corrupted because I can play it on the original rct2 game and on openrct2 game.I'm now getting a notification that my landscape data is fully used and sometimesI'm still getting that error/crash.When I change the landscape itself (making mountains and such) then I'm not gettingany error. I hope that they will fix the limits to unlimited or maybe double the datalimitations. Also I've not tested the handymen, mechanics, guards and entertainerslimitations yet. Maybe someone knows that there's still a limit ?

Posted

All limits are still there. The error you're getting doesn't have to do with these though, it is just a check in code that should always be true, though for some reason it isn't, which is probably cause by curruption anyway.

Posted

I wander if they're using multidimensional arrays/vectors ?If someone does have knowledge of IT then they knowwhat an array means :)Couldn't this be an anwser for the limitations ?

Posted

They're just static arrays now, because that's what the original game used as well. This cannot be stored into a more convenient way before OpenRCT2 is completely independent of rct2.exe.For example this sets the complete map element array to zero upon loading a map. RCT2_ADDRESS_MAP_ELEMENTS is the address in memory of the first element of the array. As you can see it's not dynamic, but has a max size (MAX_MAP_ELEMENTS, which is 196608).memset((void*)RCT2_ADDRESS_MAP_ELEMENTS, 0, MAX_MAP_ELEMENTS * sizeof(rct_map_element));

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...