View Full Version : I have a small question

03-10-2005, 11:51 AM
I know how to edit the Lscript files but how can you edit the "p" plugins ?

and does any of you know which P plugin is "soften reflection" (in the processing tab, image filter)


03-10-2005, 03:35 PM
.p plugins are written in C and compiled for a PC (or mac). You can edit them but they are unreadable (binary machine code == unreadable by most human beings).

I hear that they run about 10 times faster than LScript - and someday I'm gonna write me one. ;)

03-10-2005, 06:21 PM
C ? doh !
just wondering, what software do you need to create and compile C code ?

03-10-2005, 08:16 PM
I beleive any C compiler will work, such as Microsoft, or Borland. I am not sure on the derivitives though, like C##, C+, etc.
Both Borland and Microsoft have hobby compilers besides their pro versions.

03-11-2005, 06:05 AM
One thing I've started looking at since I'm going to go into c, is the Bloodshed C++ developer environment. It's open source, free and is looking really good at the moment. Check it out:


03-11-2005, 06:51 AM
thanks dodgy for the link,
I already programmed some tiny tiny little program with delpi from borland with a friend..
I heard C is a lot harder... it seems hard to start in C without any class..

03-11-2005, 10:56 AM
Lightwave plugins are just windows .dlls with a .p extension :)

If you compare the c plugins in the sdk with lscripts, they're fairly similar, except c makes things more explicit. I've managed to get a c plugin compiling and running, but have yet to write my own from scratch :)

03-11-2005, 04:16 PM
I'm trying to move over from lscript to C aswell, looking to mainly be able to code my own Modeler tools. I've read up abit on C, read some parts in the SDK, looked through some source code to try and understand how every line contributes. I'm not there yet and just like Dodgy I've still to write my own working(!) plugin. Compared to lscript, the SDK sure is confusing if you've had no previous programming experience (except for lscript), especially so with MeshEditTool plugins (Modeler Tools) - values and pointers are jumping all over the place!

Lscript was easy to get into, thanks to good docs (imho) and a wealth of examples to learn from. SDK has no good docs (for novice programmers) and only a handfull of examples to learn from. The lack of examples (especially really simple ones) is imo the biggest disadvantage.

Intro to C online:

This tutorial on how to set up a custom LW project in DevC++ is invaluable!

03-11-2005, 04:45 PM
After a while I would like to get into programming with C. I read a book several years ago on the subject. But, that info is fading away. :eek:
I agree, I think there should be more examples for both C and Lscript using useful code, that means something. More or less to get you excited about your creation.

03-11-2005, 07:26 PM
Silkrooster, I'm in the same boat, I used to be able to program C a loooong time ago, now I can't remeber a thing about it!

I'd love to write my own .p plugins, but I think I'll try and improve my lscript "skills" first!