Page 5 of 5 FirstFirst ... 345
Results 41 to 47 of 47

Thread: IP to Country Mod for Reborn 2.5 Gamma+

  1. #41
    Senior Member beroo's Avatar
    Join Date
    Dec 2017
    Location
    Cairo
    Posts
    108

    Default

    Quote Originally Posted by Razo[R]apiD View Post
    Do you use Reborn 1.12 Gamma patch?
    hmmm i was looking about what is the meaning of Gamma patch but i dunno what is this? i'm sorry about i was looking for past thread. is this patch relevant Reborn patch or what ?!!!
    Greetings :-{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com

  2. #42
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    Just use the latest version of the Reborn patch. When this mod was created we had 2.5 version gamma (as in, alpha, beta... gamma and so on release)

  3. #43
    Senior Member beroo's Avatar
    Join Date
    Dec 2017
    Location
    Cairo
    Posts
    108

    Thumbs up

    Quote Originally Posted by Razo[R]apiD View Post
    Just use the latest version of the Reborn patch. When this mod was created we had 2.5 version gamma (as in, alpha, beta... gamma and so on release)
    ok thank u RR
    Greetings :-{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com

  4. #44
    Senior Member beroo's Avatar
    Join Date
    Dec 2017
    Location
    Cairo
    Posts
    108

    Smile

    PHP Code:
       //REBORN EVENT REGISTERING 
        
    local.result registerev "connected" global/connectedhandler.scr 
         
        
    //load ip->country arrays 
        
    waitexec global/ip2co/arrays.scr 


    i added this into DMprechache.scr

    i didn't found the location of my country when i tested it, and this is the yellow message
    which below the compass , i think if this message become into Console message will be better and i faced more lag when the first round start, before run this mod i wasn't have this lag .

    i found this error
    HTML Code:
     ^~^~^ERROR IN IP to Country - No Country Found for BeroO/192.168.1.2:12204


    Did i missed do something?
    Attached Thumbnails Attached Thumbnails Capture.jpg  
    Last edited by beroo; May 27th, 2018 at 06:50 PM.
    Greetings :-{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com

  5. #45

    Default

    Is because you testing the mod on your local computer and the ip is the local computer.

    If you test on a dedicated server he will see your external IP an will give your the right country.

  6. #46
    Senior Member beroo's Avatar
    Join Date
    Dec 2017
    Location
    Cairo
    Posts
    108

    Lightbulb

    Quote Originally Posted by DoubleKill View Post
    Is because you testing the mod on your local computer and the ip is the local computer.

    If you test on a dedicated server he will see your external IP an will give your the right country.

    Thank u DoubleKill for this note it is working now very well.
    I dunno how u make that possible ty Razo and armageddon but if this mod become into Console message it will be better is that possible to change it from be like Yellow message below the compass to console message ?
    Attached Thumbnails Attached Thumbnails Capture.jpg  
    Greetings :-{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com

  7. #47

    Default

    Purple already posted how to change that

    Quote Originally Posted by Purple Elephant1au View Post
    So you want to change the iprintln ( ie yellow message on the left ) but display it from console instead ?

    Stuffsrv is the same as typing it straight into console , or through rcon , so stuffsrv restart , is the same as rcon restart , but stuffsrv is called from scripts.
    So to print it from console you would use the say command like you said

    stuffsrv "say Hello World"

    Code:
    //Display message on screen.
            if(local.player.data["country"] != "Unknown")
            {
                //iprintln ("Welcome, " + local.player.data["name"] + " from " + local.player.data["country"] + ".")
                stuffsrv ("say Welcome, " + local.player.data["name"] + " from " + local.player.data["country"] + ".")
            }
            else  //Ooops, no country found.  Prehaps you are on a local network?  ie: 192.168.1.1 ??
            {
                //iprintln ("Welcome, " + local.player.data["name"] + ".")
                stuffsrv ("say Welcome, " + local.player.data["name"] + ".")
                conprintf ("\n^~^~^ERROR IN IP to Country - No Country Found for " + local.player.data["name"] + "/" + local.ip + "\n")
            }

Posting Permissions

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