[M] Empires of Faith (ex-Caravan Raiders)

Users who are viewing this thread

Status
Not open for further replies.
I'll gladly put up the source code and walk anyone who's interested through it. It's pretty simple stuff, for the most part. Feel free to incorporate into mods, apply to different settings, tinker with behavior, etc.

Basically, the caravans go straight from A to B. The guards have a few variations in their actions depending on how close the enemy is.

The raiders don't target the caravans specifically, but until they're on the enemy side of the map their aggressiveness is set to very low, and they aim for the midpoint of the caravan route. If the raiders are wounded, they retreat to the caravan destination to heal.

There is no AI mesh for the desert map, although one would probably help -- assuming it covers the whole map. If it only covers part of the map, it will create complications.

I didn't add in too many scene props so as to keep the map big (which I like) and no stress on low-end machines.

For villlage raid mode, I was thinking that you would break into animal pens and then try to escort animals to your side of the map. Herding would be simplified -- stay close, and they'll go the right direction. Villages would have alert levels that would draw defensive patrols, so if raiders hang around too long they'll get overwhelmed. Torching a la Vikingr could be added for extra mayhem.
 
Actually, you can merge them all in one place like a Village War. I mean, there can be different ways to decrease the enemy's points like as you mentioned the Stealing Herd, others one would be;

-Burning House as i mentioned.
-Looting the Grainyard.
-Killing the Neutral NPC Villagers in villages which other team should protect.
-Raping Women. (?) (Nothing sappho, it is medieval)
-Killing NPC Guards.

Hmm, about the Caravan mode, i guess instead of choosing our own equipment and such, we should be a "trp_caravan_guard" to avoid the careful eyes of enemy, also if there is going to be a Leader. Anyone can pick him up in first second before others, so until death he may be kept in that role than another player can pick him up and so on...
 
He talked something about it his server running on Linux, and had to rename the mod to Caravan because Linux couldn't handle the space in the directory name. Something like that.
Also you not including a config file.  :razz:
 
Also you not including a config file

Ah -- I see now from reading that it's pretty good form to include one of those. Apologies. I'll prepare one up for the next upload.

Unfortunately, my connection is quite slow right now, so I have not been able to download the designated server files, including the config template. It sounds from the description that most of the info is specific to the server, but anyone else who tries to run it may need to know the game type:

multiplayer_game_type_trade_and_raid        = 8

Thanks for helping me out. I realize that devs really ought to know these things...

 
Great! Let me know how it works. Do you know why it was such a pain to get up on the server?

I'm the guy who tried to setup the server and actually, I would have two requests for your future release. First, please try to include a config file, as Kazzan told. Even if I configure the server to use the swadian and vaegir factions (which you replaced) and also to run map ruins, due to some yet unknown reason I'm in a kind of random generated plains with two similar factions. Now it is possible that I made some mistake during the faction config, but I think the map setup is ok. What much more interesting is, if I use the admin panel to restart the map, it suddenly works as it should have to.

By the way here is an unedited template for TDM. :smile:

#WARNING: Make sure that you change the capital values with proper ones.
#uncomment the line below when you set a valid administrator password
#set_pass_admin ADMINPASS
#if you have premium members, set a password for them, otherwise delete/comment out the line below
#uncomment the line below when you set a valid private password
#set_pass_private PRIVATEPASS
#uncomment the line below when you set a valid server name
#set_server_name SERVERNAME
#uncomment the line below when you set a valid welcome message
#set_welcome_message WELCOME MESSAGE
#Steam must be running in order to use valve anti cheat
#Also you must use the Steam version of the dedicated server in order to use this option
set_enable_valve_anti_cheat 1
#setting team deathmatch (multiplayer_tdm) mode
set_mission multiplayer_tdm
#setting max players, first one is non-premium member limit, second one is premium member limit
set_max_players 32 32
set_num_bots_voteable 20
set_map multi_scene_1
add_map multi_scene_2
add_map multi_scene_4
add_map multi_scene_7
add_map multi_scene_9
add_map multi_scene_11
add_map multi_scene_12
add_map random_multi_plain_medium
add_map random_multi_plain_large
add_map random_multi_steppe_medium
add_map random_multi_steppe_large
#adding all kingdoms to both sides just to randomize all of them
#adding less kingdoms will reduce the randomization set (used in set_randomize_factions command)
add_factions fac_kingdom_1 fac_kingdom_1
add_factions fac_kingdom_2 fac_kingdom_2
add_factions fac_kingdom_3 fac_kingdom_3
add_factions fac_kingdom_4 fac_kingdom_4
add_factions fac_kingdom_5 fac_kingdom_5
add_factions fac_kingdom_6 fac_kingdom_6
set_randomize_factions 1
#if the bottleneck is your server's bandwidth, then make sure that you set a correct value for upload limit
set_upload_limit 100000000
#if you are running more than one dedicated server on the same computer, you must give different ports to each of them
set_port 7240
#if you are running the Steam version of the dedicated server, this port must also be set, and same limitations of set_port apply for Steam port
set_steam_port 7241
set_server_log_folder Logs
set_server_ban_list_file Logs\ban_list.txt


The second request is related to the fact that I'm running the server on Linux. As far as I could figure out if the Module directory name doesn't match on the server and the client (player) machines, the game considers that the client doesn't have the proper mod installed. Since Linux cannot properly interpret spaces in file/directory names, it would be nice if you could name the Caravan Raiders mod's directory something like Caravan_Raiders. So on Linux servers there won't be any issue. Maybe there is a workaround I'm not aware of, so suggestions are appreciated.

By the way as soon as the first thing is fixed, I can run a dedicated server for the mod, and let me know if you would a server for testing the future releases and stuff.
 
Barny --

I really appreciate that -- first your putting it up, and secondly for letting me know how to configure things properly.

A dedicated server would be great, as well as help with testing. I'll try to get you a config file as quickly as possible. What should it be named?

With a _ in place of the space in the mod file on the server, will players need to change the name of the mod file to join the server? If so, I should simply rename the mod and re-upload it.
 
nijis said:
A dedicated server would be great, as well as help with testing. I'll try to get you a config file as quickly as possible. What should it be named?

Makes no sense, I think you should ignore all the server related parts of the config and focus on the map, factions, friendly fire, so the gameplay related ones. I will complete the rest of it (server stuff like port, etc), then send to you, so you can include it in the next release of the mod.

With a _ in place of the space in the mod file on the server, will players need to change the name of the mod file to join the server? If so, I should simply rename the mod and re-upload it.

Indeed, they need to change the mod directory. However, I think you should not change it now, as some people already downloaded the mod and I assume they will try to connect to the public server, if I setup one. They will get the error message, maybe they don't check this forum, so it will just lead to confusion. Please change it in the next mod release, then I will setup a public server and (hopefully) everybody will be happy. :smile:


EDIT:

The full list of server settings variables.

