Flying Squirrel Entertainment

Mount & Blade Warband: Napoleonic Wars => The Anglo-Zulu War => Released Modifications => Servers => Topic started by: Flash on January 17, 2013, 11:49:18 pm

Title: Server Hosting Support
Post by: Flash on January 17, 2013, 11:49:18 pm
(https://www.fsegames.eu/forum/proxy.php?request=http%3A%2F%2Fi1340.photobucket.com%2Falbums%2Fo739%2Fthomasthelloyd%2FAZW.png&hash=a6431488441c506a9c2f4e255dacaa1a646eb1ad)
S E R V E R   H O S T I N G   S U P P O R T


Hello. There's been a lot of questions about it so I'm going to make a thread to support server hosters with first time set up and other troubleshooting, as well as
to give the devs a thread to get feedback from server owners. Please read the thread before posting problems and note that we cannot resolve actual problems
with your server, as that is between you and your server provider. We can however offer advice and support with running the mod itself.




First Time Setup
  • Upload the folder "The Anglo Zulu war" from your PC's modules folder (found in your mount & blade directory) to the modules folder on your server. Either use an FTP program to transfer all of the individual files or zip up the folder and upload it using an admin web panel (if your server hoster provides one).
  • Make a copy of the text file NW Sample Battle.txt and rename it. For this example, I will use ZULUconfig.txt.
  • Open ZULUconfig.txt and edit the values in there to your preference (Server Name, admin password etc). Note that the server name cannot contain spaces or special characters.
  • Navigate to the section of the config that deals with factions, and change it to match the code shown below*.
  • If you want the config file to control more advanced options that aren't already in the sample config, then see the readme.txt that is included in the same directory as the configs.
  • Save the ZULUconfig.txt and close it.
  • Now that the config file and mod are installed, all that remains is for you to change the command line that starts your server. See the "Command Line" below**. (Note: This part differs depending on your server provider. If you are unable to change the command line yourself, submit a support ticket asking them to do it for you.
  • If you are hosting it from a dedicated server box that you own and manage yourself, or a locally hosted server (on your PC), then you'll need to create an exception in the server/pc firewall and/or your router's firewall if locally hosted.

*Factions Config
Spoiler
#adding all nations to both sides just to randomize all of them
#adding less nations will reduce the randomization set (used in set_randomize_factions command)
add_factions fac_britain fac_britain
add_factions fac_russia fac_russia
set_randomize_factions 1
[close]

**Command Line
Spoiler
-r ZULUconfig.txt -m The Anglo Zulu war
[close]
(https://www.fsegames.eu/forum/proxy.php?request=http%3A%2F%2Fi1340.photobucket.com%2Falbums%2Fo739%2Fthomasthelloyd%2Fvertrule2.png&hash=378cba627fc00f19a1f30f7d4e6160bfacba4ea3)Useful Programs & Links

FTP Clients
Filezilla - http://filezilla-project.org/
SmartFTP - http://www.smartftp.com/
FireFTP (Firefox Extension) - http://fireftp.mozdev.org/
Cyberduck (Mac OS X) - http://cyberduck.ch/

Custom Maps
Military Outpost (by Gokiller) - https://www.fsegames.eu/forum/index.php?topic=2145.0
Battle for Humbleberry Station (by Sir_Connor) - https://www.fsegames.eu/forum/index.php?topic=2080.0
Rorke's Drift & Colonial Outpost (by Av3ng3r) - https://www.fsegames.eu/forum/index.php?topic=2226.0
94th Regiment Maps (by Crash R Us) - https://www.fsegames.eu/forum/index.php?topic=2049.0

Informational Threads & Useful Tools
NW Server Hosting Thread - https://www.fsegames.eu/forum/index.php?topic=11.0
Guide to Mapping on NW - http://forums.taleworlds.com/index.php/topic,228008.0.html
Terrain Code Generator - http://mbcommands.ollclan.eu/terrain/


More information to come on different aspects of server hosting.
Title: Re: Server Hosting Support
Post by: Flash on January 17, 2013, 11:52:32 pm
Reserved.
Title: Re: Server Hosting Support
Post by: Flash on January 17, 2013, 11:53:01 pm
Reserved again. (I'm greedy.)
Title: Re: Server Hosting Support
Post by: FAULTYscotsman on January 18, 2013, 12:00:11 am
Reserved again. (I'm greedy.)

Greedy :(
Title: Re: Server Hosting Support
Post by: Romulus on January 21, 2013, 07:43:17 pm
I'm hosting from my PC where do i add the Command line at?

-r ZULUconfig.txt -m The Anglo Zulu war

Title: Re: Server Hosting Support
Post by: Flash on January 21, 2013, 08:36:56 pm
I'm hosting from my PC where do i add the Command line at?

-r ZULUconfig.txt -m The Anglo Zulu war

You should have a .bat file called "XXXX start".
Title: Re: Server Hosting Support
Post by: Romulus on January 22, 2013, 02:33:47 am
I'm hosting from my PC where do i add the Command line at?

-r ZULUconfig.txt -m The Anglo Zulu war

You should have a .bat file called "XXXX start".

Many thanks
Title: Re: Server Hosting Support
Post by: makinbakin123 on February 04, 2013, 03:08:01 am
I'm also hosting from my computer. Where do I find the .bat file?
Title: Re: Server Hosting Support
Post by: Flash on February 04, 2013, 10:49:24 am
I'm also hosting from my computer. Where do I find the .bat file?

You have to make one yourself.
Title: Re: Server Hosting Support
Post by: makinbakin123 on February 04, 2013, 10:17:28 pm
How?
Title: Re: Server Hosting Support
Post by: Flash on February 04, 2013, 11:59:28 pm
Notepad. Save it as a .bat file instead of a text file.
Title: Re: Server Hosting Support
Post by: LowLatencyServers on October 13, 2015, 02:38:42 pm
Is there a zip version of the Module files for dedicated servers to use?
The .exe installer can't be extracted and we're having issues getting it to run on our non servers running Windows 8 and 10.
Very popular mod! Great work Anglo Zulu 1.0 Reloaded devs!
Title: Re: Server Hosting Support
Post by: appleorgasm on January 15, 2016, 02:58:26 pm
Is there a zip version of the Module files for dedicated servers to use?
The .exe installer can't be extracted and we're having issues getting it to run on our non servers running Windows 8 and 10.
Very popular mod! Great work Anglo Zulu 1.0 Reloaded devs!
The most popular windows OS for server hosting is typically 2012 r2  and works very well for warband hosting related in my experiences.
Title: Re: Server Hosting Support
Post by: lapje on February 09, 2017, 10:50:47 pm
Instead of zulu's i get naked white men without weapons attacking.

Anyone got a fix for this?
Title: Re: Server Hosting Support
Post by: Aternox on February 10, 2017, 06:08:57 pm
That usually happens if you have the 2nd Faction (Team) set as Prussia, Russia or Austria (which aren't used factions in the mod). Make sure Faction/Team 2 is set to Zululand
Title: Re: Server Hosting Support
Post by: Fortune 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.
Title: Re: Server Hosting Support
Post by: Thunderstormer 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.