Jump to content

nani

Community Members
  • Posts

    778
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by nani

  1. Guten tag @sim4seasons . Thanks for liking the mod, you are welcome 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"
  3. Friday evening and challenge always go together :=D. Will try to add it as is something useful.
  4. @BeTe you mention that the lag specially happens during big fights. This is probably due to the corpses that accumulate and need to be rendered. There is an mod called autociv that allows you to reduce the maximum number of corpses (go to settings page, then autociv tab), you might give it a try and see if it helps.
  5. A long time ago in a code review far, far away ... https://code.wildfiregames.com/D2667
  6. 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);
  7. 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.
  8. @ShadowOfHassen @Sundiata wrote some time ago a super in-depth on the Kushites
  9. From the code I see you only record serializable actions, do you plan to add local UI actions too? If so how? A cool feature would be to show an UI with the steps of the macro after you record it.
  10. @Stan` I also had issues testing the dev trunk, I had to remove my default config file and let 0ad 0.27.0 recreate for it to not crash. If I remember correctly it was something about JSON string parsing not being valid.
  11. version 27.0.0 Updates: compatible with 0.A.D. alpha 0.27.0 Deprecation: custom font type setting option no longer available thanks @seeh for trying to make it compatible too
  12. https://wildfiregames.com/forum/profile/35343-rm-rf/ /home/xxx/.local/share/0ad/mods/autociv
  13. 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"
  14. Already implemented in autociv mod :===) Press Ctrl+ C and keep pressing same Ctrl + C to cycle. Edit: you can do the same for any buildings hotkeys.
  15. 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.
  16. This mod is in maintenance mode But will be updated for the following cases: Bug fixes Compatibility with new 0 A.D. versions Any reasonable pull request somebody might want to make Thanks to all the 0 A.D. players who found it useful. Nani
  17. One could also say this should be just a function defined in javascript `mod/common` that wraps the engine call in an unique function that would be used in other parts of the codebase instead of hardcoding the path in c++ for each namespace. But anyway, from a practical standpoint this also looks fine to me.
  18. I would instead ask why is this being asked? Is it planned to be removed or limited in some way so the code is simplified or more secure?
  19. https://github.com/nanihadesuka/autociv/search?q=ConfigDB_WriteFile Use case: to save custom user config.
×
×
  • Create New...