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 correctly access and modify database for airliners/aircraft? - 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 correctly access and modify database for airliners/aircraft? (/showthread.php?tid=2076)



How to correctly access and modify database for airliners/aircraft? - NatIsrael972 - 03-13-2020

Hi all,

Been reading the forums lately and I have to admit, I was drawn by Tjoeker's friendliness to everyone, regardless of what their thread was about. I even feel guilty not donating anything to the team - but don't worry, I will definitely do so soon!

So to the main point of this thread:
I have read up on the tutorial as well as the many threads that supposedly teaches people how to use DB Browser for SQLite in order to access and modify the database to our hearts' content but the resources I came across really didn't address my needs.

I decided to try modifying the database by starting out with the Airbus A330-200ST Beluga XL, which I renamed to Airbus A330-743L Beluga XL. I also changed its properties such as fuel, range, etc... but I believe these have nothing to do with the issue I am experiencing at the moment.

The issue I am experiencing has to do with the airliner graphics. I noticed in the tutorial and in many threads, it is emphasized for one to always name something the same as the graphic's name. However, this clearly did not apply in this case as the graphic's name was A330 BELUGA.png and not Airbus A330-200ST Beluga XL.png as expected from the naming convention emphasis.

In game, the airliner graphic did not show up when I clicked on the Info button of the Airbus A330-743L Beluga XL. I tried finding the reference point for the name and airliner image but to no avail.

Hopefully someone can help me with this and maybe one day someone can also do a comprehensive tutorial on editing things to our hearts' content because the threads I've come across were mostly for airlines and airports, but none for airliners apart from one thread about manufacturers.

Cheers!


RE: How to correctly access and modify database for airliners/aircraft? - Tjoeker - 03-13-2020

Hey, welcome to the forum and thanks for the kind words! Smile

Airliner names don't have to be the same as their images. Perhaps in an old version a long time ago, but not any more.

You can fix your issue in this file:

Data/graphics/airlinerimages/images.xml
The file is somewhat hidden between the many images. Smile

In this file you will need to change this line:

Code:
<airlinerimage image="A330 BELUGA" types="Airbus A330-200ST Beluga XL"></airlinerimage>

into this:

Code:
<airlinerimage image="A330 BELUGA" types="Airbus A330-743L Beluga XL"></airlinerimage>

If you want multiple airliners using the same image, you sum them up like this: types="X,Y".

I hope this helps. Smile