Jump to content

nani

Community Members
  • Posts

    778
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by nani

  1. 37 minutes ago, sim4seasons said:

    Yes, in many ways we can see that a lot of features of the mode are active; I tried to install it via the mod page in the game, and also manually. Both time activated and working in the game, except for that F4 key that should make the hotkeys config menu appears in game...

    Thanks for your answer !

    Guten tag @sim4seasons . Thanks for liking the mod, you are welcome :D 

    As for the 
    F4 key for shortcuts: it doesn't work because the newest 0ad now has an official hotkey editor, so I removed the one I did to not confused/duplicate functionality.

  2. version 26.4.0 - special update

    New

    • Custom default initial unit stance (you can change it in settings)
    • @Langbart Better coloring and symbols for overlay stats

    Removed

    • Set healer aggressive by default setting. Now you can use the custom initial unit stances setting.


    @Emacz as for skiri: for the aggressive stance setting  add "Soldier&Swordsman"


     

    • Like 1
    • Thanks 1
  3. 3 hours ago, rossenburg said:

    Hey @nani, I noticed a little quirk in the code when handling decimal values for team sizes with the /team command. Right now, if users enter decimal numbers like 1.1 or 1.2, the code doesn't handle them as expected, assuming only whole numbers. /team 1.1 matches the regular expression which treats the period (.) as equivalent to (v), causing this confusion. Although decimal teams are not a common scenario, I believe it's important to bring this to your attention. To make things smoother, hope you could tweak the code to handle these decimals correctly. A simple update to the regular expression used for matching team sizes should do the trick!


    I already knew the "quirk"  but working as expected. In fact, if I remember correctly I did it this way on purpose so you can type as separator whatever you want. The teams separator can be anything.
    Regex: 

    text.match(/(\d+)/g);
    • Like 2
  4. Is not autociv.
    I theory, when the game is paused any action you do will get queued to be executed on unpause. The thing, the UI is also sort of blocked when in pause so this is not "possible". Some commands the user can give, as for example the hotkeys, can bypass this as they don't depend on the UI (autociv hotkey or not). There is also the limitation that you won't be able to do "chained" actions as it would require to already have the previous action finished which at the initial moment you wont. 

  5. 3 hours ago, Gurken Khan said:

    I'm absolutely against pre-defining the 0-9 hotkeys. While I usually have my first CC, and maybe my second CC too, on 0 (=source), they usually become obsolete as a production facility eventually. (Producing champions and whatnot at other buildings.)

    btw I think the mod "autociv" has more hotkeys, but I never looked into it.

    Here is a list of default one in the mod but you can add arbitrary combinations of them
     

        "hotkey.autociv.open.autociv_readme": "Shift+F4",
        "hotkey.autociv.gamesetup.focus.chatInput": "Alt+Q",
        "hotkey.autociv.lobby.focus.chatInput": "Alt+Q",
        "hotkey.autociv.lobby.focus.gameList": "Alt+W",
        "hotkey.autociv.lobby.host": "Ctrl+N",
        "hotkey.autociv.CLI.toggle": "Ctrl+C+L",
        "hotkey.autociv.CLI.stdout.toggle": "Alt+S",
        "hotkey.autociv.CLI.stdout.eval": "Alt+E",
        "hotkey.autociv.lobby.gameList.selected.join": "Alt+E",
        "hotkey.autociv.selection.nowoundedonly": "K",
        "hotkey.autociv.session.exit": "Shift+Escape",
        "hotkey.autociv.session.minimap.expand.toggle": "Shift+Tab",
        "hotkey.autociv.session.building.place.amphitheater_pompeii": "",
        "hotkey.autociv.session.building.place.apadana": "",
        "hotkey.autociv.session.building.place.arch": "",
        "hotkey.autociv.session.building.place.army_camp": "",
        "hotkey.autociv.session.building.place.arsenal": "Space+A",
        "hotkey.autociv.session.building.place.assembly": "",
        "hotkey.autociv.session.building.place.barracks": "Space+B",
        "hotkey.autociv.session.building.place.camp_blemmye": "",
        "hotkey.autociv.session.building.place.camp_noba": "",
        "hotkey.autociv.session.building.place.civil_centre": "Space+C",
        "hotkey.autociv.session.building.place.corral": "Space+K",
        "hotkey.autociv.session.building.place.crannog": "",
        "hotkey.autociv.session.building.place.defense_tower": "Space+D",
        "hotkey.autociv.session.building.place.dock": "Space+J",
        "hotkey.autociv.session.building.place.elephant_stables": "Space+Q",
        "hotkey.autociv.session.building.place.embassy": "",
        "hotkey.autociv.session.building.place.embassy_celtic": "",
        "hotkey.autociv.session.building.place.embassy_iberian": "",
        "hotkey.autociv.session.building.place.embassy_italic": "",
        "hotkey.autociv.session.building.place.farmstead": "Space+G",
        "hotkey.autociv.session.building.place.field": "Space+F",
        "hotkey.autociv.session.building.place.forge": "Space+N",
        "hotkey.autociv.session.building.place.fortress": "Space+R",
        "hotkey.autociv.session.building.place.gerousia": "",
        "hotkey.autociv.session.building.place.gymnasium": "",
        "hotkey.autociv.session.building.place.hall": "",
        "hotkey.autociv.session.building.place.house": "Space+H",
        "hotkey.autociv.session.building.place.inn": "",
        "hotkey.autociv.session.building.place.library": "",
        "hotkey.autociv.session.building.place.lighthouse": "",
        "hotkey.autociv.session.building.place.market": "Space+M",
        "hotkey.autociv.session.building.place.mercenary_camp": "",
        "hotkey.autociv.session.building.place.military_colony": "",
        "hotkey.autociv.session.building.place.monument": "",
        "hotkey.autociv.session.building.place.outpost": "Space+O",
        "hotkey.autociv.session.building.place.palace": "",
        "hotkey.autociv.session.building.place.pillar_ashoka": "",
        "hotkey.autociv.session.building.place.prytaneion": "",
        "hotkey.autociv.session.building.place.pyramid_large": "",
        "hotkey.autociv.session.building.place.pyramid_small": "",
        "hotkey.autociv.session.building.place.range": "",
        "hotkey.autociv.session.building.place.rotarymill": "",
        "hotkey.autociv.session.building.place.royal_stoa": "",
        "hotkey.autociv.session.building.place.sentry_tower": "Space+Y",
        "hotkey.autociv.session.building.place.shrine": "",
        "hotkey.autociv.session.building.place.stable": "Space+V",
        "hotkey.autociv.session.building.place.storehouse": "Space+S",
        "hotkey.autociv.session.building.place.super_dock": "",
        "hotkey.autociv.session.building.place.syssiton": "",
        "hotkey.autociv.session.building.place.tacara": "",
        "hotkey.autociv.session.building.place.tavern": "",
        "hotkey.autociv.session.building.place.temple": "Space+T",
        "hotkey.autociv.session.building.place.temple_amun": "",
        "hotkey.autociv.session.building.place.temple_mars": "",
        "hotkey.autociv.session.building.place.temple_vesta": "",
        "hotkey.autociv.session.building.place.theater": "",
        "hotkey.autociv.session.building.place.tophet": "",
        "hotkey.autociv.session.building.place.tower_artillery": "",
        "hotkey.autociv.session.building.place.tower_babylon": "",
        "hotkey.autociv.session.building.place.tower_bolt": "",
        "hotkey.autociv.session.building.place.tower_double": "",
        "hotkey.autociv.session.building.place.wallset_short": "",
        "hotkey.autociv.session.building.place.wallset_siege": "Space+U",
        "hotkey.autociv.session.building.place.wallset_stone": "Space+W",
        "hotkey.autociv.session.building.place.wallset_palisade": "Space+E",
        "hotkey.autociv.session.building.place.warehouse": "",
        "hotkey.autociv.session.building.place.wonder": "",
        "hotkey.autociv.session.entity.select.amphitheater_pompeii": "",
        "hotkey.autociv.session.entity.select.apadana": "",
        "hotkey.autociv.session.entity.select.arch": "",
        "hotkey.autociv.session.entity.select.army_camp": "",
        "hotkey.autociv.session.entity.select.arsenal": "Ctrl+A",
        "hotkey.autociv.session.entity.select.assembly": "",
        "hotkey.autociv.session.entity.select.barracks": "Ctrl+X",
        "hotkey.autociv.session.entity.select.camp_blemmye": "",
        "hotkey.autociv.session.entity.select.camp_noba": "",
        "hotkey.autociv.session.entity.select.civil_centre": "Ctrl+C",
        "hotkey.autociv.session.entity.select.corral": "Ctrl+K",
        "hotkey.autociv.session.entity.select.crannog": "",
        "hotkey.autociv.session.entity.select.defense_tower": "Ctrl+D",
        "hotkey.autociv.session.entity.select.dock": "Ctrl+J",
        "hotkey.autociv.session.entity.select.elephant_stables": "Ctrl+Q",
        "hotkey.autociv.session.entity.select.embassy": "",
        "hotkey.autociv.session.entity.select.embassy_celtic": "",
        "hotkey.autociv.session.entity.select.embassy_iberian": "",
        "hotkey.autociv.session.entity.select.embassy_italic": "",
        "hotkey.autociv.session.entity.select.farmstead": "Ctrl+G",
        "hotkey.autociv.session.entity.select.field": "Ctrl+F",
        "hotkey.autociv.session.entity.select.forge": "Ctrl+N",
        "hotkey.autociv.session.entity.select.fortress": "Ctrl+R",
        "hotkey.autociv.session.entity.select.gerousia": "",
        "hotkey.autociv.session.entity.select.gymnasium": "",
        "hotkey.autociv.session.entity.select.hall": "",
        "hotkey.autociv.session.entity.select.house": "Ctrl+H",
        "hotkey.autociv.session.entity.select.inn": "",
        "hotkey.autociv.session.entity.select.library": "",
        "hotkey.autociv.session.entity.select.lighthouse": "",
        "hotkey.autociv.session.entity.select.market": "Ctrl+M",
        "hotkey.autociv.session.entity.select.mercenary_camp": "",
        "hotkey.autociv.session.entity.select.military_colony": "",
        "hotkey.autociv.session.entity.select.monument": "",
        "hotkey.autociv.session.entity.select.outpost": "Ctrl+O",
        "hotkey.autociv.session.entity.select.palace": "",
        "hotkey.autociv.session.entity.select.pillar_ashoka": "",
        "hotkey.autociv.session.entity.select.prytaneion": "",
        "hotkey.autociv.session.entity.select.pyramid_large": "",
        "hotkey.autociv.session.entity.select.pyramid_small": "",
        "hotkey.autociv.session.entity.select.range": "",
        "hotkey.autociv.session.entity.select.rotarymill": "",
        "hotkey.autociv.session.entity.select.royal_stoa": "",
        "hotkey.autociv.session.entity.select.sentry_tower": "Ctrl+Y",
        "hotkey.autociv.session.entity.select.shrine": "",
        "hotkey.autociv.session.entity.select.stable": "Ctrl+Z",
        "hotkey.autociv.session.entity.select.storehouse": "Ctrl+V",
        "hotkey.autociv.session.entity.select.super_dock": "",
        "hotkey.autociv.session.entity.select.syssiton": "",
        "hotkey.autociv.session.entity.select.tacara": "",
        "hotkey.autociv.session.entity.select.tavern": "",
        "hotkey.autociv.session.entity.select.temple": "Ctrl+T",
        "hotkey.autociv.session.entity.select.temple_amun": "",
        "hotkey.autociv.session.entity.select.temple_mars": "",
        "hotkey.autociv.session.entity.select.temple_vesta": "",
        "hotkey.autociv.session.entity.select.theater": "",
        "hotkey.autociv.session.entity.select.tophet": "",
        "hotkey.autociv.session.entity.select.tower_artillery": "",
        "hotkey.autociv.session.entity.select.tower_babylon": "",
        "hotkey.autociv.session.entity.select.tower_bolt": "",
        "hotkey.autociv.session.entity.select.tower_double": "",
        "hotkey.autociv.session.entity.select.wallset_short": "",
        "hotkey.autociv.session.entity.select.wallset_siege": "",
        "hotkey.autociv.session.entity.select.wallset_stone": "",
        "hotkey.autociv.session.entity.select.wallset_palisade": "",
        "hotkey.autociv.session.entity.select.warehouse": "",
        "hotkey.autociv.session.entity.select.wonder": "",
        "hotkey.autociv.session.entity.by.class.select.Support&Worker|(Support&Elephant)": "Alt+A",
        "hotkey.autociv.session.entity.by.class.select.(Soldier|Siege|Dog)&!Ship": "Alt+S",
        "hotkey.autociv.session.entity.by.class.select.Cavalry": "Alt+E",
        "hotkey.autociv.session.entity.by.class.select.Cavalry.by.group.none": "",
        "hotkey.autociv.session.entity.by.class.select.Ranged": "",
        "hotkey.autociv.session.entity.by.class.select.Infantry": "",
        "hotkey.autociv.session.entity.by.class.select.Siege": "",
        "hotkey.autociv.session.entity.by.health.nowounded.by.class.select.Cavalry": "",
        "hotkey.autociv.session.entity.by.health.wounded.by.class.select.Cavalry": "",
        "hotkey.autociv.session.entity.by.rank.1": "",
        "hotkey.autociv.session.entity.by.rank.2": "",
        "hotkey.autociv.session.entity.by.rank.3": "",
        "hotkey.autociv.session.entity.by.state.idle": "",
        "hotkey.autociv.session.entity.by.screen.yes": "",
        "hotkey.autociv.session.entity.by.screen.no": "",
        "hotkey.autociv.session.production.queue.clear": "Alt+R",
        "hotkey.autociv.session.formation.set.null": "Space+1",
        "hotkey.autociv.session.formation.set.box": "Space+2",
        "hotkey.autociv.session.formation.set.column_closed": "Space+3",
        "hotkey.autociv.session.formation.set.line_closed": "Space+4",
        "hotkey.autociv.session.formation.set.column_open": "Space+5",
        "hotkey.autociv.session.formation.set.line_open": "Space+6",
        "hotkey.autociv.session.formation.set.flank": "Space+7",
        "hotkey.autociv.session.formation.set.skirmish": "Space+8",
        "hotkey.autociv.session.formation.set.wedge": "Space+9",
        "hotkey.autociv.session.formation.set.battle_line": "Space+0",
        "hotkey.autociv.session.formation.set.syntagma": "Space+'",
        "hotkey.autociv.session.formation.set.anti_cavalry": "",
        "hotkey.autociv.session.formation.set.phalanx": "",
        "hotkey.autociv.session.formation.set.scatter": "",
        "hotkey.autociv.session.formation.set.testudo": "",
        "hotkey.autociv.session.stance.set.violent": "Alt+1",
        "hotkey.autociv.session.stance.set.aggressive": "Alt+2",
        "hotkey.autociv.session.stance.set.defensive": "Alt+3",
        "hotkey.autociv.session.stance.set.passive": "Alt+4",
        "hotkey.autociv.session.stance.set.standground": "Alt+5",
        "hotkey.autociv.group.button.garrison": "Ctrl"
    • Like 1
  6. Hellooo @Hoze!

    If you want to add a button as a mod the same way autociv does it you can do this:

    1. Look for the xml file that defines the buttons where you want to add the new button.
    2. Create a copy of that file with same folder structure and same file name in your mod (we do this due to 0ad pyrogenesis engine limitaton, we can't create gui objects with javascript on the fly)
    3. Add your button on the xml 

     On the javascript side, you said you want to modify selection_panels.js . To do that create a new file with same folder structure with the name like this selection_panels~myMod.js

    We add ~ so that is loaded after selection_panels.js and then add suffix  myMod  so that you can identify the file is yours and not another mod or random file.

    Inside the file do any runtime modification necessary for you button

    Remember: the original file selection_panel.js will be executed before yours so code accordingly to that assumption.

    • Like 1
    • Thanks 1
×
×
  • Create New...