set_add_to_game_servers_list #sets if server is added to game servers list or not
set_auto_team_balance_limit #sets auto team balance threshold (2-7, 7 for unlimited)
set_ban_voteable #sets banning a player voteable or not
set_bot_count <team_no> <amount> #sets number of bots for the specified team
set_combat_gold_bonus <value> #sets combat gold bonus ratio (0-100)
set_control_block_direction <control_block_direction_index> #sets control block direction: 0=automatic, 1=by mouse movement
set_combat_speed <combat_speed_value> #sets combat_speed: 0=slowest, 2=average 4 = fastest
set_defender_spawn_count <value> #sets number of respawns allowed for defenders (0-6, 0 for unlimited)
set_disallow_ranged_weapons #sets if ranged weapons are allowed or not
set_enable_valve_anti_cheat #sets if valve anti cheat is enabled or not (0-1)
set_factions <faction_id/faction_name> <faction_id/faction_name> #sets the next factions for team 1 and team 2
set_factions_voteable <1 or 0> #sets factions voteable or not
set_force_default_armor <1 or 0> #sets if players are forced to wear at least the default armor or not
set_friendly_fire <1 or 0> #sets if friendly fire is enabled or not
set_friendly_fire_damage_friend_ratio <value> #sets the percentage of damage received by friend when player hits a friend (0-100)
set_friendly_fire_damage_self_ratio <value> #sets the percentage of damage received by self when player hits a friend (0-100)
set_ghost_mode <ghost_mode_index> #sets ghost mode: 0=free, 1=stick to any player, 2=stick to team members, 3=stick to team members' view
set_kick_voteable <1 or 0> #sets kicking a player voteable or not
set_map <map_id/map_name> #sets the next map
set_map_time_limit <value> #sets map time limit in minutes (5-120)
set_maps_voteable <1 or 0> #sets maps voteable or not
set_max_players <amount> <private_amount> #sets the maximum number of players that can join the server
set_melee_friendly_fire <1 or 0> #sets if melee friendly fire is enabled or not
set_mission <mission_id/mission_name> #sets the next mission
set_num_bots_voteable <amount> #sets bots upper limit for votes
set_pass [<password>] #sets login password for a regular player
set_pass_admin [<password>] #sets login password for admin privilege
set_pass_private [<password>] #sets login password for a private player
set_player_banners_allowed <1 or 0> #sets if player banners are allowed or not
set_player_respawn_as_bot <1 or 0> #sets players to spawn as bots or not
set_points_gained_for_capturing_flags <value> #sets points gained for capturing flags (0-10)
set_port <port> #sets the connection port for server
set_randomize_factions <1 or 0> #randomizes the faction results using the factions list
set_respawn_period <value> #sets respawn period
set_round_gold_bonus <value> #sets round gold bonus ratio (0-1000)
set_round_max_seconds <value> #sets maximum seconds for round
set_server_ban_list_file <file_name> #sets the ban list file, necessary for multiple servers running at the same folder
set_server_log_folder <folder_name> #sets the log folder, necessary for multiple servers running at the same folder
set_server_name <server_name> #sets server name displayed at servers list
set_starting_gold <value> #sets starting gold ratio (0-1000)
set_steam_port #sets the communication port for steam
set_team_point_limit <value> #sets team point limit (3-1000)
set_team_points_gained_for_flags <value> #sets the percentage multiplier to team points gained for flags (25-400)
set_upload_limit <limit> #sets upload limit for server
set_valid_vote_ratio #sets the percentage of 'yes' votes required for a poll to get accepted
 
I dont think i downloaded this correctly... :p

I dont get tha map you put and i have to place bots, and there are no caravans or such and everyone just attacks everyone like a deathmatch.
 
I didnt change anything. All it did was go to Ruins and nothing happened.
 
Barny,

I think I understand. From that list, the settings that are needed for the mod, and would not be specific to the individual server, I think would be the following:

set_mission multiplayer_trade_and_raid
#and no other missions
set_max_players 32 32
set_num_bots_voteable 0
set_map trade_and_raid_desert
#and no other maps
set_auto_team_balance_limit 2
set_combat_gold_bonus 0
set_force_default_armor 1
set_friendly_fire_damage_friend_ratio 0
set_friendly_fire_damage_self_ratio 100
set_round_gold_bonus 0
set_starting_gold 0

Everything else would be the same as Native, or particular to the server. (Ie, the port and the passwords). Is that correct?

Thanks again


Cez -- did you change anything on the admin panel, ie, select Ruins? Or was that the default option?
 
I know what happened now, The file i downloaded was incomplete and didnt have everything necesarry to run the game, allthoguh now i need a new native folder. :/
 
Already changed my module name when i tried to get on your server the other day ;D
 
Status
Not open for further replies.
Back
Top Bottom