Jump to content

DisposableHero

Members
  • Posts

    784
  • Joined

  • Last visited

  • Days Won

    126

Everything posted by DisposableHero

  1. I do not understand why people still link or reference PhpVms v5 modules to v7 posts ... They will not work unless you re-write them from ground up, which is technically much harder than building your own module. There is no publicly shared module for fleet management or so called "real booking" logic. And there are reasons for it, the main reason is that phpvms v7 is still under development, though most of the main code is stable and working, this does not mean that it will not be changed and/or logics will stay the same from today to tomorrow. So any module developed today with the latest dev may not work one week later, or work in a non expected way. This little details is keeping developer a little bit away from working on phpvms v7, some of us on the other hand using this development process to build our own modules/widgets etc and improve them as phpvms v7 becomes more stable and capable day by day. For the main question, Maco already builded his own aircraft/fleet location display module and already shared it with people willing to use. I do have shared my module with some selected kind people and virtual airlines who/which are using v7 as their main operational software. And for the aircraft selection logic, there are some options in phpvms v7 which may change how the aircrafts become available to pilots and how they are blocked, so a simple logic (check if there are any aircrafts at that airport and list them) would not work as thought, you need to check multiple options and go through multiple layers of services to get a proper list of aircraft. I am not trying to say that it is impossible, of course it is possible but not easy as most people are thinking. Anyway, in my personal opinion, when v7 reaches a state of RC (release candidate) or gets released as v7.0 some modules will start to be public, maybe free of charge maybe payware but there will be some modules trying to enhance the core. Please just do not share or reference old version modules for v7, which may broke somebodies working installation and/or unwanted/incompatible files may cause trouble later on. Safe flights to all
  2. Hi, this question is the most asked one and with the SimBrief improvements we have in v7 this matter become critical ... Here you can find the basics about the logic and how to setup your fares/subfleets/flights properly. 1. Main Fares You can define your fares in admin/fares. These will be your main fare types, which will then be used in your subfleets or flights. The main idea here is to define only the basics, so you can change them later when needed. Think fares like the seats in your plane (or cargo space), which can be sold as tickets. They are not in flight services or extended service types like WiFi, Hot Meals, Extra Snacks, Economy Premium or Economy Basic, they are just Economy seats you have. So lets start; Economy (Y) Business (J) First Class (F) Cargo (CGO) These are the main fare groups commonly found in airliners, so start with Economy. When you are at admin/fares click Add New, and enter the info as described below Code : Y Name : Economy Type : Passenger ( for Cargo Fares type must be Cargo as expected ) Price : 100 Cost : 25 Capacity : EMPTY / NULL ( Leave it empty, do NOT try writing EMPTY to that field ) Notes : Fill as you wish Active : Checked and click save ... In simple terms we will gain 75 Usd/Eur/Pound (currency comes from your settings) from each passenger 'cause there is an operating cost of a seat. Repeat the steps for rest if you wish. Why we left Capacity empty ? I will explain it later but for now we are just defining our base fares, so no need to have capacities here. 2. SubFleet Fares Assuming you already have at least one subfleet, which is mandatory in v7. We can explain their logic later if necessary. Head up to admin/fleets and click edit one of your subfleets, or just create one and save (so you will be able to see the details). Scroll down a little bit and you will see Fares section there and it is probably empty. This is the area where we "assign" and "adjust" our main fares which will be used for this subfleet. Click on Select Fare, you will see your defined main fares there. Select Economy and click Add. Now the fare is assigned to this subfleet and you will see it above values like below; Name : Economy Code : Y Type : Passenger Capacity : inherited () Price : inherited (100) Cost : inherited (25) This is where v7 magic begins ... I will use an Airbus A320 with only economy class seats as my basic aircraft type. Click on the inherited text under capacity column and enter 180 there. Right now, when you use any member of this subfleet, you will have 180 seats ready for being sold with a price tag of 100 currency and it will cost you 25 currency to operate that seat. If you want to change the price of your tickets or adjust the operating costs of your seats for this subfleet you can follow the same steps for price and cost. If you do so, your ticket prices and/or costs will be changed ONLY for this subfleet. While adjusting prices you can just use pure values like 150 or percentages like 125%. It is up to you how you change the value. Just do not use percentages on capacities, it really does not make any sense Ok, passenger capacity and price/cost was easy ... How about having some cargo space/fare for a passenger plane. They are not designed to carry bigger loads like freighters but they do have some space under their belly, which is mainly used for carrying out passenger baggages, why not use the remaining space to earn some more money ? Normally passenger planes are mostly limited by the cargo hold's (the name of the cargo area) volume but since we do not have any volume checking capability in simulator and phpvms, we will stick only on the weights here. Just add your pre-defined cargo fare to your subfleet like you added the passenger fares. So, the logic is simple; Your Cargo fare should be big enough to hold all your passenger baggages. Then calculation is simple too 180 (our pax capacity) * 35 lbs (our non-charter baggage weight : check admin/setting simbrief for default values) = 6300 lbs should be your minimum Cargo Fare capacity. If you want to carry some paid cargo, then you need to increase this amount up to a point where it does not passes your aircrafts Maximum Zero Fuel Weight when you have full pax on board. I know this may sound a little bit strange but this is how real thing works too If you know your aircraft specification, then you can calculate your possible max cargo capacity by below formula; Maximum Cargo Fare Capacity = MZFW - DOW - ( max pax seat capacity * pax weight ) DOW is Dry Operating Weight (Operating Empty Weight), it is the weight of your aircraft without fuel, passengers and cargo but with crew, catering and airline stuff loaded already. Anyway, if you do not know your DOW and MZFW then just add some space more to the above calculated value, make it like 8000 lbs. So you will have 1700 lbs free space to carry some cargo after taking all the passenger baggages for a fully loaded flight. Please note; If your PhpVms weight settings are KG, just convert the amount you found to kilograms before adjusting the cargo fare capacity. Just another note for SimBrief Form; The cargo fares of passenger planes will show you the Maximum Available capacity, though we named it max in short terms but this may lead confusions. So when you have passengers and their baggage, your cargo fare capacity will be reduced by the weight of the total passenger baggage weight. Therefore it is not the capacity you defined anymore, it is just what is left behind for you to load additional cargo. If you see negative values there, this is a clear indication that your cargo fare capacity is not enough to hold the passenger baggages . And please keep in mind that SimBrief form uses your aircraft, meaning it reads your subfleet fares. It is a flight plan, do not expect it to read the fares of a flight, it is directly related to the aircrafy you want to generate a flight plan. 3. Flight Fares Technically you really do not need to add fares to flights, but the logic is same as adding fares to subfleets. If you want to change the ticket price/cost of a fare for a specific flight you can do it here. Imagine having a special flight with doubled ticket prices, then just add the fare you want to adjust, click on the price or cost columns inherited text and enter 200%. Now you will have doubled price/cost for this flight only I higly suggest you to not to define capacities at main fares and not adjust capacities at flight fares. This really makes life easier, in real world operations we do not define the capacity in fares and for flights (unless there is a special need). Capacity always comes from the aircraft (here in phpvms it comes from the subfleet) and when we (as OCC or Dispatchers) do change the aircraft of a flight or decide to do it with another aircraft other than planned by commercial planning or schedule planning departments of the airline, ticket sale systems just get the new aircraft info and use its capacity to stop the ticket sales automatically if it reaches the max seats. Things do NOT work like the real world here, so if you have a 180 seat aircraft but define a main fare with 219 seat capacity or edit a flight's fare and set capacity to 239 there, results will not be nice And always remember, fare logic follows below order; Flight (has highest priority, when you change thigns here, they will be used) Subfleet / Aircraft (medium priority over fare) Fare (lowest priority and gets overwritten by the ones above) I think this is enough for basic setup and understanding the logic how fares work in PhpVms v7. Safe flights for now, will post some more info about different topics later.
  3. What you can do is, enable the multiplier option of your expense for Airport Landing Fee or Parking Fee ... Then during the finance calculation process you can alter the multiplier value (of your aircraft's subfleet) by calculating the time spent between landing of previous pirep and following take off from that airport (current pirep). Also keep in mind that the finance calculations happen when the pirep is accepted. A little bit tricky but will give you what you want if coded/developed correctly.
  4. It is possible of course but you need to implement your own code for this to happen ... Not available in default phpvms v7 (or not designed yet)
  5. Yes it is possible but not with default phpvms v7 ... Or at least not now 'cause it is not designed to show details of other user's pireps and/or full pirep list of the va in a page. At the moment it is only possible from the admin panel and/or with a module developed for phpvms v7.
  6. Version v2.x

    12298 downloads

    *** DISCONTINUED OLD MODULES *** *** Download only you have to use them for some reason and need them *** *** Check their README.MD files for details ***
  7. For the home airport selection, you should define some hubs ... Which can be done at admin / airports, just click the hub box when adding or editing an airport. Also there is a setting for this, disabling it make all your airports selectable ( check settings / pilots ) For the finances you may be missing something, i highly suggest reading the docs about the finances, it may help to understand the logic behing it. If you can see the transactions being created in your database, then you should be able to see the results in admin/finances section too but we really need some more info to help. And when using manual pireps, finances do work and you should be able to add your load info when you select an aircraft (unless you are using Stisla v7 theme though, that option is not working on that theme unfortunately, it is somehow broken). I am testing all my finances and improvements with manual pireps in my local setup, so I am pretty sure they do work Hope you can sort the problems you are facing, safe flights
  8. First of all, you should urgently update your PhpVms version ... Beta4 is too old to be used, even for test purposes it would only cause headache both to you and people trying to help you. Use latest dev build, which is more stable and bug cleaned also offers more functionality. And you should check for new builds from time to time, or just follow PhpVms Discord's Releases channel Your first 2 questions require basic html / css styling knowledge, also you need to get used to laravel blade (view) system to edit things. PhpVms Docs and Laravel Docs are good starting locations to read (if you have the basic knowledge). 3rd one needs a little bit more knowledge 'cause you need to define a table for the flights and do a foreach loop for the rows of the table (instead of cards), which will use data from the flights collection. I did not tried to use a table for the flights, it would work of course but a table may broke the pagination logic and your results may look really strange when you reach the limit for automatic pagination. Anyway, not impossible of course but this would be a little bit harder compared to changing texts or headings. For the last question, I did it some time ago and today converted it to a widget for PhpVms v7. If you wish you can download it from my GitHub repository with other widgets I offer for vms v7. Check the readme file for more details. Technically if you get yourself familiar with laravel blade system and how to edit files, using a widget (adding it to your template) would be easy. Hope this helps
  9. Just a quick report ... Even with the default files ( create.blade.php , fares.blade.php , fields.blade.php , scripts.blade.php ) Stisla is not allowing showing the fares section upon aircraft select ... I checked the scripts, default and stisla blades, they are same (expect the styling), same div id's / names used and nothing changed to cause this problem. Also stisla theme is not showing the flash errors and/or the form field feedbacks, think that the problem is somewhere deeper in its core (which somehow blocks the script to run properly and blocks the flash messages) May return it later, simply I got bored while trying to fix something i did not broke in the first place
  10. Really laughed to be honest ...
  11. Will look into the Stisla problem, just need some time though
  12. Just tested the default blade, as soon as you select an aircraft the Fares section will be visible ... So if you are using Stisla theme, then this may be a problem of that theme.
  13. I think the problem here is that the manual pirep entry blade does not provide fields for pax/cargo entry while creating a pirep ... ( This may be technical issue 'cause the system needs to know the aircraft & flight and check its fares first ) While in acars we have that and for each flight we either use the auto generated values or enter them by hand. Possible solutions ; 1- Bid for a flight first, then from there fill a pirep (this will force the system to autogenerate pax amounts and use them for finances) 2- Prepare the pirep, save it (do not submit), then click edit and you will see the fares section (just between aircraft and route section) 3- Use vmsAcars for pirep automation I think second solution is the best for you @Baba
  14. APVACARS is not compatible with PhpVms v7 anymore, at least for now and author already stated that he can not give any times for an update due to personal reasons. So most probably no one can help you at the moment
  15. Thanks for the directions, I never thought to check discord to be honest Checked now, I have the latest dev build (7.0.0-dev+201102.a2de53) I reported this issues at GitHub too, will wait for a fix/reply.
  16. I was not sure of the version/build because I downloaded the so called "latest" dev version directly from below page and link (as requested by @Nabeel at 4 Nov ) https://docs.phpvms.net/acars/install-server As you can see there is no build number there, the link only says that it is 7.0.0.dev ( http://downloads.phpvms.net/phpvms-7.0.0-dev.tar.gz ) . So my only clue at the moment is what I see in my v7 admin panel, which is clearly stated above in my post. ( In case you missed it , here it is again : 7.0.0-dev+201102.a2de53 ) So if you have any suggestions about checking which dev build people are using kindly inform me, otherwise your reply is becoming useless @ProAvia If there is a version mismatch should I download the file again from the same link or should I download the entire dev files from GitHub ? Best wishes
  17. Screenshots I talked about are attached ... You can see the fare/subfleet/flight settings and the results at vmsAcars. Also another problem is the pax number mismatch, vmsAcars says I have 215 pax but the report indicates (and calculated finances with) 225 pax. screenshots.zip
  18. Well, I am not sure about my dev version ... This is what I see on admin panel 7.0.0-dev+201102.a2de53 , downloaded last week I think. So as far as I understand from your reply, system is designed this way (at least for now). To avoid any problems I can use only one Economy class fare and it will be same for domestic and international flights, which will not be realistic at all but at least it is a solution. I will open a GitHub issue for this, also I will provide some screenshots of the problem later, maybe it helps more. Thanks for your reply, best wishes
  19. Hi @Nabeel and all v7 testers, Found a strange behavior within vmsAcars. Will explain my setup and result, hope it help you to imagine the situation (or re-create in a test setup) 1. Created my subfleet (ex. A321-OHY) 2. Inserted some aircrafts to the database and assigned them to that subfleet 3. Created my fares as Economy - Domestic (YD) and Economy - International (YI) , assigned prices and costs to them 4. Returned back to subfleet settings , assigned both Economy - Domestic (YD) and Economy - International (YI) fares to the subfleet with defining max seat capacity (219) 5. Created two short haul domestic flights (SAW-AYT-SAW) with %90 load factor, assigned only Economy - Domestic (YD) fare to this flights. Setup complete, continue on test flight with bid/vmsacars 6. Bid flight (SAW-AYT) 7. Generate SimBrief OFP and check load route fuel etc. Export files as required 8. Start sim (X-Plane 11.50) , load the aircraft as per flight plan/bid 9. Run vmsAcars, search for my bid, select and load bid/flightplan, select aircraft (aircraft list shows the subfleet members as expected) At this point things does not seem right 'cause vmsAcars pulls the fare definitions only from the subfleet I think and wants me to fill both pax figure fields. Economy - Domestic (YD) 210 / 219 (210 was pre filled automatically) Economy - International (YI) 210 / 219 (210 was pre filled automatically) What I expect is to be able to assign multiple fares to a subfleet and use the ones defined in the flight, like in the real world. So it should check the fares of the subfleet and the flight, select only the matching ones. Here in our example it should be Economy - Domestic (YD) only. Anyway, vmsAcars does not allow you to put 0 to any of the fare types, so I edited them and made Economy - Domestic 209 and Economy - International 1 (total 210) ... Started my flight, landed to my destination and send my pirep. When I check the pirep details I saw that both fares was calculated with 210 pax ! So even editing the pax figures before starting flight does not solve things I checked the GitHub issues page for similar reports but found nothing, as this may be a design feature thus I wanted to write here in detail. Is this a bug ? Or was the fare/flight system designed this way ? Will wait your replies
  20. It was a brand new database, so yes it was empty ... I have no doubts about that, also after getting the error and before my next attempt I dropped all the tables, so it was again clear of tables/data.
  21. The database was empty and it was for PhpVms7 only , at least I wanted to use a new database ... I also have v5.5 installed at a different subdomain but it uses a different database . Anyway after couple of tries, I decided to use the already built database ,which was also another test install but that db was shared with a different application, I moved that apps data to another database and achieved my goal with a different approach. I am all ok now, but still wondering why I did got those errors in a completely new db and in a fresh install, same server same settings same rights for users/directories/databases etc. I can install v7 on main domain but can not complete it on subdomain somehow. Thanks for your time and suggestions, if you want me to do another test with a new dev build just let me know. Best wishes
  22. Well ... Just gaved up and tried another approach to continue working on v7. As I had another working install on the main domain, I used its database ... Had to configure some files manually of course but it seems ok right now. Will delete the files from main domain and continue using that database with the latest dev + acars on the subdomain. If there are no acars license activation restrictions for subdomains , I can easily create another one for installation testing and transfer my data manually (via sql or csv imports) if required. Best wishes
  23. Hi again @Nabeel Laravel log is below [2020-11-05 09:09:25] dev.INFO: Testing Connection: mysql::u9681834_vadba:<hidden>@127.0.0.1:3306;u9681834_turksimva [2020-11-05 09:09:25] dev.INFO: Connection string: mysql:host=127.0.0.1;port=3306;dbname=u9681834_turksimva [2020-11-05 09:09:31] dev.INFO: Testing Connection: mysql::u9681834_vadba:<hidden>@127.0.0.1:3306;u9681834_turksimva [2020-11-05 09:09:31] dev.INFO: Connection string: mysql:host=127.0.0.1;port=3306;dbname=u9681834_turksimva [2020-11-05 09:09:47] dev.INFO: ENV setup {"_token":"2YqcX9DSe82no2IrQcVbDiWkUnUczLrxpRXQiMho","site_name":"TurkSim","site_url":"http://vms7.turksim.org","db_conn":"mysql","db_host":"127.0.0.1","db_port":"3306","db_name":"u9681834_turksimva","db_user":"u9681834_vadba","db_pass":"","db_prefix":"v7_"} [2020-11-05 09:09:47] dev.INFO: Testing Connection: mysql::u9681834_vadba:<hidden>@127.0.0.1:3306;u9681834_turksimva [2020-11-05 09:09:47] dev.INFO: Connection string: mysql:host=127.0.0.1;port=3306;dbname=u9681834_turksimva [2020-11-05 09:09:47] dev.INFO: Connection string: mysql:host=127.0.0.1;port=3306; [2020-11-05 09:09:47] dev.INFO: Detected DB Version: 10.3.24-mariadb-cll-lve [2020-11-05 09:09:47] dev.INFO: Detected MariaDB, setting DB_EMULATE_PREPARES to true [2020-11-05 09:09:47] dev.INFO: No extension detected, using file cache [2020-11-05 09:09:47] dev.INFO: Redirecting to database setup [2020-11-05 09:09:48] prod.ERROR: Error on db setup: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `airlines_iata_unique`; check that it exists (SQL: alter table `v7_airlines` drop index `airlines_iata_unique`) Still stuck at same position But with the latest dev, installer reverts back to database setup screen beta4 was just displaying the error and stopping. As it happened I checked the logs and saw the same syntax error about the airline table index. Best wishes laravel-2020-11-05 (1).zip
  24. Thanks for the reply Nabeel , I used the docs but did not gone that far and was following the first installation section (the one at the top, for phpvms install) Anyway, dev is downloaded ... Will try to install now, hope it goes well. Will supply you with any logs needed if things go worse. Best wishes
  25. Hi, Just want to test PhpVms v7 beta on a subdomain (with vmsAcars enabled), downloaded latest version (beta4 from github) created a new database and assigned my dbuser to it with all rights ... Uploaded the file to server, unzipped and head on to the installing phase. All checks are ok (php extensions and requirements), put in my new database and user info, db test is ok too but then I get the below error during install ; #sql: "alter table `v7_airlines` drop index `airlines_iata_unique`" #bindings: [] #message: "SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `airlines_iata_unique`; check that it exists (SQL: alter table `v7_airlines` drop index `airlines_iata_unique`)" If I close the page and head on the subdomain root, PhpVms seems like installed but the database is empty ... I checked it from phpMyAdmin , see that all the tables are generated but nothing more as expected (like basic data, indexes etc). Any ideas or solutions. PS : I have another copy installed on the main domain (so my server setup must be good to run it) , do not want to use it on main domain and can not take the risk to delete it now either During the install on the main domain, got a timeout error at the last phase but it seems working ok (with all required data in the tables, indexes etc). Do not want to activate vmsAcars on the main domain, 'cause i need v7 beta working on the subdomain. Best wishes
×
×
  • Create New...