Page 1 of 2

[plugin] TMKarma - Edit Me!

Posted: 24 Feb 2011, 17:19
by aseco
Image

About
This plugin is just a very simple version of the (X)Aseco plugin that you can use to display track ratings.
The reason, why we are releasing this plugin is because for beginners it is always hard to make the first step.
TMKaram is already working, but could use some eye candy or additional windows. At the moment it is very plain and functional. Hopefully you can find the missing pieces and make it shiny :D
Download the core and attach whatever you want, you can then release it under your own login.

Configuration
It has yet some built in configuration values, this is what you can set in the config.ini with default values:

Code: Select all

plugins.Flo\TMKarma.posX = 49
plugins.Flo\TMKarma.posY = -10.1
plugins.Flo\TMKarma.scale = 0.9
plugins.Flo\TMKarma.countryCode = <will be determined by your ip address>
plugins.Flo\TMKarma.communityCode = <you will need to set this!>
plugins.Flo\TMKarma.login = <server login>
Download
Finally get it here: http://files.manialive.com/TMKarma.zip

Re: [plugin] TMKarma - Edit Me!

Posted: 28 Feb 2011, 23:51
by weerwolf

Code: Select all

[23:47:53|TMKarma] Your location has been detected: China (Asia)
:lol: :lol:
Sure want to auto detect region on IP basis??
Server is located in Germany .....

EDIT:
Bug report
When in spectator mode the track has changed, the Karma window has dissappeared.

Re: [plugin] TMKarma - Edit Me!

Posted: 01 Mar 2011, 06:12
by tcq
weerwolf wrote: EDIT:
Bug report
When in spectator mode the track has changed, the Karma window has dissappeared.
Wouldn't see this as a bug, because the players in spec can't judge a track without driving it.

Re: [plugin] TMKarma - Edit Me!

Posted: 01 Mar 2011, 13:19
by weerwolf
If you go into spec, you still see it. If the track changes while in spec, on the next track its gone. But if you press enter and go to race, it stays gone.

Re: [plugin] TMKarma - Edit Me!

Posted: 03 Mar 2011, 11:36
by aseco
weerwolf wrote:

Code: Select all

[23:47:53|TMKarma] Your location has been detected: China (Asia)
:lol: :lol:
Sure want to auto detect region on IP basis??
Server is located in Germany .....

EDIT:
Bug report
When in spectator mode the track has changed, the Karma window has dissappeared.
:oops: well, you can still override this, because there is a config setting ...
It is working well for me and I guess it will most of the times, but for those it fails: just use the config please :)

So for the "bug", let's say it is a poorly implemented feature that needs some tweaking.
I won't fix... it will need to be reauthored anyways

Re: [plugin] TMKarma - Edit Me!

Posted: 06 Mar 2011, 23:42
by tmdunhill
hello,

I would like a helping hand to set my ip as indicated below, but the system is not identifying the address, which could make for correction?

Occured on 06.03.2011 at 22:26:30 at process with ID #1020
---------------------------------
-> ManiaLivePlugins\Flo\TMKarma\Exception with code 0
The country code <187.36.237.199> is not known!
- in C:\ManiaLive\libraries\ManiaLivePlugins\Flo\TMKarma\Service.php on line 35
- Stack: #0 C:\ManiaLive\libraries\ManiaLivePlugins\Flo\TMKarma\TMKarma.php(79): ManiaLivePlugins\Flo\TMKarma\Service::forceCountryCode('<187.36.237.199>')

I'm tearing down the configuration set in config.ini.

plugins.Flo\TMKarma.posX = 49
plugins.Flo\TMKarma.posY = -10.1
plugins.Flo\TMKarma.scale = 0.9
plugins.Flo\TMKarma.countryCode = <187.36.237.199>
plugins.Flo\TMKarma.communityCode = <XXXX>
plugins.Flo\TMKarma.login = <XXXXX>

Thanks.

Re: [plugin] TMKarma - Edit Me!

Posted: 07 Mar 2011, 07:34
by farfa
Your ip is not correct remove the '<' and '>' around your ip

this one is correct, but I think your ip must be set in your config file
ManiaLivePlugins\Flo\TMKarma\Service::forceCountryCode('187.36.237.199')

Re: [plugin] TMKarma - Edit Me!

Posted: 07 Mar 2011, 09:30
by TheM
farfa wrote:Your ip is not correct remove the '<' and '>' around your ip

this one is correct, but I think your ip must be set in your config file
ManiaLivePlugins\Flo\TMKarma\Service::forceCountryCode('187.36.237.199')
I don't think so... It automaticly tries to get your country by IP.
If you want to force a country, you'll have to set the country in the config.

Re: [plugin] TMKarma - Edit Me!

Posted: 07 Mar 2011, 16:08
by tmdunhill
Hello Friends,

Thanks for the help, the issue of ip resolved, however, even with the code of community defined in config.ini, he accuses the error.

I'm putting down to see if I did something wrong.

plugins.Flo\TMKarma.communityCode = <'X50X6X'>

New error message:

-> Exception with code 0
You need to set the communityCode in the config.ini in order to make TMKarma work!

Thank you.

Dunhill :D

Re: [plugin] TMKarma - Edit Me!

Posted: 07 Mar 2011, 16:38
by Knutselmaaster
Take out the < and >:

Code: Select all

plugins.Flo\TMKarma.communityCode = 'X50X6X'