Jump to content

Bot Version: 1.1.0


Agent

Recommended Posts

  • 3 weeks later...

Updated! There's now a local ban system built into RenX.Core which can be disabled in the config; RCON bans can also be disabled via config. A bot-side moderator system is also provided through RenX.ModSystem, and access levels/aliases can be adjusted in RenXGameCommands.ini.

Sorry to hear about ur dad, glad he's on the mend tho.

Also, thanks for the bot :D

Yeah, he's back on his regular treatments now and seems to be responding well. :)

Link to comment
Share on other sites

  • Moderator
Thanks, I appreciate the reply! :)

Also: Updated (See change log in first post for details)! I was going to upload this a couple days ago, but actually reset my local copy by accident by about a month and had to redo a fair bit of what I had changed.

Someone's taking notes :rolleyes:

lol someone is asking what i want, and with that you adding ingame irc join announces, !addbots n !killbots could be construed as the same thing good sir.

---

Still both of you keep up the good work :D

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...
  • Moderator

Any ideas when the rec system will be fixed? Doesn't save properly after map over and often reverts back to the previous score.

Edit: could probably fix it by making it update the database when a rec gets given instead of on map over.

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

1) Make sure "RenX.ModSystem" is listed in the plugins in Config.ini

2) If you're using the IRC feature on this bot, it's easiest to just add mods via !add (i.e: !add 3 user).

2a) The "add" command is far from perfect, but essentially the digit is the group number in the group list, and the user is the name of someone in-game. If I get time, I may later change this to be "add ", or something.

3) Here's an example Mod entry below, which would automatically be generated by the aforementioned command, but you can also add manually:

[76561198038779494]
SteamID=76561198038779494
LastIP=0.0.0.0
Group=Owner

The section name is the UUID; if you're using the RenX.NicknameUUID, for example, it would be the nickname of the user (they would then have to use that nickname to have moderator privledges).

3a) If you modify Mods.ini while the bot is running, you must use the "rehash" command or restart the bot for changes to take effect.

4) If you want your moderators to automatically identify when using Steam, make sure the following line is still at its default value (true) up top.

AutoAuthSteam=true

Link to comment
Share on other sites

  • Moderator
Updated! Add RenX.Ladder to the plugins list to enable a server-specific ladder. The ladder is currently only interacted with by chat commands; a web interface should be coming before too long.

Steam only? needs a non steam option.

Link to comment
Share on other sites

  • 10 months later...

After an absurdly long time: Updated!

This bot supports both RCON v3 (current version), as well as RCON v4 (upcoming support). RCON v3 support will be removed at a later date, after the patch.

When updating, I would recommend just deleting your current installation of the bot entirely and re-configuring from scratch.

Link to comment
Share on other sites

  • 5 weeks later...
  • 5 months later...

Hi Agent, 

Awesome Bot, i'm using it on my server and its great!.

One problem im having trouble with is getting the Renx.ladder.web to work. I have the httpserver plugin and all the ladder plugins, including renxladder.web setup to load via the config file (and confirmed loaded via the console output). I have setup the options in the httpserver.ini file and the renx.ladder.web.ini. Taking a look with netstat, it doesnt seem that the bot is actually creating a port for the httpserver to listen on.

Is there anything im missing with this?
What are the plugins that are needed to be loaded to make this work.
What config changes need to be made?
Is there any other diag that i can look at to find out whats going on?

 

Thanks in advance.

Link to comment
Share on other sites

Hmm,

I've just done the round on trying different options:
I've tried:
BindAddress: blank, 0.0.0.0, (specific ip)
BindPort: 80, 81, ports below 1024, ports above 1024
Process: starting with forced elevated privileges and without.
Plugins: Just HTTPServer + RenX.Ladder.Web, HTTPServer + RenX.Ladder + RenX.Ladder.Web, HTTPServer + All Ladder Plugins, Variations of previous attemps with and without other plugins. 

Im assuming its a bug at this point.

Link to comment
Share on other sites

I'm probably going to actually remove RenX.Ladder.Web at some point; I just need to change the underlying database structure is all.

In the meantime, here is the config for RenX.Ladder.Web that the official leaderboard uses:

Spoiler

; File: RenX.Ladder.Web
;

; Name of the leaderboard table page (Default: )
LadderPageName=

; Name of the search table page (Default: search)
SearchPageName=search

; Name of the profile page (Default: profile)
ProfilePageName=profile

; Path for the pages to be reached at (Default: /)
Path=/

