Page 1 of 1

GSRPG (German Slaughterhouse RPG) [NOT RELEASED - COMING SOON]

Posted: Tue Aug 21, 2012 8:05 am
by Omega_K2
So, I've been working on a completly new RPG mod for Eventscripts, but seeing how ES doesn't get any updates anymore and had a pretty bad update history, I made the decision to port this to Source.Python and only release it on SP.

The idea of the RPG is to be a large all-in one plugin with which you can theoretically emulate WC3Source or other skill based plugins by creating classes. Depending on how much time I have on my hands, it might just release with the standard RPG features though.

I also intend it to be highly configuration driven, so that you can configure most of the aspects of the skills and RPG easily.


I have a WIP wiki page:
http://www.german-slaughterhouse.de/wiki/GSRPG

Also a todo-list of not-yet included features:
https://www.german-slaughterhouse.de/forum/index.php?topic=497.0


At some point in the fuiture, I'll also make a public SVN/HG/GIT repo, but for now I just use an internal one.


And on a last note, this is what needs to be done in SP before I can really port it [may not be completly accurate]:
  • entity stuff like fire, give, remove (fire doesn't seem to exist - correct me if I'm wrong)
  • popups - need API
  • sounds
  • KeyValues and Vector for entites
  • Preferably dyncall, but not absolutly required atm

Posted: Tue Aug 21, 2012 9:23 am
by BackRaw
First of all, nice idea! I got something for you for the gamethread stuff, which is better than the ES gamethread imo:

Syntax: Select all

from threading import Timer

x = Timer(5.0, print, ("Hello", "World", 36367376))
x.run()
I guess we can make something out of this for SP.

Posted: Tue Aug 21, 2012 11:52 am
by Omega_K2
The functionality that you need from gamethread is to "jump back" to the thread, alas execute something on the next tick. Because as for some commands, it's not safe to execute them at any time (server will crash). Also with timer (I think it's a thread with a sleep actually, correct me if I am wrong :P), I think it's also possible to execute code in scripts that are not loaded anymore.

Posted: Wed Aug 22, 2012 12:51 am
by BackRaw
Omega_K2 wrote:The functionality that you need from gamethread is to "jump back" to the thread, alas execute something on the next tick. Because as for some commands, it's not safe to execute them at any time (server will crash). Also with timer (I think it's a thread with a sleep actually, correct me if I am wrong :P), I think it's also possible to execute code in scripts that are not loaded anymore.


Oh yes right. We need a tick listener then... =)

Posted: Wed Aug 22, 2012 3:26 am
by Tuck
BackRaw wrote:First of all, nice idea! I got something for you for the gamethread stuff, which is better than the ES gamethread imo:

Syntax: Select all

from threading import Timer

x = Timer(5.0, print, ("Hello", "World", 36367376))
x.run()
I guess we can make something out of this for SP.


Your code would be the same equilevent to:

Syntax: Select all

time.sleep(5)
print('Hello World 36367376')


your execution the run() event where it does code and not starting the timer, like this:

Syntax: Select all

x = threading.Timer(5.0, print, ("Hello", "World", 36367376))
x.start()


class threading.Timer(interval, function, args=[], kwargs={})

Posted: Wed Aug 22, 2012 8:46 pm
by BackRaw
Tuck wrote:Your code would be the same equilevent to:

Syntax: Select all

time.sleep(5)
print('Hello World 36367376')


your execution the run() event where it does code and not starting the timer, like this:

Syntax: Select all

x = threading.Timer(5.0, print, ("Hello", "World", 36367376))
x.start()


you're right, start() was it... but does it "sleep" then? or not?

Posted: Wed Aug 22, 2012 10:46 pm
by Absolute
Yes, but in a different Thread, so it wont make the server stop for 5 seconds.

Posted: Thu Aug 23, 2012 3:32 pm
by BackRaw
Absolute wrote:Yes, but in a different Thread, so it wont make the server stop for 5 seconds.


Woaaahhh, goooood stuff! :D

Posted: Sat Aug 25, 2012 11:32 am
by DreTaX14
Looks like im not the only one whos making rpg :D , my team equinox are making one too :D , by the way i would like to join to the translation team, by translating it to hungarian language. You omega, you are reminding me to Rennnyyy, who were the scripter of nem-rpg. Miss those times really! :(