fcxSanya Posted September 7, 2017 Report Share Posted September 7, 2017 On 07/09/2017 at 6:24 AM, The Undying Nephalim said: Yes indeed. I'll attach my music file: music.js Expand Hm, it looks ok. Are you sure you have multiple peace tracks in your civ json? You can try to put something like warn(uneval(this.tracks.PEACE)); before the startPlayList to check what tracks are in the list (not sure whether it would properly print the list of objects though). Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 7, 2017 Author Report Share Posted September 7, 2017 On 07/09/2017 at 6:42 AM, fcxSanya said: Hm, it looks ok. Are you sure you have multiple peace tracks in your civ json? You can try to put something like warn(uneval(this.tracks.PEACE)); before the startPlayList to check what tracks are in the list (not sure whether it would properly print the list of objects though). Expand Yes, here's my entry in the civ file: "Music":[ {"File":"gerudo_theme1.ogg", "Type":"peace"}, {"File":"gerudo_ambient1.ogg", "Type":"peace"}, {"File":"gerudo_ambient2.ogg", "Type":"peace"}, {"File":"gerudo_ambient3.ogg", "Type":"peace"}, {"File":"gerudo_ambient4.ogg", "Type":"peace"}, {"File":"gerudo_ambient5.ogg", "Type":"peace"}, {"File":"gerudo_ambient6.ogg", "Type":"peace"}, {"File":"gerudo_ambient7.ogg", "Type":"peace"}, {"File":"gerudo_battle1.ogg", "Type":"battle"}, {"File":"gerudo_battle2.ogg", "Type":"battle"}, {"File":"gerudo_battle3.ogg", "Type":"battle"} ], Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 7, 2017 Author Report Share Posted September 7, 2017 (edited) EDIT: Strange, it seems to be working for my other faction (Hylians). It plays the theme then randomizes the music. For the Gerudo though it just loops the first track. I wonder what might be going on. EDIT again: Very weird, I changed the names of some music files and it seems to be working for both factions. I wonder if perhaps there might have been something wrong with the .ogg file. Oh well, at least it works now. Edited September 7, 2017 by The Undying Nephalim 1 Quote Link to comment Share on other sites More sharing options...
fabio Posted September 7, 2017 Report Share Posted September 7, 2017 On 07/09/2017 at 6:01 AM, wowgetoffyourcellphone said: This is incredibly like what I would like to do with DE. Instead of training heroes at the Fortress or Civic Center, at the start of the match you would choose which hero you'd like to spawn with and that's the hero you get for the rest of the match, like in AOE3. Unlike AOE3, you'd have a choice with a UI popup just like what you show here. Good show. This is really the kind of metagame the base game is sorely missing at this point, and if implemented would allow the base game and mods to shine. Expand A Silent Day In Gaul map has some trigger support for making choices while in-game. This may be a starting point for developing what you propose. Alternatively some civilizations have some alternative tech choices that enable different heroes and champions, but it's not exactly what you want here. Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted September 7, 2017 Report Share Posted September 7, 2017 On 07/09/2017 at 8:46 AM, fabio said: A Silent Day In Gaul map has some trigger support for making choices while in-game. This may be a starting point for developing what you propose. Expand In my understanding A Silent Day In Gaul is a narrative scenario, so it's notable for player in-game actions (not just UI interaction) affecting the story progress. So I believe your second alternative is more relevant here: On 07/09/2017 at 8:46 AM, fabio said: Alternatively some civilizations have some alternative tech choices that enable different heroes and champions, <...> Expand On 07/09/2017 at 8:46 AM, fabio said: <...> but it's not exactly what you want here Expand Why not? For me it looks exactly like 4 mutually exclusive technologies, each unlocking its own set of heroes / units with a custom UI to select one of them at the match start. Quote Link to comment Share on other sites More sharing options...
Tedster1995 Posted September 7, 2017 Report Share Posted September 7, 2017 On 06/09/2017 at 10:28 PM, Imarok said: Just write some js code. I think @Lion.Kanzen wanted to do something similar some time ago. Expand What files would need to be edited, and what would the basis of the code be? Quote Link to comment Share on other sites More sharing options...
Imarok Posted September 7, 2017 Report Share Posted September 7, 2017 On 07/09/2017 at 6:01 AM, wowgetoffyourcellphone said: This is incredibly like what I would like to do with DE. Instead of training heroes at the Fortress or Civic Center, at the start of the match you would choose which hero you'd like to spawn with and that's the hero you get for the rest of the match, like in AOE3. Unlike AOE3, you'd have a choice with a UI popup just like what you show here. Good show. This is really the kind of metagame the base game is sorely missing at this point, and if implemented would allow the base game and mods to shine. Expand That would be really usefull for regicide. 1 Quote Link to comment Share on other sites More sharing options...
av93 Posted September 7, 2017 Report Share Posted September 7, 2017 On 06/09/2017 at 10:28 PM, Imarok said: Just write some js code. I think @Lion.Kanzen wanted to do something similar some time ago. Expand Would be useful for tech choosing between more than 2 options. Also, with this way it could be implemented a mercenary decision design in Carthago, choosing alliances, instead of building only 2 embassies. 1 Quote Link to comment Share on other sites More sharing options...
av93 Posted September 7, 2017 Report Share Posted September 7, 2017 On 07/09/2017 at 6:01 AM, wowgetoffyourcellphone said: This is incredibly like what I would like to do with DE. Instead of training heroes at the Fortress or Civic Center, at the start of the match you would choose which hero you'd like to spawn with and that's the hero you get for the rest of the match, like in AOE3. Unlike AOE3, you'd have a choice with a UI popup just like what you show here. Good show. This is really the kind of metagame the base game is sorely missing at this point, and if implemented would allow the base game and mods to shine. Can't this just go into the base game? So that the base game can have theme music for each civ and then have a randomized playlist with whatever music. Expand Sorry for the off-topic. Maybe split. I.m seeing like the decision of choosing one heroe giving some kind of little bonus since the start of the game, encouraging specific strategies. 1 Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 7, 2017 Author Report Share Posted September 7, 2017 Next question! How would one go about adding new Classes for units and buildings into the game? I'd like to add a Mage and Creature class to help with some of the auras. Can it be done without having to recompile the engine? Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 7, 2017 Report Share Posted September 7, 2017 (edited) I think you just have to edit some XML templates. See template_unit for instance Edited September 7, 2017 by stanislas69 Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 7, 2017 Author Report Share Posted September 7, 2017 On 07/09/2017 at 8:32 PM, stanislas69 said: I think you just have to edit some XML templates. See template_unit for instance Expand Hmmm, the only thing having to do with classes in that file is this: <Classes datatype="tokens">Unit ConquestCritical</Classes> Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 7, 2017 Report Share Posted September 7, 2017 (edited) Those words are tokens separated by spaces, you can add Mage to that. Edited September 7, 2017 by stanislas69 Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 7, 2017 Author Report Share Posted September 7, 2017 On 07/09/2017 at 10:08 PM, stanislas69 said: Those words are tokens separated by spaces, you can add Mage to that. Expand So I can add any class I want into any template and it works just like that? Auras will be able to read that class? Seems pretty simple, I like it. Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 8, 2017 Author Report Share Posted September 8, 2017 (edited) Another question, is it possible to make it so that a unit or technology requires another unit to be built, instead of a tech to be researched? Is it also possible to make it so that a tech icon doesn't show up to be clicked on unless it's prerequisites are researched? Also is it possible to have more than two technologies in a Pair where you have to choose between them? I can't seem to get more than two to work at a time. Edited September 8, 2017 by The Undying Nephalim Quote Link to comment Share on other sites More sharing options...
WhiteTreePaladin Posted September 8, 2017 Report Share Posted September 8, 2017 On 08/09/2017 at 1:45 AM, The Undying Nephalim said: Another question, is it possible to make it so that a unit or technology requires another unit to be built, instead of a tech to be researched? Expand I think the market tech that allows collecting resources at an ally's dropsite requires three traders to be trained before the tech can be researched. Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 8, 2017 Author Report Share Posted September 8, 2017 (edited) On 08/09/2017 at 2:45 AM, WhiteTreePaladin said: I think the market tech that allows collecting resources at an ally's dropsite requires three traders to be trained before the tech can be researched. Expand Hmmm, that seems to have a class of unit as a requirement, nothing about a specific named unit though. I suppose I can give my unit a custom class and use that. Edited September 8, 2017 by The Undying Nephalim Quote Link to comment Share on other sites More sharing options...
The Undying Nephalim Posted September 8, 2017 Author Report Share Posted September 8, 2017 And here's another question: Is it possible for a tech to affect or improve an Aura in any way? I found techs that improve healer ranges, but can't seem to find anything that effects Aura ranges or activating new auras for units. Quote Link to comment Share on other sites More sharing options...
Nescio Posted September 8, 2017 Report Share Posted September 8, 2017 (edited) On 08/09/2017 at 9:37 AM, The Undying Nephalim said: And here's another question: Is it possible for a tech to affect or improve an Aura in any way? I found techs that improve healer ranges, but can't seem to find anything that effects Aura ranges or activating new auras for units. Expand Forgive me for jumping in a completely unrelated thread without reading anything but the last post, however, I believe I can at least partially answer this. /simulation/data/auras/structures/wonder_pop_2.json has a technology requirement: "requiredTechnology": "pop_wonder", and there is no reason why unit auras would behave differently. As for improving auras, I suppose this is also possible, albeit probably a bit less straightforward. EDIT: Technologies can supersede each other; if this is also allowed with auras (I'm not sure), improving auras would be very easy; just create a new file for the improved aura aura_2.json which contains: "supersedes": "aura_1", Edited September 8, 2017 by Nescio Quote Link to comment Share on other sites More sharing options...
fabio Posted September 8, 2017 Report Share Posted September 8, 2017 On 07/09/2017 at 11:12 AM, fcxSanya said: In my understanding A Silent Day In Gaul is a narrative scenario, so it's notable for player in-game actions (not just UI interaction) affecting the story progress. So I believe your second alternative is more relevant here: Why not? For me it looks exactly like 4 mutually exclusive technologies, each unlocking its own set of heroes / units with a custom UI to select one of them at the match start. Expand With the triggers a custom game dialog similar to the one showed by The Undying Nephalim could be shown at game start, while the technology uses a different, less obvious interface, especially if the hero choice is a strategic one for that gameplay... Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted September 8, 2017 Report Share Posted September 8, 2017 On 08/09/2017 at 9:37 AM, The Undying Nephalim said: And here's another question: Is it possible for a tech to affect or improve an Aura in any way? I found techs that improve healer ranges, but can't seem to find anything that effects Aura ranges or activating new auras for units. Expand On 08/09/2017 at 9:48 AM, Nescio said: Forgive me for jumping in a completely unrelated thread without reading anything but the last post, however, I believe I can at least partially answer this. /simulation/data/auras/structures/wonder_pop_2.json has a technology requirement and there is no reason why unit auras would behave differently. As for improving auras, I suppose this is also possible, albeit probably a bit less straightforward. Expand Wasn't there a recent commit to SVN that allowed just this? Or am I misremembering? Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted September 8, 2017 Report Share Posted September 8, 2017 On 08/09/2017 at 10:00 AM, fabio said: With the triggers a custom game dialog similar to the one showed by The Undying Nephalim could be shown at game start <...> Expand I believe triggers are simulation scripts and can't introduce custom gui. Also they are bound to specific maps. Am I wrong? On 08/09/2017 at 10:00 AM, fabio said: <...> while the technology uses a different, less obvious interface, especially if the hero choice is a strategic one for that gameplay... Expand That's why I said "with a custom UI to select one of them at the match start", i. e. the mod will have that custom dialog at the match start which will list (and allow to select one of) civ-specific technologies of a special type. Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted September 8, 2017 Report Share Posted September 8, 2017 On 07/09/2017 at 11:55 AM, Tedster1995 said: What files would need to be edited, and what would the basis of the code be? Expand With technologies + custom dialog approach I described in my previous messages, you need technologies (and also to edit unit templates they are unlocking) and a dialog in gui/session (see diplomacy, trade and objective dialogs as examples). Quote Link to comment Share on other sites More sharing options...
fabio Posted September 8, 2017 Report Share Posted September 8, 2017 On 08/09/2017 at 11:11 AM, fcxSanya said: I believe triggers are simulation scripts and can't introduce custom gui. Also they are bound to specific maps. Am I wrong? Expand I don't remember exactly, but that map had a window appearing asking for some choices about the gameplay. Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted September 8, 2017 Report Share Posted September 8, 2017 On 08/09/2017 at 2:09 PM, fabio said: I don't remember exactly, but that map had a window appearing asking for some choices about the gameplay. Expand Your memory is better than mine There are indeed some scripted dialogs on the map: https://github.com/0ADMods/map_A_Silent_Day_In_Gaul/blob/master/maps/scenarios/A_Silent_Day_In_Gaul.js#L343 But they seem to be based on the standard layout with configurable text and button captions. 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.