Kart Racing Pro Official Forum

Mods => Plugins => Topic started by: OS-Chris on January 12, 2012, 12:27:14 pm

Title: RunSplit & RunLap
Post by: OS-Chris on January 12, 2012, 12:27:14 pm
In testing at least (haven't tried race), RunSplit() & RunLap() don't seem to be getting called ?
Title: Re: RunSplit & RunLap
Post by: PiBoSo on January 12, 2012, 01:04:54 pm

They both seem to called in Beta5.
Are the other functions called?
Could you please post the 2 functions' declaration?
Title: Re: RunSplit & RunLap
Post by: OS-Chris on January 12, 2012, 01:32:01 pm
Thx for the quick reply. The other functions work fine, just these 2 aren't

extern "C" __declspec(dllexport) void RunLap(void *_pData,int _iDataSize)
extern "C" __declspec(dllexport) void RunSplit(void *_pData,int _iDataSize)

Also, is this correct, version 6 ?
extern "C" __declspec(dllexport) int Version()
{
   return 6;
}
Title: Re: RunSplit & RunLap
Post by: PiBoSo on January 12, 2012, 01:49:18 pm
Quote from: OS-Chris on January 12, 2012, 01:32:01 pm
Thx for the quick reply. The other functions work fine, just these 2 aren't

extern "C" __declspec(dllexport) void RunLap(void *_pData,int _iDataSize)
extern "C" __declspec(dllexport) void RunSplit(void *_pData,int _iDataSize)

Also, is this correct, version 6 ?
extern "C" __declspec(dllexport) int Version()
{
   return 6;
}


Everything looks correct.
Title: Re: RunSplit & RunLap
Post by: OS-Chris on January 13, 2012, 03:07:21 pm
I found the problem :)

Turns out I like the "Circuit International d'Essay - Short" track too much. I've been doing all my testing there and I only just realised the timing is not working. I should have realised (or at least tried another track) sooner rather than spending hours going over my code thinking "work damn you !!". Another lesson learnt, "Don't always assume your wrong. Rule out other variables before digging too deep" :D
Title: Re: RunSplit & RunLap
Post by: PiBoSo on January 13, 2012, 03:28:18 pm
Quote from: OS-Chris on January 13, 2012, 03:07:21 pm
I found the problem :)

Turns out I like the "Circuit International d'Essay - Short" track too much. I've been doing all my testing there and I only just realised the timing is not working. I should have realised (or at least tried another track) sooner rather than spending hours going over my code thinking "work damn you !!". Another lesson learnt, "Don't always assume your wrong. Rule out other variables before digging too deep" :D


Timing at Essay Short should work.