Soxirella Posted July 10, 2018 Share Posted July 10, 2018 Instead of having just one button to import city config to all cities, can we have a checkbox where we can choose which cities to have the tool import the config to. So instead of running your code on a list of all cities, you'd run it on an array of chosen items. 4 Quote Link to comment Share on other sites More sharing options...
Aksel Posted July 10, 2018 Share Posted July 10, 2018 Or you could just copy the code and drop it in your selected cities. 1 Quote Link to comment Share on other sites More sharing options...
Sweeeeet Ronny D Posted July 10, 2018 Share Posted July 10, 2018 Or you could do what Sox asks for, which would make it much more user friendly, especially for nations that have significantly more than 13 cities. 1 Quote Link to comment Share on other sites More sharing options...
NastyGamer Posted July 10, 2018 Share Posted July 10, 2018 (edited) I don't think this can be implemented cause Alex has denied new feature requests to import system multiple times because (I Quote) Quote Probably not, only because it works as is, and I set it up as-is because it was easy to configure with the existing code. To do a preview would require a drastic reconfiguration of the import system Simply said, he's got a pretty screwed backend which he is not getting to time to fix. Which is also fine since he made this game as a kid. Just saying. Edited July 10, 2018 by WarGamer Quote Link to comment Share on other sites More sharing options...
Soxirella Posted July 11, 2018 Author Share Posted July 11, 2018 (edited) On 7/10/2018 at 9:37 PM, Columbus Griffin said: I don't think this can be implemented cause Alex has denied new feature requests to import system multiple times because (I Quote) Simply said, he's got a pretty screwed backend which he is not getting to time to fix. Which is also fine since he made this game as a kid. Just saying. Technically speaking, he is probably running the config in a loop of some kind. So in PHP it may be something such as: foreach ($cities as $city) { $city->import($json_input); } He just needs to add a second box where we'd put: [city1,city2,city3] Then the code would change to... $city_list = [city1,city2,city3]; foreach ($city_list as $city) { $city->import($json_input); } Edited July 11, 2018 by Soxirella 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.