Michael Hansen
e0e141fd01
Move Python string helper to the correct location
12 years ago
Adam Johnson
6ec219009c
Add isUsed bindings to pySimpleStateVariable
...
This lets python scripts determine if variables in SDL blobs are used (at
the default).
12 years ago
Adam Johnson
c13a12c58e
Fix those scary SystemErrors we see in DS
...
As it turns out, my old OnServerInitComplete fix didn't check to see if
the script had an OnServerInitComplete method. So, when we called that
method-of-doom from C++, we'd see a SystemError. Aside from removing an
error message, this probably has no effect.
12 years ago
Michael Hansen
49dfb4e546
Convert SDL (mostly) to plStrings
12 years ago
Michael Hansen
c68724765b
Some minor cleanup for readability
12 years ago
Michael Hansen
b219c3c3cc
Alright, this _TEMP_CONVERT_ stuff was a stupid idea
12 years ago
Michael Hansen
075c535e2c
Some cleanup and a vararg plString usage fix
12 years ago
Michael Hansen
9cc3f404af
Add Short-String Optimization to plString
12 years ago
Michael Hansen
041b1985e4
Fix paths and move GetSecureEncryptionKey so things compile again
12 years ago
Michael Hansen
6b667fcaec
Re-add file needed for precompiled headers to work
12 years ago
Michael Hansen
3c2a8c66e7
Remove more empty source files
12 years ago
Michael Hansen
40d5e2e867
Fix some noteworthy warnings (mostly hsBool->bool incompatibility) and missing headers
12 years ago
Lyrositor
364de3a317
Add functions to fix KI Chat scrolling issue.
...
Fixes #180 (if combined with the moul-scripts commit). These two Python/Plasma functions are used in the moul-scripts fix for the scrolling KI Chat issue.
12 years ago
Bartek Bok
2531dba66c
Make Python.Cheat little bit safer
12 years ago
Adam Johnson
a709e17069
Obliterate hsBool
13 years ago
Adam Johnson
d690df1064
Add pyMatrix and pyGeometry to pfPython PCH
...
This also includes some header debloat and const/reference fixes
(particularly in pyMatrix44). This will result in the generation of
slightly more efficient code.
13 years ago
Adam Johnson
d43073949b
Precompiled Headers for pfPython
...
Also did some work on decreasing header bloat. No promises on a complete
job--this was just enough to allow PCH to actually help us out (and boy
does it!)
With an Intel Core 2 Duo (4GB DDR2 800)
With PCH: 50.51 seconds
Without: 4 minutes, 17.14 seconds
:D
13 years ago
Adam Johnson
1252df83e1
Ensure that OnServerInitComplete is always executed
13 years ago
Adam Johnson
5cf540b424
Updates to the Python API
...
Throw away some stupid stuff and make things slightly easier to use...
13 years ago
Adam Johnson
3b69a4aee3
Track NPC clones
...
Manual state management in python was kind of fiddly, so let's track all
avatar clones in the NetApp and unload them as needed. This also seems to
fix a potential bug in plNPCSpawnMod (is that even used?).
13 years ago
Adam Johnson
ae28963572
Python glue for the new pfGameScore
...
Remove useless pyScoreMgr and use static methods on pyGameScore that call us
back via OnGameScore()
13 years ago
Adam Johnson
8e79583717
Add some Python Helpers
...
We can now convert plString to PyUnicode objects and have static methods
with variable arguments and variable keyword arguments
13 years ago
Adam Johnson
e0cd86bfc1
Convert PyString_*Ex functions over to plString
13 years ago
Christian Walther
89ec0aa33b
Also handle Python long integers in addVarNumber.
13 years ago
Bartek Bok
82e4c81303
Differentiate between float and int types in plNotify
13 years ago
Christian Walther
3c73b9f694
Fix KI daylight saving time calculation.
...
The previous implementation had the following bugs:
- DST was truncated to end of October
- DST start was off by one week in years where March 1st is a Monday
- DST start was off by one second (1:59:59 -> 2:00:00 -> 3:00:01 instead of the correct 1:59:59 -> 3:00:00 -> 3:00:01)
Tested against tzdata 2009g.
13 years ago
Adam Johnson
5beda0ab87
Implement client window flashing
...
This will be used in python to grab the player's attention on PMs or other
interesting events.
13 years ago
Adam Johnson
69970aba43
Fix the George W. Bush bug
...
Fix the DST hack to use the correct dates in post-2006 US and Canada. I
unfortunately could not find a decent cross-platform way to do this.
13 years ago
NadnerbD
3e15b5d318
Fixed memory leak, plString is nice
13 years ago
NadnerbD
c9b4c0a92d
NewKey can take a plString, so no need to convert to const char*
13 years ago
Darryl Pogue
404cd09f1c
Move plEncryption to pnEncryption.
...
--HG--
rename : Sources/Plasma/PubUtilLib/plEncryption/plChecksum.cpp => Sources/Plasma/NucleusLib/pnEncryption/plChecksum.cpp
rename : Sources/Plasma/PubUtilLib/plEncryption/plChecksum.h => Sources/Plasma/NucleusLib/pnEncryption/plChecksum.h
13 years ago
Darryl Pogue
f4878166d5
Don't use pnUtils for MD5 checksumming.
...
On the other hand, have we ever figured out exactly what this code is
supposed to do? Mark added it for something, but it's not really clear
what the purpose is.
13 years ago
Joseph Davies
036a1d38fc
Clean up python binding for image-loading functions.
13 years ago
Joseph Davies
3b22256085
Add python function glue to allow loading PNG images from disk.
13 years ago
Joseph Davies
08fa25a737
Fix a potential crash in pyVaultImageNode.
...
Fixes a crash which can occur when attempting to fetch
an unsupported image type.
13 years ago
Michael Hansen
ad66286a17
Fix several errors and warnings from GCC compilation
13 years ago
Michael Hansen
be4b0732d5
Fix string usage that was broken from enabling the Max plugin build
13 years ago
Darryl Pogue
f3b3b2a354
Fix the Py_ssize_t issues.
13 years ago
Adam Johnson
e2b9bba70c
ptStatusLog now supports unicode objects and string objects
13 years ago
Darryl Pogue
b5ff772f47
Fix pfPython to compile on Linux.
13 years ago
Adam Johnson
eeaae57cc3
Be less anal--use PyNumber instead of PyLong
13 years ago
Adam Johnson
a64b909f4f
Now all the kids can play with ConvertString (and some others)
13 years ago
Michael Hansen
e34414889f
Convert plUoid's object name to a plString
13 years ago
Adam Johnson
29064590c5
Add PyUnicode support to ptPlayer.__init__
13 years ago
Michael Hansen
442a733fbb
Add more temporary hack macros to help speed up conversion and testing
13 years ago
Michael Hansen
a1852ad385
Convert plUUID and its cascade of dependencies to plString
13 years ago
Darryl Pogue
f4ff65ccbc
Replace MemSet with memset.
13 years ago
Darryl Pogue
5013a978eb
Get rid of NEW(), TRACKED_NEW, and ZERO().
13 years ago
Darryl Pogue
8a3f0cfd5b
Get rid of DEL() and FREE() macros.
...
Part of CoreLibExe must die.
13 years ago
Adam Johnson
be26b145df
HeadSpin.h is now the core header.
...
Rearrange some things so such that low-level CoreLib headers aren't quite
so crazy. For higher level stuff, you still need to include the
appropriate header.
13 years ago