B Tutorial Scenes Quick Scene Chooser

Users who are viewing this thread

Is it working? Please let me know as I've been known to put up the wrong files/code in the past  :grin:
 
Version 2 is up! Now lists scene flags with next to each scene. If you are updating be sure to both download the new file and copy-paste over the old code in game_menus.py.
 
Apologies! Posted code now works. The forum was interpreting the bracketed i's in the code as italics tags. Now it's enclosed in a nice safe code block  :razz:
 
Well...

I keep getting this syntax but I can't seem to figure out why.

This I added in the beginning.
from header_game_menus import *
from header_parties import *
from header_items import *
from header_mission_templates import *
from header_music import *
from header_terrain_types import *

from module_constants import *
from header_scenes import*
from template_tools import*
from module_scenes import*


(
    "auto_return_to_map",0,
    "stub",
    "none",
    [(change_screen_map)],
    []
  ),
 
  ##############################
  #Scene chooser begin
  ##############################
 
  sorted_scenes = sorted(scenes)
for i in xrange(len(sorted_scenes)):
  current_scene = list(sorted_scenes)
  current_scene[1] = get_flags_from_bitmap(header_scenes, "sf_", current_scene[1])
  sorted_scenes = tuple(current_scene)

choose_scene_template = Game_Menu_Template(
  id="choose_scenes_",
  text="Choose a scene: (Page {current_page} of {num_pages})",
  optn_id="choose_scene_",
  optn_text="{list_item[0]}{list_item[1]}",
  optn_consq = [
    (jump_to_scene, "scn_{list_item[0]}"),
    (change_screen_mission)
  ]
)

game_menus += choose_scene_template.generate_menus(sorted_scenes)
 
  ##############################
  #Scene chooser end
  ##############################
 
 
]


Here is the compile error.

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9942
    sorted_scenes = sorted(scenes)
                        ^
SyntaxError: invalid syntax

______________________________

Script processing has ended.
Press any key to exit. . .
 
Python code is sensitive of indentation. The expression sorted_scenes = sorted(scenes) should not be indented. Try copy-pasting again and keep the indentation as it is in the posted code. No need to reformat it or move the import statements to the top.
 
I copied everything exactly as it says but...

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9940
    import header_scenes
        ^
SyntaxError: invalid syntax

______________________________

Script processing has ended.
Press any key to exit. . .



("custom_battle_scenario_6",[],"Siege Attack",
      [
          (assign, "$g_custom_battle_scenario", 4),
          (jump_to_menu, "mnu_custom_battle_2"),

        ]
      ),
################
#Scene chooser
################
  ("choose_scene",[],"Scene Chooser",
  [(jump_to_menu, "mnu_choose_scenes_0"),]
),

################
#Scene Chooser
################
 
 
      ("go_back",[],"Go back",
      [(change_screen_quit),
        ]
      ),
    ]
  ),


"auto_return_to_map",0,
    "stub",
    "none",
    [(change_screen_map)],
    []
  ),
 
  ##############################
  #Scene chooser begin
  ##############################
 
  import header_scenes
from template_tools import *
from module_scenes import scenes

sorted_scenes = sorted(scenes)
for i in xrange(len(sorted_scenes)):
  current_scene = list(sorted_scenes)
  current_scene[1] = get_flags_from_bitmap(header_scenes, "sf_", current_scene[1])
  sorted_scenes = tuple(current_scene)

choose_scene_template = Game_Menu_Template(
  id="choose_scenes_",
  text="Choose a scene: (Page {current_page} of {num_pages})",
  optn_id="choose_scene_",
  optn_text="{list_item[0]}{list_item[1]}",
  optn_consq = [
    (jump_to_scene, "scn_{list_item[0]}"),
    (change_screen_mission)
  ]
)

game_menus += choose_scene_template.generate_menus(sorted_scenes)
 
  ##############################
  #Scene chooser end
  ##############################
 
 
]
 
Look at the posted code. It's been fixed since you last copied it. The forum software was interpreting the i's in brackets as italics.
 
Well I got another syntax.

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\process_
operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Program\Mount&Blade\Modules\Age Of Flesh\Module\ModuleSystem\module_g
ame_menus.py", line 9932
    import header_scenes
        ^
SyntaxError: invalid syntax

______________________________

Script processing has ended.
Press any key to exit. . .

I think I'm gonna wait for the tutorial.

Thanks anyway.
 
The tutorial will only address how to create your own game menu templates, not how to copy-paste the code correctly. From what I saw of the code you posted above, you've indented that import statement. It shouldn't have any form of indentation.
 
ok, I got this working and it works well, thanks!    I did have two problems that were more my fault then anything tho.

a) I had Python 2.5 installed so I downloaded and installed 2.6, but it still wouldn't work....  It was because my PATH environment variable was still pointing to the 2.5 folder and I had to switch it to 2.6
a)  I initially didn't realize you wanted me to put the got at the VERY bottom of module game menu's.  I tried putting it right before the last bracket in the file and got all sorts of errors at first.

anyway, this is very cool, thanks!
 
I actually had the problem with the PATH environment variable as well. I'll put that on the main installation notes.
 
Lord British said:
Hey there!

I'm experiencing the next problem:

8y9O6c3rS3.jpg
Using Python 2.6. Please help if you can. Thanks beforehand.

Kindest Regards, LB.

I've got the same error. Someone to help?
 
Hello Lumos,

Have you updated to the new version yet? The bug that Lord British had was from an earlier version. Also, are you sure that you put the code after the final bracket in module_game_menus.py
 
HokieBT said:
ok, I got this working and it works well, thanks!    I did have two problems that were more my fault then anything tho.

a) I had Python 2.5 installed so I downloaded and installed 2.6, but it still wouldn't work....  It was because my PATH environment variable was still pointing to the 2.5 folder and I had to switch it to 2.6
a)  I initially didn't realize you wanted me to put the got at the VERY bottom of module game menu's.  I tried putting it right before the last bracket in the file and got all sorts of errors at first.

anyway, this is very cool, thanks!

Are you sure? That sounds odd. I've never heard of something like that. I'll try and then come back.


-EDIT-

It worked. If I pasted it all AFTER the last bracket. Very odd but it worked.
I believe you should note that in the OP. Just incase anyone encounters the same problem as me.
 
I may at some point in the future write a little Python script that will append the necessary code to the bottom of module_game_menus.py to make things simpler. File i/o can be a little tricky I feel though so I want to make sure I get it right.
 
Back
Top Bottom