1. PACER Graphics Demo Problem
- Posted by ck lester <cklester at YAHOO.COM> Oct 02, 2000
- 398 views
I'm getting the following error when running pacer.ex. What can I do to fix this? C:\APPS\EUPHORIA\GRAPHICS\neil.e:2806 in procedure clear_screen() variable SCREEN_W has not been assigned a value ... called from C:\APPS\EUPHORIA\GRAPHICS\PACER.EX:36 __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
2. Re: PACER Graphics Demo Problem
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Oct 02, 2000
- 388 views
Hello CK, >I'm getting the following error when running pacer.ex. What can I do to fix >this? > >C:\APPS\EUPHORIA\GRAPHICS\neil.e:2806 in procedure clear_screen() >variable SCREEN_W has not been assigned a value > >... called from C:\APPS\EUPHORIA\GRAPHICS\PACER.EX:36 This is because the clear_screen() routine was called before the graphics mode was set. There are several things you can't do until you set a graphics mode in Neil. later, Lewis Townsend _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
3. Re: PACER Graphics Demo Problem
- Posted by ck lester <cklester at YAHOO.COM> Oct 02, 2000
- 380 views
Thanks, Lewis... BTW, PACER.EX is Mark Akita's program. Seems Rob can run the code unaltered... Is that correct, Rob? If this is true, why would it break on my machine? I noticed in the PACER.EX code that i1 = vesa_mode(640,480,16) is called prior to clear_screen() So does vesa_mode not actually set the graphics mode? -ck ----- Original Message ----- From: Lewis Townsend <keroltarr at HOTMAIL.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, October 02, 2000 2:33 PM Subject: Re: PACER Graphics Demo Problem > Hello CK, > > >I'm getting the following error when running pacer.ex. What can I do to fix > >this? > > > >C:\APPS\EUPHORIA\GRAPHICS\neil.e:2806 in procedure clear_screen() > >variable SCREEN_W has not been assigned a value > > > >... called from C:\APPS\EUPHORIA\GRAPHICS\PACER.EX:36 > > This is because the clear_screen() routine was called before > the graphics mode was set. There are several things you can't > do until you set a graphics mode in Neil. > > later, > Lewis Townsend > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
4. Re: PACER Graphics Demo Problem
- Posted by ck lester <cklester at YAHOO.COM> Oct 02, 2000
- 389 views
I commented out the first "clear_screen()" in PACER.EX and then got THIS error message: C:\APPS\EUPHORIA\GRAPHICS\neil.e:707 in function virtual_screen() variable bytes_per_pixel has not been assigned a value ... called from C:\APPS\EUPHORIA\GRAPHICS\PACER.EX:37 DOH!! I'll wait to download version 2.0... -ck _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
5. Re: PACER Graphics Demo Problem
- Posted by Robert Craig <rds at ATTCANADA.NET> Oct 02, 2000
- 385 views
- Last edited Oct 03, 2000
C.K. Lester writes: > BTW, PACER.EX is Mark Akita's program. Seems Rob can > run the code unaltered... Is that correct, Rob? Yes. > If this is true, > why would it break on my machine? I don't know. Maybe you picked up a different version of Neil.e, or you are using a different version of Euphoria, or Neil does something different on your system. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
6. Re: PACER Graphics Demo Problem
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Oct 03, 2000
- 387 views
Hello CK, Mark, >BTW, PACER.EX is Mark Akita's program. Seems Rob can run the code >unaltered... Is that correct, Rob? If this is true, why would it break on >my >machine? > >I noticed in the PACER.EX code that > > i1 = vesa_mode(640,480,16) > >is called prior to > > clear_screen() > >So does vesa_mode not actually set the graphics mode? I believe vesa_mode() DOES set teh graphics mode and it also clears the screen (at least in my experience). clear_screen() can ONLY work AFTER a graphics mode is set. There are 3 global variables in Neil.e that must be set before you can do ANY useful sfuff: SCREEN_W -- screen width SCREEN_H -- " height Bits_Per_Pixel -- I think it's spelled this way. I suppose you could manually set them but I wouldn't advise it. The RIGHT way to set them is to call gfx_mode() or vesa_mode(). Any thing that uses any of these 3 vars should NOT be done until a grphics mode is set. That's pretty much any manipulation of graphics: clearing the screen, making a virtual screen, blitting images, loading bitmaps, probably even drawing lines. hope this helps, Lewis Townsend _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.