How do I compile plugins?

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
User avatar
Buzzy_Beetle
Private First Class
Private First Class
Posts: 21
Joined: Fri Nov 17, 2017 11:35 pm
Location: United States

How do I compile plugins?

Post by Buzzy_Beetle » Wed Mar 14, 2018 11:56 pm

One important question relating to all this though. How do I download and save plugins? I know it can be done, and is needed to load them, but I don't know how to do so.

Thanks, Buzzy.
Beetle's gotta buzz. Of course, this buzzing does not go unnoticed.

Image

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Re: How do I compile plugins?

Post by JeffM » Thu Mar 15, 2018 1:28 am

Plug-ins are source code, you compile them into a module for whatever operating system your server is running on.

User avatar
Zehra
Private First Class
Private First Class
Posts: 618
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: How do I compile plugins?

Post by Zehra » Thu Mar 15, 2018 2:57 am

Buzzy_Beetle wrote:
Wed Mar 14, 2018 11:56 pm
One important question relating to all this though. How do I download and save plugins? I know it can be done, and is needed to load them, but I don't know how to do so.

Thanks, Buzzy.
You can download them from the forums or from GitHub or where they have been released.
Just make sure to check which version the plug-in was written for too.
(Currently we are in 2.4.x, so a plug-in must be written for this version if you want to run it.)
If you want to run an older plug-in, you will need someone to update it too.

You will need to know some basic compiling if you want to run a plug-in.(Unless you have a pre-compiled plug-in.)
Depending on the operating system, this will vary from system to system.

For loading plug-ins, this will vary from system to system.
If you are using Windows, I can provide a Batch script I use to run plugins.
As for Linux, it mostly involves the path to directory and some other changes.
Note: some plug-ins will only compile/run on Linux, so be aware of that too.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
Buzzy_Beetle
Private First Class
Private First Class
Posts: 21
Joined: Fri Nov 17, 2017 11:35 pm
Location: United States

Re: How do I compile plugins?

Post by Buzzy_Beetle » Thu Mar 15, 2018 1:18 pm

Ok, so how do I compile it for a MAC OS system? I've tried copy-pasting, but that didn't work.
Beetle's gotta buzz. Of course, this buzzing does not go unnoticed.

Image

User avatar
macsforme
General
General
Posts: 2024
Joined: Wed Mar 01, 2006 5:43 am

Re: How do I compile plugins?

Post by macsforme » Thu Mar 15, 2018 3:02 pm

Buzzy_Beetle wrote:
Thu Mar 15, 2018 1:18 pm
Ok, so how do I compile it for a MAC OS system? I've tried copy-pasting, but that didn't work.
You can compile it on the command line like you would on other unix-based operating systems, or you can search the wiki for instructions on compiling plugins, which will tell you how to add a plugin to the Xcode project.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Re: How do I compile plugins?

Post by JeffM » Thu Mar 15, 2018 3:03 pm

You must install a compiler, the process is not trivial,it involves many steps.

You should read up on plugins on the wiki, https://wiki.bzflag.org/Plug-ins

User avatar
The Noah
Private First Class
Private First Class
Posts: 60
Joined: Mon Jul 11, 2016 9:38 pm
Location: GitHub
Contact:

Re: How do I compile plugins?

Post by The Noah » Thu Mar 15, 2018 3:07 pm

Please read Compiling on MacOS.
If that doesn't work, fallowing the instructions on Compiling on Linux. (I'm guessing they would work, but I don't know because I've never used a Mac before).

If you want, I can give you detailed instructions for what I do on Linux/Unix.

Also, the page where you can download the plug-in from might contain details on how to install it.

I hope it helps,
The Noah

Post Reply