1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Challenge server problem!

Discussion in 'Server Help' started by daskew87, Nov 23, 2015.

  1. daskew87

    daskew87 Legendary corpse humper Donator

    Messages:
    447
    I am hosting a Challenge mapping contest and I have one severe problem:

    I cannot get the players to always spawn as Archer. This knight issue means that i cannot run the server without myself being there to skip a map if people are spawning as knights - This is very undesireable.

    • If players spawn as knights they will destroy the terrain.
    • If there's a archer shop nearby to spawn into archers, one knight will eventually destroy the archershop with slash or stab.
    • I cannot leave this competition server running by itself.
    Does anyone know a way to make players spawn as archers all the time?

    Thanks a lot,

    -Dask
     
    Last edited: Nov 23, 2015
  2. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    If you're running vanilla challenges - look at getStartClass (line 516 of Challenge.as) and either add a config option for archer (no idea why its not there), or if you dont care about breaking things, just make it return archer all the time.
     
    daskew87 likes this.
  3. daskew87

    daskew87 Legendary corpse humper Donator

    Messages:
    447
    The problem with classes has been fixed!

    However now I wish to ask for help about this other issue:

    Sometimes maps spawn without a timer

    I have set the timer to be 60 minutes - so people have plenty of time to try to complete a map, but it does eventually rotate to another map - keeping things fresh.

    However sometimes when a new map is loaded it doesn't have a timer, thus the level stays on the server forever until I go into and skip the map manually.

    Does anyone know how to fix this?

    Thanks a lot.
    --- Double Post Merged, Dec 12, 2015, Original Post Date: Nov 27, 2015 ---
    Is anyone able to help me?

    I still haven't fixed this problem.

    (also can a mod move this to the server help section as I started this in the wrong place thankyou)
     
    makmoud98 likes this.
  4. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Moved - you may wish to develop a separate "map restart" script of your own. It shouldn't be too hard to basically take the time at restart/init, and call nextmap if its been 60 minutes. there's a convenient Time() function that returns a time in seconds if you're not comfortable working in ticks (and honestly I'd suggest using it over using ticks because it's guaranteed to stay relevant after nextmap, whereas the game ticks may not.)

    @makmoud98 and co should be able to help you out if you have trouble with the scripting.
     
    daskew87 and makmoud98 like this.