Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 41 to 60 of 89

Thread: Server Clearance - Script Release

  1. #41

    Re: Server Clearance - Script Release

    May I make a suggestion? Would it be possible to ping a teamspeak server and display a list of active connected people on it?

  2. #42

    Re: Server Clearance - Script Release

    Quote Originally Posted by Crytiqal View Post
    Would it be possible to ping a teamspeak server and display a list of active connected people on it?
    Supposingly yes, if you find a way to store the current online users in a mySQL database and read out this database with lua. But unfortunately I can't do this for you, I have no experience with mySQL at all.
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  3. #43

    Re: Server Clearance - Script Release

    TS3 has a query port where you can retrieve the users etc. I don't think a mysql db is nessecary to store the users.
    I have a php script download on to my website that retrieves the channels and people in them, and it doesn't store a mysql table

    I don't have any experience in LUA however, so I don't know what is nessecary for that.

    Anyway, keep up the good work

  4. #44

    Re: Server Clearance - Script Release

    Quote Originally Posted by Crytiqal View Post
    TS3 has a query port where you can retrieve the users etc. I don't think a mysql db is nessecary to store the users.
    The point is that lua scripts can't read the info out of the query port. What you need is a middle man, for example a php script that writes the data to a text file every 30secs. Lua could read that text file and forward the information to the player. But as I said, you need some sort of web-based script first, and I can't help you with that.
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  5. #45

    Re: Server Clearance - Script Release

    They wouldn't work on my server. The server is running silent 0.4.0

  6. #46

    Re: Server Clearance - Script Release

    Does silent 0.4.0 support lua scripts?

  7. #47

    Re: Server Clearance - Script Release

    Yes. But most probably the scripts need to be modified a bit to work. Looks great work Phishermans Friend.

  8. #48

    Re: Server Clearance - Script Release

    If the scripts won't load, search your g_log file for errors like this:
    Code:
    2:49 Lua API: syntax error during pre-compilation: [string "test.lua"]:3: '=' expected near 'et'
    I'll be happy to help you out if you forward me the error message.

    I understand if someone is completely new to lua scripts and doesn't know how to deal with them, but please ensure one thing before you contact me: LUA scripts can and (at least mine) are supposed to be opened!! View them in your favorite text editor and configure them the way you want. Some even NEED configuration, so please make sure to carefully set each variable inside the script according to the description.

    //And big thanks to gaoesa :)
    Last edited by phisherman; 21st Nov 2011 at 20:31.
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  9. #49

    Re: Server Clearance - Script Release

    Time to get this old stuff out of my head..

    Episode V - Axis Lab Mapscript

    The script is a mix of the original map version (where you had to steal the nuke) and v2 (where you had to steal the documents). I liked v2 more than v1 because it allowed more flexibility: It was really hard for the Allies to get the nuke to the truck because the Axis knew exactly which way they had to take. V2 however was a bit too map-rushy because people would disguise, rush into the bunker, through the teamdoor, get the documents, rush out again and finish the map after 3min before the hill flag was even allied.
    This script is an attempt to combine the advanced flexibility of the documents with the anti-maprush effect of having to escort the truck. Short allied mission overview:

    1. Steal the truck and escort it to the hill top. As soon as it's there, the hill flag will become perm-allied and the sewer gates become dynamitable (they're a dummy entity beforehand to prevent quick game end - based on |>B<|Molotov)
    2. Get inside the bunker complex, blow open the war room door, steal the documents and get them to the truck
    3. Escort the truck over the river


    Please note that this script is only a gameplay alternative, not a fix.

    EDIT: PICTURES REMOVED

    Hf!

    //I don't know either why somebody would load documents on a truck...
    Attached Files Attached Files
    Last edited by phisherman; 26th Sep 2012 at 14:13.
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  10. #50

    Re: Server Clearance - Script Release

    Maybe they're radioactive. There's a citern with strange unidentified green liquid in the labs, docs can have been dropped by some scientists in it x)

  11. #51

    Re: Server Clearance - Script Release

    Thanks again for the lua's Phisherman!!

    I have them on my server and works great!!! That is except for the tag protection.

    Just wondering if you could help me with it?

    It occasionally will work but rarely!! When it does work and renames player..if they change it back it wont re-punish them! This is how i set the config:

    -- CONFIG SECTION


    checkInterval = 5000 -- The interval in milliseconds (1 sec = 1000 millisec) at which the script will check players for clantag violations


    clanTags = { -- List of clantags to protect, you can add as many as you want
    [1] = "^m|*^1BS^m*|", -- MAKE SURE TO REMOVE THE ENTIRE LINE IF YOU USE ONLY ONE CLANTAG!!
    [2] = "|*BS*|", -- Use the color codes for better looks in case of warnType,
    } -- but leaving them out does not make a difference


    maxMarks = 2 -- Determines the number of times a client needs to be marked before punishAction is executed
    -- NOTE: Set to 0 to instantly punish players


    warnType = 1 -- warnType can have the following values:
    -- 1 = warnString is sent as console command, e.g.
    -- "!warn %s ^7remove proprietary clantag %s"
    -- In this case, first %s is replaced with the playername, second %s with the clantag
    -- 2 = warnString is sent to the client as center print message, e.g.
    -- "^dwarn: ^7remove clantag %s"
    -- In this case, %s is replaced with the clantag
    -- NOTE: The maximum length of center print messages is 56 characters


    warnString = "!warn %s ^8Remove %s ^8tags. You are ^1NOT ^8a clan member" -- This action is performed according to warnType


    punishAction = "!rename %s ETPlayer" -- This console command is sent when maxMarks is reached
    -- NOTE: %s is replaced with the playername


    resetCounter = true -- Whether or not to reset the mark-counter when a player is punished
    -- NOTE: If you kick players as punishment, the counter will be reset on reconnect


    exclusionType = 1 -- In order to exclude your clanmates from being punished, choose one of the two
    -- values below to handle player exclusion
    -- 1 = Players whose shrublevel is >= exclusionParam are excluded
    -- In this case, set exclusionParam to the lowest excluded shrublevel
    -- 2 = Use a player database to handle exclusions
    -- NOTE: Read the comment below for more info
    Any advice is greatly appreciated!!

    Jem.

  12. #52

    Re: Server Clearance - Script Release

    Quote Originally Posted by jemstar View Post
    Just wondering if you could help me with it?
    Sure thing, but I'm kind of busy at the moment, maybe I'll manage to take a deeper look at it next week. It's possible that I messed up the script somewhere, but a reason might also be that you set the same clantag twice:
    Code:
    clanTags = {
    [1] = "^m|*^1BS^m*|",
    [2] = "|*BS*|",
    }
    I'll have a look at the script when I find the time, until then try removing the second line.

    I'll let you know. :)
    Greetz,
    phishi
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  13. #53

    Re: Server Clearance - Script Release

    Thanks Phishiman!!!

    I have already removed the second set of tags so only color ones in but when I !setlevel jem 0 it doesnt punish me but will test it over the weekend with some trusted friends wearing tags and see if it makes a difference!!

    No hurry for you to look at it, when you have time!! All the others work great!! Very appreciative for the release!!

    Jem.

  14. #54
    Senior Member diaboliksmart's Avatar
    Join Date
    Jun 2009
    Location
    MARSEILLE (FRA)
    Posts
    205
    Most Recent Awards:

    Re: Server Clearance - Script Release

    Oh yes, the features of these scripts (especially the 1 with "VOTE addbot") are so greats that I feel now to migrate my server to NO QUARTER mod !!!
    GG for sharing your creations, Phishiman xD

  15. #55

    Re: Server Clearance - Script Release

    Hi again Phisherman,

    Just wanted to let you know about another issue we are having with the tagprotection,lua.

    I noticed yesterday it warns/punishes players not wearing our tags!! This is one example from our admin log:

    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: console: : warn: *******************************************: ^4soB^0|^bG^5i^fg^do^4l^>o^0*: "^8Remove ^m|*^1BS^m*| ^8tags. You are ^1NOT ^8a clan member^7(1/2)"
    5341:35: -1: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: console: : warn: *******************************************: ^4soB^0|^bG^5i^fg^do^4l^>o^0*: "^8Remove ^m|*^1BS^m*| ^8tags. You are ^1NOT ^8a clan member^7(2/2)"
    5341:40: -1: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: console: : rename: *******************************************: ETPlayer: "ETPlayer"
    He is a trusted friend of the server and I replaced his guid with ******************************************* in this example.

    The relevant section of the lua code:

    clanTags = { -- List of clantags to protect, you can add as many as you want
    [1] = "^m|*^1BS^m*|", -- MAKE SURE TO REMOVE THE ENTIRE LINE IF YOU USE ONLY ONE CLANTAG!!
    -- Use the color codes for better looks in case of warnType,
    } -- but leaving them out does not make a difference

    Its more out of curiosity that I post, if the issue persists we can just police manually lol but I really like the lua and would love it working as we cant be online the whole time - but is not really a major issue for us, but it has happened.

    Thanks for looking into it, no hurry or if not possible just let us know!!

    Thanks heaps,
    Jem.

  16. #56

    Re: Server Clearance - Script Release

    You are right, I just reproduced this locally. I have no idea why this happens, I quick-checked the corresponding code and it seems alright. Could be a bug in Q_cleanstr(). I'll have a look at it this weekend. Big thanks for reporting! This is a no-go, so I'll hurry to provide a fix for you. In the meantime, you could create an additional shrublevel without privileges that is allowed to wear your tag and assign it to that poor guy so he won't get bugged all the time.

    I'm on it!
    phishi
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  17. #57

    Re: Server Clearance - Script Release

    Sorry to tell you, but apparently my PC decided to give up today, so I'm sitting here typing on my phone. I'll see if I can manage to get it running again, I'll keep you posted.
    Quote Originally Posted by oveove
    critisism is not allowed as it is another way to offend someone

  18. #58

    Re: Server Clearance - Script Release

    Thanks man, no rush!! As I say not a major issue for us lol but thanks for checking it over!! All the others work great..we love advance voting!!!

  19. #59

    Re: Server Clearance - Script Release

    Hi, I get the following error on etpro with the nextmap.lua
    etpro: et_ClientCommand error running lua script: [string "nextmap.lua"]:213: attempt to index local `string' (a string value)
    Any idea?

    "nextmap" command loads it, for example: nextmap is "vstr m1r1"
    Lua output is Nextmap is ERROR if I set nextmap to "map supply".

    map cycle:
    set m1r1 "g_gametype 3; map sw_goldrush_te; set nextmap vstr m2r1"
    set m2r1 "g_gametype 3; map radar; set nextmap vstr m3r1"
    set m3r1 "g_gametype 3; map supply; set nextmap vstr m4r1"
    set m4r1 "g_gametype 3; map bremen_b3; set nextmap vstr m5r1"
    set m5r1 "g_gametype 3; map karsiah_te2; set nextmap vstr m6r1"
    set m6r1 "g_gametype 3; map adlernest; set nextmap vstr m7r1"
    set m7r1 "g_gametype 3; map erdenberg_b3; set nextmap vstr m8r1"
    set m8r1 "g_gametype 3; map frostbite; set nextmap vstr m1r1"

    vstr m1r1

  20. #60

    Re: Server Clearance - Script Release

    Code:
    etpro: et_ClientCommand error running lua script: [string "nextmap.lua"]:213: attempt to index local `string' (a string value)
    If I understand the script correctly, the error yields from reading the arena file. So there might be something special in that arena file of supply.
    I would have checked, but there are many supply versions - no idea which one you used.

    Quote Originally Posted by Micha View Post
    "nextmap" command loads it, for example: nextmap is "vstr m1r1"
    Lua output is Nextmap is ERROR if I set nextmap to "map supply".
    If you do set the cvar nextmap to 'map supply' the script will output 'ERROR', it does expect 'vstr' as content of cvar nextmap. You can see that on line 155 in function NextMapName().

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •