Thread Rating:
  • 6 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API Knowledgebase Questionthread
Author Message
Topper42 Offline
Developer
***

Posts: 248
Joined: Dec 2011
Post: #31
RE: API Knowledgebase Questionthread
@PEEU

The only API functions we are currently supporting are those for the combat simulation. Every other function which is not obfuscated can change on ervery update.
24-10-2012 04:07 PM
 Search   Quote 
XpressSwarn Offline
Junior Member
**

Posts: 13
Joined: Oct 2012
Post: #32
RE: API Knowledgebase Questionthread
Hello,

http://forum.alliances.commandandconquer...?tid=14923

the Question is,
how i get Killed PVE/PVP-Bases from a Player,
if i have the "MemberInfo" Object of a Player.

Could you help me/us?
25-10-2012 07:46 AM
 Search   Quote 
Deyhak Offline
Member
***

Posts: 53
Joined: Jul 2012
Post: #33
RE: API Knowledgebase Questionthread
@Topper,

It seems like the API version hasn't changed yet.

When will we see the new version?
25-10-2012 01:08 PM
 Search   Quote 
Topper42 Offline
Developer
***

Posts: 248
Joined: Dec 2011
Post: #34
RE: API Knowledgebase Questionthread
(25-10-2012 01:08 PM)Deyhak Wrote:  @Topper,

It seems like the API version hasn't changed yet.

When will we see the new version?

Hi, the "API" will change with every game update, but i think you refer to the ClientLib.js.txt file which looks like is not uptodate.
26-10-2012 10:20 AM
 Search   Quote 
Topper42 Offline
Developer
***

Posts: 248
Joined: Dec 2011
Post: #35
RE: API Knowledgebase Questionthread
(25-10-2012 07:46 AM)XpressSwarn Wrote:  Hello,

http://forum.alliances.commandandconquer...?tid=14923

the Question is,
how i get Killed PVE/PVP-Bases from a Player,
if i have the "MemberInfo" Object of a Player.

Could you help me/us?

As far as i know this information is only in the ranking available, for what excatly do you need this information?
26-10-2012 10:23 AM
 Search   Quote 
XpressSwarn Offline
Junior Member
**

Posts: 13
Joined: Oct 2012
Post: #36
RE: API Knowledgebase Questionthread
(26-10-2012 10:23 AM)Topper42 Wrote:  
(25-10-2012 07:46 AM)XpressSwarn Wrote:  Hello,

http://forum.alliances.commandandconquer...?tid=14923

the Question is,
how i get Killed PVE/PVP-Bases from a Player,
if i have the "MemberInfo" Object of a Player.

Could you help me/us?

As far as i know this information is only in the ranking available, for what excatly do you need this information?

how i get the ranking?

i need it for a detailed information about my alliance,
for example (at the moment it looks like):
name;score;Bases;rank;
0samy0;302765;7;11;
1delirium;157942;5;76;
500g;141138;5;99;
_SteWanStar_;115335;5;131;
BI3RB4UM;69454;4;312;
BinTod;90215;4;196;
Blackkrypt;181049;6;55;
Brachelor;179380;5;59;
...

and now i wan't to know how much bases are killed by this people,
so i could make weekly statistic's for my alliance.
(This post was last modified: 26-10-2012 11:31 AM by XpressSwarn.)
26-10-2012 11:30 AM
 Search   Quote 
Deyhak Offline
Member
***

Posts: 53
Joined: Jul 2012
Post: #37
RE: API Knowledgebase Questionthread
(26-10-2012 10:20 AM)Topper42 Wrote:  
(25-10-2012 01:08 PM)Deyhak Wrote:  @Topper,

It seems like the API version hasn't changed yet.

When will we see the new version?

Hi, the "API" will change with every game update, but i think you refer to the ClientLib.js.txt file which looks like is not uptodate.

That, and the fact that the new feature:
Code:
webfrontend.Util.attachNetEvent(ClientLib.Vis.VisMain.GetInstance().get_Battlegr​​ound(), "OnSimulateBattleFinished", ClientLib.Vis.Battleground.OnSimulateBattleFinished, this, OnSimulateBattleFinished);

gives me an error.
26-10-2012 01:58 PM
 Search   Quote 
Topper42 Offline
Developer
***

Posts: 248
Joined: Dec 2011
Post: #38
RE: API Knowledgebase Questionthread
(26-10-2012 01:58 PM)Deyhak Wrote:  
(26-10-2012 10:20 AM)Topper42 Wrote:  
(25-10-2012 01:08 PM)Deyhak Wrote:  @Topper,

It seems like the API version hasn't changed yet.

When will we see the new version?

Hi, the "API" will change with every game update, but i think you refer to the ClientLib.js.txt file which looks like is not uptodate.

That, and the fact that the new feature:
Code:
webfrontend.Util.attachNetEvent(ClientLib.Vis.VisMain.GetInstance().get_Battlegr​​ound(), "OnSimulateBattleFinished", ClientLib.Vis.Battleground.OnSimulateBattleFinished, this, OnSimulateBattleFinished);

gives me an error.

Hi, ok i looked at the closed beta 1 version and the "OnSimulateBattleFinished" event is there, what error do you get excatly?
26-10-2012 02:47 PM
 Search   Quote 
Deyhak Offline
Member
***

Posts: 53
Joined: Jul 2012
Post: #39
RE: API Knowledgebase Questionthread
Unexpected identifier


Must b something with my syntax.

I'm putting the line when I open the tools box in my script.

My OnSimulateBattleFinished looks like this:

Code:
function OnSimulateBattleFinished(data){
    for (var i = 0; i < data.length; i++){
       console.log(data[i]);
    }
    
}


My script isn't oop version so that is why I am not using this.OnSimulateBattleFinished.
26-10-2012 03:08 PM
 Search   Quote 
Topper42 Offline
Developer
***

Posts: 248
Joined: Dec 2011
Post: #40
RE: API Knowledgebase Questionthread
(26-10-2012 03:08 PM)Deyhak Wrote:  Unexpected identifier


Must b something with my syntax.

I'm putting the line when I open the tools box in my script.

My OnSimulateBattleFinished looks like this:

Code:
function OnSimulateBattleFinished(data){
    for (var i = 0; i < data.length; i++){
       console.log(data[i]);
    }
    
}


My script isn't oop version so that is why I am not using this.OnSimulateBattleFinished.

So is the "OnSimulateBattleFinished" function ever called? Can you determine where the error occure?
Have you checked the content of "data"?
(This post was last modified: 26-10-2012 04:13 PM by Topper42.)
26-10-2012 04:12 PM
 Search   Quote 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)