Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cyberrumor/ammo
/ functions
Functions
515 in github.com/cyberrumor/ammo
⨍
Functions
515
◇
Types & classes
51
↳
Endpoints
33
↓ 82 callers
Function
install_mod
Helper function that installs a normal mod, then activates it and all plugins associated with it. Returns the index the mod inhabits.
test/bethesda/bethesda_common.py:288
↓ 50 callers
Method
do_find
Show only components with any keyword. Execute without args to show all.
ammo/controller/mod.py:794
↓ 48 callers
Function
install_mod
Helper function that installs a normal mod then activates it. Returns the index the mod inhabits.
test/mod/mod_common.py:304
↓ 42 callers
Method
activate_mod
Enabled mods will be loaded by game.
ammo/controller/mod.py:524
↓ 36 callers
Function
extract_mod
Helper function that installs a mod by name. Returns the index the mod inhabits.
test/bethesda/bethesda_common.py:272
↓ 33 callers
Method
do_commit
Apply pending changes.
ammo/controller/mod.py:690
↓ 32 callers
Method
move_mod
Larger numbers win file conflicts.
ammo/controller/mod.py:581
↓ 31 callers
Method
deactivate_mod
Diabled mods will not be loaded by the game.
ammo/controller/mod.py:556
↓ 29 callers
Method
do_install
Extract and manage an archive from ~/Downloads.
ammo/controller/mod.py:1060
↓ 28 callers
Method
cast_to_type
This method is responsible for casting user input into the type that the command expects.
ammo/ui.py:385
↓ 27 callers
Function
extract_mod
Helper function that installs a mod by name. Returns the index the mod inhabits.
test/mod/mod_common.py:288
↓ 24 callers
Method
do_refresh
Abandon pending changes.
ammo/controller/mod.py:727
↓ 23 callers
Method
delete_mod
Removes specified mod from the filesystem.
ammo/controller/mod.py:999
↓ 23 callers
Method
rename_mod
Names may contain alphanumerics, periods, and underscores.
ammo/controller/mod.py:913
↓ 17 callers
Method
delete_download
Removes specified download from the filesystem.
ammo/controller/mod.py:1036
↓ 14 callers
Method
activate_plugin
Enabled plugins will be loaded by the game.
ammo/controller/bethesda.py:665
↓ 13 callers
Method
delete_plugin
Removes specified plugin from the filesystem.
ammo/controller/bethesda.py:893
↓ 13 callers
Function
mod_installs_files
Expects the name of a file in Downloads, and a list of file paths that should exist after installation and commit, relative to the game's dir
test/bethesda/bethesda_common.py:164
↓ 13 callers
Method
stage
Responsible for assigning mod.conflict for the staged configuration. Returns a dict containing the final symlinks that would be insta
ammo/controller/mod.py:387
↓ 12 callers
Function
ignored
(*exceptions)
ammo/lib.py:23
↓ 12 callers
Function
mod_extracts_files
Expects the name of a file in Downloads, and a list of file paths that should exist, relative to the mod's installation directory.
test/bethesda/bethesda_common.py:101
↓ 12 callers
Method
move_plugin
Larger numbers win record conflicts.
ammo/controller/bethesda.py:725
↓ 11 callers
Method
autocomplete
(self, text: str, state: int)
test/test_ui.py:37
↓ 11 callers
Function
fomod_selections_choose_files
Configure a fomod with flags, using default flags if unspecified. Test that this causes all and only all of 'files' to exist, relative t
test/mod/mod_common.py:196
↓ 10 callers
Method
do_collisions
Show file conflicts for a mod. Mods prefixed with asterisks have file conflicts. Mods prefixed with x install no files.
ammo/controller/mod.py:739
↓ 10 callers
Method
do_delete
Removes specified component from the filesystem.
ammo/controller/mod.py:1045
↓ 10 callers
Function
fomod_selections_choose_files
Configure a fomod with flags, using default flags if unspecified. Test that this causes all and only all of 'files' to exist, relative t
test/bethesda/bethesda_common.py:186
↓ 10 callers
Function
mod_installs_files
Expects the name of a file in Downloads, and a list of file paths that should exist after installation and commit, relative to the game's dir
test/mod/mod_common.py:173
↓ 9 callers
Method
do_rename
Names may contain alphanumerics, periods, and underscores.
ammo/controller/mod.py:960
↓ 9 callers
Function
mod_extracts_files
Expects the name of a file in Downloads, and a list of file paths that should exist, relative to the mod's installation directory.
test/mod/mod_common.py:99
↓ 9 callers
Method
rename_download
Names may contain alphanumerics, periods, and underscores.
ammo/controller/mod.py:904
↓ 8 callers
Method
deactivate_plugin
Disabled plugins will not be loaded by the game.
ammo/controller/bethesda.py:698
↓ 8 callers
Method
do_configure
Configure a fomod.
ammo/controller/mod.py:864
↓ 6 callers
Method
repl
Read, execute, print loop
ammo/ui.py:418
↓ 6 callers
Method
set_mod_state
Activate or deactivate a mod.
ammo/controller/mod.py:362
↓ 5 callers
Method
do_activate
Enabled mods will be loaded by the game.
ammo/controller/mod.py:537
↓ 5 callers
Method
do_deactivate
Disabled mods will not be loaded by the game.
ammo/controller/mod.py:569
↓ 5 callers
Method
do_move
Larger numbers win file conflicts.
ammo/controller/mod.py:609
↓ 5 callers
Function
extract_tool
Helper function that installs a tool by name. Returns the index the tool inhabits.
test/test_tool_controller.py:31
↓ 5 callers
Function
install_everything
Helper function that installs all extraction-worthy archives from downloads, then activates all mods and plugins.
test/bethesda/bethesda_common.py:247
↓ 4 callers
Method
complete
(self, text: str, state: int)
test/mod/test_autocomplete.py:325
↓ 4 callers
Method
complete
(self, text: str, state: int)
test/bethesda/test_bethesda_autocomplete.py:355
↓ 4 callers
Method
do_sort
Arrange plugins by mod-order.
ammo/controller/bethesda.py:830
↓ 4 callers
Method
get_custom_games
Find manually configured games and yield them as GameSelections. conf_dir is like /path/to/.local/share/ammo/
ammo/controller/game.py:273
↓ 4 callers
Method
get_flags
Expects a dictionary of fomod install steps. Returns a dictionary where keys are flag names and values are flag states.
ammo/controller/fomod.py:252
↓ 4 callers
Function
install_everything
Helper function that installs extraction-worthy archives from downloads, then activates all mods.
test/mod/mod_common.py:267
↓ 4 callers
Method
populate_commands
Populate self.command with Command objects that represent public methods of self.controller.
ammo/ui.py:152
↓ 4 callers
Method
set_plugin_state
Activate or deactivate a plugin. If a mod with plugins was deactivated, remove those plugins from self.plugins if they aren't
ammo/controller/bethesda.py:638
↓ 3 callers
Method
flags_match
Compare actual flags with dependency flags to determine whether the plugin associated with dependency should be included. Re
ammo/controller/fomod.py:266
↓ 3 callers
Method
get_nodes
Returns a flat list of xml folder nodes that matched configured flags.
ammo/controller/fomod.py:320
↓ 3 callers
Method
install_files
Copy the chosen files 'selected_nodes' from given mod at 'index' to that mod's game files folder.
ammo/controller/fomod.py:387
↓ 3 callers
Method
manage_game
Gather paths for the game at <index>. Create an instance of ModController for that game, then run it under the UI.
ammo/controller/game.py:335
↓ 3 callers
Method
populate_downloads
Populate self.downloads.
ammo/controller/download.py:29
↓ 3 callers
Method
populate_files
Populate self.files
ammo/component.py:121
↓ 3 callers
Method
select
Toggle the 'selected' switch on appropriate plugins. This logic ensures any constraints on selections are obeyed.
ammo/controller/fomod.py:289
↓ 2 callers
Method
add_tag
Associate a tag with a mod.
ammo/controller/mod.py:621
↓ 2 callers
Function
casefold_path
Prevent folders with the same name but different case from being created. parent_path is like Path("/tmp/MockGame") relative_path is
ammo/lib.py:30
↓ 2 callers
Function
check_links
(expected_game_file, expected_mod_file)
test/mod/test_conflict_resolution.py:49
↓ 2 callers
Function
check_links
(expected_game_file, expected_mod_file)
test/bethesda/test_bethesda_conflict_resolution.py:65
↓ 2 callers
Method
clean_game_dir
Removes all links and deletes empty folders.
ammo/controller/mod.py:438
↓ 2 callers
Method
do_refresh
Abandon pending changes.
ammo/controller/download.py:43
↓ 2 callers
Method
enabled_formula
(line)
ammo/controller/game.py:356
↓ 2 callers
Method
extract_archive
Extract an archive and return the Path of the directory it was extracted to.
ammo/controller/download.py:79
↓ 2 callers
Method
get_visible_pages
Returns a list of only fomod pages that should be visible, determined by current flags.
ammo/controller/fomod.py:306
↓ 2 callers
Method
has_extra_folder
The only assumption that the generic mod.controller can reasonable make about whether extracted mods have an extra folder between the
ammo/controller/mod.py:452
↓ 2 callers
Method
install
Common logic for do_install to rely on. This should be able to install tools, mods, etc.
ammo/controller/download.py:120
↓ 2 callers
Method
populate_index_commands
Hack to get dynamically allocated methods which are named after numbers, one for each selectable option.
ammo/controller/fomod.py:148
↓ 2 callers
Method
remove_empty_dirs
Removes empty folders.
ammo/controller/mod.py:428
↓ 2 callers
Method
remove_tag
Remove a tag association from a mod.
ammo/controller/mod.py:636
↓ 2 callers
Method
rename_tool
Names may contain alphanumerics, periods, and underscores.
ammo/controller/tool.py:215
↓ 1 callers
Method
__init__
(self, downloads_dir: Path, game: Game | BethesdaGame)
ammo/controller/download.py:23
↓ 1 callers
Method
__init__
(self, downloads_dir: Path, game: Game | BethesdaGame)
ammo/controller/tool.py:35
↓ 1 callers
Method
__init__
( self, downloads_dir: Path, game: Game, *keywords, interface_mode=Int
ammo/controller/mod.py:66
↓ 1 callers
Method
__post_init__
Validate that all paths are absolute.
ammo/controller/game.py:47
↓ 1 callers
Method
activate_mod_all
(self)
ammo/controller/mod.py:510
↓ 1 callers
Method
activate_plugin_all
(self)
ammo/controller/bethesda.py:659
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/test_ui.py:117
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/test_ui.py:175
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/test_ui.py:233
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/mod/test_autocomplete.py:31
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/mod/test_autocomplete.py:126
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/mod/test_autocomplete.py:225
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/bethesda/test_bethesda_autocomplete.py:37
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/bethesda/test_bethesda_autocomplete.py:140
↓ 1 callers
Method
complete
(self, text: str, state: int)
test/bethesda/test_bethesda_autocomplete.py:242
↓ 1 callers
Method
deactivate_mod_all
(self)
ammo/controller/mod.py:549
↓ 1 callers
Method
deactivate_plugin_all
(self)
ammo/controller/bethesda.py:692
↓ 1 callers
Method
delete_mod_all
(self)
ammo/controller/mod.py:974
↓ 1 callers
Method
delete_tool
Removes specified file from the filesystem.
ammo/controller/tool.py:260
↓ 1 callers
Method
do_find
Show only components with any keyword. Execute without args to show all.
ammo/controller/bethesda.py:767
↓ 1 callers
Method
do_refresh
Scan for tools in the tool folder.
ammo/controller/tool.py:317
↓ 1 callers
Function
expect_files
Raise an error if any files are missing or if files that weren't provided exist.
test/mod/mod_common.py:141
↓ 1 callers
Function
expect_files
Raise an error if any files are missing or if files that weren't provided exist.
test/bethesda/bethesda_common.py:133
↓ 1 callers
Method
find_module_conf
Recursively scan for a ModuleConfig.xml file and return the absolute path to it.
ammo/component.py:77
↓ 1 callers
Method
func
(self, i=i)
ammo/controller/game.py:328
↓ 1 callers
Method
get_mods
(self)
ammo/controller/mod.py:99
↓ 1 callers
Method
get_pages
Get a representation of every install step for this fomod.
ammo/controller/fomod.py:166
↓ 1 callers
Method
populate_index_commands
Hack to get methods named after numbers, one for each selectable option.
ammo/controller/game.py:321
↓ 1 callers
Method
populate_mods
Populate self.mods in the correct order.
ammo/controller/mod.py:111
↓ 1 callers
Method
postcmd
This function is executed after every command. It returns whether the UI should break from repl.
ammo/ui.py:62
next →
1–100 of 515, ranked by callers