andy55699 Posted March 27, 2023 Share Posted March 27, 2023 This is a problem caused by my mistake. I accidentally enabled the cheat and turned the scenario to the "unlimtied fund" mode. Later when i realized and disabled it, it already created guests with unlimited cash since they entered the park during the "unlimtied fund" mode. I'm wondering if there is any sorting tool that i can find out all those guests with unlimited cash? (And eliminate them LOL so I can play the scenario in a normal situation, otherwise these super rich guests would stay in the park forever) Thanks! See attached image showing guests with unlimited cash Link to comment
ExCrafty Posted March 27, 2023 Share Posted March 27, 2023 About the option I could think of would be to remove all guests from the park and let them start again. But I suspect you've already thought about that. Link to comment
Broxzier Posted March 28, 2023 Share Posted March 28, 2023 You could use a plug-in to reset guests with ridiculous amounts of money to something that makes more sense. If you run the game from the openrct2.com file (not openrct2.exe), you could even paste a one-liner in the console window that opens then, to fix the affected save. The one-liner could look something like this: map.getAllEntities("guest").forEach(function(guest){ if (guest.cash > 4000000) guest.cash = 500; }); I have NOT tested this, since I'm not at my PC right now. Link to comment
andy55699 Posted March 28, 2023 Author Share Posted March 28, 2023 7 hours ago, Broxzier said: You could use a plug-in to reset guests with ridiculous amounts of money to something that makes more sense. If you run the game from the openrct2.com file (not openrct2.exe), you could even paste a one-liner in the console window that opens then, to fix the affected save. The one-liner could look something like this: map.getAllEntities("guest").forEach(function(guest){ if (guest.cash > 4000000) guest.cash = 500; }); I have NOT tested this, since I'm not at my PC right now. Thx a lot! But what's the plugin that i should download and what do you mean by running the game from the openrct2.com file? Link to comment
Broxzier Posted March 28, 2023 Share Posted March 28, 2023 Just open the openrct2.com file from your Documents\OpenRCT2\bin (if launcher) or C:\Program Files (x86)\OpenRCT2\ folder. Then open the affected park, and paste the code I pasted above. I've just tested it locally, and it works. It sets all guests who have a ridiculous amount of cash back to €50. 1 Link to comment
andy55699 Posted March 29, 2023 Author Share Posted March 29, 2023 (edited) 21 hours ago, Broxzier said: Just open the openrct2.com file from your Documents\OpenRCT2\bin (if launcher) or C:\Program Files (x86)\OpenRCT2\ folder. Then open the affected park, and paste the code I pasted above. I've just tested it locally, and it works. It sets all guests who have a ridiculous amount of cash back to €50. I checked both " Documents\OpenRCT2\bin (if launcher)" and " C:\Program Files (x86)\OpenRCT2\ folder" but i couldn't see the openrct2.com file. Would you mind taking a look at the attached screen caps? Thanks! p.s. my OpenRCT folder is in C:\Program Files\ instead and not in C:\Program Files (x86)\ Edited March 29, 2023 by andy55699 Link to comment
andy55699 Posted March 29, 2023 Author Share Posted March 29, 2023 I tried opening the park in the usual way I do and then pasted the code I pasted in the console window(or is this the console window?). It doesn't work saying it's an unknown command. Link to comment
andy55699 Posted March 30, 2023 Author Share Posted March 30, 2023 oh i got the right file - openrct.com. The file extension was hided. But then I tried pasting the one-liner here in the command terminal. Nothing changes after i entered. Link to comment
Broxzier Posted March 30, 2023 Share Posted March 30, 2023 Okay, glad you found the openrct2.com file and you did the rest right. Perhaps it doesn't work because the cash value is negative. In that case, try pasting this line instead: map.getAllEntities("guest").forEach(function(guest){ if (guest.cash < 0) guest.cash = 500; }); Link to comment
andy55699 Posted April 1, 2023 Author Share Posted April 1, 2023 i tried both lines but either of them works ..... screenrecord.mp4 If the problem is not solvable, would u mind sharing the corrected .park file with me? thanks a lot! Link to comment
Broxzier Posted April 3, 2023 Share Posted April 3, 2023 Sure, could you share the park file here? Link to comment
andy55699 Posted April 4, 2023 Author Share Posted April 4, 2023 (edited) oh i just realize I didnt share the .park file here. Thx a lot! Sixflags.park Edited April 4, 2023 by andy55699 Link to comment
andy55699 Posted April 12, 2023 Author Share Posted April 12, 2023 On 04/04/2023 at 03:25, Broxzier said: Sure, could you share the park file here? oh i just realize I didnt share the .park file here. Thx a lot! Sixflags.park Link to comment
Broxzier Posted April 22, 2023 Share Posted April 22, 2023 Here's the fixed park: Sixflags.park I've fixed it with an even simpler code snippet: map.getAllEntities("guest").forEach(function(guest){ guest.cash = guest.cash; }); Link to comment
andy55699 Posted April 23, 2023 Author Share Posted April 23, 2023 Thx a lot Broxzier!😀😀😀 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now