wowgetoffyourcellphone Posted June 18, 2020 Report Share Posted June 18, 2020 (edited) UPDATE: WORKING NOW, THANKS EVERYBODY Now committed to the Delenda Est Git repository: Github: Delenda Est Original: 0 A.D. Delenda Est Civ Choices Mod https://github.com/JustusAvramenko/Delenda-Est-Civ-Choices-Mod Adds the civ choices dialog allowing to select one of mutually exclusive technologies at the start of the match. In Delenda Est's case, it allows the training of 1 selected hero from the beginning of the match. Based upon work by Alexander Olkhovskiy: https://github.com/AlexanderOlkhovskiy/0ad-civ-choices-mod The first test civ is the Macedonians, the 4 heroes being: Edited June 20, 2020 by wowgetoffyourcellphone 2 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 18, 2020 Author Report Share Posted June 18, 2020 Right now I'm having trouble. At first I tinkered with @fcxSanya's mod and couldn't get it to work, reasoning that it's pretty out of date deciding to tinker with Hyrule Conquest's code of the same files (based on Alexander's code). I get no error codes, but no buttons either, even though Alexander's mod and Hyrule Conquest work with Alpha 23. Again, the files are out of date with Alpha 24, which is probably the major culprit. Any help from the community? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 (edited) I believe I have all the files in place, there just needs to be some key edits that allude me. https://github.com/JustusAvramenko/Delenda-Est-Civ-Choices-Mod Edited June 19, 2020 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted June 19, 2020 Report Share Posted June 19, 2020 22 minutes ago, wowgetoffyourcellphone said: I believe I have all the files in place, there just needs to be some key edits that allude me. https://github.com/JustusAvramenko/Delenda-Est-Civ-Choices-Mod Team devs are very busy right now, the best thing is gaibbsupport to add to the main game after our balance changes. Quote Link to comment Share on other sites More sharing options...
Trinketos Posted June 19, 2020 Report Share Posted June 19, 2020 (edited) 13 hours ago, wowgetoffyourcellphone said: Right now I'm having trouble. At first I tinkered with Alexander's mod and couldn't get it to work, reasoning that it's pretty out of date deciding to tinker with Hyrule Conquest's code of the same files (based on Alexander's code). I get no error codes, but no buttons either, even though Alexander's mod and Hyrule Conquest work with Alpha 23. Again, the files are out of date with Alpha 24, which is probably the major culprit. Any help from the community? You could debug the code with warn ("message") to see what the code is doing, if you haven't made that. Edited June 19, 2020 by Trinketos Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 Ironically, I'm able to make it work in Hyrule Conquest: 1 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 19, 2020 Report Share Posted June 19, 2020 Can you upload your interestinglog.html? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 3 minutes ago, Stan` said: Can you upload your interestinglog.html? I get nothing in that log. BTW -- delenda est is a dependency as well. Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 19, 2020 Report Share Posted June 19, 2020 I guess I should try D.E. then XD 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 2 minutes ago, m7600 said: Does it work with the version of Delenda Est for Alpha 23? I'm trying to use the A24 session.js file Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 Just now, m7600 said: Here's my 2 cents, it's just an opinion: I was trying to make my own mod work with Alpha 24, but I ran into several problems. So I made everything compatible with A23 an voilá. Not saying that A24 is buggy, it's just that it switching everything back to the style of 23 was an easier solution in my case. Sure, but I'm working on the A24 version of Delenda Est. 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 19, 2020 Report Share Posted June 19, 2020 remote: Enumerating objects: 448, done. remote: Counting objects: 100% (448/448), done. remote: Compressing objects: 100% (168/168), done. Receiving objects: 6% (34/527), 91.64 MiB | 160.00 KiB/s This might take a while XD I guess somebody messed up my fiber optics connection Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 19, 2020 Report Share Posted June 19, 2020 @wowgetoffyourcellphone In your modified session.js file just replace function init(initData, hotloadData) { ... if (hotloadData) { g_Selection.selected = hotloadData.selection; g_PlayerAssignments = hotloadData.playerAssignments; g_Players = hotloadData.player; initCivChoicesDialog(); } // TODO: use event instead onSimulationUpdate(); setTimeout(displayGamestateNotifications, 1000); } by function init(initData, hotloadData) { ... if (hotloadData) { g_Selection.selected = hotloadData.selection; g_PlayerAssignments = hotloadData.playerAssignments; g_Players = hotloadData.player; } initCivChoicesDialog(); // TODO: use event instead onSimulationUpdate(); setTimeout(displayGamestateNotifications, 1000); } 7 hours ago, m7600 said: Ok, now I'm curious: who messed that up? Your Internet service provider? Bother them until they fix it. You are a paying customer afterall, and they have to provide the service that they said they would provide in exchange for your money. Don't really want to spend 5 hours on the phone to be honest. Certainly not to be told "Have you tried turning it off and on again" 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 6 hours ago, Stan` said: initCivChoicesDialog(); Ahhh thanks. So I place this line in the wrong spot. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 @Stan` Thanks for your help! I think one more thing: Which value do I change to move the buttons upward off the HUD? I've been messing around with civ_choices_window.xml for 20 minutes and have only gotten funny results. Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 19, 2020 Report Share Posted June 19, 2020 From a quick test replacing size="50%-250 50%-300 50%+250 50%+300" by: size="50%-250 50%-400 50%+250 50%+300" Seems to work. 1 Quote Link to comment Share on other sites More sharing options...
Exodarion Posted June 19, 2020 Report Share Posted June 19, 2020 Just to note, Hyrule Conquests version of the Hero UI has been altered multiple times, but it seems you got it to work just fine now. 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 19, 2020 Report Share Posted June 19, 2020 I guess the main issue right now is that it does not scale :/ Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 19, 2020 Author Report Share Posted June 19, 2020 50 minutes ago, Stan` said: I guess the main issue right now is that it does not scale :/ Also, I wish what it did was convert a skirmish replacer to the hero of your choice instead of just unlocking his training. Or, at the least, remove the training buttons from the other unselected heroes. Quote Link to comment Share on other sites More sharing options...
Freagarach Posted June 20, 2020 Report Share Posted June 20, 2020 I guess you can use the code behind the "create unit" cheat to spawn the entity at the CC, not sure how that goes with Nomad though. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 20, 2020 Author Report Share Posted June 20, 2020 Any idea how to adjust the size of the hero medallion (the clickable portrait in the upper left corner of the screen)? Quote Link to comment Share on other sites More sharing options...
Freagarach Posted June 20, 2020 Report Share Posted June 20, 2020 You mean the panel entities I guess: session/PanelEntities.xml and then the size of panelEntityButton. 1 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 20, 2020 Author Report Share Posted June 20, 2020 (edited) Now committed to the original Delenda Est github repository. Edited June 20, 2020 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted June 20, 2020 Report Share Posted June 20, 2020 19 minutes ago, wowgetoffyourcellphone said: Now committed to the original Delenda Est github repository. Interesting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.