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: AOM Titan v1.01 Trigger Bug Report - ES and RMScripters plz read!
posted 17 November 2003 02:05 PM EDT (US)   
Hello ES, Hello all!

During RM Scripting for AOM Titan (version 1.01) I found out that most new conditions and effects added to the Titan expansion do not work properly. The problem is, that NOT ALL language versions of AOM Titan use the same trigger names in the RMS code.

Example:
For the GERMAN version of AOM together with the GERMAN version of AOM Titan (both patched online to the latest version!), the following trigger conditions and effects do NOT work:


rmAddTriggerCondition("Unit on Lush");
rmAddTriggerCondition("Unit Is Garrisoned In");
rmAddTriggerCondition("Chat Contains");
rmAddTriggerCondition("God Power Active");
rmAddTriggerCondition("God Power Used");
rmAddTriggerEffect("Damage Unit Percent");
rmAddTriggerEffect("Damage Unit");
rmAddTriggerEffect("Damage Units in Area");
rmAddTriggerEffect("Change Units in Area");
rmAddTriggerEffect("Change Name");
rmAddTriggerEffect("Move From Area");
rmAddTriggerEffect("Forbid And Disable Unit");
rmAddTriggerEffect("Set Civilization Name");
rmAddTriggerEffect("Grant GP at Position");
rmAddTriggerEffect("Send Chat to Player");
rmAddTriggerEffect("Clear Chat History");
rmAddTriggerEffect("Disable GP Blocking");
rmAddTriggerEffect("Show Image");
rmAddTriggerEffect("Choice Dialog");
rmAddTriggerEffect("Modify Protounit");
rmAddTriggerEffect("Gaia Lush");

NOTE: I found out, that these conditions and effects will work if you replace the english names with the names of YOUR version (as they appear translated in the editor). As example, changing "Modify Protounit" into "Protoeinheit ändern" will work in the german version, BUT NOT in the english version. So, this will give serious problems while playing this RMS online, since not all have the same language version!!!


Here is how you can check your compatibility to the english AOM Titan version:

1a. Close AOM Titan
1b. Open Notepad
1c. Copy and paste the small typed text (2 lines) below in it:
____________________________START___________________________

<?xml version = "1.0" encoding = "UTF-8"?>
<mapinfo details = "" imagepath = "ui\ui map scenario 256x256" displayNameID="" cannotReplace=""/>

_____________________________END____________________________

1d. Save this file as "TriggerTest.xml" into your "AOM/rm2/" directory


2a. Open Notepad again (or create a new file)
2b. Copy and paste the small typed text below in it:
____________________________START___________________________

/* Test the new Trigger Conditions and Effects for AOM Titan - by M0nTy_PyTh0n - Version 0.1 */
void main(void) {
rmSetStatusText("",0.01);
int myTiles = 8000;
if(cMapSize == 1) {
myTiles = 12000;
rmEchoInfo("Large map");
}
int mySize = 2.0*sqrt(cNumberNonGaiaPlayers * myTiles);
rmEchoInfo("Map size="+mySize+"m x "+mySize+"m");
rmSetMapSize(mySize,mySize);
rmSetSeaLevel(0);
rmSetSeaType("Mediterranean Sea");
rmTerrainInitialize("land",4);
// Triggers
rmCreateTrigger("TestNewCondEffects");
rmAddTriggerCondition("Unit on Lush");
rmAddTriggerCondition("Unit Is Garrisoned In");
rmAddTriggerCondition("Chat Contains");
rmAddTriggerCondition("Stat Value");
rmAddTriggerCondition("God Power Active");
rmAddTriggerCondition("God Power Used");
rmAddTriggerCondition("Quest Var Check");
rmAddTriggerCondition("Quest Var Compare");
rmAddTriggerEffect("Damage Unit Percent");
rmAddTriggerEffect("Damage Unit");
rmAddTriggerEffect("Damage Units in Area");
rmAddTriggerEffect("Change Units in Area");
rmAddTriggerEffect("Change Name");
rmAddTriggerEffect("Move From Area");
rmAddTriggerEffect("Forbid And Disable Unit");
rmAddTriggerEffect("Set Civilization Name");
rmAddTriggerEffect("Grant GP at Position");
rmAddTriggerEffect("Send Chat to Player");
rmAddTriggerEffect("Send Spoofed Chat to Player");
rmAddTriggerEffect("Clear Chat History");
rmAddTriggerEffect("Echo Stat Value");
rmAddTriggerEffect("Disable GP Blocking");
rmAddTriggerEffect("Show Image");
rmAddTriggerEffect("Choice Dialog");
rmAddTriggerEffect("Modify Protounit");
rmAddTriggerEffect("Overlay Text");
rmAddTriggerEffect("Quest Var Set");
rmAddTriggerEffect("Quest Var Copy");
rmAddTriggerEffect("Quest Var Modify");
rmAddTriggerEffect("Quest Var Modify 2");
rmAddTriggerEffect("Quest Var Randomize");
rmAddTriggerEffect("Quest Var Echo");
rmAddTriggerEffect("Gaia Lush");
rmSetTriggerPriority(4);
rmSetTriggerActive(true);
rmSetTriggerRunImmediately(false);
rmSetTriggerLoop(false);
rmSetStatusText("",1.00);
}

_____________________________END____________________________

2c. Save the file as "TriggerTest.xs" into your "AOM/rm2/" directory

3a. Start AOM Titan
3b. Click "MORE"
3c. Click "Editor"
3d. Click "New" and select the "TriggerTest" map
3e. Click "create"
3f. Now click "Trigger" in the upper menu bar
3g. Click on the trigger called "TestNewCondEffects"

ALL CONDITIONS AND EFFECTS ADDED IN "TriggerTest.xs" SHOULD APPEAR!

Please post any test results here and also give your language version!

I hope this will help making ES give us a patch for this bug soon - and hopefully a working RM debugger too

Regards,
M0nTy.


M0nTy_PyTh0n
RM Scripter - Utility Programmer - Music/Sound Composer/Creator
HYENA STUDIOS
Also on YouTube and MySpace
Partner of Tsunami Studios - Sound and Music Composer
All rights reserved.
Replies:
posted 17 November 2003 08:09 PM EDT (US)     1 / 1  
Yes completely sucks. Me and Monty had a map loaded where I saw arkantos with 24 attack and 315 HP and he saw them with 9 attack and 300 HP.

Guide to Debugging RMS
Download my RMS here
Help improve RMS reviewing here
A monk I need a monk.
I thought therefore I was.
Age of Mythology Heaven » Forums » Modding and Scripting » AOM Titan v1.01 Trigger Bug Report - ES and RMScripters plz read!
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames