[plugin] TMKarma - Edit Me!

Post here every finished plugin

Moderator: NADEO

User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

[plugin] TMKarma - Edit Me!

Post 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
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: [plugin] TMKarma - Edit Me!

Post 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.
tcq
Posts: 2645
Joined: 15 Jun 2010, 11:02

Re: [plugin] TMKarma - Edit Me!

Post 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.
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: [plugin] TMKarma - Edit Me!

Post 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.
User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

Re: [plugin] TMKarma - Edit Me!

Post 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
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
tmdunhill
Posts: 52
Joined: 10 Feb 2011, 02:15

Re: [plugin] TMKarma - Edit Me!

Post 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.
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: [plugin] TMKarma - Edit Me!

Post 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')
Also known as: satanasdiabolo
TheM
Posts: 1379
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: [plugin] TMKarma - Edit Me!

Post 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.
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).
tmdunhill
Posts: 52
Joined: 10 Feb 2011, 02:15

Re: [plugin] TMKarma - Edit Me!

Post 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
User avatar
Knutselmaaster
Posts: 1206
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: [plugin] TMKarma - Edit Me!

Post by Knutselmaaster »

Take out the < and >:

Code: Select all

plugins.Flo\TMKarma.communityCode = 'X50X6X'
Post Reply

Return to “ManiaLive Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest