Author Topic: Any interest in pyGHost++  (Read 4301 times)

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Any interest in pyGHost++
« on: December 16, 2013, 09:01:13 am »
pyGHost++ is a GHost++ modification Krauzi made a while ago that offers support for Python plugins that can be dynamically loaded into the host bot. I was thinking about updating it and offloading some existing C++ code to plugins, and probably also including some multithreaded support so that the plugins don't cause other games to freeze if they take a long time to execute.

Grief-Code

  • Guest
Re: Any interest in pyGHost++
« Reply #1 on: December 16, 2013, 09:07:47 am »
If you like i would Support you on that and help you a bit :-)

Profforg

  • Average Member
  • ***
  • Posts: 187
  • Karma: +23/-27
    • View Profile
Re: Any interest in pyGHost++
« Reply #2 on: December 16, 2013, 12:02:30 pm »
It's good project and your aims is understandable, but here's nothing to extend in GHost++. Most mini-modifications need to be 100% connected with other code and mostly the best way is to just edit existed code instead of write new one.
I'm offering most advanced Warcraft 3 bot hosting.

Feel free to contact me:
E-Mail: admin@rusdota.net

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: Any interest in pyGHost++
« Reply #3 on: December 17, 2013, 08:19:48 am »
pyGHost++ better GHost++?

Grief-Code

  • Guest
Re: Any interest in pyGHost++
« Reply #4 on: December 17, 2013, 08:22:18 am »
pyGHost++ better GHost++?
It does belong to what you are planing.

pyGhost is written in Python while ghost++ is in c/c++.
if you have some programming knowledge in python, pyghost would be a good idea for you since you can easily modify it then.

Regards

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: Any interest in pyGHost++
« Reply #5 on: December 17, 2013, 10:24:45 am »
pyGHost++ is written in C++ but supports Python plugins. pychop was based in pyGHost++.

Grief-Code

  • Guest
Re: Any interest in pyGHost++
« Reply #6 on: December 17, 2013, 10:26:11 am »
pyGHost++ is written in C++ but supports Python plugins. pychop was based in pyGHost++.

Ok my bad. I never looked it up or saw the sources ;-)

Kelthar

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-1
    • View Profile
Re: Any interest in pyGHost++
« Reply #7 on: December 19, 2013, 02:07:13 pm »
Despite being interesting, I doubt it would serve any actual purpose, in general. A select group of people would probably pick it up, but I do not think it would have any substantial impact on the GHost community.

GHost++ is pretty "complete" at the moment, and even if this were to exist, most people would still modify GHost++'s source-code instead of developing and implementing a plugin on pyGHost++.

Just my two cents.

Grief-Code

  • Guest
Re: Any interest in pyGHost++
« Reply #8 on: December 19, 2013, 03:52:37 pm »
A application which getting development has never the status 'complete'.

It can have at a maximum the status optimized and userfriendly.
But this isnt the current status of the ghost++, there some patches which are frequently asked on codelain and implented in 99% of the bnet hosted games.

But you are right with your points. Who using pyGHost? I dont know anyone. I just offered the help because im always interested in languages and coding. Also in the integration of python to c.
But this is a personal thing, this is also why im here. I'm not programming for a clan or whatever im programming because im personally interested in this and im always learning new things.

Regards

AbsoluteMSTR

  • Newbie
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
Re: Any interest in pyGHost++
« Reply #9 on: January 03, 2014, 10:29:18 am »
I always wanted to adopt pyGHost++ and I do like some of the goals you set uakf.b. I also like to suggest that it adopts Python 3.3 over 2.x.

Big consideration, should this be adopted part of Official Ghost++ or remain a fork as no new features have been added to main code.

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: Any interest in pyGHost++
« Reply #10 on: January 21, 2014, 11:58:38 am »
I think you'd be able to use any Python version, maybe have to edit Makefile. Haven't gotten a chance to do much yet, but still seems interesting since it'd simplify the process of making small modifications.

AbsoluteMSTR

  • Newbie
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
Re: Any interest in pyGHost++
« Reply #11 on: January 22, 2014, 11:40:47 am »
I suggest a simpler way on setting up event handlers

Code: [Select]
@onCommand('ban', alias=['addban'])
def ban(event):
    if event.user.isAdmin():
      name = event.args.params[0]
      reason = ' '.join(self.args.params[1:])
    #do something

I would be interested in writing a cleaner Python API

JiLiZART

  • Global Moderator
  • Newbie
  • *****
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Any interest in pyGHost++
« Reply #12 on: March 11, 2014, 02:20:14 pm »
It can be usefull, if outsource all commands and chat functionality to plugins, C++ code only host games in threads, generate map hashes and (maybe) interact with Bnet.