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
Super Android 13
Private First Class
Private First Class
Posts: 23
Joined: Fri Nov 17, 2017 11:35 pm
Location: Florida Panhandle
Contact:

How do I compile plugins?

Post by Super Android 13 »

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.
I play lots of games, though this older game is still one of my favorites. Whenever I am not busy with work, you may find me occasionally on the Apocalypse, Urban Jungle, or Quickshot servers.

Formerly Buzzy_Beetle, MORTIS, Android 16

Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: How do I compile plugins?

Post by JeffM »

Plug-ins are source code, you compile them into a module for whatever operating system your server is running on.
ImageJeffM
User avatar
Zehra
Private First Class
Private First Class
Posts: 915
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

Re: How do I compile plugins?

Post by Zehra »

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
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.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
User avatar
Super Android 13
Private First Class
Private First Class
Posts: 23
Joined: Fri Nov 17, 2017 11:35 pm
Location: Florida Panhandle
Contact:

Re: How do I compile plugins?

Post by Super Android 13 »

Ok, so how do I compile it for a MAC OS system? I've tried copy-pasting, but that didn't work.
I play lots of games, though this older game is still one of my favorites. Whenever I am not busy with work, you may find me occasionally on the Apocalypse, Urban Jungle, or Quickshot servers.

Formerly Buzzy_Beetle, MORTIS, Android 16

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

Re: How do I compile plugins?

Post by macsforme »

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: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: How do I compile plugins?

Post by JeffM »

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
ImageJeffM
User avatar
The Noah
Private First Class
Private First Class
Posts: 82
Joined: Mon Jul 11, 2016 9:38 pm
Location: United States
Contact:

Re: How do I compile plugins?

Post by The Noah »

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
I've been working on a real-time stats site called BZList, please check it out! It is still in active development, so some features are missing and watch out for bugs.

GitHub · Website · Get in touch · Stalk Me
Post Reply