2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00
Commit Graph

1013 Commits

Author SHA1 Message Date
6e75026c46 Attempt to de-messify MaxMain
... Similarly to MaxComponent, I'm not sure how much this helps. But, it
(should) compile. I hate 3dsm.
2012-12-22 17:16:11 -05:00
ad8e87370d Untangle MaxExport 2012-12-22 17:16:09 -05:00
586aa94e38 Untangle MaxConvert
Fix compilation as a result of hsWindows. Also, add precompiled header
support (this shaves off 9 seconds on my machine) and fix some warnings.
As we saw in the PCH-ization of pfPython, includes were untangled (to some
extent) and forward declarations were introduced where appropriate.
2012-12-22 17:16:08 -05:00
2dce76cb36 Smack MaxComponent
This is a huge, complicated project. Therefore, this untangling is not as
comprehensive as the others. It should compile faster and be a little bit
neater, but that's it. Don't expect the headers to look much better!
2012-12-22 17:16:07 -05:00
3ea82ca589 Be smarter about Pch.[h|cpp] files
As pointed out in #225, Pch.cpp looks suspiciously like a garbage file
when precompiled headers are disabled in cmake. To solve that, I have
changed the precompiled header function to add the Pch source files only
when pch is enabled. This should prevent future accidents.
2012-12-22 17:16:05 -05:00
bb4d36e69d Remove windoze include from hsThread.h 2012-12-22 17:16:01 -05:00
72000fd0c1 Fixes some oversights.
Okay, what moron left out the include guards on hsSTLStream.h? Come on,
man.
2012-12-22 17:15:21 -05:00
7785c9c85e Remove global Windows.h include
This is the beginning of efforts to reduce the scope of Windows.h. I have
shuttled it into hsWindows.h (again) and fixed the compilation of the
major apps. There is still some scope work that needs to be done, and the
Max plugin has not yet been addressed.
2012-12-22 17:15:14 -05:00
d3ea8fe333 Rework PhysX collision flutter bug workaround
To better handle erroneous trigger events under the new timing method, use the number of times the simulation has actually advanced instead of the number of evals received.

Cleaned up a bit.
2012-12-21 23:08:14 -05:00
d06ba6362c Only apply height correction to human avatars. 2012-12-21 23:08:13 -05:00
a1814c9dca Clear achieved linear velocity on disabled avatars. 2012-12-21 23:08:13 -05:00
e29e908333 Clear impact velocity on WalkingStrategy Reset.
Fixes landing behaviours incorrectly firing after a brain transition.
2012-12-21 23:08:12 -05:00
ae594dcc81 Clear linear velocity after each update. 2012-12-21 23:08:11 -05:00
01d47450e6 Disabled avatar updates
Only update disabled avatars between steps if in a subworld and then don't
interpolate their position.
2012-12-21 23:08:10 -05:00
2f25e04909 Fix controlled flight bug
fControlledFlight state should be handled outside of the physics step.
2012-12-21 23:08:10 -05:00
47efb94aa8 Fix warping an avatar triggers all detectors along the path
When explicitly moving an avatar over the given threshold, teleport the underlying actor most of the way before moving the controller.
2012-12-21 23:08:09 -05:00
b5aaecc48d Fix subworld transition bug
Use the actual global location, not the interpolated location when moving between subworlds. Rebuild the controller cache.
2012-12-21 23:08:08 -05:00
462d4d6906 Improve simulation timing at low frame rates.
Increased kDefaultMaxDelta to 0.15.
Added a small bias to combat a truncation issue.
2012-12-21 23:08:07 -05:00
5522a10a0c Fix horizontal mouse-look while standing still. 2012-12-21 23:08:07 -05:00
d4e9be28ec Remove some PhysX workarounds that are no longer required. 2012-12-21 23:08:06 -05:00
70e766ae5b Updated plPXPhysicalControllerCore
While based heavily on the old implementation, this is essentially a rewrite.

Notable changes -
Controllers are now updated at the same fixed frequency as the simulation.
Resulting output is interpolated between steps to precisely match the frame delta.
Physics work is only done when enough time has passed to perform a step.

The kinematic actor that followed around the controller has been removed.
The underlying kinematic actor created by the NxController is now used for triggering.
A new sim group was added for a kinematically controlled avatar.

2 unused files removed -
plPXPhysicalController.h & plPXPhysicalController.cpp
2012-12-21 23:08:05 -05:00
769cd60617 Refactor avatar movement code
plMovementStrategy classes have been reworked and completely replace all plAvatarControllers.
While based on the old implementation, plPhysicalControllerCore has essentially been rewritten.
Remnants of long gone physical "actions" have been removed.

