Alpha build posted (for real this time)..

Official Announcements about Source.Python.
your-name-here
Developer
Posts: 168
Joined: Sat Jul 07, 2012 1:58 am

Alpha build posted (for real this time)..

Postby your-name-here » Sat Aug 18, 2012 7:17 pm

I've posted an alpha build of Source.Python containing our latest changes.

What's changed:
  • We've exposed the IEffects interface (which is in the Misc).
  • We've exposed the Vector class along with assorted methods.
  • Added the ServerVar library.
  • Added the Player and Entities generators.

You can grab the build from here:
http://source-python.googlecode.com/files/source-python-1.0.0a.zip
DreTaX14
Junior Member
Posts: 15
Joined: Fri Aug 17, 2012 5:05 pm

Postby DreTaX14 » Sat Aug 18, 2012 7:57 pm

So this is for all the linux users.
plugin_print works.
Server doesn't crash.
Addons are working(Hopefully)
Scripting in Python is mostly better than SM.
Python is powerfull, if you learn it.
The reason is because I LIKE SNAKES! :D
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Sun Aug 19, 2012 1:56 am

your-name-here wrote:I've posted an alpha build of Source.Python containing our latest changes.

What's changed:
  • We've exposed the IEffects interface (which is in the Misc).
  • We've exposed the Vector class along with assorted methods.
  • Added the ServerVar library.
  • Added the Player and Entities generators.

You can grab the build from here:
http://source-python.googlecode.com/files/source-python-1.0.0a.zip


Awesome news! What do you mean by Player and Entities generators? Example? :D
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Aug 19, 2012 2:21 am

Syntax: Select all

from Source import Player
from Source import Entity
from Source import Engine

for player in Player.Players():
print(player.GetName())
print(player.GetNetworkIDString())

for entity in Entity.Entities('weapon_'):
print(entity.GetClassName())
print(Engine.IndexOfEdict(entity))
Until the wiki is updated, info on Player objects:
http://code.google.com/p/source-python/source/browse/src/core/modules/export_player.cpp

Info on Entity objects:
http://code.google.com/p/source-python/source/browse/src/core/modules/export_entity.cpp

Satoon
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Sun Aug 19, 2012 2:42 am

satoon101 wrote:

Syntax: Select all

from Source import Player
from Source import Entity
from Source import Engine

for player in Player.Players():
print(player.GetName())
print(player.GetNetworkIDString())

for entity in Entity.Entities('weapon_'):
print(entity.GetClassName())
print(Engine.IndexOfEdict(entity))
Until the wiki is updated, info on Player objects:
http://code.google.com/p/source-python/source/browse/src/core/modules/export_player.cpp

Info on Entity objects:
http://code.google.com/p/source-python/source/browse/src/core/modules/export_entity.cpp

Satoon


Yeah, thanks, I knew about them. But I was confused about the word generators^^
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Aug 19, 2012 2:49 am

User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Sun Aug 19, 2012 5:14 pm



You don't get what I'm talking about... your-name-here says there are Player and Entity decorators but you don't decorate a script using the word Player or Entity, do you?
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Aug 19, 2012 5:18 pm

Where did he say "decorator"? And no, I honestly have no idea what you are talking about. Each uses a "generator" that iterates over the players/entities instead of returning a list.

Satoon
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Sun Aug 19, 2012 6:00 pm

satoon101 wrote:Where did he say "decorator"? And no, I honestly have no idea what you are talking about. Each uses a "generator" that iterates over the players/entities instead of returning a list.

Satoon


OMG sorry it's my fault... He said generators, not decorators... sorry about that :)

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 15 guests