Nighthawk Posted August 30, 2011 Report Posted August 30, 2011 Step 1 Aircraft buying Mod Version 1.00: You need only a beta PHPVMS version! Now all Features are fully functional!!!! Buying/ Repairing/ Landingdamage and many ohters... It was a dream - now it is reality. When u have Questions... ask here. And thanx for many help here! By the way i started a openoffice calc database for prices, we can update it altogether?!? And post it here. Rename it as *.xls and open it with openoffice or similar. When you insert a plane or correct one please upload with a new date in the name 2013.04.19 Aircraft Databasexls.txt Step1 Aircraft buying Mod 1.00.zip 3 Quote
dimitris Posted August 30, 2011 Report Posted August 30, 2011 Hello! Just installed It looks very nice but I m getting this error on every page... except the Fleet List Warning: Division by zero in /home/xxxx/public_html/fss/admin/templates/ops_buysellaircraft.tpl on line 14 Warning: Division by zero in /home/xxxx/public_html/fss/admin/templates/ops_buysellaircraft.tpl on line 20 Warning: Division by zero in /home/xxxx/public_html/fss/admin/templates/ops_buysellaircraft.tpl on line 25 Quote
Industrialshadow Posted August 31, 2011 Report Posted August 31, 2011 Hi when i set a price in the Database specially for an AC500 to 750,000 an i will buy this Aircaft, then i see not the price.. and after buying the price is not shown up. if there an failure in the setting? Quote
Nighthawk Posted August 31, 2011 Author Report Posted August 31, 2011 @dimitris you must fill the fields cruise speed, pax, Range, max takeoff weight out without "," or "." @Industrialshadow you cant add it to the database!!! I didn´t want "cheaters2 here, but when mor people want to enter their prices i will do a manuall input... Quote
Txmmy83 Posted August 31, 2011 Report Posted August 31, 2011 Nighthawk, a manual price entry would be perfect but I think you should add that as optional in to a readme file so that user can decide which variant they prefer automatic or manual! great work so far welldone! best regards Thomas Quote
Nighthawk Posted August 31, 2011 Author Report Posted August 31, 2011 See above readme under Options... Quote
Txmmy83 Posted August 31, 2011 Report Posted August 31, 2011 thanks Danke!! another considerable idea could be an lease option monthly rates in expenses dont know if that is possible? i run your mod in an test install of phpvms but as soon all is completed I will definately implement to my operative VA http://www.flyeurope-va.org best regards from Vienna, Austria Thomas Quote
Txmmy83 Posted August 31, 2011 Report Posted August 31, 2011 Options: -For Manual Price input change in /phpvms/admin/templates/ops_buysellaircraft.tpl on line 58 from <input name="price" type="hidden" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> to <input name="price" type="text" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> that gives me when click on buy button <�!�D�O�C�T�Y�P�E� �H�T�M�L� �P�U�B�L�I�C� �"�-�/�/�W�3�C�/�/�D�T�D� �H�T�M�L� �4�.�0� �T�r�a�n�s�i�t�i�o�n�a�l�/�/�E�N�"�>� �<�h�t�m�l�>�<�h�e�a�d�>� �<�m�e�t�a� �c�o�n�t�e�n�t�=�"�t�e�x�t�/�h�t�m�l�;� �c�h�a�r�s�e�t�=�u�n�i�c�o�d�e�"� �h�t�t�p�-�e�q�u�i�v�=�C�o�n�t�e�n�t�-�T�y�p�e�>� �<�m�e�t�a� �n�a�m�e�=�G�E�N�E�R�A�T�O�R� �c�o�n�t�e�n�t�=�"�M�S�H�T�M�L� �9�.�0�0�.�8�1�1�2�.�1�6�4�3�0�"�>�<�/�h�e�a�d�>� �<�b�o�d�y�>� � �<�?�p�h�p� �/�/� �H�e�r�e� �a�r�e� �t�h�e� �C�a�l�c�u�l�a�t�i�o�n�s� � � �/�/� �C�o�n�d�i�t�i�o�n� �f�o�r� �n�e�w� �P�l�a�n�e� �$�n�e�w�r�d�=� �r�a�n�d�(�9�5�,� �1�0�0�)�;� �/�/� �P�r�i�c�e� �C�a�l�c�u�l�a�t�i�o�n� �f�o�r� �n�e�w� �P�l�a�n�e� what do I wrong? just replaced the line mentioned best regards Thomas Quote
Nighthawk Posted August 31, 2011 Author Report Posted August 31, 2011 @Txmmy83: just Copy <input name="price" type="text" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> and overwrite the line with <input name="price" type="hidden" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> or better change "hidden" in "text" The Lease Option is good, but i must find out how the financial system of phpvms works, its not only one db entry.... Quote
Txmmy83 Posted August 31, 2011 Report Posted August 31, 2011 problem still exists strange thing is when I replace line 58 and save and upload the filesize grow from 8501 to 17002 and whoom the above mentioned error occurs what can cause this? way is find line 58 and replace with <input name="price" type="hidden" value="<?php echo number_format((("$acprice1"*"$newrd")/100),2,",","."); ?>" /> right? best regards thomas Quote
Txmmy83 Posted August 31, 2011 Report Posted August 31, 2011 worked now failure was my MAC does add some info into files which phpVMS doesnt like Quote
Industrialshadow Posted September 1, 2011 Report Posted September 1, 2011 @Nighthawk dont working by me. I think you are from Germany? the we can contact us via mail and can resolve the problem ? Thx Quote
Administrators simpilot Posted September 1, 2011 Administrators Report Posted September 1, 2011 I think you have a good start here but you really need to look at moving this addon outside of the native core application files and create it in a module form, if not you are going to have to manually update the files on every update of phpVMS as the native files all get overwritten everytime. Quote
Nighthawk Posted September 1, 2011 Author Report Posted September 1, 2011 @Industrialshadow: Show the Readme under Options, when u do this u can add the price on the Buy Page. @Simpilot: I know, but for me, i use Winmerge for this, it´s the simplest way. For Database entry´s i use Navicat, it´s free and simple. i am not an profi. This is my first "big" code. It takes many time to find an entry. When u want, can u help me to put this in Module? @All others: I began with the Aircraft Repair mod... When the Aircraft is in repair, it is unavailable to fly for the repair time.... And after this comes the Maintenance Mod. Quote
Txmmy83 Posted September 1, 2011 Report Posted September 1, 2011 I discovered another thing which is when enable the manual input method resell price is still calculated from aircraft parameters instead base value from input (in short resell price is not the reduced manual input price) best regards Thomas Quote
Nighthawk Posted September 2, 2011 Author Report Posted September 2, 2011 Solved in 0.8 And when sell disable aircraft... Quote
Nighthawk Posted September 2, 2011 Author Report Posted September 2, 2011 Some early Screen´s from the Aircraft Repair Mod and one more pic The repair will consum time ... It´s not included yet... What would u say for 1% = 1h real !!! repair time??? A Good Flight will cost round about 0.5% for 500nm + Landing 0.2% -1.0% ??? What did u say??? Important: Who can help me with the financials??? I found at this time no way to calculate or make an one time expense!!! Quote
Txmmy83 Posted September 2, 2011 Report Posted September 2, 2011 sounds good to me best regards Thomas Quote
Nighthawk Posted September 25, 2011 Author Report Posted September 25, 2011 Release 0.8 online Download is in #1 Quote
Nighthawk Posted September 25, 2011 Author Report Posted September 25, 2011 @dimitris: What u mean? Quote
dimitris Posted September 26, 2011 Report Posted September 26, 2011 I was having a question but it was answered on readme.txt Thanks for this! Quote
Nighthawk Posted September 26, 2011 Author Report Posted September 26, 2011 For Version 0.9: It will be only running on the latest PHPVMS beta, but i have coded now the first steps to get the Financials running for Buy/Sell and Repair an Aircraft!!! Some Bugfixes and workarounds made now for 0.9. Quote
Jacques Posted December 2, 2011 Report Posted December 2, 2011 Hi Nighthawk, i like the module! i installed the buy module its working fine! but how's the condition module working? i tryed to write it myself but dont get any futher. i hope its going the right way if i can help with somting please say it! grtz. Quote
Nighthawk Posted December 3, 2011 Author Report Posted December 3, 2011 Thanx, i am on a Point with this "Project" where i cant go further alone. When u have questions on this version i will help u when i can. When u want, we can do this Project together and it is our. What u think? Quote
Nighthawk Posted December 4, 2011 Author Report Posted December 4, 2011 This Objects must be done to finish this Project: Handle with VA Money Repair takes time, after that , the Ac must avaible Correct the AC price for Bigger Planes Aircraft Condition Alter after Pirep was send (Jacques) Some more When someone want to help us to get this all to working, it will great!!! 1 Quote
Edwin Posted December 16, 2011 Report Posted December 16, 2011 Very nice mod!!! installed it to see how it works and it's fantastic Hope a new update will come soon so it will affect the financials Quote
Nighthawk Posted December 16, 2011 Author Report Posted December 16, 2011 Thanx, i am on it, when i have time, but it´s not easy too handle it, i am only an beginner in programming, so it takes time. Quote
atlanticva Posted December 16, 2011 Report Posted December 16, 2011 Good Luck, it would be a nice add on Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.