; Name of the file that is prepended before every page
HeaderFilename=html\RenX.Ladder.Web.Header.html

; Name of the file that is appended to every page
FooterFilename=html\RenX.Ladder.Web.Footer.html

; Name of the file that defines the profile page layout
ProfileFilename=html\RenX.Ladder.Web.Profile.html

; Name of the file that is prepended to leaderboard tables
LadderTableHeaderFilename=html\RenX.Ladder.Web.Ladder.Table.Header.html

; Name of the file that is appended to leaderboard tables
LadderTableFooterFilename=html\RenX.Ladder.Web.Ladder.Table.Footer.html

; Number of entries to display per table page
EntriesPerPage=50

; Minimum number of input characters on the search page
MinSearchNameLength=3

; Defines the layout of the leaderboard table rows
EntryTableRow=<tr><td class="data-col-a">{RANK}</td><td class="data-col-b"><a href="profile?id={STEAM}&database={OBJECT}">{NAME}</a></td><td class="data-col-a">{SCORE}</td><td class="data-col-b">{SPM}</td><td class="data-col-a">{GAMES}</td><td class="data-col-b">{WINS}</td><td class="data-col-a">{LOSSES}</td><td class="data-col-b">{WLR}</td></tr>

; Defines the layout of the 'previous' button on profiles
EntryProfilePrevious=<form class="profile-previous"><input type="hidden" name="database" value="{OBJECT}"/><input type="hidden" name="id" value="{WEAPON}"/><input class="profile-previous-submit" type="submit" value="&#x21A9 Previous" /></form>

; Defines the layout of the 'next' button on profiles
EntryProfileNext=<form class="profile-next"><input type="hidden" name="database" value="{OBJECT}"/><input type="hidden" name="id" value="{VSTEAM}"/><input class="profile-next-submit" type="submit" value="Next &#x21AA" /></form>

;EOF

And attached are the files in the html directory.

HTTPServer is bound to 0.0.0.0 on port 80.

ForceDefault is set to true on RenX.Ladder.All-Time.

The plugins loaded: IRC.Core CoreCommands PluginManager ExtraCommands RenX.Core RenX.Commands RenX.Logging RenX.ModSystem RenX.Listen RenX.Ladder HTTPServer RenX.Ladder.Web RenX.Ladder.All-Time RenX.Ladder.Yearly RenX.Ladder.Monthly RenX.Ladder.Weekly RenX.Ladder.Daily RenX.ServerList

 

Hope this helps,

Jessica

html.zip

  • Like 1
Link to comment
Share on other sites

Thanks a bunch for info @agent . I didn't have the html files, and I suppose it wouldn't of worked without them. Also the plugin info was great as well.

