Page 13 of 28 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 275

Thread: Elgbot 2.0 Serverisde for testing purposes (name recognition of player only)

  1. #121

    Default

    like this?


    //if we reached frag limit, run intermission

    if(level.totalkills == 0)
    {
    end
    }

    if(local.totalkills == level.totalkills)
    {
    waitexec elgbot/elgbot.scr::mapend

    //now bring on the intermission by setting the real fraglimit
    setcvar "fraglimit" level.totalkills
    }

    if(level.debug)
    {
    wait 3
    local.player respawn
    }
    }

    end

  2. #122
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    sorry, you want main.scr, replace the detectintermission with this:

    Code:
    
    
    detectintermission:
    	
    	level waittill prespawn
    
    	//set this so we can detect fraglimit
    	level.totalkills =  int (getcvar "fraglimit")
    
    if(level.totalkills > 0)
    {
    
    	//reset fraglimit with an extra frag, so we can detect before it happens, then set it right
    	setcvar "fraglimit" (level.totalkills + 1)
    
    }
    else
    {
    (level.totalkills  = -1
    }
    
    	
    //get gametype
    	level.gametype = int(getcvar "g_gametype")
    	
    	//how many rounds have we done?
    //	level.roundlimit = int (getcvar "roundlimit")
    	
    //	local.rounds = int (getcvar "donerounds")
    	
    	//if we are more than FFA, then detect team win. 
    	if(level.gametype > 1)
    	{
    		//init team total kills
    		level.teamkills[axis] = 0
    		level.teamkills[allies] = 0
    		//just in case
    		level.teamkills[spectator] = 0
    
    		//detect team win
    		thread detectteamwin
    	}
    
    	//get time limit
    	local.timelimit = int (getcvar "timelimit")
    
    if(local.timelimit <= 0)
    {
    end
    }
    	//work out time on server left
    	local.timelimit  =  ((local.timelimit * 60 ) - (int level.time) - 0.9)
    
    	//wait this duraction
    	wait local.timelimit 
    	
    	//run intermission
    	exec elgbot/elgbot.scr::mapend
    
    end
    let me know thanx, ill update pk3 when i get home.

    This SHOULD fix it, i can imrpove that code later but for now it should be exactly the same result.

    thanx so much

  3. #123

    Default

    hmzz just tried it, now elgbot wont even start anymore.
    replaced the main.scr with the attached one.

    I will leave it now then until you return...
    Attached Files Attached Files

  4. #124
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    to fix:

    above where it says

    Code:
    else
    {
    (level.totalkills  = -1
    }
    replace with


    Code:
    else
    {
    level.totalkills  = -1
    }

    sorry...

  5. #125

    Default

    thx working now, will test it further :P

  6. #126

    Default

    ok running stable now for two days with filled up server.
    Some things are though still not working like the specific all time personal player stats. As long as youre in the server it is working but as you return it is empty.
    Best all time players is working but accuracy stays empty, also i dont understand what the time thingy should say. It looks like its now who is shortest on server instead of most time played.
    Also some player stat files keep on being zero bytes.
    Maybe you could check it out yourself i have the mod running on my server 93.190.137.162:12203 [KC] Public*1 server realism TDM [=NL=]
    Your weapons limiter (admin pro) is broken by the stats mod, I have disabled the rocket but now it is in use again.
    Sometimes it doenst say "killing spree ended by xxx" when it should say it.

    for razor:
    I got sometimes in my log this message en when it appears it appears several times over:

    broadcast: print "3salya timed out\n"
    Got signal 11 - Segmentation fault, faulty address is 0x264
    Crash Recover Attempt will take place!
    Execution path:
    --> /home/game1/fgameded.so(G_ClientDisconnect+0x4e) [0xb55e7df2]
    --> /home/game1/mohaa_lnxded [0x8086cbf]
    --> /home/game1/mohaa_lnxded [0x808d54f]
    --> /home/game1/mohaa_lnxded [0x808d747]
    --> /home/game1/mohaa_lnxded [0x8067486]
    --> /home/game1/mohaa_lnxded [0x809726e]
    --> /lib/tls/libc.so.6(__libc_start_main+0xf4) [0xb7da9974]
    --> /home/game1/mohaa_lnxded(_Znwj+0x71) [0x8049c41]
    Got signal 11 - Segmentation fault, faulty address is 0xa0
    Crash Recover Attempt will take place!
    Attached Files Attached Files
    Last edited by Murdock; September 8th, 2011 at 04:18 PM.

  7. #127
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    strange because i tested all those things. linux right? must be another linux specific bug.

    the code is non specific for anything. everything coutns the same for all players. i just dont see any cahnce of it saying "ended for", for some players, but not others. ...
    +
    admin pro state files would conflict massivly. will need the exec lines adding from elgbot....this could be the casue of the accuracy bug and many other things.

    im assuming its not saving on player exit. ...could be the segmentation fault...but its not changed. and works fine on the windows test server,

    the time only updates when players leave also.

    i dont know to be honest, i cant test or check. only admin pro in there too?

    headsink...any errors your side? (as ur on windows)

  8. #128
    Junior Member
    Join Date
    Sep 2011
    Location
    Ayrshire, Scotland
    Posts
    23

    Default

    Just wanted to say great work on this Elgan. I've just been playing on the KC server and i love ur Elgbot stats.
    It now feels so much more rewarding when you get that headshot or when you go on a rampage. Quality stuff m8.

  9. #129
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    thanx, and any info for me Mursdock?

    and make sure you use client side sounds Outl^w

  10. #130

    Default

    Quote Originally Posted by Elgan View Post
    heatsink...any errors your side? (as ur on windows)
    Hi Elgan not been on much this week sorry but have just loaded full copy of 12261 onto our match server 4 for a 9 v 9 tonight so will give good test tonight )))
    Also spoke to LKW Redgrave about his sounds installer - its been a god send loads of players not savy to install sounds ((( but his installer helps loads - so now we getting loads asking how to add key binds ((( so just asked to see if he could mod users unnamed cfg with the key binds - he thinks he can do it so that will help also. mmmmmmmmm nit sure if their is away for this with the patch once we get client ???

    Will let you know results of test on match server but every one loving it ))))

Posting Permissions

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