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
12 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
Adam Johnson
2f53a10fb6
Convert hsConfig defines to cmake -- fixes #93
13 years ago
Adam Johnson
e020651e4b
Eliminate hsScalar and hsFixed
...
Modern CPUs support floats just fine... hsFixed was crazy.
13 years ago
Adam Johnson
5027b5a4ac
Convert custom HeadSpin integer types to standard types from stdint.h
13 years ago
Adam Johnson
ec0aecd202
Make pyVault::RegisterOwnedAge a blocking operation
13 years ago
Adam Johnson
f45679a54f
Make pyVault::AddChronicleEntry a blocking operation to avoid a race
...
condition
13 years ago
Darryl Pogue
89e42ed361
Move plCreatableUUID somewhere less annoying.
13 years ago
Joseph Davies
29de5fbc07
Remove unused platform code (MacOS9, PS2, XBox).
13 years ago
Darryl Pogue
8a28ba9e89
Move plUUID to pnUUID.
...
--HG--
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID.cpp => Sources/Plasma/NucleusLib/pnUUID/pnUUID.cpp
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID.h => Sources/Plasma/NucleusLib/pnUUID/pnUUID.h
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID_Unix.cpp => Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID_Win32.cpp => Sources/Plasma/NucleusLib/pnUUID/pnUUID_Win32.cpp
13 years ago
Joseph Davies
e462ef04b3
Fix Endian functions names in hsTypes and hsStream.
...
Function and macro names for endianness were previously vague,
and on big-endian systems entirely misleading. The names are
now properly descriptive of what they actually do.
13 years ago
CyanWorlds
eb2767a5f7
Open source re-licensing
13 years ago
Adam Johnson
e3c65ac817
Separate KeyEvents and KeyPresses
13 years ago