Author Topic: Server Hosting Support  (Read 8403 times)

0 Members and 1 Guest are viewing this topic.

Offline Fortune

  • Donator
  • *
  • Posts: 491
  • Procrastinating the day away
    • View Profile
  • Nick: Fortune/Blokkermedewerker
  • Side: Confederacy
Re: Server Hosting Support
« Reply #15 on: March 27, 2018, 12:01:23 am »
Me and my buds are trying to host a server, no guarantees on how long it will be up or how active admins will be, but we have some issues.

Our main problem is with setting the amount of bots voteable.
Code
set_num_bots_voteable 200
This command doesn't work with any number above 50...
Not setting it gives allows people to vote for up to 750 bots PER team, which would kill the server if abused.

Code
max_num_bots 200
This does nothing of note.

I'd like to make it so is not possible to vote bots into the first team, but allow up to 200 bots in the second team.

Is there a way to set custom costs for the build menu?
I'd like to use it to reduce plank spam and get rid of the earthwork, as it is generally only used to glitch.
« Last Edit: March 27, 2018, 12:07:20 am by Fortune »

Offline Thunderstormer

  • FSE Developer
  • ****
  • Posts: 6309
  • Worse than Hotler
    • View Profile
  • Side: Neutral
Re: Server Hosting Support
« Reply #16 on: March 28, 2018, 10:20:12 pm »
this mod can do its own things, but if its using the same or similar code as NW....

Spoiler
(else_try),
       (eq, ":input", 7),
       (assign, reg0, "$g_multiplayer_num_bots_voteable"),
       (str_store_string, s0, "str_bots_upper_limit_for_votes_is_reg0"),
     (else_try),
       (eq, ":input", 8),
       (try_begin),
         (is_between, ":val1", 0, 51),
         (assign, "$g_multiplayer_num_bots_voteable", ":val1"),
         #(store_add, "$g_multiplayer_max_num_bots", ":val1", 1),
         (assign, reg0, "$g_multiplayer_num_bots_voteable"),
         (str_store_string, s0, "str_bots_upper_limit_for_votes_is_reg0"),
         (try_for_players, ":cur_player", 1),
           (player_is_active, ":cur_player"),
           (multiplayer_send_int_to_player, ":cur_player", multiplayer_event_return_num_bots_voteable, ":val1"),
         (try_end),
       (else_try),
         (str_store_string, s0, "str_input_is_not_correct_for_the_command_type_help_for_more_information"),
       (try_end),
[close]
the code limits it to 50 which is why 200 doesn't work. 
about being able to to set it to 750 per team.  sounds like a possible bug.    i wasn't able to recreate it.  might be a issue with the mod?  is there not an initialized value at the start of the scripts file setting the voteable bot number to 50 in this mod?



Spoiler
# MM begin
      (try_begin),
        (eq, "$g_multiplayer_game_type", multiplayer_game_type_commander),.....more code below


        (create_text_overlay, reg0, "str_max_num_bots", 0),
        (position_set_x, pos1, 0),
        (position_set_y, pos1, ":cur_y"),
        (overlay_set_position, reg0, pos1),

        (create_number_box_overlay, "$g_presentation_obj_admin_panel_72", 50, 501),
        (position_set_x, pos1, ":number_box_x"),
        (position_set_y, pos1, ":cur_y"),
        (overlay_set_position, "$g_presentation_obj_admin_panel_72", pos1),
        (overlay_set_val, "$g_presentation_obj_admin_panel_72", "$g_max_num_bots"),
[close]
glancing at the present file, that command is for commander battle.  sounds like you are doing something other than commander battle, so the command wouldn't work.

some of the stuff you are asking for would need to be client and server side i believe, others can be worked around with a server side only change.
Should you need to talk to me regarding NA1 or or something regarding admining or the admins, PM me here on the forums and not on steam.  *

*This does not include Official Server Admins.