MOD: Wait+Load Buttons (thread is outdated)

Mods and development for mods. Including WoG & Equilibris (RU) subforums.
User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

MOD: Wait+Load Buttons (thread is outdated)

Unread postby theGryphon » 31 May 2006, 12:01

Hi all!
I'm working on a new mod to change the combat screen control menu. I added buttons for wait and load for use during the battle. Load button functions fine. But I couldn't get the Wait button work. The new jog-dial looks like this. The button to the leftmost is for Wait, rightmost is for Load. Other buttons are same, except that I used the adventure map control panel and tuned the placement of buttons appropriately.

I would appreciate any help to make the Wait button work :D

Cheers!

Edit: With the help of MistWeaver (thanks a lot!), I could make the mod work! It turns out that he has been working on the same mod as well. So, I'll post links to both. Check them out!

Here is mine.
Here is Mistweaver's.

Edit: This thread is outdated. Please refer to here for the correct version of my mod.
Last edited by theGryphon on 24 Jun 2006, 04:07, edited 6 times in total.
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
DaemianLucifer
Round Table Hero
Round Table Hero
Posts: 11282
Joined: 06 Jan 2006
Location: City 17

Unread postby DaemianLucifer » 31 May 2006, 12:08

You should have been the one working on HV,you know.This one seems very nice!

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 12:10

Thanks! If only I could make the wait function work :(
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
Kalah
Retired Admin
Retired Admin
Posts: 20078
Joined: 24 Nov 2005

Unread postby Kalah » 31 May 2006, 12:24

But isn't there a wait function already...?
In War: Resolution, In Defeat: Defiance, In Victory: Magnanimity, In Peace: Goodwill.

User avatar
Gaidal Cain
Round Table Hero
Round Table Hero
Posts: 6972
Joined: 26 Nov 2005
Location: Solna

Unread postby Gaidal Cain » 31 May 2006, 12:27

Yes, but not a wait button. Personally, I'm more happy about that load button.
Last edited by Gaidal Cain on 31 May 2006, 12:31, edited 1 time in total.
You don't want to make enemies in Nuclear Engineering. -- T. Pratchett

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 12:30

Yeah, there is an implicit wait function that's not associated with any UI buttons. It's triggered differently, and I couldn't make it work as a button as of now. I posted this at the Ubi forums as well. Hopefully, with the help of other modders this will be fixed.
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
Dublex
Pixie
Pixie
Posts: 137
Joined: 20 May 2006
Location: Hertfordshire, United Kingdom

Unread postby Dublex » 31 May 2006, 12:31

You might need to dive into the lua scripts to get the load button / wait button to work, which would involve some scripting knowledge.

You could try finding the button functions in the script files to start with though.

User avatar
dragonn
War Dancer
War Dancer
Posts: 389
Joined: 06 Jan 2006
Location: Draconius - The Eternal City of Dragons

Unread postby dragonn » 31 May 2006, 12:33

There are so many talented modders out there! Arstahd, theGryphon, xManiaCCCx, sfidanza. Big HURRAY for them!

Soon we will have H5 reshaped into our liking!

Maybe there will be no need for patches afterall :D:D:D
"Thou shall feel the wrath of the Dragons! Tremble in fear, your end is nigh!" - The Dragon Prophet
"Do you like fire? I'm full of it..." - Deathwing

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 13:27

@ Dublex

Load button works fine. The problem is with the Wait button. The Wait function is not in the scripts, and is probably hard coded :( I just need the name of the event that triggers it, other event names like Combat_Defend are easily found in the xdb files, which associate functions to buttons. Unfortunately, Combat_Wait does not work :(

Any other ideas?
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 18:30

OK, I uploaded the mod pak file here.
Just put the file into your data folder and restart the game.
Remember the wait button does not function, but you can get the feel :)

I need help :(
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
Dublex
Pixie
Pixie
Posts: 137
Joined: 20 May 2006
Location: Hertfordshire, United Kingdom

Unread postby Dublex » 31 May 2006, 18:46

theGryphon wrote:@ Dublex

Load button works fine. The problem is with the Wait button. The Wait function is not in the scripts, and is probably hard coded :( I just need the name of the event that triggers it, other event names like Combat_Defend are easily found in the xdb files, which associate functions to buttons. Unfortunately, Combat_Wait does not work :(

Any other ideas?
Is there any reference to W being bound to something anywhere in the .lua files?

If not, your probably right and it has been hard-coded somewhere.

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 18:52

Actually it is bound through the cfg files, not lua, to input_Combat_Wait. Likewise D is bound to input_Combat_Defend. However, Combat_Wait does not work, while Combat_Defend works. :tired: :sad:

Even if it's hard coded, it must have a name to call the function...
Last edited by theGryphon on 31 May 2006, 18:53, edited 1 time in total.
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
DaemianLucifer
Round Table Hero
Round Table Hero
Posts: 11282
Joined: 06 Jan 2006
Location: City 17

Unread postby DaemianLucifer » 31 May 2006, 18:52

I just wonder why didnt they hire equi and/or wog team to assist them with HV,and will they do something like that now.

User avatar
Dublex
Pixie
Pixie
Posts: 137
Joined: 20 May 2006
Location: Hertfordshire, United Kingdom

Unread postby Dublex » 31 May 2006, 18:58

Actually, there are some actions or functions coded into the combat-startup file.

If Movecombatunit = commandMove and
AttackCombatUnit = commandMoveattack and
DefendCombatUnit = commandDefend

would

WaitCombatUnit = commandWait

work if referenced elsewhere?

User avatar
Kalah
Retired Admin
Retired Admin
Posts: 20078
Joined: 24 Nov 2005

Unread postby Kalah » 31 May 2006, 21:45

I do not get it... What's this talk of a wait button? Can't you just hit the W on your keyboard?
In War: Resolution, In Defeat: Defiance, In Victory: Magnanimity, In Peace: Goodwill.

User avatar
theLuckyDragon
Round Table Knight
Round Table Knight
Posts: 4883
Joined: 06 Jan 2006

Unread postby theLuckyDragon » 31 May 2006, 21:46

A nice round button looks much friendlier than a W key. ;)
"Not all those who wander are lost." -- JRRT

User avatar
MistWeaver
Wraith
Wraith
Posts: 1277
Joined: 28 Feb 2006
Location: Citadel of Frosts

Unread postby MistWeaver » 31 May 2006, 22:02

Funny thing !
This morning I disided to make WAIT/LOAD mod too. I thought I would be only one .. at least today :)
Anyway I made it pretty quick.. about 2-3 hours. Now mailed it to CH and so it should appear on "MODS" soon

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 22:27

Great MistWeaver! Glad that you could make it! How could you make the wait function work? 8| If you don't mind can I cheat that from yours? :D
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...

User avatar
MistWeaver
Wraith
Wraith
Posts: 1277
Joined: 28 Feb 2006
Location: Citadel of Frosts

Unread postby MistWeaver » 31 May 2006, 22:40

While mod makes it way to CH feel free to download it from here
http://slil.ru/22800306

2theGryphon. Its easy, you must use - input_Combat_Wait value in the button's <EventName> tag.
You can use it in yours as well but I think our mod will look alike, so I dont know if community needs both of them.

User avatar
theGryphon
Spectre
Spectre
Posts: 716
Joined: 06 Jan 2006

Unread postby theGryphon » 31 May 2006, 22:48

That was the first thing I tried but it didn't work for me! 8| :| I don't understand...
I believe in science and that science can explain everything.
Because God has made it all work in such a beautiful way...


Return to “Modcrafting Guild”

Who is online

Users browsing this forum: No registered users and 0 guests