The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 749 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 749 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 889 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 889 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 889 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 889 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(956) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/global.php(956) : eval()'d code 34 errorHandler->error
/global.php 956 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1021 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 1021 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5196 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 5196 errorHandler->error
/global.php 1021 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/global.php 1021 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/inc/functions.php 5233 build_theme_select
/global.php 1021 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/global.php 1021 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1404 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forum
How to edit route restrictions? - Printable Version

+- Forum (https://theairlineproject.net/forum)
+-- Forum: General Discussion & Suggestions (https://theairlineproject.net/forum/forumdisplay.php?fid=4)
+--- Forum: Discussion (https://theairlineproject.net/forum/forumdisplay.php?fid=10)
+--- Thread: How to edit route restrictions? (/showthread.php?tid=1666)



How to edit route restrictions? - Jevan - 02-28-2019

Hey, could you guys tell me which file(s) should I mess up with when I want to edit route restrictions (i.e. airlines can't fly to EU or US)? Thanks in advance.


RE: How to edit route restrictions? - Tjoeker - 02-28-2019

in the data folder you'll find a file called data.sqlite.
To open this file I use 'DB browser for sqlite'.

Once you have opened the file, go to the tab called 'Browse Data', and select restriction in the dropdown menu.
Now you see a list of restrictions implemented in the game.

For a restriction between the US and the EU you need to add these 2 lines: (if you want the restriction to be both ways)

DD-MM-YYYY 00:00 | C122 | DD-MM-YYYY 00:00 | U101 | Flights | 0 | |
DD-MM-YYYY 00:00 | U101 | DD-MM-YYYY 00:00 | C122| Flights | 0 | |

Of course, replace DD-MM-YYYY with the actual date you want the restriction to take effect.
Use 01-01-1900 00:00 if you want it from the beginning of time.
Use 31-12-2199 00:00 if you want it to last until the end.

If you want more restrictions between specific countries, select 'country' in the dropdown menu.
Here you can check the IDs of each country. (Uid column)

Just add a C to the country ID and put it in the FromUnit and ToUnit columns. (format: C***)
The U stands for Unionunit, a combination of countries.
U101 is the EU as a whole.
U102 stands for the former Warsaw Pact,
U103 stands for NATO countries,
and U104 stands for Schengen countries.