Jump to content

Tulughma

Community Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Tulughma

  1. Hi! @user1 Unfortunately I must report user Alariks who quit a rated 1v1 game without resigning as soon as I, Tulughma, got an advantage. It's really sad, because we played in the past and they won (and I resigned) and it was all good. And now when I was starting to win, they just quit in the middle without resigning... I believe I would have won, but it's hard to say. It's just so frustrating that users quit games instead of resigning when they are frustrated (just when it got interesting, in that particular case)... It feels so unnecessary. I confronted them in the chat's lobby and here is a screenshot: commands.txt
  2. Atrik's version is wonderful! I found a tiny bug when hitting enter in the host game dialog (instead of clicking on the "continue" button). I did my best to find a solution, and here's my fix: Edit autociv/gui/gamesetup_mp/gamesetup_mp~autociv.js and change line 19 from: input.onPress = () => confirmSetup() to: input.onPress = () => confirmSetup(attribs.loadSavedGame)
  3. Introduction I love playing 0 A.D. but found myself really missing some of the basic expanded hotkeys that AutoCiv provides. Instead of waiting for the official update, I decided to try tweaking the mod's code to make it work with Alpha 27. This also gave me a chance to better understand 0 A.D.'s modding system, even though I admit I have very limited knowledge of how everything works under the hood. This guide is the result of my experimentation - a temporary solution that got AutoCiv running on Alpha 27 on my Mac. I want to acknowledge that this is just a hack, not a proper patch, and express my deep respect to the amazing 0 A.D. developers and to Nani's incredible AutoCiv mod. I'm sharing this workaround with the community in case others find it useful while waiting for the official update. Installation Steps 1. Locate Mods Directory Find your 0 A.D. mods folder based on your operating system: Windows (Vista+): C:\Users\{name_of_user}\Documents\My Games\0ad\mods\ macOS: ~/Library/Application Support/0ad/mods/ Linux: ~/.local/share/0ad/mods/ 2. Install Mod Files Extract autociv.zip directly into the mods directory (don't create an additional autociv folder during extraction) 3. Update Dependency Version Edit mod.json: Find line 7 and change it to: "dependencies": ["0ad=0.27.0"] 4. Restructure Data Directory Locate the autociv_data folder Move it into the gui folder Note: I kept getting the error "This part of the engine may only read from 'gui/', 'simulation/', 'maps/'," etc. Since I couldn't figure out how to change this restriction, I simply moved the folder and updated the paths accordingly. 5. Update File Paths Add "gui/" before "autociv_data/" in following files: autociv/gui/autociv_readme/autociv_readme.js (line 11): const markdown = Engine.ReadFile("gui/autociv_data/README.md") autociv/gui/common/botmanager.js (line 417): let customNamesCivs = Engine.ReadJSONFile("gui/autociv_data/civilizations.json"); autociv/gui/options/optionsautociv.js (line 93): g_autociv_optionsFiles.push("gui/autociv_data/options.json") autociv/gui/options/pregame/mainmenuautociv.js (line 29): let settings = Engine.ReadJSONFile("gui/autociv_data/default_config.json"); 6. Update Font Path In autociv/gui/options/options~autociv.js, change line 85 to: return Engine.ListDirectoryFiles("gui/fonts/", "*"). Note: This tells AutoCiv to look for fonts within the mod's gui folder although it will not find them there. You don't need to move there the game's internal fonts folder for it to work - we're just avoiding accessing restricted parts of the engine. 7. Patch the Stats Bar In autociv/simulation/components/GuiInterface~autociv.js, update line 214 to: "team": 1, and line 215 to: "hasSharedLos": true, Note: Credit goes to Seleucids for this more elegant solution than my original fix. 8. Disable Game Setup Error In gui/gamesetup_mp/gamesetup_mp~autociv.js, delete or comment out (by adding // in front of) line 11: //input.onPress = () => confirmPassword() and line 12: //input.onPress = () => confirmSetup() 9. Disable Hotkey Saving System In gui/hotkeys/HotkeysPage~autociv.js, comment out line 18: //Engine.ConfigDB_WriteFile("user", "config/user.cfg"); Note: Unfortunately, this means you won't be able to change hotkeys through the game settings interface. It's not ideal, but it was the only way I could get around the errors. Known Limitations Hotkey changes cannot be saved Some multiplayer setup features are disabled Stats bar doesn't show teams or count kills Again, this is a temporary solution until an official update is released. I hope this helps anyone else who's missing their AutoCiv in Alpha 27!
  4. Introduction This guide provides a temporary solution to make the AutoCiv mod work with 0 A.D. Alpha 27 until an official update is released. This is an unofficial workaround that maintains basic functionality while disabling some features that cause compatibility issues. Installation Steps 1. Locate Mods Directory Find your 0 A.D. mods folder based on your operating system: Windows (Vista+): C:\Users\{name_of_user}\Documents\My Games\0ad\mods\ macOS: ~/Library/Application Support/0ad/mods/ Linux: ~/.local/share/0ad/mods/ 2. Install Mod Files Extract autociv.zip directly into the mods directory (do not create an additional autociv folder during extraction). 3. Update Dependency Version Edit mod.json: Find line 7 and change it to: "dependencies": ["0ad=0.27.0"], 4. Restructure Data Directory Locate the autociv_data folder Move it into the gui folder 5. Update File Paths Add gui/ before autociv_data/ in these files: Copy autociv/gui/autociv_readme/autociv_readme.js (line 11) autociv/gui/common/botmanager.js (line 417) autociv/gui/options/options~autociv.js (line 93) autociv/gui/options/pregame/mainmenu~autociv.js (line 29) 6. Update Font Path In autociv/gui/options/options~autociv.js: Change line 85 to: return Engine.ListDirectoryFiles("gui/fonts/", "*"). 7. Modify Team Settings In autociv/simulation/components/GuiInterface~autociv.js, update: Copy Line 214: "team": 1, Line 215: "hasSharedLos": true, 8. Disable Password Confirmation In gui/gamesetup_mp/gamesetup_mp~autociv.js, comment out: Copy Line 11: //input.onPress = () => confirmPassword() Line 19: //input.onPress = () => confirmSetup() 9. Disable Hotkey Saving In gui/hotkeys/HotkeysPage~autociv.js, comment out: Copy Line 18: //Engine.ConfigDB_WriteFile("user", "config/user.cfg"); Known Limitations Hotkey changes cannot be saved Some multiplayer setup features are disabled This is a temporary solution until an official update is released Technical Notes The workaround primarily addresses engine restrictions on file access by relocating resources to the gui/ directory Changes to team settings follow community-suggested improvements Some features are disabled rather than fixed to maintain basic compatibility Remember that this is an unofficial modification and may not provide full functionality. It's recommended to update to the official version when it becomes available.
  5. I also came up with a similar solution to Seleucids' to get autociv to work on alpha 27, but I also had to move the whole autociv_data folder to the gui folder, because the .js scripts can now only operate on a restricted list of system folders... Or it last that's what the errors said. Moving it to the gui folder (and adding gui/ to all relevant paths in the scripts obviously) made autociv playable at least offline. I'm still struggling on playing online though... I'll take a closer look tomorrow at the errors it though at me... I wish I know more on how 0ad works in order to contribute to updating the mod, rather than hacking it to somehow work... At why rate, playing 0ad without the extra hotkeys is extremely painful at this point
  6. Hi! @user1 User kinghack054 quit a 1v1 game without resigning while I, Tulughma, was close to winning. Thanks! commands.txt
  7. Hi! @user1 User santivilmaspam quit a 1v1 game without resigning while I, Tulughma, was close to winning. Thanks! commands.txt
  8. Hello@user1, User jojolapra quit a 1v1 game (commands.txt) without resigning as I (user Tulughma) was close to winning. Thanks!
  9. Hello@user1, User Arranis quit a 1v1 game (commands.txt) without resigning just after his rush failed Best regards, User: Tulughma
  10. Hello@user1, User pachantu quit a 1v1 game (commands.txt) without resigning as I (user Tulughma) was winning. Best regards, Tulughma
  11. Hello@user1, User Rey_Castilla quit a 1v1 game (commands.txt) without resigning as I (user Tulughma) was winning. Best regards, Tulughma
  12. Hello@user1, I would like to report user franciscodemiranda who killed the 1v1 game (commands.txt) against me (Tulughma) the very moment I won the battle for the center and managed to build a CC there. I thank you for your review. Best regards, Tulughma
×
×
  • Create New...