Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: geowelcome plugin  (Read 79686 times)

Offline hEmI

  • Jr. Member
  • **
  • Posts: 15
Re: geowelcome plugin
« Reply #15 on: January 23, 2010, 03:32:56 PM »
ok i will do that.

Thank you again :)

Offline daiosama

  • Jr. Member
  • **
  • Posts: 22
    • Elite Brotherhood Clan
Re: geowelcome plugin
« Reply #16 on: February 01, 2010, 02:30:14 AM »
I too am running the .py version of b3 and am getting the simplejson error.  How do I remedy this?

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: geowelcome plugin
« Reply #17 on: February 01, 2010, 01:03:39 PM »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: geowelcome plugin
« Reply #18 on: February 01, 2010, 01:31:50 PM »
@sgt, in order to make your plugin compatible with python 2.6 would consider updating your code as such :
Code: python [Select]

try:
    import json
except ImportError:
    import simplejson as json


This will also allow your plugin to work with the w32 standalone release of B3 which is build with python2.6.

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: geowelcome plugin
« Reply #19 on: February 01, 2010, 02:24:21 PM »
@sgt, in order to make your plugin compatible with python 2.6 would consider updating your code as such :
Code: python [Select]

try:
    import json
except ImportError:
    import simplejson as json


This will also allow your plugin to work with the w32 standalone release of B3 which is build with python2.6.

Thank you for the suggestion.
I attached an updated version.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: geowelcome plugin
« Reply #20 on: February 01, 2010, 02:44:12 PM »
nice, but there is still a glitch  ;)

As the code I suggested to you import simplejson as 'json'
you then need to use 'json' instead of 'simplejson' in your code :

Code: python [Select]
json_response = json.loads(urlopen(lookup_url).read())


make sure to replace all previous occurences of simplejson with json and it should work as before for python 2.4/2.5 but also work with python 2.6

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: geowelcome plugin
« Reply #21 on: February 01, 2010, 02:55:12 PM »
nice, but there is still a glitch  ;)

As the code I suggested to you import simplejson as 'json'
you then need to use 'json' instead of 'simplejson' in your code :

Code: python [Select]
json_response = json.loads(urlopen(lookup_url).read())


make sure to replace all previous occurences of simplejson with json and it should work as before for python 2.4/2.5 but also work with python 2.6

You're right, I didn't notice that change :)

Offline daiosama

  • Jr. Member
  • **
  • Posts: 22
    • Elite Brotherhood Clan
Re: geowelcome plugin
« Reply #22 on: February 01, 2010, 07:47:11 PM »
finally got simplejson installed.  ez_setup would not install for me. for what ever reason it was giving me a ton of errors.  I was ready to through the computer out the window.  Lucky for it, I'm in Detroit and it is in Chicago.   i was running python 2.5, so I figured the errrors might go away if I installed 2.6.  but I couldn't figure out how to install mysql interface with 2.6
so then I uninstalled everything and installed the 64bit version of 2.5 and the mysql still wouldn't install.
so I installed the 32 bit version and after all that I finally got everything up and running.

Just too bad I am not home to test it with the game.  Oh well.

Offline Unknow Soldier

  • Jr. Member
  • **
  • Posts: 40
Re: geowelcome plugin
« Reply #23 on: February 02, 2010, 04:26:51 PM »
That plugin dont work without Punkbuster in COD2  :P

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: geowelcome plugin
« Reply #24 on: February 02, 2010, 04:40:26 PM »
That plugin dont work without Punkbuster in COD2  :P

I don't see why, it has nothing to do with punkbuster.
I use iourt41, though this plugin doesn't have any game specific requirement, so it should work with cod too.

If you are getting any error, please post it, maybe someone can help you.

Offline Unknow Soldier

  • Jr. Member
  • **
  • Posts: 40
Re: geowelcome plugin
« Reply #25 on: February 02, 2010, 06:55:31 PM »
becouse B3 has not the IP of the player in COD2 without PB. Have something to do with the cod2 parser.

Seams it will be fixed in the 1.2.2 version
http://www.bigbrotherbot.com/forums/general-usage-support/ip-adress-not-being-recorded/msg9730/#msg9730

Offline misamix

  • Jr. Member
  • **
  • Posts: 44
    • UrT SRBIJA
Re: geowelcome plugin
« Reply #26 on: March 01, 2010, 09:20:52 PM »
i runing b3 from my comp to remote server

until now i use python 2.6 and everything working good, but cant use geowelcome plugin

when i install python 2.5 i run b3, and load geowelcome plugin, b3 started on server and load once log file from server, but not synchronize like on 2.6

is there any chance to run b3 with geowelcome plugin with python 2.6?

tnx

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: geowelcome plugin
« Reply #27 on: March 01, 2010, 09:26:44 PM »
as long as this plugin will depends on additional python modules you cannot run it with the B3 win32 standalone release.

If your dying to try this plugin you can install the B3 bot from sources (a bit more complicated as you need to install python on your computer as well as a few additional python modules). This will allow you to install the additional python modules this plugin makes use of.

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: geowelcome plugin
« Reply #28 on: April 21, 2010, 11:25:31 PM »
Hello :)

With moving the !greeting from the admin plugin to the welcome plugin, people using the geowelcome plugin cannot use the !greeting command anymore.  :(

Is there any chance the geowelcome will get the !greeting command build in?

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: geowelcome plugin
« Reply #29 on: April 22, 2010, 01:07:12 AM »
Hello :)

With moving the !greeting from the admin plugin to the welcome plugin, people using the geowelcome plugin cannot use the !greeting command anymore.  :(

Is there any chance the geowelcome will get the !greeting command build in?


Sure, it's an easy change.
I could do it this weekend. Though you are very welcome to do it yourself if cannot wait  ;)

Regards.

 


Rate this page +1 at Google Search