Kamikaze plugin beta

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
joy
Private
Private
Posts: 1
Joined: Tue Oct 28, 2008 5:17 pm

Kamikaze plugin beta

Post by joy »

I wrote this for Marijima Airfield map. But, hopefully it will be useful to other maps.
Now running on Marijima's test server. "Marijima Airfield (R1.2)"

========================================================================
DYNAMIC LINK LIBRARY : Kamikaze Project Overview
========================================================================

kamikaze plugin

Author: joy

Credit to HoldTheFlag plugin author for HtfPlayer code. Also, Enigma's code on forum and Marijima's idea.

Description:
The plugin will enable players to use kamikaze (world weapon SW). Self destruct is trigger for kamikaze.

Plugin command Line:
-loadplugin PLUGINNAME,tk

Optional. If bzfs -tk option is enebled, add this.

Reference:
http://my.bzflag.org/bb/viewtopic.php?t=12397
Attachments
kamikaze_src.zip
source code
(5.09 KiB) Downloaded 182 times
kamikaze_dll.zip
windows binary
(168.96 KiB) Downloaded 175 times
Mari Iijima
Private
Private
Posts: 3
Joined: Sun Nov 27, 2005 12:51 am

i386-linux and intel-mac binary

Post by Mari Iijima »

there are binaries for i386-linux and intel-mac.
binary for linux isnt tested (i made it on vmware....).
binary for mac seems fine on my home server.
Attachments
kamikaze.so.zip
linux bin
(22.24 KiB) Downloaded 172 times
kamikaze.so.zip
mac bin
(4.02 KiB) Downloaded 186 times
User avatar
Mister Spock
Private
Private
Posts: 1
Joined: Mon Aug 01, 2005 5:20 am

Post by Mister Spock »

Mari,

I chatted with you on the server with your map. We were discussing about this plugin and others not working on a Linux server.

After trying it out on my computer with Linux (64-bit Gentoo), hopefully this information will help you.

When I tried to use automake, I got the following error:

Code: Select all

automake-1.10: `configure.ac' or `configure.in' is required
However, I was able to compile it with the following:

Code: Select all

g++ -fPIC -shared -I$HOME/svn/bzflag/include/ kamikaze.cpp -o kamikaze.so
At first, I could not get bzfs to load and run the plugin until I reran configure on bzflag with --enable-shared, then it worked.

I don't know how automake works, so I can't fix that, but if that server you are running your map on is not loading the plugins, then it could be that --enable-shared was missing from the configure command before running make. That would also explain why none of plugins are running.

Hope this helps.
Monster
Private First Class
Private First Class
Posts: 209
Joined: Thu Sep 20, 2007 7:06 pm

Post by Monster »

what a kool idea :)
Post Reply