Jump to content

Mdbelen

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Mdbelen

  1. Mdbelen

    Server redirect

    onPlayerJoin redirectPlayer. That's how it's done on our old server as you might know. Don't you know scripting a bit? Isn't that hard, 1-4 lines.
  2. Hm, I would rather get some external download server instead of setting httpmaxcon too low, because this will reduce download speed (slightly), especially for many small files. I think some servers (nginx, lighttpd?) are better for this purpose than others, as they are better in handling many connections, but I'm not very sure about that.
  3. sver or ver in the server or ingame console http://pastebin.com/BC2LANEE https://wiki.multitheftauto.com/wiki/Cli ... e_Commands
  4. gr8, found the solution: make was "caching all changes away" or whatever. Have never worked with it. I guess after changing something (including arguments for ./configure) i had to use one of make clean, make uninstall or make distclean. The solution to my original problem was indeed configuring with the parameter --without-system-pcre . omfg
  5. Well i got my server starting now by putting the http://ftp.de.debian.org/debian/pool/ma ... 1_i386.deb -> /lib/libpcre.so.3.12.1 to /lib32/libpcre.so.3 . But my question remains, why are my binaries different from the precompiled ones?
  6. Hi there, i'm just trying to compile the mta server on my own to be able to make some small changes (remove the hardcoded login command amongst others) I want to use this server on Debian 6 64bit, I'm compiling on Debian 6 32bit. I can run the precompiled 1.1 server on this 64bit Debian, so the 64bit is not the problem. (In order to run i just needed to apt-get install lib32ncursesw5 lib32readline5 ) I can't run the server which I compiled, though. When starting it, it says: Apparently there's no lib32pcre (libpcre and libpcre-dev are installed) out there which I could install. But this shouldn't be necessary anyway, because the precompiled version runs well without it. My question is: What to do to compile the source so that the output is exactly like the precompiled one? I followed the instructions in the wiki (both the first and the second one) for the source from svn/branches/1.1.1/ and svn/tags/1.1/ and svn/tags/1.1.1/ The only change I applied to the source was setting MTASA_VERSION_TYPE to VERSION_TYPE_RELEASE in the MTA10_Server/version.h I tried to configure pcre with --disable-shared and without that. And to configure mta with --disable-system-pcre and with --with-pcre=yes but nothing works. I am shattered.
  7. Mdbelen

    Anti-Cheat Corner

    From which version on is this supposed to work? Because it seems that it doesn't work with the latest rc. I have 1.0.4-rc-2425 on Linux and after adding this line ("1.0.4") to mtaserver.conf and restarting the server, there's still players with old clients shown in the admin panel. Or is it probably just a stupido mistake of mine again??
  8. And what if the resource is not running? It needs to achieve the same effect as "refreshall". I don't think that this is done with a simple start of the resource.
  9. Hi, i just saw, that there should be a refreshResources function in MTA 1.1. I guess this is supposed to refresh all resources on the server. But IMO it would be nice if you could refresh single resources, too. You could change the command to refreshResource( [theResource] ) and if theResource is nil it refreshes all. Would be useful if you change some settings of a resource (e.g. ghostmode false->true) you could refresh it without causing the lag caused by refreshing all resources at once (which is incredible high).
  10. eeh.. easyish? Well i don't have a big clue about C and i don't even know in which file i have to search.. but i found something in "svn/trunk/MTA10_Server/mods/deathmatch/logic/lua/CLuaFunctionDefinitions.cpp", Line 11580 int CLuaFunctionDefinitions::Get ( lua_State* luaVM ) { CResource* pResource = m_pResourceManager->GetResourceFromLuaState ( luaVM ); if ( lua_type ( luaVM, 1 ) == LUA_TSTRING ) { CLuaArguments Args; CXMLAttributes *pAttributes; unsigned int uiIndex = 0; bool bDeleteNode; // Extract attribute name if setting to be gotten has three parts i.e. resname.settingname.attributename SString strSetting = lua_tostring ( luaVM, 1 ); SString strAttribute = "value"; vector < SString > Result; strSetting.Split ( ".", Result ); if ( Result.size () == 3 && Result[2].length () ) { strAttribute = Result[2]; } // Get the setting CXMLNode *pSubNode, *pNode = g_pGame->GetSettings ()->Get ( pResource->GetName ().c_str (), strSetting.c_str (), bDeleteNode ); // Only proceed if we have a valid node if ( pNode ) { // Argument count unsigned int uiArgCount = 1; // See if we need to return a table with single or multiple entries if ( pNode->GetSubNodeCount () == 0 ) { // See if required attribute exists CXMLAttribute *pAttribute = pNode->GetAttributes().Find ( strAttribute.c_str () ); if ( !pAttribute ) { if ( bDeleteNode ) delete pNode; lua_pushboolean ( luaVM, false ); return 1; } // We only have a single entry for a specific setting, so output a string char *szDataValue = const_cast < char* > ( pAttribute->GetValue ().c_str () ); if ( !Args.ReadFromJSONString ( szDataValue ) ) { // No valid JSON? Parse as plain text Args.PushString ( szDataValue ); } Args.PushArguments ( luaVM ); uiArgCount = Args.Count (); /* Don't output a table because although it is more consistent with the multiple values output below, ** due to lua's implementation of associative arrays (assuming we use the "setting-name", "value" key-value pairs) ** it would require the scripter to walk through an array that only has a single entry which is a Bad Thing, performance wise. ** PUSH_SETTING ( pNode ); Args.PushAsTable ( luaVM ); **/ } else { // We need to return multiply entries, so push all subnodes char *szDataValue; while ( ( pSubNode = pNode->FindSubNode ( "setting", uiIndex++ ) ) ) { PUSH_SETTING ( pSubNode, szDataValue ); } // Push a table and return Args.PushAsTable ( luaVM ); } // Check if we have to delete the node if ( bDeleteNode ) delete pNode; return uiArgCount; } } else m_pScriptDebugging->LogBadType ( luaVM, "get" ); lua_pushboolean ( luaVM, false ); return 1; } I guess 11616 and 11654 (37 and 75 here) have to be changed to lua_pushnil( luaVM ); (Don't want to report this without confirmation, because i'm pretty unsure.)
  11. Hi, little question about bugs.mtasa.com I'd like to have a filter to see only bugs/.. reported by me. There is a reporter-filter but i can only choose from a small list of users there. An Editfield would be much more useful. Best would be to see the "own" reports in "My View". I think you can imagine that this would be helpful if you reported a bugs and want to check its statuses, maybe feedback is needed. But how should i get to know? Search for all my reported bugs once a week? Probably/Hopefully i just overlooked this function because this is very essential, isn't it? Would be thankful for a hint
  12. Hi, i recently got into trouble with the get() function. I want to check if a setting (ghostmode) is set true or false or not at all in the meta.xml of a map. But get(..) returns false if it is set false and if it isn't set. Actually i wanted to set it true manually for all maps where it isn't set yet, but i can't distinguish the cases (so all maps-ghostmode would be set true^^). (If the setting is set to "false" then it returns false as string i think, but you can set it "[false]", too, then get() will return false as boolean.) So maybe it would be better to return nil if no setting is found and false only if the setting is rly set false. Am I wrong or should I bug-report this behavior?
  13. Hi there, i have a little big problem with the setResourceInfo function. I want to use it to save a tostringed number as attribute "cid" to all race maps on the server. (e.g. ) Sometimes this works, but sometimes it doesn't; i really have no clue why. Often when i want to set or change the value it just doesn't change the file(meta.xml), though it returns true If I use getResourceInfo for this attribute then, it returns the new value. But it just doesn't save it to the file, not on refresh(all), not on servershutdown. After serverrestart getResourceInfo returns the value stored in the file (=the old value) then. Possible that i do something wrong, or is this maybe some "cache-bug" in mta?? (all resources are not zipped)
×
×
  • Create New...