Race to Seven - 0.11.1

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Race to Seven - 0.11.1

Post by RPG » Mon Aug 29, 2005 12:00 am

Author: RPG

Description: Here's Race to Seven version 0.11.1 . Call it what you will - a final release - or just a beta. Anyhow, it works. And it's got a new config system. It's also got a tonload of stuff that you have to read to get it to work.

Code: Select all

-------------------------CHANGELOG-------------------------
0.11.1:
FEATURE: When you /match config set _variable, it will show you what you set it to.
FEATURE: Added configuration file support
FEATURE: New versioning system (Major.APIversion.minor)

Code: Select all

The configuration file works like this:
When loading the plugin, in the first and only argument, enter the name and
path of the config file. Example:

-loadplugin racetoseven,/path/to/config.txt

If no config file is set, the plugin will use it's default values, which may
be accessed and set via /match config set. Here is a sample config file:
-allowPlayersDuringMatch <true|false>
-capNum <interger>
-reportURL <string>
-------------------------
-allowPlayersDuringMatch false
-capNum 7

#Note there are NO quotation marks around http://www.garrettsites.net. Let's keep it that way, OK?
-reportURL http://www.garrettsites.net/
Files:

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Linux Build

Post by RPG » Mon Aug 29, 2005 1:34 am

Here's for the linux people.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 8:10 pm

When running "make" on the source. Testing to begin on MoFo shortly

Code: Select all

death@linux:~/bzflag/plugins/racetoseven> make
g++ -fPIC -frtti -I../../include -O   -c -o racetoseven.o racetoseven.cpp
racetoseven.cpp:497:2: warning: no newline at end of file
g++ -fPIC -frtti -I../../include -O -shared -rdynamic  racetoseven.o -o racetoseven.so
death@linux:~/bzflag/plugins/racetoseven>
...This has been a recording.

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Aug 30, 2005 8:25 pm

It's no biggie... just add a newline at the end of the file.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 8:27 pm

As soon as today's CVS finishes compiling, I'll be doing a 4 team CTF on MoFo, maybe red vs blue later on...
...This has been a recording.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 8:39 pm

It doesn't want to load the config file

Code: Select all

style: fb
  capture the flag
  super flags allowed
  jumping allowed
  all shots ricochet
  shakable bad flags: timeout=4.000000, wins=1
  antidote flags
-capNum SET
Race to 7 plugin loaded
Plugin:/home/death/bzflag/plugins/racetoseven/racetoseven.so loaded
Plugin:/home/death/bzflag/plugins/killall/killall.so loaded
Plugin:/home/death/bzflag/plugins/playHistoryTracker/playHistoryTracker.so loaded
Plugin:/home/death/bzflag/plugins/chathistory/chathistory.so loaded
RacetoSeven ERROR: Could not open config file. Using default values.
Race to 7 plugin loaded
Plugin:/home/death/bzflag/plugins/fixedspawn/fixedspawn.so loaded
Plugin:/home/death/bzflag/plugins/airspawn/airspawn.so loaded
Plugin:/home/death/bzflag/plugins/shockwaveDeath/shockwavedeath.so loaded
Plugin:/home/death/bzflag/plugins/vocaliser/vocaliser.so loaded
RacetoSeven ERROR: Could not open config file. Using default values.
Race to 7 plugin loaded
Plugin:/home/death/bzflag/plugins/Janitor/Janitor.so loaded
Plugin:/home/death/bzflag/plugins/bzfscron/bzfscron.so loaded
RacetoSeven ERROR: Could not open config file. Using default values.
Race to 7 plugin loaded
Plugin:/home/death/bzflag/plugins/chatchannel/ChatChannel.so loaded
There is a voting arbiter with the following settings:
        vote time is 60 seconds
        veto time is 2 seconds                                  
...This has been a recording.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 8:56 pm

It caused a crash. I had some bots on, just started a match... was abut to cap the first flag, when it kicked someone for trying to join (first person to try to join since match was started) and it died.

Valgrind crash file attatched.
Attachments
valgrind.txt.14344.gz
(2.69 KiB) Downloaded 268 times
...This has been a recording.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 9:14 pm

I changed the _allowPlayers line to false, and got this crash when soemone joined
Attachments
valgrind.txt.15587.gz
(2.69 KiB) Downloaded 270 times
...This has been a recording.

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Aug 30, 2005 9:16 pm

In your earlier post, why did the plugin load 4 times? The first time it loaded, it said this:
-capNum SET

that means it parsed the config file sucessfully. You then loaded it 3 more times, and thats when you got errors. Try loading it only once and see if it works.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 11:11 pm

RPG - the plugin is only loaded once in my conf file. At the very bottom of it, neatly organized. Why it's saying it three times is beyond me. But a questionf or you, RPG - can you make any use of the valgrind dumps... do you wanna see regular backtraces I was posting before... or what??
...This has been a recording.

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Aug 30, 2005 11:29 pm

It also gives duplicate notifications on everything.
...This has been a recording.

Post Reply