Jump to content

Hero Choices Dialogue [WORKING, THX ALL]


wowgetoffyourcellphone
 Share

Recommended Posts

UPDATE: WORKING NOW, THANKS EVERYBODY

Now committed to the Delenda Est Git repository: Github: Delenda Est

delenda_est_hero_selection.jpg

 

 

 

 

 

 

 

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:

xa7JjWx.pngNlt55JA.pngNc8CQlp.pngjbJVMID.png

Edited by wowgetoffyourcellphone
  • Like 3
Link to comment
Share on other sites

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? 

 

Link to comment
Share on other sites

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 by Trinketos
Link to comment
Share on other sites

5 minutes ago, wowgetoffyourcellphone said:

I'm trying to use the A24 session.js file

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 switching everything back to the style of 23 was an easier solution in my case.

Edited by m7600
Grammar
  • Like 1
Link to comment
Share on other sites

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. :) 

  • Like 2
Link to comment
Share on other sites

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

Link to comment
Share on other sites

27 minutes ago, Stan` said:

I guess somebody messed up my fiber optics connection

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.

Link to comment
Share on other sites

@wowgetoffyourcellphone

image.png

 

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" :P

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...