Re: [Ql-Users] QXL.WIN
On 30/01/11 13:04, Dilwyn Jones wrote: Does anyone know if there is a limit on the number of files in a QXL.WIN directory (or the entire QXL.WIN for that matter)? No, not off hand, does http://qdosmsq.dunbar-it.co.uk/doku.php?id=qdosmsq:fs:qlwa help any? Cheers, Norman. -- Norman Dunbar Dunbar IT Consultants Ltd Registered address: Thorpe House 61 Richardshaw Lane Pudsey West Yorkshire United Kingdom LS28 7EL Company Number: 05132767 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] GWASL and LIB instruction?
Morning Petri, Ummm how would I calculate an offset to a routine compiled inside this _BIN from the _ASM I'm copying it into? Include the SYM file created when the lib file was assembled. here is an example from a recent article on Easy PEasy (QL Today V15 issue 1): ; ; Pull in the Easy PEasy stuff next - code routines and sprites. ; in win1_ass_pe_peas_sym_lst lib win1_ass_pe_peas_bin in win1_ass_pe_csprc_sym_lst lib win1_ass_pe_csprc_bin The SYM file defines the offsets into the LIB'd file as offsets from the current location. Cheers, Norman. -- Norman Dunbar Dunbar IT Consultants Ltd Registered address: Thorpe House 61 Richardshaw Lane Pudsey West Yorkshire United Kingdom LS28 7EL Company Number: 05132767 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
Malcolm Cadman wrote, on 30/Jan/11 18:13 | Jan30: snip It seems that O2 are proposing a rival system of WiFi hot spots ... if it ever gets put in place. My local BTFon hot spot is located at the local McDonalds ... :-)\ Well you can always sit in the car outside (8-)# Tony -- QBBS (QL fido BBS 2:257/67) +44(0)1442-828255 t...@firshman.co.uk http://firshman.co.uk Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
On 29/01/2011 22:43, Rich Mellor wrote: On 29/01/2011 22:34, Malcolm Cadman wrote: Hi, News clip, that could be useful for all of us. O2 to launch free Wi-Fi hotspot network Taking on BT and The Cloud, the mobile operator plans to give customers and non-customers alike access to free Wi-Fi via 15,000 hotspots around the UK http://nl.zdnet.co.uk/da4BsBDaic/ivBvH This makes me laugh - I sent back one BT router because it did not allow you to turn off the open Wi-Fi access (luckily I had a slightly earlier one which allowed this to be switched off). My broadband is slow enough as it is, let alone with others tapping into my Wi-Fi. I wonder how many other people are actually willing to accept slower broadband to provide these Wi-Fi hotspots to anyone passing? I've allowed access and haven't noticed any change in speed. Having said that, I'm in an area that has a very good connection. Malcolm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] GWASL and LIB instruction?
Thank you, Norman, much appreciated! I guess I need to start subscribing to QL Today... It suddenly makes perfect sense :) I guess I can edit the SYM file to only export the labels I want to expose to other modules to hide internal-use-only labels? Best regards, Petri On Mon, Jan 31, 2011 at 10:47 AM, Norman Dunbar nor...@dunbar-it.co.uk wrote: Morning Petri, Ummm how would I calculate an offset to a routine compiled inside this _BIN from the _ASM I'm copying it into? Include the SYM file created when the lib file was assembled. here is an example from a recent article on Easy PEasy (QL Today V15 issue 1): ; ; Pull in the Easy PEasy stuff next - code routines and sprites. ; in win1_ass_pe_peas_sym_lst lib win1_ass_pe_peas_bin in win1_ass_pe_csprc_sym_lst lib win1_ass_pe_csprc_bin The SYM file defines the offsets into the LIB'd file as offsets from the current location. Cheers, Norman. -- Norman Dunbar Dunbar IT Consultants Ltd Registered address: Thorpe House 61 Richardshaw Lane Pudsey West Yorkshire United Kingdom LS28 7EL Company Number: 05132767 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
Malcolm Cadman wrote, on 30/Jan/11 18:13 | Jan30: snip It seems that O2 are proposing a rival system of WiFi hot spots ... if it ever gets put in place. My local BTFon hot spot is located at the local McDonalds ... :-)\ Well you can always sit in the car outside (8-)# Tony Wonder if Malcolm had chips with chips in mind (potato chips with his silicon chips)? :o) Dilwyn Jones ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] Air Traffic Control Sim
So, I have started on my ATC project. I thought I'd document here my struggles, learning, and how I did it. I'm hoping it'll engage other BASIC programmers in discussion, and maybe you (yes, YOU!) will help me if you can see me getting stuck. Please remember this is primarily an exercise in improving and restoring my mind after a bump on the noggin. I'm fighting against some short term memory problems. I'm using the Mac version 1.0 of Q-Emulator, and SuperBASIC on JS ROMS with TK2. I'm writing it to run at standard QL speeds, and to run at a consistent speed on faster hardware. So far, I have written out a table of some of the variables I need, and their valid ranges, and how I will auto-generate pseudo-random flight numbers, altitudes and speeds for various aircraft profiles. Next, I will work out a co-ordinate base for a local airport. I have chosen Bergstrom because it is local to me, and I know where all the beacons and VORs are. I have decided that there are hard bits (it's a technical term) in this project for me (I know to some of you, these will be trivial, but to me, the solution isn't obvious): 1. I'll be keeping the aircraft, their altitude, speed, direction, intended alt, speed and direction, etc, in a large DIMmed array that can hold 10 aircraft. Landed or departed aircraft will be removed from the array and any newer aircraft will be scrolled up one spot. Like in real life, the oldest aircraft is always at the top of the stack. There will be inbound and outbound aircraft. Inbound aircraft will be announced and placed at the edge of the screen, and outbound aircraft will originate from the runway when given flight instructions and clearance to take off. The aircraft must always maintain separation of 1000 feet altitude and 3 miles horizontally. Checking all the aircraft against each other to see if any violate airspace of others, or have collided, might be hard to code. 2. I need to write a command parser to accept input from the user, namely instruction for flights. There is a standard way of doing this and I will follow this. This means I need to accept input and add it to a stack, then when it is entered I need to parse it to ensure valid, rational input. Once I know it is within bounds, I need to carry out the action, i.e. instruct the aircraft to follow the instruction. 3. I need to write routines for landing aircraft. Once instructed to land, I need to detect when they cross the glide-slope, and get them to follow it to landing, land, then remove themselves from the stack. 4. I need to write a ticker... No matter the speed of the hardware, the game should run at the same speed. This means events should be triggered at an interval, complete (even on the slowest hardware) before the next interval. This interval should ideally be 1 second, but could be 2 seconds. Despite the ticker, the input routines need to continue unaffected. Responsiveness of keyboard input is essential. 5. I need to plot this on a 512x256 screen. I can't let flights go off the edge of the screen. 6. I need to detect valid landings of arrivals and proper exits of departures. 7. I'd like to add an element of realism where planes, including departures, can declare emergencies. Well, those are the hard bits I can see up front. I can foresee earning a little money next week, so maybe a compiler will be in my future? I'd prefer an easy compiler over a good compiler. I would also love to have an external USB floppy so I could save my stuff somewhere other than my OS X HD... Maybe later... In the mean time, I'll work on this and keep sharing. Hopefully it'll work out. Dave ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] QL DEFUSION
Morning Rich Just a quick note. Whilst putting the carts away over the weekend (cheers again for returning ) I opened my QL Bounder case and lo and behold, I have the carts so the reason you couldn't find the QL Bounder microdrives is simple, you never had them. However, it appears that you have my QL DEFUSION carts as that case is empty! So mystery solved. Cheers Neil *** The contents of this email are confidential to the intended recipient. It may not be disclosed to or used by anyone other than the addressee, nor may it be copied in any way. If received in error, please contact the company on 01793-715380, then delete it from your system. Please note neither the company nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any) for viruses. No contract may be concluded on behalf of the company by means of email communications. BC Services (UK) Limited (trading as Boxclever), Technology House, Ampthill Road, Bedford, MK42 9QQ. Registered No. 5290544 England www.boxclever.co.uk *** ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QL DEFUSION
Ooops! Sorry, darn my slow Monday morning mental state! this mail was meant for Rich only! (checks email for bad language etc etc ) , no, I'm in the clear Neil Neil Riley neil.ri...@boxclever.co.uk 31 January 2011 10:58 Morning Rich Just a quick note. Whilst putting the carts away over the weekend (cheers again for returning ) I opened my QL Bounder case and lo and behold, I have the carts so the reason you couldn't find the QL Bounder microdrives is simple, you never had them. However, it appears that you have my QL DEFUSION carts as that case is empty! So mystery solved. Cheers Neil *** The contents of this email are confidential to the intended recipient. It may not be disclosed to or used by anyone other than the addressee, nor may it be copied in any way. If received in error, please contact the company on 01793-715380, then delete it from your system. Please note neither the company nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any) for viruses. No contract may be concluded on behalf of the company by means of email communications. BC Services (UK) Limited (trading as Boxclever), Technology House, Ampthill Road, Bedford, MK42 9QQ. Registered No. 5290544 England www.boxclever.co.uk *** ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] GWASL and LIB instruction?
On 31 Jan 2011, at 10:29, Petri Pellinen wrote: It suddenly makes perfect sense :) I guess I can edit the SYM file to only export the labels I want to expose to other modules to hide internal-use-only labels? That's exactly what I do. Of course you need the _SYM_LST file which is the decoded version of the _SYM file. You get this by using the program SYM_BIN on the _SYM file. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
Hi Dave, being a private pilot and an ATC sim fan myself this is a very interesting project. Looks like a nice initial concept. Are you going to share the source code for this somewhere (github, sourceforge, ...) ? Maybe couple of different types of aircraft and related performace values. Would add nice flavour when you can't tell a Cessna to maintain a 2500 fpm climb ;) Or tell a LearJet to slow down to 80 on the final. Best of luck with the project and especially your recovery! Cheers, Petri On Mon, Jan 31, 2011 at 12:49 PM, Plastic plasticu...@gmail.com wrote: So, I have started on my ATC project. I thought I'd document here my struggles, learning, and how I did it. I'm hoping it'll engage other BASIC programmers in discussion, and maybe you (yes, YOU!) will help me if you can see me getting stuck. Please remember this is primarily an exercise in improving and restoring my mind after a bump on the noggin. I'm fighting against some short term memory problems. I'm using the Mac version 1.0 of Q-Emulator, and SuperBASIC on JS ROMS with TK2. I'm writing it to run at standard QL speeds, and to run at a consistent speed on faster hardware. So far, I have written out a table of some of the variables I need, and their valid ranges, and how I will auto-generate pseudo-random flight numbers, altitudes and speeds for various aircraft profiles. Next, I will work out a co-ordinate base for a local airport. I have chosen Bergstrom because it is local to me, and I know where all the beacons and VORs are. I have decided that there are hard bits (it's a technical term) in this project for me (I know to some of you, these will be trivial, but to me, the solution isn't obvious): 1. I'll be keeping the aircraft, their altitude, speed, direction, intended alt, speed and direction, etc, in a large DIMmed array that can hold 10 aircraft. Landed or departed aircraft will be removed from the array and any newer aircraft will be scrolled up one spot. Like in real life, the oldest aircraft is always at the top of the stack. There will be inbound and outbound aircraft. Inbound aircraft will be announced and placed at the edge of the screen, and outbound aircraft will originate from the runway when given flight instructions and clearance to take off. The aircraft must always maintain separation of 1000 feet altitude and 3 miles horizontally. Checking all the aircraft against each other to see if any violate airspace of others, or have collided, might be hard to code. 2. I need to write a command parser to accept input from the user, namely instruction for flights. There is a standard way of doing this and I will follow this. This means I need to accept input and add it to a stack, then when it is entered I need to parse it to ensure valid, rational input. Once I know it is within bounds, I need to carry out the action, i.e. instruct the aircraft to follow the instruction. 3. I need to write routines for landing aircraft. Once instructed to land, I need to detect when they cross the glide-slope, and get them to follow it to landing, land, then remove themselves from the stack. 4. I need to write a ticker... No matter the speed of the hardware, the game should run at the same speed. This means events should be triggered at an interval, complete (even on the slowest hardware) before the next interval. This interval should ideally be 1 second, but could be 2 seconds. Despite the ticker, the input routines need to continue unaffected. Responsiveness of keyboard input is essential. 5. I need to plot this on a 512x256 screen. I can't let flights go off the edge of the screen. 6. I need to detect valid landings of arrivals and proper exits of departures. 7. I'd like to add an element of realism where planes, including departures, can declare emergencies. Well, those are the hard bits I can see up front. I can foresee earning a little money next week, so maybe a compiler will be in my future? I'd prefer an easy compiler over a good compiler. I would also love to have an external USB floppy so I could save my stuff somewhere other than my OS X HD... Maybe later... In the mean time, I'll work on this and keep sharing. Hopefully it'll work out. Dave ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
On 31/01/2011 10:16, Malcolm Lear wrote: On 29/01/2011 22:43, Rich Mellor wrote: On 29/01/2011 22:34, Malcolm Cadman wrote: Hi, News clip, that could be useful for all of us. O2 to launch free Wi-Fi hotspot network Taking on BT and The Cloud, the mobile operator plans to give customers and non-customers alike access to free Wi-Fi via 15,000 hotspots around the UK http://nl.zdnet.co.uk/da4BsBDaic/ivBvH This makes me laugh - I sent back one BT router because it did not allow you to turn off the open Wi-Fi access (luckily I had a slightly earlier one which allowed this to be switched off). My broadband is slow enough as it is, let alone with others tapping into my Wi-Fi. I wonder how many other people are actually willing to accept slower broadband to provide these Wi-Fi hotspots to anyone passing? I've allowed access and haven't noticed any change in speed. Having said that, I'm in an area that has a very good connection. Malcolm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm It also depends if you have anyone using it!! I am lucky to get 2GB download speeds, so if someone else was using that, and it halved to 1GB that would be very noticeable! -- Rich Mellor RWAP Services http://www.rwapsoftware.co.uk http://www.rwapservices.co.uk -- Try out our new site: http://sellmyretro.com ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
On Mon, Jan 31, 2011 at 5:08 AM, Petri Pellinen p...@iki.fi wrote: Hi Dave, being a private pilot and an ATC sim fan myself this is a very interesting project. Looks like a nice initial concept. Are you going to share the source code for this somewhere (github, sourceforge, ...) ? Maybe couple of different types of aircraft and related performace values. Would add nice flavour when you can't tell a Cessna to maintain a 2500 fpm climb ;) Or tell a LearJet to slow down to 80 on the final. Best of luck with the project and especially your recovery! Cheers, Petri There will be standard profiles for everything from a 747-400 down to a Cessna 150, which will be listed on the slots and which will limit their speed and rate of climb, etc. I'll also try to keep it rational so Fedex doesn't use Cessnas and Delta doesn't use Learjets ;) Dave ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
On Mon, Jan 31, 2011 at 1:11 PM, Rich Mellor r...@rwapservices.co.uk wrote: I am lucky to get 2GB download speeds, so if someone else was using that, and it halved to 1GB that would be very noticeable! Holy smoke, Rich! I thought my 100 Mbps drop to the house is fast ;) /Petri ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Help! Reasons for MT.FRJOB Failing
Adrian Ives wrote: I was 100% certain, but I went back and checked this and you're right - too much late night editing! So my psychic debugging abilities have once again not failed me ;) Well, it was sort of along shot but on the other hand also the only logical explanation as the things you wrote were simply impossible... anyway, glad another mystery got solved ;) Cheers, Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
On 31/01/2011 11:14, Petri Pellinen wrote: On Mon, Jan 31, 2011 at 1:11 PM, Rich Mellorr...@rwapservices.co.uk wrote: I am lucky to get 2GB download speeds, so if someone else was using that, and it halved to 1GB that would be very noticeable! Holy smoke, Rich! I thought my 100 Mbps drop to the house is fast ;) /Petri ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm LOL - should have said 2Gb (if only it could be 2GB) -- Rich Mellor RWAP Services http://www.rwapsoftware.co.uk http://www.rwapservices.co.uk -- Try out our new site: http://sellmyretro.com ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
Has anyone else got/used a MiFi device? I have a Huawei E585 along with a 15gb monthly limit on the 3 network ( £15 a month) I usually get about 2mb download and 1.5mb upload speeds ( the upload being particularilty decent) It's great for having broadband in my car as I have a iTouch 4, Skype being very useful esp with the front/rear facing camera's. Rich Mellor r...@rwapservices.co.uk 31 January 2011 11:26 On 31/01/2011 11:14, Petri Pellinen wrote: On Mon, Jan 31, 2011 at 1:11 PM, Rich Mellorr...@rwapservices.co.uk wrote: I am lucky to get 2GB download speeds, so if someone else was using that, and it halved to 1GB that would be very noticeable! Holy smoke, Rich! I thought my 100 Mbps drop to the house is fast ;) /Petri ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm LOL - should have said 2Gb (if only it could be 2GB) -- Rich Mellor RWAP Services http://www.rwapsoftware.co.uk http://www.rwapservices.co.uk -- Try out our new site: http://sellmyretro.com ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm *** The contents of this email are confidential to the intended recipient. It may not be disclosed to or used by anyone other than the addressee, nor may it be copied in any way. If received in error, please contact the company on 01793-715380, then delete it from your system. Please note neither the company nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any) for viruses. No contract may be concluded on behalf of the company by means of email communications. BC Services (UK) Limited (trading as Boxclever), Technology House, Ampthill Road, Bedford, MK42 9QQ. Registered No. 5290544 England www.boxclever.co.uk *** ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
Dave, you asked for it, so see comments below: Am Montag, den 31.01.2011, 04:49 -0600 schrieb Plastic: So, I have started on my ATC project. 1. I'll be keeping the aircraft, their altitude, speed, direction, intended alt, speed and direction, etc, in a large DIMmed array that can hold 10 aircraft. Landed or departed aircraft will be removed from the array and any newer aircraft will be scrolled up one spot. If you coding for speed, shuffling around large amounts of data through array indices is probably a bad idea - Maintain a pointer variable instead that holds the starting index. the one before that is the last. Instead of moving around all the planes through the arrays, you then just increase the pointer by one and the data in the arraysstays where it is (e.g if your pointer variable is 5, your first plane sits in planes(5), the last one in planes(4). to handle the wrap-around, use MOD. Like in real life, the oldest aircraft is always at the top of the stack. There will be inbound and outbound aircraft. Inbound aircraft will be announced and placed at the edge of the screen, and outbound aircraft will originate from the runway when given flight instructions and clearance to take off. The aircraft must always maintain separation of 1000 feet altitude and 3 miles horizontally. Checking all the aircraft against each other to see if any violate airspace of others, or have collided, might be hard to code. You should decide what sort of coordinate system your planes live in. You might want to divide the airspace in equally-sized cubes where each cube can only be occupied by one plane - This will simplify programming, but loose the impression of 'continuous movement' for the player - or you might decide to have a coordinate system based on real topograhic data like 5 miles 400 yards south, 3 miles 100 yards east, which will be a bit more complicated to handle. 2. I need to write a command parser to accept input from the user, namely instruction for flights. There is a standard way of doing this and I will follow this. This means I need to accept input and add it to a stack, then when it is entered I need to parse it to ensure valid, rational input. Once I know it is within bounds, I need to carry out the action, i.e. instruct the aircraft to follow the instruction. 3. I need to write routines for landing aircraft. Once instructed to land, I need to detect when they cross the glide-slope, and get them to follow it to landing, land, then remove themselves from the stack. 4. I need to write a ticker... No matter the speed of the hardware, the game should run at the same speed. This means events should be triggered at an interval, complete (even on the slowest hardware) before the next interval. This interval should ideally be 1 second, but could be 2 seconds. Despite the ticker, the input routines need to continue unaffected. Responsiveness of keyboard input is essential. 5. I need to plot this on a 512x256 screen. I can't let flights go off the edge of the screen. 6. I need to detect valid landings of arrivals and proper exits of departures. 7. I'd like to add an element of realism where planes, including departures, can declare emergencies. And planes trying to land on the wrong runway, not on the glide path, abort the landing, and so on. A game like this shouldn't be too realistic - otherwise it would become boring. People doing this in real life get a lot of compensation for doing their boring routine job right (Travelling a lot by plane, I hope so, at least) Well, those are the hard bits I can see up front. I can foresee earning a little money next week, so maybe a compiler will be in my future? I'd prefer an easy compiler over a good compiler. I would also love to have an external USB floppy so I could save my stuff somewhere other than my OS X HD... Maybe later... Go get yourself the free Turbo compiler and its toolkit and save your money. You can't do much better than that. In the mean time, I'll work on this and keep sharing. Hopefully it'll work out. Dave ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] New website
My new website address is http://gwiltprogs.info/ The previous address run by ukonline is obsolete. This contains a recent update of GDLIB which is a library of routines for Assembly programs. The update consists of an improvement in the routine allowing a non PE program to be moved by pressing F9 and following the instructions. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
On Mon, Jan 31, 2011 at 7:19 AM, tobias.froesc...@t-online.de tobias.froesc...@t-online.de wrote: Dave, you asked for it, so see comments below: Am Montag, den 31.01.2011, 04:49 -0600 schrieb Plastic: So, I have started on my ATC project. 1. I'll be keeping the aircraft, their altitude, speed, direction, intended alt, speed and direction, etc, in a large DIMmed array that can hold 10 aircraft. Landed or departed aircraft will be removed from the array and any newer aircraft will be scrolled up one spot. If you coding for speed, shuffling around large amounts of data through array indices is probably a bad idea - Maintain a pointer variable instead that holds the starting index. the one before that is the last. Instead of moving around all the planes through the arrays, you then just increase the pointer by one and the data in the arraysstays where it is (e.g if your pointer variable is 5, your first plane sits in planes(5), the last one in planes(4). to handle the wrap-around, use MOD. I decided to do it this way for two reasons: The first being that t is quite lightweight to code. If the fourth plane in the stack lands, I simply need to call a FuNction to move slots 5-9 up one. This makes a lot of other things simpler. For example, there will never be a plane after the empty slot. Planes would then be self-ordering, and it makes display issues a lot easier. The second reason is that I'd like to process the plane movements together, then process the screen handling, then invoke the ticker to detect the next time I need to process the panes. The only time workload becomes a problem is if the work cannot be done in one tick. At that time, I might need to look at what I have done and re-write it a more efficient, yet obtuse way. I have Lightning on microdrive here, but it's frustrating that I cannot get it onto the mac emulator easily - also, I can't count on everyone else having Lightning. The screen handling is by far the slowest part of this. Like in real life, the oldest aircraft is always at the top of the stack. There will be inbound and outbound aircraft. Inbound aircraft will be announced and placed at the edge of the screen, and outbound aircraft will originate from the runway when given flight instructions and clearance to take off. The aircraft must always maintain separation of 1000 feet altitude and 3 miles horizontally. Checking all the aircraft against each other to see if any violate airspace of others, or have collided, might be hard to code. You should decide what sort of coordinate system your planes live in. You might want to divide the airspace in equally-sized cubes where each cube can only be occupied by one plane - This will simplify programming, but loose the impression of 'continuous movement' for the player - or you might decide to have a coordinate system based on real topograhic data like 5 miles 400 yards south, 3 miles 100 yards east, which will be a bit more complicated to handle. I have decided to simply use 0-432 for the x axis and 0-256 for the x-axis. These are FP values so movement will be quite smooth. [snip] 7. I'd like to add an element of realism where planes, including departures, can declare emergencies. And planes trying to land on the wrong runway, not on the glide path, abort the landing, and so on. A game like this shouldn't be too realistic - otherwise it would become boring. People doing this in real life get a lot of compensation for doing their boring routine job right (Travelling a lot by plane, I hope so, at least) For simplicity, I won't create those situations, but if a plane that is asked to land on a runway never crosses the glide-slope, I need to detect that as the plane passes the runway, and have the plane do something rational, like climb, increase speed, hold heading, and contact you for for a go-around. [snip] Go get yourself the free Turbo compiler and its toolkit and save your money. You can't do much better than that. I'll have to hunt that out. I understand Turbo is the one that requires precise coding. Given I've revoked my old hand status and consider myself a beginner again, it might not be for me. I'll give it a shot though. In any case, I'll be posting my code. For you all to laugh at. Which you will. And that will be educational for me. :) Dave ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
Malcolm Lear wrote, on 31/Jan/11 10:16 | Jan31: On 29/01/2011 22:43, Rich Mellor wrote: On 29/01/2011 22:34, Malcolm Cadman wrote: Hi, News clip, that could be useful for all of us. O2 to launch free Wi-Fi hotspot network Taking on BT and The Cloud, the mobile operator plans to give customers and non-customers alike access to free Wi-Fi via 15,000 hotspots around the UK http://nl.zdnet.co.uk/da4BsBDaic/ivBvH This makes me laugh - I sent back one BT router because it did not allow you to turn off the open Wi-Fi access (luckily I had a slightly earlier one which allowed this to be switched off). My broadband is slow enough as it is, let alone with others tapping into my Wi-Fi. I wonder how many other people are actually willing to accept slower broadband to provide these Wi-Fi hotspots to anyone passing? I've allowed access and haven't noticed any change in speed. Having said that, I'm in an area that has a very good connection. ... or more likely no-one else is using it. Tony -- QBBS (QL fido BBS 2:257/67) +44(0)1442-828255 t...@firshman.co.uk http://firshman.co.uk Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
Rich Mellor wrote, on 31/Jan/11 11:26 | Jan31: On 31/01/2011 11:14, Petri Pellinen wrote: On Mon, Jan 31, 2011 at 1:11 PM, Rich Mellorr...@rwapservices.co.uk wrote: I am lucky to get 2GB download speeds, so if someone else was using that, and it halved to 1GB that would be very noticeable! Holy smoke, Rich! I thought my 100 Mbps drop to the house is fast ;) /Petri ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm LOL - should have said 2Gb (if only it could be 2GB) Even 2Gb is mighty fast - faster maybe than the yet to come BT Infinite. You mean 2Mb (8-)# Tony -- QBBS (QL fido BBS 2:257/67) +44(0)1442-828255 t...@firshman.co.uk http://firshman.co.uk Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
Dave, please see more comments below (Using the web-mailer of my ISP, there's really no reasonable way to top-quote. Sorry to anyone willing to complain) Cheers, Tobias -Original-Nachricht- I have decided to simply use 0-432 for the x axis and 0-256 for the x-axis. These are FP values so movement will be quite smooth. --TF: That means you'll need to refer to sin() and cos() to calculate distances in 3D space. Be sure you -- have your maths at hand, then [snip] Go get yourself the free Turbo compiler and its toolkit and save your money. You can't do much better than that. I'll have to hunt that out. I understand Turbo is the one that requires precise coding. Given I've revoked my old hand status and consider myself a beginner again, it might not be for me. I'll give it a shot though. -- Turbo nowadays digests pretty much anything you throw at it (except stuff which is next to complete -- nonsense). George Gwilt et al have done a tremendous job of making it into the best free basic -- compiler i know of. Check out at Dilwyn's site at -- http://www.dilwyn.me.uk/turbo/index.html In any case, I'll be posting my code. For you all to laugh at. Which you will. And that will be educational for me. :) -- Promised we won't laugh. At least not in public ;-) ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] OT - News clip - free Wi-Fi hotspots
On 31/01/2011 20:57, Tony Firshman wrote: Rich Mellor wrote, on 31/Jan/11 11:26 | Jan31: On 31/01/2011 11:14, Petri Pellinen wrote: On Mon, Jan 31, 2011 at 1:11 PM, Rich Mellorr...@rwapservices.co.uk wrote: I am lucky to get 2GB download speeds, so if someone else was using that, and it halved to 1GB that would be very noticeable! Holy smoke, Rich! I thought my 100 Mbps drop to the house is fast ;) /Petri ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm LOL - should have said 2Gb (if only it could be 2GB) Even 2Gb is mighty fast - faster maybe than the yet to come BT Infinite. You mean 2Mb (8-)# Tony OK so I do - dear me it must be Monday !! -- Rich Mellor RWAP Services http://www.rwapsoftware.co.uk http://www.rwapservices.co.uk -- Try out our new site: http://sellmyretro.com ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
On Mon, Jan 31, 2011 at 4:43 PM, tobias.froesc...@t-online.de tobias.froesc...@t-online.de wrote: Dave, please see more comments below (Using the web-mailer of my ISP, there's really no reasonable way to top-quote. Sorry to anyone willing to complain) I find this mailing list to be quaint and archaic in some of its conventions - bottom-replies being the main one. It's all very BRITISH! Cheers, Tobias -Original-Nachricht- I have decided to simply use 0-432 for the x axis and 0-256 for the x-axis. These are FP values so movement will be quite smooth. --TF: That means you'll need to refer to sin() and cos() to calculate distances in 3D space. Be sure you -- have your maths at hand, then Yup. I once did a three-body gravity algorithm in SuperBASIC - that was an interesting problem, After that, this should be fairly straightforward. [snip]-- Turbo nowadays digests pretty much anything you throw at it (except stuff which is next to complete -- nonsense). George Gwilt et al have done a tremendous job of making it into the best free basic -- compiler i know of. Check out at Dilwyn's site at -- http://www.dilwyn.me.uk/turbo/index.html The best? There's more than one? In any case, the clarity and conciseness of the instructions is probably the most important aspect of this. In any case, I'll be posting my code. For you all to laugh at. Which you will. And that will be educational for me. :) -- Promised we won't laugh. At least not in public ;-) Oh, I can handle harsh criticism - my style is probably going to be unconventional to say the least. However, gentle and constructive criticism, that will go a lot further in helping me to my goals... Dave PS: Thank you *Daniele Terdina* for working on the *Mac Q-Emulator* - it's wonderful and I hope it sells enough to justify further development. ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
On 31/01/2011 20:55, Tony Firshman wrote: Petri Pellinen wrote, on 31/Jan/11 11:08 | Jan31: Hi Dave, being a private pilot and an ATC sim fan myself this is a very interesting project. Looks like a nice initial concept. Are you going to share the source code for this somewhere (github, sourceforge, ...) ? Maybe couple of different types of aircraft and related performace values. Would add nice flavour when you can't tell a Cessna to maintain a 2500 fpm climb ;) Or tell a LearJet to slow down to 80 on the final. Best of luck with the project and especially your recovery! Peter Fox should also be interested. He has a Piper Comanche twin. Tony Not any more , I think. -- Roy Wood ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Air Traffic Control Sim
Bottom replies drive me mad, to the point of ignoring most mails on this list. Cheers Malcolm On 31/01/2011 23:10, Plastic wrote: On Mon, Jan 31, 2011 at 4:43 PM, tobias.froesc...@t-online.de tobias.froesc...@t-online.de wrote: Dave, please see more comments below (Using the web-mailer of my ISP, there's really no reasonable way to top-quote. Sorry to anyone willing to complain) I find this mailing list to be quaint and archaic in some of its conventions - bottom-replies being the main one. It's all very BRITISH! Cheers, Tobias -Original-Nachricht- I have decided to simply use 0-432 for the x axis and 0-256 for the x-axis. These are FP values so movement will be quite smooth. --TF: That means you'll need to refer to sin() and cos() to calculate distances in 3D space. Be sure you -- have your maths at hand, then Yup. I once did a three-body gravity algorithm in SuperBASIC - that was an interesting problem, After that, this should be fairly straightforward. [snip]-- Turbo nowadays digests pretty much anything you throw at it (except stuff which is next to complete -- nonsense). George Gwilt et al have done a tremendous job of making it into the best free basic -- compiler i know of. Check out at Dilwyn's site at -- http://www.dilwyn.me.uk/turbo/index.html The best? There's more than one? In any case, the clarity and conciseness of the instructions is probably the most important aspect of this. In any case, I'll be posting my code. For you all to laugh at. Which you will. And that will be educational for me. :) -- Promised we won't laugh. At least not in public ;-) Oh, I can handle harsh criticism - my style is probably going to be unconventional to say the least. However, gentle and constructive criticism, that will go a lot further in helping me to my goals... Dave PS: Thank you *Daniele Terdina* for working on the *Mac Q-Emulator* - it's wonderful and I hope it sells enough to justify further development. ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm