Jump to content

Bulk import to selected cities


Soxirella
 Share

Recommended Posts

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.

  • Upvote 4
Link to comment
Share on other sites

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 by WarGamer
Link to comment
Share on other sites

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 by Soxirella
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.