Jump to content
Sign in to follow this  
ImportBot

Simple Command Repeater [1.0.0.2]

Recommended Posts

Originally Posted by PapaCharlie9*:

 

SIMPLE COMMAND REPEATER


 

NOTE FOR BF4 R26 VERSION AND LATER


It is no longer necessary to set the vars.preset command over and over again. Just set it once in your startup.txt.

 

DESCRIPTION


Use this plugin to define RCON command tasks that are repeated at a set interval of seconds. For example, if you want to insure the vars.gameModeCounter 200 is executed every 10 minutes, you can use this plugin to do that.

 

All commands are executed at the same time after the interval delay has expired. It is not possible to set a different interval for each command with this plugin.

 

You may use this instead of using pb_sv_task to repeat commands at an interval. The advantage is that this is easier to use and setup. The disadvantage is that it only works as long as Procon is connected to your game server.

 

Enter each command on a separate line, as you would in the RCON console of Procon, separated by spaces, and using quotes for strings where required, such as:

 

Code:

admin.say "Welcome to the best server in the world!" all
By default, the command list already contains the now obsolete (R26) BF4 command:

 

Code:

vars.preset "Normal"
You should delete the default and change the list to some other commands.

 

You may change, delete, or add to that list in any way that you want.

 

Change Log

 

1.0.0.1

- Initial version

1.0.0.2

- Added more documentation to the plugin Details tab

- Reduced the default command list to just vars.preset "Normal"; having vars.gameModeCounter 75 might confuse people.

Download

 

Attached Files:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by dyn*:

 

Great work PC9.

 

Just a few days ago I was trying to explain how to setup repeatable commands via punkbuster. Your way will indeed be much more simple. Will give it a try today and see how it goes. Thank you.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by tarreltje*:

 

Im going to try this. i totaly lost it now. I can get my server back to preset normal, i check the server docs for missing vars ect. Reinstalled the server.. No luck, maby this will help. Maby if some1 have some info about getting normal on a fragnet server?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

If you already have some custom pb_sv_tasks set up, don't forget to remove them once you switch to this plugin!


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by guapoloko*:

 

PapaCharlie9 this plugin will change tickets server as does the tool that has the control panel of the NFO?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

PapaCharlie9 this plugin will change tickets server as does the tool that has the control panel of the NFO?

No, that requires more logic than this plugin can do.

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

Plugin updated to 1.0.0.2.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by guapoloko*:

 

vars.gameModeCounter running along prevents tickets from being altered.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

vars.gameModeCounter running along prevents tickets from being altered.

Yes, but it might also make your server be Custom in Battlelog.

 

vars.preset can change vars.gameModeCounter.

 

Basically, you can either be Normal in Battlelog and have default tickets, or you can have large tickets and be Custom in Battlelog. Doing both, Normal and large tickets, is possible (I think), but it requires a different plugin than this to do that.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

Configured in this way under there. And this as normal in Battlelog!

For me so far is working well without change tickets.

 

 

 

http://battlelog.battlefield.com/bf4...-RESPAWN-24-7/

To make sure it stays Normal, you need to run the next map. I have noticed that when you run the next map, it either changes to Custom or it resets vars.gameModeCounter to 100. So the next map will have small tickets if it is Normal.

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by guapoloko*:

 

Not changing this: In this Battlelog "normal" and as I continue tickets selected.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

Not changing this: In this Battlelog "normal" and as I continue tickets selected.

Read this thread:

showthread....ll=1#post82558*

 

If it is working for you, either you have magic or you are getting lucky. :smile:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by tarreltje*:

 

I have managed to get my server running on normal AND 200 Tickets for some round now.

 

Im scared to change something because i actualy dont realy know how i have done it.

 

What is did is using your plugin with the vars.preset "normal" and gamemodecounter at 200. This made my server normal, the tickets stayed at 100%. Then in procon i adjusted the counter into 200% and applyed. The next round i had 200 Tickets and normal preset......


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by utopiate*:

 

PC9 is correct here, I have been using a pbsvuser.cfg to set 'normal' and 200% tickets, it always returns to 100% after a round, sometimes it sticks for several rounds but eventually will go back to 100%


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by kcuestag*:

 

I believe vars.preset "Normal" no longer works. At least for me, it won't detect it on the console in Procon. :sad:

 

Interesting, it works with your plugin though, I just downloaded it and it set our server back to normal! Any idea why it wasn't working manually for me (From my layer)?

 

Thank you PC9, you just made my server alive again for the night. :biggrin:

 

Edit:

 

Apparently from layer it won't work but direct from rcon it does... I didn't know that.

 

Thank you again, this plugin will be useful.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by tarreltje*:

 

Since ive managed yesterday to get my server back to normal, it is still on normal WITH 200% tickets, I dont know why but otherwise checkout my server


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by guapoloko*:

 

I was running this plugin by layer perfectly.

 

But all my servers BF4 NFO fell in and they are failing to start ... lol


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by kcuestag*:

 

I woke up and found server's uptime 3 hours 53 minutes, and it was at Custom, the plugin didn't set it back to Normal, so I had to do so my self. :sad:

 

I have it by default at 600 seconds interval and Debug level 2.

 

Edit:

 

I don't know why but by default it had vars.preset "Normal"/.

 

