OSP Code SP The World Map to show the exact realm of factions

AimedCanada

Recruit
Best answers
0
I can't get it to work it always get a AGGREGATOR error  :sad:.
here is the error code :
MODULE game_menus AGGREGATOR ERROR:
failed to compile code for menu item action_view_world_map in menu reports (#4)
  command [900, 1, 'prsnt_world_map'] compilation fails in mnu.reports(#4).mno_action_view_world_map.choice on line 1
    failed to parse operand 'prsnt_world_map' for operation start_presentation in mnu.reports(#4).mno_action_view_world_map.choice on line 1
      illegal reference `prsnt.world_map`
 

AimedCanada

Recruit
Best answers
0
In module_game_menus.py, everything works if i don't put the code indicated in the tutorial (all other code in the tutorial works).
 

Dj_FRedy

Duke
M&BWBNWVCWF&S
Best answers
14
Actually there are two files to modify.

1.- In 'module_presentations.py':
search at the beginning of the file:
Code:
from module_constants import *
add below:
Code:
from header_terrain_types import *
search at the end of the file:
Code:
    (ti_on_presentation_run, [
      (is_presentation_active, "prsnt_multiplayer_ccoop_next_wave_time_counter"),      
      (presentation_set_duration, 0), 
      ]),
    ]),
    #INVASION MODE END
add below:
Code:
 ("world_map", 0, mesh_load_window, [
    (ti_on_presentation_load,
      [
         bla, bla, bla rest of the code

2.- In 'module_game_menus.py':
search
Code:
      ("view_faction_relations_report",[],"View faction relations report.",
       [(jump_to_menu, "mnu_faction_relations_report"),
        ]
       ),
      ("resume_travelling",[],"Resume travelling.",
       [(change_screen_return),
        ]
       ),
add below:
Code:
      ("action_view_world_map",[],"View the world map.",
       [
        (start_presentation, "prsnt_world_map"),
        ]
       ),