Unfortunately it still doesn't work :(. The bot.exe just doesn't open a port to listen on :(. But your info does help me confirm that its either a problem with my server or the bot code. I've been trying different things with the server to no avail, so my next step is going to be to recreate my server setup on another pc and see how that goes. If that doesn't work, ill start playing with the bot code and see what I can find.

Link to comment
Share on other sites

Yep, its loading. Heres the output from the command:

<ShrewdXBot> There are 25 plugins loaded:
<ShrewdXBot> IRC.Core
<ShrewdXBot> CoreCommands
<ShrewdXBot> PluginManager
<ShrewdXBot> ExtraCommands
<ShrewdXBot> RenX.Core
<ShrewdXBot> RenX.Commands
<ShrewdXBot> RenX.Logging
<ShrewdXBot> RenX.Medals
<ShrewdXBot> RenX.IRCJoin
<ShrewdXBot> RenX.Announcements
<ShrewdXBot> RenX.Greetings
<ShrewdXBot> RenX.MinPlayers
<ShrewdXBot> RenX.ModSystem
<ShrewdXBot> RenX.SetJoin
<ShrewdXBot> RenX.Warn
<ShrewdXBot> RenX.Listen
<ShrewdXBot> RenX.Ladder
<ShrewdXBot> HTTPServer
<ShrewdXBot> RenX.Ladder.Web
<ShrewdXBot> RenX.Ladder.All-Time
<ShrewdXBot> RenX.Ladder.Daily
<ShrewdXBot> RenX.Ladder.Monthly
<ShrewdXBot> RenX.Ladder.Weekly
<ShrewdXBot> RenX.Ladder.Yearly
<ShrewdXBot> RenX.ServerList

Link to comment
Share on other sites

Heres the ports list opened by the bot:

Bot.exe 3440 TCP Renegade-Svr 21337 Renegade-Svr 0 LISTENING          
Bot.exe 3440 TCP renegade-svr.edtn.local 51144 v-162-248-88-129.unman-vds.premium-chicago.nfoservers.com 6667 ESTABLISHED 5 616        
Bot.exe 3440 TCP Renegade-Svr 51146 localhost 7777 ESTABLISHED 42 1,230 461 13,056      
 

Link to comment
Share on other sites

Heres the ini files:

====== HTTPServer.ini =====
; File: HTTPServer.ini

;
; BindAddress=String (Default: 0.0.0.0)
; BindPort=Integer (Default: 80)
;
BindAddress=0.0.0.0
BindPort=44444
;EOF

===== RenX.Ladder =====
; File: RenX.Ladder
;
; Settings:
; OnlyPure=Bool (Default: false; when true, only "pure" games should count)
; MaxLadderCommandPartNameOutpuit=Integer (Default: 5; how many partial matches to show in "ladder" command)
;
OnlyPure=false
MaxLadderCommandPartNameOutput=5
;EOF
 
===== RenX.Ladder.Web =====
; File: RenX.Ladder.Web
;
; Name of the leaderboard table page (Default: )
LadderPageName=
; Name of the search table page (Default: search)
SearchPageName=search
; Name of the profile page (Default: profile)
ProfilePageName=profile
; Path for the pages to be reached at (Default: /)
Path=/
; Name of the file that is prepended before every page
HeaderFilename=html\RenX.Ladder.Web.Header.html
; Name of the file that is appended to every page
FooterFilename=html\RenX.Ladder.Web.Footer.html
; Name of the file that defines the profile page layout
ProfileFilename=html\RenX.Ladder.Web.Profile.html
; Name of the file that is prepended to leaderboard tables
LadderTableHeaderFilename=html\RenX.Ladder.Web.Ladder.Table.Header.html
; Name of the file that is appended to leaderboard tables
LadderTableFooterFilename=html\RenX.Ladder.Table.Footer.html
; Number of entries to display per table page
EntriesPerPage=50
; Minimum number of input characters on the search page
MinSearchNameLength=3
; Defines the layout of the leaderboard table rows
EntryTableRow=<tr><td class="data-col-a">{RANK}</td><td class="data-col-b"><a href="profile?id={STEAM}&database={OBJECT}">{NAME}</a></td><td class="data-col-a">{SCORE}</td><td class="data-col-b">{SPM}</td><td class="data-col-a">{GAMES}</td><td class="data-col-b">{WINS}</td><td class="data-col-a">{LOSSES}</td><td class="data-col-b">{WLR}</td><td class="data-col-a">{KILLS}</td><td class="data-col-b">{DEATHS}</td><td class="data-col-a">{KDR}</td></tr>
; Defines the layout of the 'previous' button on profiles
EntryProfilePrevious=<form class="profile-previous"><input type="hidden" name="database" value="{OBJECT}"/><input type="hidden" name="id" value="{WEAPON}"/><input class="profile-previous-submit" type="submit" value="&#x21A9 Previous" /></form>
; Defines the layout of the 'next' button on profiles
EntryProfileNext=<form class="profile-next"><input type="hidden" name="database" value="{OBJECT}"/><input type="hidden" name="id" value="{VSTEAM}"/><input class="profile-next-submit" type="submit" value="Next &#x21AA" /></form>
;EOF
Link to comment
Share on other sites

I actually just made a discovery

I tried running the bot on a different computer, by copying the whole folder (configs included). The port opened, but on port 80, it ignored the port specified in the httserver.ini. I then tried changing the bind ip to the adapters ip, and its still binding to 0.0.0.0.

It looks like the httpserver.ini file is being ignored, and on my renegade server port 80 is already in use, which is why it wasn't opening up the port.

Link to comment
Share on other sites

Yeah ive just been going though the code myself. Just trying to get it to compile atm, which is being fun one windows.

I've worked out that I need the Jupiter project aswell to compile the Jupiter bot, since the Jupiter folder is empty in the source zip (since git doesn't parse folder mappings), and I need a windows openssl for windows. The first one was an old 9.8.8 version which didn't support the new tls functions, and the current windows package doesn't support the old sslv3 functions :S. 

Link to comment
Share on other sites

  • Agent changed the title to Bot Version: 1.1.0
  • Whistle unpinned and locked this topic
  • Whistle unlocked this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...