Flash Games | CashSurfers | Buy Ads | Car Accident | GeekAlarm! | MP3 | FriendSurfer | Clear History | NinjaWax
3D GameStudio Plugins
Home | GSPython | SL | Registry | OGG | TTS | GSADO | GSHTTP | GSCrypt | rACE | ModPlayer | Contact
GSPython v0.93!

Download GSPython v0.93 *Compiled for A5.5+* *BETA*

Download GSPython v0.93 *Source for A5.5+* *BETA*

Download Python Demo #1 (1.4MB)
Demo uses the sys module to display system information. Includes project source.

Use:
Free for all GameStudio projects without restrictions.

Disclaimer: If it blows up your machine it's not our fault.

Installation:
Unzip gspython.wdl into your templates directory.
Unzip GSPython.dll into your work directory.
Unzip python23.dll into your bin directory (or your Windows system directory).

Publishing:
You will have to copy the DLLs manually to your .cd directory when you publish.

For more information reguarding the Python language, including documentation, and a developement kit see: Python.org

Versions:

03/02/2004 -- v0.93 -- Added Python_Create() Python_Flags()
01/16/2004 -- v0.92 -- Added Python_LinkCStr()
-----------------------------Python_LinkTex()
-----------------------------Python_LinkBmap()
-----------------------------Python_LinkFont()
-----------------------------Python_LinkTxt()
-----------------------------Python_LinkPan()
-----------------------------Python_LinkView()
-----------------------------and all the .flags constants (see gspython.wdl).
01/13/2004 -- v0.91 -- Added Python_LinkEnt() and Python_LinkPar().
12/28/2003 -- v0.90 -- Beta Released.

Usage:

See gspython.wdl for a list of functions and their parameters.
See readme.txt for examples.

Functions:


// All return 1 if error else returns 0 unless otherwise stated.

dllfunction Python_Create();
// Create Python engine object.

dllfunction Python_Flags(VarName, VarValue);
// Call this function after Python_Create() and before Python_Init().
// VarName is the name of the Python flag you want to set ("Debug","Interactive",
// "NoSite","Optimize","TabCheck","Unicode","Verbose","UseClassExceptionsFlag",
// "FrozenFlag","IgnoreEnvironementFlag","UseDivisionWarningFlag").
// VarString is the value of the Python flag you want to set ("true" or "false").

dllfunction Python_Init();
// Initialize Python engine object.
// Initializes the Acknex flag constants in Python (see: Flags comment)

dllfunction Python_LinkStr(VarName, VarString);
// VarName is the name of the Python variable you are creating. 
// VarString is the Acknex string you are linking it to. 
// Do not use a temp string here.

dllfunction Python_LinkEnt(VarName, VarEntity);
// VarName is the name of the Python variable you are creating. 
// VarEntity is the Acknex entity you are linking it to.
// Everything is support except .link. 
// Access .min[0..2] with .min0, .min1, .min2
// Access .max[0..2] with .max0, .max1, .max2
// Access .skill[1..48] with .skill1, .skill2, etc.

dllfunction Python_LinkCStr(VarName, VarString);
// VarName is the name of the Python variable you are creating. 
// VarString is the Acknex string you are linking it to.

dllfunction Python_LinkTex(VarName, VarBmap);
// VarName is the name of the Python variable you are creating. 
// VarBmap is the Acknex bmap you are linking it to. 
// The texture is derived from the bmap.

dllfunction Python_LinkBmap(VarName, VarBmap);
// VarName is the name of the Python variable you are creating. 
// VarBmap is the Acknex bmap you are linking it to.
// .tex returns a long pointer to the texture

dllfunction Python_LinkPar(VarName, VarParticle);
// VarName is the name of the Python variable you are creating. 
// VarParticle is the Acknex particle you are linking it to.
// Everything is support except .link.
// .bmap returns a long pointer to the bmap
// Access .skill[1..4] with .skill1, .skill2, etc.

dllfunction Python_LinkFont(VarName, VarFont);
// VarName is the name of the Python variable you are creating. 
// VarFont is the Acknex font you are linking it to.
// .bmap returns a long pointer to the bmap

dllfunction Python_LinkTxt(VarName, VarText);
// VarName is the name of the Python variable you are creating. 
// VarText is the Acknex text you are linking it to.
// .font returns a long pointer to the font

