You must be logged in to post messages.
Please login or register

Modding and Scripting
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Debugging Quest Vars
posted 10 February 2009 08:31 AM EDT (US)   
.: Debugger Tool 1.00 :.


So, to show I'm not really inactive these days.. I've been working a lot on the Fan Patch to bring you guys some cool fun stuff for your scenarios. At the moment I've just done this some debugging tools that you can actually see while playtesting your map.

Version 1.00 now adds a few buttons, and speeds up the script. You can now set the refresh rate. Installation was also made easier, and less messy.


Download it here.


-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.

[This message has been edited by invent00r (edited 03-03-2009 @ 04:00 PM).]

Replies:
posted 10 February 2009 01:16 PM EDT (US)     1 / 28  
How does it work?

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 10 February 2009 02:32 PM EDT (US)     2 / 28  
That would be really helpful!

I keep having to make little triggers with chat contains to let me see what my QV's are doing
posted 10 February 2009 04:49 PM EDT (US)     3 / 28  
Hehe, that is exactly what I do too... And I hate too clean it all up when I don't need the messages anymore.
This would make it even easier.

However, I'm also curious how this works, because I have hundreds of QV's in my scenarios, and a list with that many QV's listed would be difficult to read.

[This message has been edited by Lupus (edited 02-10-2009 @ 04:50 PM).]

posted 10 February 2009 04:58 PM EDT (US)     4 / 28  
This works in a very brute way. Since there's no way to interact with the UI using triggers other than make them visible or not, I've coded all possibilities for all positions. This resulted in 4k line increase to the uimain.xml file.

