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
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
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
I tried - 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: I tried (/showthread.php?tid=1600)



I tried - kwilson92 - 12-23-2018

So this evening i tried making some airline files only for it to all mess up.

Area Code 102 (UK) for some reason in game was showing up as Latvia
Preferred Airport was STN (London Stansted) and in game was showing up as Harare (Zimbabwe).
Any idea what went wrong.

Pjank take a look at it for me please and tell me what i did wrong.

Cheers



<?xml version="1.0" encoding="UTF-8"?>
<airline>
<profile name="AB Airlines" iata="7L" logo="7L1.PNG" color="148,0,211" country="102" CEO="Brian Beal" mentality="Moderate" market="Regional" preferedairport="LHR">
<narrative narrative="AB Airlines was an airline with its head office in the Enterprise House on the property of London Stansted Airport in Uttlesford, Essex.[1] AB was one of the first 'low-cost airlines' in England, preceding others such as EasyJet, Ryanair, and Go Fly. It was created in 1993 by former Brymon Airways executives. AB Airlines was formerly known as Air Bristol. Initially the airline marketed itself as Air Belfast, reflecting its then principal route between Belfast International Airport and London Stansted. Aircraft and crew were based at Belfast International Airport, London Stansted Airport and Bristol Filton Airport. A base was then opened in 1994 at Shannon Airport to operate flights to London Gatwick Airport. This operation was marketed as AB Shannon."/>
</profile>
<info real="True" from="1993" to="1999"/>
<prefereds aircrafts="Boeing 737-300"></prefereds> 
<focusairports>
<focusairport airport="LGW,SNN"></focusairport>
</focusairports>
</airline>



If i can master this i will create XML files for loads of global defunct airlines, and current airlines that you guys haven't added


RE: I tried - Tjoeker - 12-23-2018

Oh I'm sorry.

Area codes are for the next version, I put it in the tutorial for people sending it over to us. Blush
For the current version you still need country codes. (UK is 130 I believe).
For the next version, replace country="" by area="" and use the area IDs.

You have to create the focus airports like this:

<focusairports>
<focusairport airport="LGW">
<focusairport airport="SNN">
</focusairports>


I hope this helps.


RE: I tried - kwilson92 - 12-23-2018

Ok will have ago
Also the airline logo isnt showing up even though its the right file name in the right folder.

Also its still showing Zimbabwean Airports instead of Stansted when i put STN as my prefered airport


RE: I tried - Tjoeker - 12-23-2018

You don't have multilogo's set right?

(just to make sure):
Then the logo should be in this folder: data/graphics/airlinelogos.
The name of the logo should be exactly the same as the filename (Including capitals)
Have you tried leaving out the .png extension from the logo? < if this is the issue, I guess I'll update the tutorial. Smile
Is the logo actually a .png and not a Eg.: .jpg where you changed the extension to .png without using a photoshop of some kind? (if so, just safe as .png)



I'm not sure what might be causing the Zimbabwean airport to show up.
Did you set the country ID to 130?

However, in the code you shared with us, I don't see Stansted mentioned anywhere. (except for the narrative)
I only see London Heathrow, London Gatwick and Shannon.


Also, I'm wondering if the color works?
I don't know if you can just put RGB values there instead of the name of the color?



If you still have issues, can you send the latest version of your code? I'll see if I can spot any mistakes while testing it. Smile


RE: I tried - kwilson92 - 12-23-2018

<?xml version="1.0" encoding="UTF-8"?>
<airline>
<profile name="AB Airlines" iata="7L" logo="7L1" color="148,0,211" country="130" CEO="Brian Beal" mentality="Moderate" market="Regional" preferedairport="STN">
<narrative narrative="AB Airlines was an airline with its head office in the Enterprise House on the property of London Stansted Airport in Uttlesford, Essex.[1] AB was one of the first 'low-cost airlines' in England, preceding others such as EasyJet, Ryanair, and Go Fly. It was created in 1993 by former Brymon Airways executives. AB Airlines was formerly known as Air Bristol. Initially the airline marketed itself as Air Belfast, reflecting its then principal route between Belfast International Airport and London Stansted. Aircraft and crew were based at Belfast International Airport, London Stansted Airport and Bristol Filton Airport. A base was then opened in 1994 at Shannon Airport to operate flights to London Gatwick Airport. This operation was marketed as AB Shannon."/>
</profile>
<info real="True" from="1993" to="1999"/>
<prefereds aircrafts="Boeing 737-300"></prefereds>
<focusairports>
<focusairport airport="LGW"></focusairport>
<focusairport airport="SNN"></focusairport>
<focusairport airport="BRS"></focusairport>
</focusairports>
</airline>


Here is the latest code.
The country and airports are now fine.
Logo still not showing and neither is the narrative.
Need to change the colour


RE: I tried - Tjoeker - 12-23-2018

The logo works fine here. Are you sure you didn't put it in the multilogo folder? or not in the airlineR images folder?
The logo is named '7L1.png'? (lower case extension name?)


After changing the color to the name instead of RGB values the narrative also shows up just fine.