Adding to Multiplayer
There are three files that must be edited in order for the map to be accessed on the MP-side of the game. These are module_scenes, module_strings and module_scripts.
Do the following edits:
module_scenes - This file has already been edited accordingly. We added it above as a step towards placing it as a choice in the Quick Scene Chooser.
module_strings - Search for ("multi_scene_1", "Ruins"), and scroll to the bottom of this list. Again, copy the last line and edit it accordingly. The first part of code must be identical to the name of the scene that you gave in module_scenes, the second part may be capitalized as this is the name that appears in-game. Important: Ensure that you place this in the same order as in module_scenes. If it follows scenexx_ there, make sure that it follows scenexx_ here too.
module_scripts - This is the final file. Search for (eq, ":game_type", multiplayer_game_type_team_deathmatch),. Now, you must look for the code beneath this that runs as (troop_set_slot, "trp_multiplayer_data", multi_data_maps_for_game_type_begin + 1, "scn_ruins"),. Simply copy any of these lines and paste it before this appears (assign, ":num_maps", 13),. Again, it must follow the same order of maps as the other two files. You must also increment the number that I have highlighted in red by one.
Here is an example:
Quote
(troop_set_slot, "trp_multiplayer_data", multi_data_maps_for_game_type_begin + 7, "scn_mp_colorado"),
(troop_set_slot, "trp_multiplayer_data", multi_data_maps_for_game_type_begin + 8, "scn_mp_prairie_ridge"),
(troop_set_slot, "trp_multiplayer_data", multi_data_maps_for_game_type_begin + 9, "scn_coahuila"),
(troop_set_slot, "trp_multiplayer_data", multi_data_maps_for_game_type_begin + 10, "scn_mountain_fort"),
Note how every line has a number higher than the previous one. You must also increment the (assign, ":num_maps", 13), by one. The first part of code that you searched for is to add the game to Deathmatch. Look below this and you will see the other game-types.
(eq, ":game_type", multiplayer_game_type_destroy), and (eq, ":game_type", multiplayer_game_type_battle).
Once you have added your maps to the gametypes of your choice, save, exit and compile! Your maps should now appear under the Host Multiplayer admin panel.