However, the trigger part is the fun stuff. You will use a start up to make this window appear, and then you will have effects that will add a "watch" to the QV you should. You can add up to 6. But you are able to remove them afterwards (I've coded this part).

I need your comments on a new idea tho... 6 QVs might not enough, and adding more lines would just make the uimain.xml file go even bigger, so what I could do is to add several numbered buttons, and you could make QVs Debugg Lists, each showing up to 6 QVs. If I make 10 buttons that should mean 60 QV. The counter part is that it complicates a bit.. .
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.

[This message has been edited by invent00r (edited 02-10-2009 @ 04:59 PM).]

posted 10 February 2009 05:11 PM EDT (US)     5 / 28  
Couldn't you just have like a single box and you select the QV to watch by a dropdown box. Ok if the dropdown box is mega long because of all the QVS it would still save on the uimain room AND it means you could view any QV you like.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 10 February 2009 05:21 PM EDT (US)     6 / 28  
No, you're not following. The ui is kept untouched. So you can have multiple scenarios and using the same method.

You select the QVs you want to debug by using a trigger. .
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 10 February 2009 05:41 PM EDT (US)     7 / 28  
Speaking of QVs...

Is it possible to make an effect that changes a variable in a file outside the scenario?

If all scenarios have access to that file, you will be able to connect your scenarios.

posted 10 February 2009 05:46 PM EDT (US)     8 / 28  
@:Lupus
Well.. Just tell me first if 6 QVs is enough.

(I'm conducting some work on this, and persistent variables will be possible. They will only vanish when you close the game. However I have another process to make them store permanently which works offline so..)
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 10 February 2009 05:51 PM EDT (US)     9 / 28  
Well, 6 does seem a bit low, but I don't understand what you mean by
I've coded all possibilities for all positions.
Are you saying you have coded every possible name for a QV? Or what?
posted 10 February 2009 06:12 PM EDT (US)     10 / 28  
Maybe this picture will explain:



What you're seeing is the gadget which have 0, 1, 2 and partly 3 being defined on all positions of line 1. Triggers will real\unreal theses gadgets accordingly to output values. .
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 10 February 2009 06:27 PM EDT (US)     11 / 28  
pom pom pom ♫

If we knew what it was we were doing, it would not be called research, would it? - Einstein, A.
Master XS - AoM Code Reference - Trigger Loader - Trigger Requests - Chess

Wow, I never thought that I would actually know something before nottud did... it's actually not all that satisfying ~ Steak

[This message has been edited by Mythic_Freak (edited 02-10-2009 @ 06:40 PM).]

posted 11 February 2009 09:15 AM EDT (US)     12 / 28  
@:Lupus
Well.. Just tell me first if 6 QVs is enough.
Yes, 6 is enough.
(I'm conducting some work on this, and persistent variables will be possible. They will only vanish when you close the game. However I have another process to make them store permanently which works offline so..)
I am listening..!

[This message has been edited by Lupus (edited 02-11-2009 @ 09:18 AM).]

posted 11 February 2009 09:56 AM EDT (US)     13 / 28  
Too late Lupus, I've already have 10 Lists. . Thus I've dropped the idea of allowing to remove QVs. It would give me quite some work that with 10 lists its simply not worth it..

I'm almost done now.
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.

[This message has been edited by invent00r (edited 02-11-2009 @ 01:13 PM).]

posted 11 February 2009 11:28 AM EDT (US)     14 / 28  
Wow, is it possible to increase QV's without any triggers to see if everything works properly?

posted 11 February 2009 12:31 PM EDT (US)     15 / 28  
Yes.

I'm uploading it now.

Download it here.


-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 12 February 2009 01:36 PM EDT (US)     16 / 28  
The whole gameplay menu is screwed up because of something I did along this installation.

How do I get rid of it?

[JPEG, (252.60 KB)]

posted 12 February 2009 02:44 PM EDT (US)     17 / 28  
Loool, you gave them Ekanta's UI but you didn't provide the textures of it... :/

You better delete both uimain.xml and uimain.xmb files (in the data folder) for now, until he fixes it.

If we knew what it was we were doing, it would not be called research, would it? - Einstein, A.
Master XS - AoM Code Reference - Trigger Loader - Trigger Requests - Chess

Wow, I never thought that I would actually know something before nottud did... it's actually not all that satisfying ~ Steak

[This message has been edited by Mythic_Freak (edited 02-12-2009 @ 02:45 PM).]

posted 12 February 2009 03:32 PM EDT (US)     18 / 28  
but the uimain.xmb was already there...

posted 12 February 2009 03:45 PM EDT (US)     19 / 28  
uimain.xmb can be generated even without the appropriate textures.. Not to worry.. I've added the textures now. .

Download again and install the missing textures. I've also uimain.xml one bit, so update that too.
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.

[This message has been edited by invent00r (edited 02-12-2009 @ 05:34 PM).]

posted 12 February 2009 07:15 PM EDT (US)     20 / 28  
Still have a problem...

I have the Activate Debugger-trigger and a lot of weird Quest String-triggers but not "Debugger Set Visibility" or "Debugger Add QV".

posted 12 February 2009 07:27 PM EDT (US)     21 / 28  
Wierd.. Do you see the Activate Debugger effect, but not the other 2?

Well. Make sure Debugger Triggers.xml file is under C:\Program Files\Microsoft Games\AoM\trigger2.
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 12 February 2009 08:39 PM EDT (US)     22 / 28  
The installation guide says:

1. Open your Windows Explorer and find your way to your AoM folder inside your
documents. (default path is My Documents\My Games\Age of Mythology)
2. Open the trigger folder, place down "Debugger Triggers.xml".


So should I switch to the other trigger folder in "program files" then?

posted 13 February 2009 04:38 AM EDT (US)     23 / 28  
Yes, please try that.

It's working on my game.. .
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 19 February 2009 09:21 PM EDT (US)     24 / 28  
Okey, all triggers are there... There is still one serious problem. All triggers stop working if I use any of the triggers included in this pack.

[This message has been edited by Lupus (edited 02-19-2009 @ 09:22 PM).]

posted 20 February 2009 00:19 AM EDT (US)     25 / 28  
posted 20 February 2009 07:44 AM EDT (US)     26 / 28  
You need to first create a trigger that contains TL version 2.0. On the same trigger you can place Activate Debugger. Or you can do it seperatly - it doesn't matter, what matters is the order you place those triggers. First the TL, and then the Debugger.

Only after this is done, you can use the rest of the triggers.
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.
posted 03 March 2009 03:52 PM EDT (US)     27 / 28  
Updated to stable version 1.00. I'm going to put a upload a new pic on the main thread.

Moderators, please move to modding section. Thanks.
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos so de quem os souber guardar.

[This message has been edited by invent00r (edited 03-03-2009 @ 04:51 PM).]

posted 03 March 2009 04:38 PM EDT (US)     28 / 28  
Aye.

______________________________________ Yeebaagooon ______________________________________
____________________ AoMH Seraph ____________________
"You can't trust yeebaagooon to lead a rebelion, He would send everyone to steal mirrors so he could bask in his own brilliance." - Out Reach
"Yeebaagooon had never seen a more handsome man in all his life. He couldn't control himself, He needed to act. Gripping the mirror in his strong arms he kissed the figure before him..." - Out Reach
AoMH: Unfinished Scenarios|Singleplayer: Codename Ripto|Multiplayer: Minigames Z|CSC 7
Ex Seraphs Dictator, Spore Heaven Seraph
Age of Mythology Heaven » Forums » Modding and Scripting » Debugging Quest Vars
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames