Results 1 to 6 of 6

Thread: setup problem

  1. #1

    Default setup problem

    Hey Fans

    In the first days in my server i was have a problem in my setup file
    its crash the server after ending the map then my friends fixed this problem in the file and made the file restart in the end then get the new map


    my setup file/ in htr folder in the mod evreytime restart the map after ending then get the new map
    so any idea to stop this restart and let the rotation running without any restart ?

    can someone please send me his setup file thats without any restart in the end ??

  2. #2

    Default

    Post the mod to see if we can remove that restart.

  3. #3

    Default

    Quote Originally Posted by DoubleKill View Post
    Post the mod to see if we can remove that restart.
    The problem in setup file only in the htr folder
    Ill send u the setup file

  4. #4

    Default

    Quote Originally Posted by Old Fox View Post
    The problem in setup file only in the htr folder
    Ill send u the setup file

    main:

    if(level.HTR_setup !=1)
    {
    level.HTR_setup = 1

    level.round_times = getcvar "countdown_rounds"

    if(level.round_times == "")
    {
    setcvar "countdown_rounds" "1"
    level.round_times = 1
    }

    thread changemap

    local.gametype = getcvar "g_gametype"

    if(local.gametype == "1" || local.gametype == "0")
    {
    end
    }

    local.run = getcvar "countdown"

    if (local.run == "0")
    {
    end
    }
    else
    {
    setcvar "session" local.gametype

    if(level.roundbased)
    {
    level waittill roundstart
    }
    else
    {
    level waittill spawn
    }

    local.origin = waitthread getorigin

    if (local.origin == NIL)
    {
    setcvar "g_gametypestring" local.gametypestring
    println "ERROR: [Countdown] Map origin script not found. Map may not be supported"
    println "HTR: Map not reacognised. Ending mod"
    end
    }

    local.time = getcvar "countdown_time"

    if(local.time == "" || local.time == NIL)
    {
    local.time = "10:00"
    setcvar "countdown_time" "10:00"
    }

    local.countdown_time[allies] = local.time
    local.countdown_time[axis] = local.time

    level.hudcolour["axis"] = 0
    level.hudcolour["allies"] = 0

    if(local.countdown_time[allies].size != 5 || local.countdown_time[axis].size != 5 )
    {
    setcvar "g_gametypestring" local.gametypestring
    println "ERROR: [Countdown] Time format is incorrect. Ending mod"
    end
    }
    if(local.rounds == 0) end

    level.round_times = getcvar "countdown_times"
    level.round_times = int level.round_times

    if(level.round_times >= local.rounds){
    local.gametype = getcvar "g_gametype"
    setcvar "countdown_times" "0"
    setcvar "g_gametype" "0"
    leveltransition (getcvar "nextmap")
    setcvar "g_gametype" local.gametype
    }
    end

    restart:

    local.restartmap = getcvar "restart"
    setcvar "restart"
    end

    /*
    changemap:

    level waittill spawn

    local.rounds = getcvar "countdown_rounds"
    local.rounds = int local.rounds

    if(local.rounds != 0)
    {

    level.round_times = getcvar "countdown_times"
    level.round_times = int level.round_times

    if(level.round_times >= local.rounds)
    {
    local.frags = getcvar "fraglimit"
    setcvar "countdown_times" local.frags

    if(game.game != "SH")
    {
    setcvar "fraglimit" "1"
    setcvar "clock" "1"
    setcvar "g_tow_winstate" "1"
    $player[1] auto_join_team
    $player[1] commanddelay 0.0 addkills 1
    }
    else
    {
    setcvar "fraglimit" "-1"
    }
    end
    */
    Last edited by Old Fox; March 25th, 2019 at 10:34 PM.

  5. #5

    Default

    thankx
    Last edited by Old Fox; March 25th, 2019 at 10:34 PM.

  6. #6

    Default

    Theres nothing on the script to make a restart.
    Has to be in another.

    To make the code tags you do like this:
    [xcode=mohaa]

    text here

    [//xcode]

    Remove the second / because the code tag dont work with that.
    Last edited by DoubleKill; October 10th, 2018 at 11:46 AM.

Posting Permissions

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