dllfunction Python_LinkPan(VarName, VarPanel);
// VarName is the name of the Python variable you are creating. 
// VarPanel is the Acknex panel you are linking it to.
// .bmap returns a long pointer to the bmap

dllfunction Python_LinkView(VarName, VarView);
// VarName is the name of the Python variable you are creating. 
// VarView is the Acknex view you are linking it to.
// .genius returns a long pointer to the entity
// .portal returns a long pointer to the view
// .bmap returns a long pointer to the bmap


dllfunction Python(CmdStr);
// Compile and execute Python contained in CmdStr
// Place strings inside single quotes (). 
// To use double quotes (") you have to exit them like this \". 
// Back slashs (\) must also be exited like this \\.

dllfunction Python_Verbose(integer);
// Default 1. Set to 1 to enable verbose errors. 
// Set to 0 to disable verbose errors.

dllfunction Python_Free();
// Free Python engine object.

function pythonwait(varint) {
wait(varint);
}

function pythonwaitt(varint) {
waitt(varint);
}

/*
Flags comments:
#Python constants defined when Python_Init(); is called.

GSTRUE = 1 << 10
GSFALSE = 0
GSON = GSTRUE
GSOFF = GSFALSE
TRMF_IGNORE_ME = 1 << 0
TRMF_IGNORE_YOU = 1 << 1
TRMF_IGNORE_PASSABLE = 1 << 2
TRMF_IGNORE_PASSENTS = 1 << 3
TRMF_IGNORE_MODELS = 1 << 4
TRMF_IGNORE_SPRITES = 1 << 5
TRMF_IGNORE_MAPS = 1 << 7
TRMF_IGNORE_WORLD = 1 << 8
TRMF_IGNORE_PUSH = 1 << 9
TRMF_ACTIVATE_SHOOT = 1 << 10
TRMF_ACTIVATE_SONAR = 1 << 11
TRMF_ACTIVATE_TRIGGER = 1 << 11
TRMF_USE_BOX = 1 << 13
TRMF_SCAN_TEXTURE = 1 << 16
TRMF_GLIDE = 1 << 18
ENF_FLAG1 = 1 << 0
ENF_FLAG2 = 1 << 1
ENF_FLAG3 = 1 << 2
ENF_FLAG4 = 1 << 3
ENF_FLAG5 = 1 << 4
ENF_FLAG6 = 1 << 5
ENF_FLAG7 = 1 << 6
ENF_FLAG8 = 1 << 7
ENF_INVISIBLE = 1 << 8
ENF_PASSABLE = 1 << 9
ENF_TRANSPARENT = 1 << 10
ENF_ORIENTED = 1 << 12
ENF_UVSPEED = 1 << 11
ENF_OVERLAY = 1 << 12
ENF_FACING = 1 << 13
ENF_NEAR = 1 << 14
ENF_FLARE = 1 << 15
ENF_NOFILTER = 1 << 16
ENF_UNLIT = 1 << 17
ENF_SHADOW = 1 << 18
ENF_LIGHT = 1 << 19
ENF_NOFOG = 1 << 20
ENF_BRIGHT = 1 << 21
EVF_SURFACE = 1 << 1
EVF_ENTITY = 1 << 2
EVF_STUCK = 1 << 3
EVF_PUSHED = 1 << 4
EVF_IMPACT = 1 << 5
EVF_DETECT = 1 << 7
EVF_SCAN = 1 << 8
EVF_SHOOT = 1 << 9
EVF_TRIGGER = 1 << 10
EVF_SONAR = 1 << 11
EVF_TOUCH = 1 << 16
EVF_RELEASE = 1 << 17
EVF_CLICK = 1 << 18
EVF_RIGHTCLICK = 1 << 19
EVF_DISCONNECT = 1 << 24
EVF_RECONNECT = 1 << 25
EPF_STREAK = 1 << 8
EPF_BEAM = 1 << 9
EPF_MOVE = 1 << 11
BMPF_ARGB = 1 << 8
BMPF_SAVE = 1 << 9
BMPF_MIPMAPS = 1 << 10
BMPF_8BIT = 1 << 11
TPVF_OVLY = 1 << 3
TPVF_TRANSP = 1 << 4
TPVF_D3D = 1 << 8
TPVF_NARROW = 1 << 13
TPVF_VISIBLE = 1 << 14
TPVF_AUDIBLE = 1 << 15
TPVF_CENTER_X = 1 << 18
TPVF_CENTER_Y = 1 << 19
*/

Peacekeeper Enterprises, LLC.