Search found 61 matches
- Tue Sep 04, 2007 7:33 pm
- Forum: newLISP and the O.S.
- Topic: Truncation problem with newlisp web server (-httpd).
- Replies: 9
- Views: 7370
Another data point...
Hi! Tried the program out from my machine at work (NewLisp 9.2.0, XP SP2, FireFox 1.5, running with "newlisp test.lsp -httpd -d 80"). Same results, with the occasional "The connection to the server was reset while the page was loading." error page instead of the blank page. Thanks for looking at it!
- Mon Sep 03, 2007 10:10 pm
- Forum: newLISP and the O.S.
- Topic: Truncation problem with newlisp web server (-httpd).
- Replies: 9
- Views: 7370
Hi, I don't see how your (send text) function can return nil. It will return, what the (print text) statement evaluates too, which is the last thing printed, which is text not nil. OK, I will admit freely and unreservedly, that I am an idiot. That's what I get for trying to cut and paste an example ...
- Mon Sep 03, 2007 7:57 pm
- Forum: newLISP and the O.S.
- Topic: Truncation problem with newlisp web server (-httpd).
- Replies: 9
- Views: 7370
Newlisp not paying attention to nil...
Hi, Sorry to leave the (app:home) in there. That just prints the home page content using the send and template function. I modified your httpd-conf as so: (define (httpd-conf path query) (println path ":" query) ; Delete this line to see anything on IE. (if (= 0 (length path)) (begin (set 'page (sen...
- Mon Sep 03, 2007 1:18 pm
- Forum: newLISP and the O.S.
- Topic: Truncation problem with newlisp web server (-httpd).
- Replies: 9
- Views: 7370
Truncation problem with newlisp web server (-httpd).
Hi, If I start newlisp in web server mode (with "-httpd -d 80") and use the following code, I occassionally get a blank page. It's sort of like newlisp is ignoring the return value of httpd-conf and trying to send a page which doesn't exist. Here's what my httpd-conf looks like at the moment: (defin...
- Mon Aug 13, 2007 11:20 am
- Forum: Anything else we might add?
- Topic: Bitmaps in SDL...
- Replies: 10
- Views: 6189
More fun with SDL...
Hi, If you do a search for SDL on this message board, there's a reference to someone's project using the SDL_mixer, including a music file player. Unfortunately, the site seems to be down, but you might be able to find it in the Google or Wayback Machine cache. The following is a little load file fo...
- Sun Aug 12, 2007 12:45 pm
- Forum: Anything else we might add?
- Topic: Bitmaps in SDL...
- Replies: 10
- Views: 6189
Solved! Sorta...
Hi, This should fix the above problem code: (define (apply_surface x y from to) (letn ((info (unpack "lu lu lu lu" from)) (width (info 2)) (height (info 3))) (println "Image size is " width "x" height) (SDL:SDL_BlitSurface ; from (pack "d d u u" 0 0 width height) ; This works, but too explicit. from...
- Fri Aug 10, 2007 10:58 pm
- Forum: Anything else we might add?
- Topic: Bitmaps in SDL...
- Replies: 10
- Views: 6189
OK, still more experiments...
Hi, Been playing with it more. Revised version that shows chunks of the image at the bottom of this post Seems that the way to get the SDL_Surface width and height is just using unpack, viz: (setq info (unpack "lu lu lu lu" testi)) (println "Image size is " (info 2) "x" (info 3)) So, I modified the ...
- Fri Aug 10, 2007 10:25 pm
- Forum: Anything else we might add?
- Topic: Bitmaps in SDL...
- Replies: 10
- Views: 6189
More information...
Hi, On further investigation, it seems that the bmp files *are* loading, but either not completely, or not blitting completely. This change to the apply_surface function should show pieces of the bitmaps: (define (apply_surface x y from to) (SDL:SDL_BlitSurface from nil to (pack "u u lu lu" x y 200 ...
- Fri Aug 10, 2007 7:57 pm
- Forum: Anything else we might add?
- Topic: Bitmaps in SDL...
- Replies: 10
- Views: 6189
Bitmaps in SDL...
Hi! I'm transliterating the SDL code from this page into a NewLisp program: http://lazyfoo.net/SDL_tutorials/lesson02/index.php I'm using NewLisp 9.1.1, SDL 1.2.8 and the SDL.lsp import file from http://www.turtle.dds.nl/newlisp/SDL.lsp However, for whatever reason, I can't get the bitmaps to load. ...
- Thu Sep 29, 2005 8:06 pm
- Forum: Anything else we might add?
- Topic: Using objects in objects...
- Replies: 3
- Views: 2849
Thanks!
Whoa! I don't think would have *ever* figured that one out... Thanks very much for the explanation. However, while it works now, this is somewhat inconvenient. It is very useful to be able to break apart the problems using objects inside of objects. Is there any other sort of namespace partitioning ...
- Wed Sep 28, 2005 7:26 pm
- Forum: Anything else we might add?
- Topic: Using objects in objects...
- Replies: 3
- Views: 2849
Using objects in objects...
Hi, I'm trying to use an object inside a context. I can create objects in the MAIN context fine, but when I try to do the same thing inside another context, the compiler bails. Can anyone suggest what's going wrong? Here's a snippet of source code: (context 'sphere) (setq centre '(0 0 0)) (setq rad...