Round Win Loop - I need to fix my map logic

Discussion in 'Mapping Questions & Discussion' started by GooGuGajoob, Mar 13, 2017.

  1. GooGuGajoob

    GooGuGajoob L12: Pro-crastinator

    Messages:
    166
    Positive Ratings:
    96
    Hello, I have a bit of an issue I need to fix.

    I'm trying to get Arena Volcano tested on an arena community server in the AU but I've had an error where on round win/loss, the counters go up in the hundreds for team score wins in a matter of seconds - ultimately frying the server.

    I'm sure this has been seen before, and just would love to know exactly what is causing this. I added counters, but I'm assuming I've done my map logic's incorrectly or I'm forgetting something else.

    [​IMG]

    The logic_timer and logic_relay are for all events when lava rises. I'm thinking the game_roundwin (trophy icon) entity might be obsolete?
     
    Last edited: Mar 13, 2017
  2. KubeKing

    Server Staff KubeKing dan's birthday was fun

    Messages:
    1,232
    Positive Ratings:
    1,471
    I don't have any specific answer (I'm not too familiar with Arena logic), but have you tried checking the console on round win/loss? (Use "host_timescale 0.2" to slow down the server when this happens)
     
    • Thanks Thanks x 1
  3. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    442
    There are I/O debugging commands that show you the I/O happening. Try those.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  4. Diva Dan

    aa Diva Dan hello!

    Messages:
    831
    Positive Ratings:
    1,369
    Yeah, try ent_fire while in the game and test out individual entities, try firing the counters and just see what happens and eventually you'll be able to eliminate your options and get a conclusion
     
    • Thanks Thanks x 1
  5. Nicky

    aa Nicky Lets try something new!

    Messages:
    912
    Positive Ratings:
    1,698
    By "debugging commands" I would assume you mean typing "developer 2" into the console (without the "). You should try this, it shows you everything happening in the game at the time, and is very useful when testing game logic.
     
    • Thanks Thanks x 2
  6. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    442
    That's not enough to debug I/O. You need to manually turn on listing which Inputs and Outputs are happening. You can even step the I/O!
     
  7. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    834
    So give us the commands, henke.

    it looks to me like you copied those game_text, math_counter, game_end, t_c_p_master and game_round_win entities from the example CP map that comes with the Source SDK content. You don't need those for an Arena map. All you need is a tf_logic_arena. The victor is chosen automatically when one team is wiped out, and if I'm not mistaken, a 'Sudden Death' (draw/humiliation usually followed by a round reset) event is triggered when the round time runs out and players from both teams are still alive. The round time is handled by a server cvar, tf_arena_round_time and the capture point unlock time is controlled by the tf_logic_arena. Capturing the CP will automatically choose a winning team, too. Try hiding all the entities I mentioned, except tf_logic_arena, saving the map and doing an entities-only compile