Do you actually run the mam.bat? Or only the TCP Console?
Beiträge von Yenz
-
-
manuadminmod/plugins/
There are the most important parts of plugins (the actual plugin that do stuff).manuadminmod/config/plugins
There are just further configurations for the plugins. This is optional and therefore not so important. -
Just take a look at exisiting plugins
-
I wanted the mod.log (MAM's logfile)
-
@GumGes1
Take a look into plugins/deferredJobs.php
Read the comment section. -
I have a helper plugin for such a task. I'll upload that later today.
-
Please give us The part of the log with this error. And your config without rcon
-
instead of
do sth like
PHP<?php $fileContent = file($mod->getConfigDir() . "/plugins/helper.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); // read the file, strip newline "\n" characters from the end, ignore empty lines foreach ($fileContent as $line) { // for every entry of the $fileContent array to this block $search = array(); $parts = explode(":", $line, 2); // "explode" the line at the ":" chat, that means to create an array for each part between ":"-characters, but only do that for the first ":" (3rd parameter "limit" = 2, means maximum array size of 2) $search [] = array("search" => $parts[0], "response" => $parts[1]); // add new entry in the $search array, each entry is an array with the search part (in front of the ":"), and the response part ("everything after the first ":") }
config/plugins/helper.txt could look like this one
EDIT: I've added some comments so that you can understand my code better!
See this links for more infos:
http://php.net/manual/en/function.file.php
http://php.net/manual/en/control-structures.foreach.php
http://php.net/manual/en/function.explode.php
http://php.net/manual/en/language.types.array.php -
@GumGes1 Two suggestions:
1.) Searchkeywords and response messages should be configured in a text file, so everybody can easily change/add/remove some. Create/read a text file from $mod->getConfigDir() . "/plugins/helper.txt"
2.) Get familiar with loops (for php they are name with while/for/foreach). Then you can reduce your current three similar if-block with one loop.Extra bonus suggestion
3.) support regex to identify chat messages to which respond with the predefined answers. Then one can easily define "if this, that, that or this is found in the message, send this back: blabla". example: '/\bla+g+\b/' will found everything like: lag, laaaag, laaaagggg, lagggggg, BUT NOT flag!!!! -
I would have betted that you will forget the "which ports" question!
So, my assumption:
WWW
Router 1 (IP: 192.168.0.1), connecting wire is plugged into a LAN port
Router 2 (IP: 192.168.1.1 - DIFFERENT NETWORK), connecting wire is plugged into the WAN port (there is only one WAN port on normal routers which mostly have a different color than the lan ports)
Your PC (IP: 192.168.1.123)Netmask in all networks: 255.255.255.0
The IPs and the netmask are only guessed. So be careful / take a concrete look at your environment when apllying forwarding rules.
In this scenario you need the follwing forwarding rules:
On Router 1: forward game port (incoming 28960 udp packets) to router's 2 ip (192.168.1.1)
On Router 2: forward game port (incoming 28960 udp packets) to your pc's ip (192.168.1.123)
With this set up everybody from the WWW can connect to your gameserver (running on your pc). -
How is router 1 connected to router 2? Cable? Which ports (lan/wan)?
Mord Mord info. Then forwarding via two routers is possible of course.But if you have a possibility to connect your pc directly with router 1: do that
-
Waaaaaaaat?
-
Einen Befehl hierzu bietet das Plugin leider nicht.
Manuell geht es so: In deinem MAM-Log-Verzeichnis gibts eine Datei pban.log. Diese mit einem Texteditor öffnen und die entsprechende Zeile löschen. -
-
oh i thought you want to make the player invisible and not only the servergroup of mam
-
Only if you have a rcon command that provides this functionality. But I assume you don't have sth like that
-
are the routers connected in a row?
Internet <---> Router 1 <---> Router 2 <---> Your PC
Where do you want to run your Gameserver and where the ManuAdminMod?
-
Are you sure that the error is from the RCON connection? Sounds more like a error message from a possible mysql connection...
Do you try to connect to a mysql server for statistics?mod.log will help!
-
-
First, you have to update your php!