Forum Discussion

XDaast's avatar
XDaast
Rising Adventurer
8 years ago

Petui's Scripts

Recently petui's scripts Wavy, Repair Time at Death, and Real POI Analyser stopped working. Petui uses some regular expressions that seem to no longer jive:

This is in Wavy:

if (typeof webfrontend.gui.region.RegionCityInfo.prototype.getObject !== 'function') {
source = webfrontend.gui.region.RegionCityInfo.prototype.setObject.toString();
var objectMemberName = PerforceChangelist >= 448942 && PerforceChangelist < 451851 ? source.match(/function \((+)\)\{.+(+)=\1\.object;+this\.(+)=\2;/)
: source.match(/function \((+)(?:,+)?\)\{.+this\.(+)=\1;/);
/**
* @returns {ClientLib.Vis.Region.RegionObject}
*/
webfrontend.gui.region.RegionCityInfo.prototype.getObject = function() {
return this;
};
}


I'm wondering if anyone can contribute to solving the issues with these scripts.

You can find the original source code for the scripts here: https://openuserjs.org/users/petui/scripts.

2 Replies

  • XDaast's avatar
    XDaast
    Rising Adventurer
    8 years ago
    Thanks to chertosha for finding a solution. I've patched the scripts in the CD pack.

About Tiberium Alliances Technical Issues

Having problems running the game or a script? Get help with Command and Conquer: Tiberium Alliances with the community!1,663 PostsLatest Activity: 3 months ago