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.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Oh_Man