4 files removed -
plAVCallbackAction.h & plAVCallbackAction.cpp
plAntiGravAction.h & plAntiGravAction.cpp

This revision will not compile, requires new plPXPhysicalControllerCore implementation.
2012-12-21 23:08:05 -05:00
5de87cdaca Fix UnifiedTime collision
Win32's GetCurrentTime and plUnifiedTime::GetCurrentTime collided. Rather
than hacking around the solution by undefining GetCurrentTime, we rename
plUnifiedTime::GetCurrentTime to plUnifiedTime::GetCurrent. This fix is
less fiddly than an undef hack.
2012-12-21 21:04:14 -05:00
a76cb3f18d Merge pull request #233 from Hoikas/py_system_error
Fix Scary SystemErrors
2012-12-20 20:23:41 -08:00
c8419b0107 Remove hsFileStream
It's unused windows-specific garbage.
2012-12-20 18:22:49 -05:00
75793e5182 Manual merge of Pull Request #232 from zrax/plString
Conflicts:
	Sources/Plasma/CoreLib/HeadSpin.h
2012-12-20 17:22:31 -05:00
66038d4fc2 Merge pull request #231 from dpogue/fixes
Linux fixes
2012-12-19 16:38:23 -08:00
e0e141fd01 Move Python string helper to the correct location 2012-12-18 18:01:56 -08:00
43a26190b1 Merge pull request #237 from cwalther/bink-stub
stub out plClient Bink support, part 2
2012-12-18 09:22:27 -08:00
e9835eda57 Add more functionality to the bink stubs to make them behave more like the previous implementation did when built without BINK_SDK_AVAILABLE.
In particular, the intro movie now exits immediately again rather than staying indefinitely.

The important difference is to send the completion callback in plBinkPlayer::NextFrame(), i.e. act as if we had reached the end of the movie.

Storing the filename is to keep plClient::IHandleMovieMsg() from deleting and recreating the plBinkPlayer on every message.

The changed return values are just to better match the previous behavior and probably don’t matter.
2012-12-18 15:49:41 +01:00
6ec219009c Add isUsed bindings to pySimpleStateVariable
This lets python scripts determine if variables in SDL blobs are used (at
the default).
2012-12-16 00:26:35 -05:00
5f53ada44d stub out plClient Bink support 2012-12-15 23:58:34 -05:00
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.
2012-12-15 23:41:12 -05:00
64214e1a7b Corrections as proposed by @branan. 2012-12-15 18:23:33 -08:00
a92fbea356 Get rid of const char* warning in plPythonPack. 2012-12-15 16:58:45 -08:00
4221b57baa Fix a whole bunch of clang warnings. 2012-12-15 16:46:20 -08:00
ca87b47ca8 Fix plResManager stricmp. 2012-12-15 16:08:14 -08:00
d1dd98c17b CoreLib fixes for Linux. 2012-12-15 16:06:41 -08:00
9f276e2c57 Add support for Visual Leak Detector, since valgrind doesn't support MSVC 2012-12-13 02:07:53 -08:00
49dfb4e546 Convert SDL (mostly) to plStrings 2012-12-13 02:06:41 -08:00
188171235e Add string split and tokenize functions 2012-12-13 02:06:41 -08:00
1b57055fd3 Take advantage of plString more in hsStream's String I/O functions 2012-12-13 02:06:41 -08:00
b3976524ee Merge pull request #229 from Hoikas/locdata-strings
LocalizationData String Stuff
2012-12-03 23:18:52 -08:00
165e79fa64 Throw out more error string concating 2012-11-28 20:36:37 -05:00
1bada0dfa2 Fixup tree dumping
Remove unnesecary conversions and string concats in the tree->log dumping
code.
2012-11-28 19:55:56 -05:00
d2b4a64409 Remove some std::wstring concating
Replace a weird error string stack with direct calls to the
LocalizationMgr log and its associated formatting helper. In cases where
indirection was needed, plString was introduced. This makes the code
cleaner and faster.
2012-11-28 19:25:07 -05:00
16c3190f14 That looks dangerous... 2012-11-28 19:05:16 -05:00
4ee424df34 Merge pull request #226 from Hoikas/no-encryption
Deprecate WDYS Encryption
2012-11-27 17:28:09 -08:00
caa12510de Merge pull request #224 from Hoikas/kill-transgaming
Kill transgaming
2012-11-27 17:23:52 -08:00
8aa9e25ec0 Merge pull request #221 from Hoikas/window-fixes
Window fixes
2012-11-18 14:02:27 -08:00