Staredit Network > Forums > Modding Assistance > Topic: Quick plugin question
Quick plugin question
Apr 3 2009, 7:51 pm
By: Biophysicist  

Apr 3 2009, 7:51 pm Biophysicist Post #1



Quick question: If I write a plugin, how do I compile the source into a qdb? (In other words, how do I compile it so that I can add it to FG?) Compile it into a DLL in some C++ compiler, right? Then what?

Oh, I downloaded LocUnlock's source to try to learn how to write plugins. If I just removed his EnableDebug() function/method/whatever it's called in C++ and replaced it with my own, would it work? Or would I have to do something else as well?



None.

Apr 3 2009, 8:07 pm poiuy_qwert Post #2

PyMS and ProTRG developer

Depends what compiler you use, easiest way to compile would be:
1) Get Dev-C++, install, then run
2) In the menu do Tools>Compiler Options
3) Add a new compiler set with the + button, name it QDP or something
4) Click "Add the following commands when calling compiler"
5) In the edit box below the above checkbox, place "-shared -o PLUGIN_NAME.qdp -Wl,QDPlugin.def -lversion" (this creates a dll but gives the filename the qdp extension)
6) Now you just hit the compile button on the main cpp file of your dll




Apr 3 2009, 8:09 pm Biophysicist Post #3



Thank you poiuy. <3

Also, can you answer my second question?



None.

Apr 3 2009, 8:25 pm poiuy_qwert Post #4

PyMS and ProTRG developer

If you had even tried to learn C++ you should be able to answer that question... Yes, as long as you pass/return the correct types.




Apr 4 2009, 2:45 am Biophysicist Post #5



Thanks for all the help, poiuy. :)

Topic has served its purpose.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
Please log in to shout.


Members Online: newageofpower, 8milae9823tp0, Roy, 3milae7523gc6, 1jasminec193hL4