Skip to content
sl5netPublic

Latest commit

 

History

1,307 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♇ AutoCivP plus some goodies

is mod for https://play0ad.com/download/

Thanks to Nani (most source is from Nani)

Thanks to all the 0 A.D. players who found it useful.

  • General
    • Help command: type /help <search>, type /help then tab to see available commands. You can also use special search patterns called regular expressions, (or regEx for short, to search for commands).
    • Jitsi commands: type j to create and send a jitsi-audioChat-link
    • open links alias: type li to open a link.
    • type to see available commands that you have already used (history is saved into user.cfg).
    • some other little commands that works like: type command

Hands-Free & Accessibility Features

This mod includes a suite of advanced accessibility features designed to enable fully hands-free, vocal-control gameplay (integrated with SL5 Aura). These additions solve major real-time strategy (RTS) accessibility barriers, such as precise mouse coordinate navigation, target-clicking, and camera panning.

These features run natively on the user-interface (GUI) side, ensuring complete stability and compatibility with other interface modifications.

Key Features

1. Single-Key Town Alert Toggle (Vocal Command: "Alarm / Entwarnung")

  • Key: ö (keysym 246)
  • How it works: Instead of forcing the player to manually select a Civil Centre and click the "Raise Alert" button, pressing this hotkey instantly toggles the alert state across all own Civil Centres on the map. The player's active unit selection remains completely unaffected.

2. Multi-Tap Resource Gathering (Vocal Command: "Holz / Beeren / Fleisch")

  • Key: + (keysym 43 - customizable)
  • How it works: This feature implements a multi-tap (click-counting) system on a single hotkey to assign selected gatherers to the nearest resources without using a mouse. When selected workers are active:
    • 1x Tap: Finds the nearest tree within 150m and commands them to gather Wood.
    • 2x Taps: Finds the nearest fruit bush within 150m and commands them to gather Fruit/Berries.
    • 3x Taps: Finds the nearest wild animal within 150m and commands them to hunt Meat.

3. Relative Directional Unit Navigation (Vocal Command: "North / South / East / West / ...")

  • Keys: Numpad 1 to 9 (keysyms 1073741913 to 1073741921)
  • How it works: Moves selected units in 100-meter steps relative to their current average position in any of the 8 compass directions. It uses a mathematical diagonal-offset scaling (0.707) to ensure uniform step sizes in all directions. No screen coordinates or clicks are required.

4. Screen-Space Relative Camera Navigation (Vocal Command: "Camera North / ...")

  • Keys: Alt (keysym 1073742050) + Arrow Keys
  • How it works: Moves the camera in large 100-meter jumps. It calculates the camera's ground focal point via Engine.GetCameraPivot() and its rotation yaw via Engine.GetCameraRotation(). By applying a 2D rotation matrix with an inverted yaw angle, arrow key panning directions remain perfectly aligned with screen-space (e.g., pressing Up always pans the camera straight up), regardless of the camera's current rotation angle.

Voice Control & SL5 Aura Integration

These shortcuts are mapped to be seamlessly controlled via spoken commands using the SL5 Aura vocal service. You can find the corresponding open-source configurations and voice plugins Examples here:

autoCivP and AutoCiv

autoCivP

participation is welcome. are you a developer or want to become one?

This mod is an aggregation of features meant to enhance the 0 A.D. game experience. I usually implement these extra features as they come up with no general plan in mind.

Feature list added by autocivP (most features from autociv )

  • General
    • Help command: type /help matchWord to see all available commands. Also possible to use regEx searchpattern.
    • Jitsi commands: type j to create and send a jitsi-audioChat-link
    • open links alias: type li to open a link.
    • type to see available commands that you have already used (history is saved into user.cfg).
    • some other little commands that works like: type command
  • Wider Array of chat commands
  • Jitsi (Voice Chat)
    • it makes sure that all team members use the same jitsi-chat
  • map-profiles ( https://wildfiregames.com/forum/uploads/monthly_2023_07/Screenshot_20230725_150411.jpg.a954e52a74bb8dd0400c20e205933b61.jpg )
  • mod-profiles ( https://youtu.be/pt3VGm4N_Cw )
  • mod-profiles: don't need to change your map config anymore when we have changed our mod config: https://wildfiregames.com/forum/topic/107371-autocivp-add-ons-profiles-jitsi-team-call/#comment-553794
  • Reuse Drafts: Your last chat message or the last chat message you received. Easy to select a portion and simple to copy. Type Tab in an empty chat.
  • Auto-save Drafts in Chat: Never Lose Your Message Again! when you use hotkey for toggle beetween allies-room to all-room content or back. This feature ensures that the content of a chat message is not lost if it has not been sent yet. Instead, the content is saved and can be retrieved even if the user navigates away from the chat screen before sending the message. This can be useful to prevent users from losing their work in progress.
  • msg2 copies 2 messages greater than 8. For example, now it's much easier to copy them to a translator app and translate them into our language.
  • setup all defaults by type into the chat: feature value
  • and More...

Feature list Autociv

  • General
    • Readme: press Shift + F4 to open
    • Player mute
    • Player reminder (show a written note when a certain player joins) ***
    • Link opener (opens URL links from the chat)
    • Help command: type /help to see all available commands
    • Console with autocomplete (Ctrl + C + L)
  • Lobby
    • Resize bars
    • Host name mark
    • Remember playerlist state
    • Better performance when reloading lobby
    • Shortcuts to create host, navigate gamelist
    • Write s?search_text_here at the chat input to search lobby chat (dont enter just type). e.g. s?anna|bob shows all entries contains anna or bob
  • Game setup - Auto-assign civilization with chat (Only works if host has the mod). To temporarily disable case-insensitive auto-completion and have more precise control over civilization assignment, use an uppercase letter.
    • List predefined game configurations: use /help or /help with search patterns to find game configurations. For example: /help /p\n+
    • Custom population limit
    • Custom starting resources
    • Custom map size
    • Countdown to start the game ( also see moddata/countdown_messages.txt )
  • Maps
    • Skirmish:
      • Volcano island (8)
  • In Game
    • Hotkeys for (see hotkeys with hotkey viewer)
      • Buildings placement
        • Multiple buildings per hotkey (optional, user.cfg)
          • How to use: Copy the hotkey you want and remove the "hotkey." prefix, next replace the hotkey key for the buildings you want to cycle and separate them by a space.
      • Buildings selection
      • Units selection
      • Formations (selected units)
      • Stances (selected units)
      • Auto-train (selected buildings)
      • Minimap expand
      • Custom selection filters by:
        • health
        • rank
        • class
        • group
        • screen
    • Stats overlay
    • Pause game overlay now shows only in the top area
  • Settings
    • Max corpses visible

more intuitive hotkey feature (optional)

since 0ad A24 (was in other mod) intuitive hotkey feature are developed

you can't remember the hotkeys?

You can use single letters to build.

try this:

FirstLetter of the Building (press several times for toggling) ==> build the Building

Ctrl+FirstLetter of the Building ==> selects Building or the Buildings

ALT+FirstLetter of the Creature ==> selects Creature or Creatures

intuitive h. examles:

space = jump/toggle last attack

build examles:

h = build house
m = build markt
b = build backack
f = build farm
f,f = build farmstead
f,f,f = build fortress
.... etc. understand?

select buildings examles:

ctrl+ h = select house
ctrl+ m = select markt
ctrl+ b = select backack
ctrl+ f = select farm
Ctrl+ s = select Storehouse Ship Stable ElephantStable Dock ...
Ctrl+ X = select Barracks + ElephantStable + Stable (remember X like nearly everything)
... etc.


select Creatures examles:

alt+ W = select woman
alt+ I = select infrantrie
Alt+ P = select Pikeman, Spearman, Fanatic
Alt+ C = Cavalry
Alt+ A = Archer, Elephant&Archer, Slinger Javelineer, ...
Alt+ S = Swordman , ..
Alt+ E = Elephant for Support
Alt+ K = Catapult (exceptions becouse of conflict)
Alt+ H = Healer
J = wounded (exceptions becouse near Healer)
k = selects only nowoundedonly using mouse
.... etc. understand?

exceptionally other spellings:

this selects all >D<angerous E. archer-,war-,hero-Elephant,... (not Support&Elephant):

Alt+ D = Dangerouse Elephants
Alt+ V = Siege and Ministers (Siege: rams, not heros, Catapult, Bolt Shooter, Siege Tower ...)
Alt+ M, Alt+X = select all military ( nowoundedonly )
Alt+ N = select all non military
... etc. please tell if you missing something

https://youtu.be/MSnrCGFqxjo

select Barracks + ElephantStable + Stable) "Ctrl+X" (remember X like nearly everything)

Barracks, ElephantStable ,Stable = "Ctrl+X"

this selects only nowoundedonly using mouse (May think about oK. he is ok or so):

hotkey.autociv.selection.nowoundedonly = "K"

this selects only woundedonly using mouse (think about: Lie down to bed better to geht healty again):

hotkey.selection.woundedonly = "L"

selects diplomacy with < (think about: give out, move resources to your partners):

diplomacy.toggle = "<"

Howto find the names? i use create map scenario editor

BTW cant find WarElephant into the scenario editor

and taka a long in your user.cfg

compare iHot (intuitive hotkeys) (optional) and niHot (non intuitive hotkeys) (optional)

intuitive hotkeys Action non intuitive hotkeys
H build house Space + H
M build market Space + M
B build backpack Space + B
F build field Space + F
F, F build farmstead Space + G
F, F, F build fortress Space + R
D build dock Space + J
D, D build defense_tower
E build elephant_stables
A build arsenal
A, A build ArmyCamp
A, A, A build Assembly
A, A, A, A build AmphitheaterPompeii
A, A, A, A, A build Arch
Ctrl + firstletter should work with all buildings
Ctrl + H select house Ctrl + H
Ctrl + M select market Ctrl + M
Ctrl + B select backpack Ctrl + X
Ctrl + F select farmstead Ctrl + G
Ctrl + S select Storehouse, Ship, Stable, ElephantStable, Dock ... Ctrl + V for Storehouse, Ctrl + Z for Stable, Ctrl + Q for ElephantStable
Ctrl + X select Barracks + ElephantStable + Stable (remember X like nearly everything) Ctrl + X
Ctrl + C select CivilCentre, Corral, Crannog Ctrl + C for CivilCentre
Ctrl + T select temple Ctrl + T
Ctrl + A select Arsenal, ArmyCamp, Assembly, AmphitheaterPompeii, Apadana, Arch
Ctrl + D select Dock, Defense_tower , Dog
Ctrl + L select Library

select Actors

intuitive hotkeys Action non intuitive hotkeys
Alt + W select woman Alt + A
Alt + I select infantry
Alt + P select Pikeman, Spearman, Fanatic
Alt + C select Cavalry Alt + C
Alt + A select Archer, Elephant&Archer, Slinger Javelineer, ...
Alt + S select Swordsman, ..
Alt + E select Elephant for Support Alt + E
Alt + K select Catapult (exceptions due to conflict)
Alt + H select Healer Alt + H
J select wounded (exceptions due to proximity to Healer)
K select only non-wounded using mouse
Alt + D select Dangerous Elephants
Alt + V select Siege and Ministers (Siege: rams, not heroes, Catapult, Bolt Shooter, Siege Tower ...)
Alt + M or Alt + X select all military (non-wounded only)
Alt + N select all non-military
< (need set manually) send resources (need set manually)

Tips for start the game:

Download autocivP

  • Download and install from the wildfiregames forum autociv page topic (files on first page)
    • not available jet
  • Download and install manually the github repository (installation file on the releases section)
  • Use 0 A.D. mod downloader (not always newest version)

Instructions to install autociv manually

#### MacOS (thanks @HMS-Surprise):
	https://wildfiregames.com/forum/index.php?/topic/25444-how-to-install-autociv-mod-on-mac/

#### Linux/Windows:
	Open the downloaded file with (both ways should work):
	- pyromod file (two ways)
		- Double click the file (should autoinstall the mod for you and send  you to the mods page inside 0ad)
		- Right click → Open with → 0 A.D  (or pyrogenesis.exe)
	- zip file: Copy folder inside the zip file into your mods folder
		- https://trac.wildfiregames.com/wiki/GameDataPaths

Mod autociv compatibility(s)

The mod is compatible with:

  • 0 A.D 0.0.28
  • Should work with all mods that don't have extensive code changes

Questions & feedback

You don't understand how it works? Feeling confused? Just wanna comment? Ask and post.

Contributing

  1. Fork it.
  2. Create a new feature branch: git checkout -b my-new-feature
  3. Commit your changes: git add . and git commit -m 'Add some feature'
  4. Push it to the branch: git push fork my-new-feature
  5. Submit a pull request.

Contributors

The motivation for this mod was implement ideas and simplifications that are helpful for this game and learn bit JavaScript.

Releases

Packages

Used by

Contributors

Languages