I removed that / and it worked, this plugin will be very useful to make sure my server never goes into custom again.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by SeMpaFiMaRiNe*:

 

Can u say me why i cannot set Hardcore on my Server throug the Console by using the command "vars.preset Hardcore"? Its just telling me "Unknown command"!

 

Thx Sempa


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by kcuestag*:

 

Can u say me why i cannot set Hardcore on my Server throug the Console by using the command "vars.preset Hardcore"? Its just telling me "Unknown command"!

 

Thx Sempa

If you read my post #16, you will see you CAN'T run commands from the Layer, you have to do it via direct connection to your gameserver's IP.

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

Edit:

 

I don't know why but by default it had vars.preset "Normal"/.

 

I removed that / and it worked, this plugin will be very useful to make sure my server never goes into custom again.

That's strange. Anyone else see this after installing the plugin for the first time? I tested 1.0.0.2 on a new Procon connection to make sure the default didn't have errors like that, but it is possible I missed something.

 

If other people are seeing the same thing, I'll post a change, though the code looks okay to me.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by guapoloko*:

 

For me this has worked perfectly and I am using the plugin layer.

 

I'm still using the first version of the plugin.

 

Magic or luck ... lol


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by mtxrooster*:

 

While I have to say thanks for adopting BF4 support, I have to ask..

 

Do we know why commands are having to go directly to the server and NOT usable through the procon layer? It was my understanding that there is no difference between a layer server and a direct procon connection OTHER than 1 is managed and allows other admins to connect to it to issue commands and one is (obviously) a simple, direct connection. Functionally I thought they were supposed to be identical.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by kcuestag*:

 

That's strange. Anyone else see this after installing the plugin for the first time? I tested 1.0.0.2 on a new Procon connection to make sure the default didn't have errors like that, but it is possible I missed something.

 

If other people are seeing the same thing, I'll post a change, though the code looks okay to me.

Probably a mistake on my end. :biggrin:

 

 

For me this has worked perfectly and I am using the plugin layer.

 

I'm still using the first version of the plugin.

 

Magic or luck ... lol

The plugin works fine on layer, what I mean is you CAN'T manually type commands on the Console tab as it'll say unknown commands, you have to use direct connect for that.

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by PapaCharlie9*:

 

While I have to say thanks for adopting BF4 support, I have to ask..

 

Do we know why commands are having to go directly to the server and NOT usable through the procon layer? It was my understanding that there is no difference between a layer server and a direct procon connection OTHER than 1 is managed and allows other admins to connect to it to issue commands and one is (obviously) a simple, direct connection. Functionally I thought they were supposed to be identical.

As I understand it, it's just a known issue/bug in this version of Procon. The layer and local client talk to each other over the network. In order to prevent the client from messing up all the other clients connected to the layer, not to mention the game server, the Procon layer inspects the commands you try to send it. Unfortunately, that code isn't update to BF4 yet, or something like that, so it doesn't recognize the command.

 

When you are directly connected to the game server, that check is not used.

 

This is what I recall from what a Procon dev typed in another post, which I can't find at the moment. So I might be partly or mostly incorrect.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by SeMpaFiMaRiNe*:

 

If you read my post #16, you will see you CAN'T run commands from the Layer, you have to do it via direct connection to your gameserver's IP.

I tried everything but i cannot get my server on hardcore, at least not shown as in the battlelog, its always displayed as custom! here are my settings in the startup file of my server:

# This file is to be editable by the server administrator.

# It can contain any remote administration commands that are to be run during game server startup.

 

# Your choices here are offical, ranked, unranked, private

# # Offical servers will not allow you to change many configuration settings,

# # but will get quick play players

# # Ranked servers will allow you to change more configuration settings then

# # offical servers, but will not get quick play players

# # Unranked/private will allow you to change even more configuration settings

vars.serverType "Ranked"

 

 

# If you add any spectator slots, these will subtract from the number of

# player slots available for normal players

 

vars.autoBalance true

vars.friendlyFire true

vars.killCam false

vars.miniMap false

vars.hud false

vars.3dSpotting false

vars.miniMapSpotting false

vars.nameTag false

vars.3pCam false

vars.regenerateHealth false

vars.vehicleSpawnAllowed true

vars.soldierHealth 60

vars.playerRespawnTime 100

vars.playerManDownTime 100

vars.bulletDamage 100

vars.onlySquadLeaderSpawn true

vars.forceReloadWholeMags true

vars.hitIndicatorsEnabled false

vars.idleTimeout 0

vars.teamKillCountForKick 50

vars.teamKillValueForKick 0

vars.teamKillValueIncrease 1

vars.gameModeCounter 400

reservedSlotsList.aggressiveJoin true

fairFight.activate

vars.commander true

vars.roundRestartPlayerCount -1

vars.roundStartPlayerCount 4

vars.maxSpectators 0

 

Thx Sempa


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by guapoloko*:

 

PapaCharlie9, I have the following problem on my servers:

 

"ERROR

Game disconnected: could not join server."

This error occurs until I reboot the server. After some time he returns.

 

What command can I use to restart something or clean something to clear this error of servers?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by tarreltje*:

 

My server is was filled yesterday at 19:00 and till now it hasent been empty, still running on normal with 200 Tickets!!!


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Our picks

    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 10 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 6 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.