2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 14:37:41 +00:00

Compare commits

...

64 Commits

Author SHA1 Message Date
ebfc0deceb Merge branch 'ticket/50'
closes #50
2023-03-13 14:16:00 -06:00
fb96b2b03c Add check of sound's current volume before sending subtitles 2023-02-27 21:56:28 -06:00
4b0ab75a79 Merge branch 'ticket/49' 2022-11-12 10:30:24 -07:00
dcb0309a08 closes #49 2022-11-12 10:29:57 -07:00
7dde0855dc Merge branch 'ticket/48' 2022-11-12 10:13:57 -07:00
44c9b0694d Merge branch 'ticket/47' 2022-11-12 10:13:53 -07:00
dedf04ac43 Merge branch 'ticket/45' 2022-11-12 10:13:50 -07:00
eeb458817f Merge branch 'ticket/44' 2022-11-12 10:13:43 -07:00
68c7187155 closes #48 2022-11-12 10:13:17 -07:00
6fa695a2c3 closes #47 2022-11-12 10:12:53 -07:00
2a3c1b32ef closes #45 2022-11-12 10:11:59 -07:00
d3cbaa94ef closes #44 2022-11-12 10:11:24 -07:00
e7758ccc10 Merge branch 'ticket/49' 2022-10-23 10:46:15 -06:00
07b92234ad Fix bug for python SDL variable-length arrays 2022-10-03 21:48:57 -05:00
7dfa2ba56a Merge branch 'master' into working 2022-07-19 08:55:00 -06:00
fdee5a921b Merge branch 'ticket/47' of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata into ticket/47 2022-05-30 14:23:43 -07:00
b322ee094c Fix compile error 2022-05-30 14:23:20 -07:00
54c768d966 PR from Huru to prevent dynamics from moving during age initilization 2022-05-30 14:22:12 -07:00
82159bcb4a Merge branch 'ticket/47' of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata into ticket/47 2022-05-30 14:04:22 -07:00
b81eb21145 Fix compile error
Author: Adam Johnson <AdamJohnso@gmail.com>
2022-05-30 14:03:33 -07:00
e7b4f5c6ba Fix compile error
(cherry picked from commit 202e846a56)
2022-05-11 15:20:16 -06:00
deb4858f3e Add subtitle and loc key message flags
(cherry picked from commit 126e7a76dd)
2022-05-11 13:58:51 -06:00
bff879abfd PR from Huru to prevent dynamics from moving during age initilization 2022-05-11 13:58:51 -06:00
fededb574b Change to prevent crashing when fCurStage is null 2022-05-11 13:58:51 -06:00
1f7de46bc2 Expand thread memory allocations for stack and heap to 1.25MB 2022-03-22 13:53:50 -06:00
b16de9d86f Merge branch 'master' into working 2022-03-19 21:41:37 -06:00
bbeb25d29a Merge branch 'master' into working 2022-03-12 09:16:15 -07:00
f0d2bd3eaa Don't feed remaining subtitles when audio skips to past the end of last subtitle
(cherry picked from commit 40bcaba9d8)
2022-03-11 10:05:46 -07:00
41627d1c7c Merge branch 'master' into working 2022-03-11 10:03:31 -07:00
c0e83259f3 Don't display previous subtitles all at once when subtitles are enabled mid-audio play
(cherry picked from commit 40f200e066)
2022-03-06 10:17:51 -07:00
6e4996e1be Ensure pyGUIControlListBox::GetElementW can't attempt to return a null pointer as a std::wstring
(cherry picked from commit 2f1bb87056)
2022-03-05 12:42:42 -07:00
df848b48c4 Prevent deferred link race conditions
(cherry picked from commit e512dd0c68)
2022-03-04 13:16:31 -07:00
75c570877a Merge branch 'master' into working 2022-03-04 13:16:11 -07:00
3b17e20fb9 Revert "Initial port of Mystler's code"
This reverts commit b0511ea068.
2022-02-25 15:28:04 -07:00
25ea208084 Revert "Add read and write file functions for clothing"
This reverts commit afed53f920.
2022-02-25 13:07:17 -07:00
a392a37fcd Revert "Change to ReadFromFile command per rarified"
This reverts commit f90ab01d44.
2022-02-25 13:07:15 -07:00
7c64654e1f Revert "More odds and ends from Mystler's PRs"
This reverts commit a82188cbf4.
2022-02-25 13:07:10 -07:00
a82188cbf4 More odds and ends from Mystler's PRs
(cherry picked from commit eb40f86349)
2022-02-20 11:08:49 -07:00
f90ab01d44 Change to ReadFromFile command per rarified
(cherry picked from commit 9e83bf7c8d)
2022-02-20 11:08:26 -07:00
afed53f920 Add read and write file functions for clothing
(cherry picked from commit 4f13d37905)
2022-02-20 11:08:26 -07:00
b0511ea068 Initial port of Mystler's code
Add coding from Mystler's original commits

(cherry picked from commit 6b3b966f81)
2022-02-20 11:08:24 -07:00
dfc89b363c Don't update to visible arrow when cursor should be hidden
(cherry picked from commit 51b6b4750b)
2022-02-20 10:02:49 -07:00
9ab07771df Fixes bug where avatar run-lock state can get confused after alt-tabbing
(cherry picked from commit 69dac251b6)
2022-02-20 10:02:44 -07:00
fd260827aa Fix error due to no Empty()
(cherry picked from commit e81af06584)
2022-01-24 20:56:41 -07:00
da5ba1062b Files for Allowing disabling avatar panic links
(cherry picked from commit 5f3a8644a7)
2022-01-24 15:43:15 -07:00
8291326614 Ensure we don't try to get localized values for null objectnames
(cherry picked from commit b00c7729cc)
2022-01-24 14:59:45 -07:00
90e67f6206 Changes needed so climbing works correctly with wall
(cherry picked from commit 62089be53f)
2022-01-07 13:04:20 -07:00
a974c9f1b2 Update error messages for new variable 2022-01-07 13:03:44 -07:00
f05d71a214 Adds default clothing changes broadcast to other clients 2022-01-07 13:03:10 -07:00
a317ae4b08 Merge branch 'master' into working 2022-01-07 12:57:27 -07:00
916bf4f87f Graphics cleanup for old graphics card tunables.
c.f. H'uru commits:

>    commit e4e718e243
>    Author: Adam Johnson <AdamJohnso@gmail.com>
>    Date:   Fri Feb 1 17:19:50 2013 -0500
>
>        Bypass ATI Generic fudging with Radeon HD cards

>    commit bbae6a76d7
>    Author: Adam Johnson <AdamJohnso@gmail.com>
>    Date:   Sat Nov 30 20:02:08 2013 -0500
>
>        We don't support 3dfx cards...
>
>        Come on, man... They made some good cards, but they went out of business
>        in 1999! Ain't nobody got time fo' dat.

>    commit a30a326d17
>    Author: Adam Johnson <AdamJohnso@gmail.com>
>    Date:   Sat Nov 30 20:06:19 2013 -0500
>
>        We only support DirectX 9...
>
>        If you have less than 11MB VRAM or need to use the ref implementation,
>        then you are using a dinosaur and have no business even attempting to play
>        this game.

>    commit 544abef39e
>    Author: Adam Johnson <AdamJohnso@gmail.com>
>    Date:   Sat Nov 30 20:41:56 2013 -0500
>
>        Wow, those cards are old...
>
>        Remove detection for cards that are don't support at LEAST DirectX 8.
>        There's no way they would even be able to get past Direct3DCreate9, so we
>        shouldn't need to worry about them... I hope.

>    commit 9070d70e50
>    Author: Branan Purvine-Riley <branan@gmail.com>
>    Date:   Sat Jul 27 14:50:20 2013 -0700
>
>        Lots of cleanups to hsG3DeviceDelector

>    commit ac23835384
>    Author: Branan Purvine-Riley <branan@gmail.com>
>    Date:   Sat Jul 27 15:09:24 2013 -0700
>
>        Get rid of obsolete readers/writes for device info

>    commit fc67738ee8
>    Author: Branan Purvine-Riley <branan@gmail.com>
>    Date:   Sat Jul 27 15:50:10 2013 -0700
>
>        Remove some obviously obsolete caps

>    commit 60c544e1ff
>    Author: Adam Johnson <AdamJohnso@gmail.com>
>    Date:   Fri Nov 29 23:42:20 2013 -0500
>
>        Don't lazy-load D3D9.dll
>
>        We already link against it, so that's just a waste of time. Also, cleanup
>        some unneeded ddraw includes. Remember that in Direct3D9, all devices can
>        render in windowed mode.

(cherry picked from commit 95ab8161f0)
2021-11-17 09:46:09 -07:00
2160831221 Always decompress OGGs updated by plUruLauncher.
This prevents users from needing to manually delete files from their
streamingCache folder when an audio file is updated. Note that this will
not fix streamingCaches that are already in a borked state.

(cherry picked from commit fa41ec7f16)
2021-11-17 09:46:01 -07:00
e8e9cd29ee Fix #ifdef limiting Plasma App.SetLanguage command access in Internal client.
(cherry picked from commit 7be998219f)
2021-11-05 15:43:11 -06:00
c9fddca6d5 Fix garbled stack traces.
Newer versions of VS and Windows use ASLR for security purposes, meaning
that the module may be relocated from what is expected by the linker map
file. While we could kludge around that by disabling ASLR, it would be
better to just map the actual stack addresses to the expected addresses.
This also simplifies all of the weird segment math to simply use the
rvabase value in the map file.
2021-10-19 15:02:02 -06:00
3f8eaf6a9a Add console command App.Crash to debug garbled stack traces. 2021-10-19 15:02:02 -06:00
0ce35e84b2 Remove old SDK code from CWE source base. Now entirely in SDK submodule. 2021-10-19 15:01:40 -06:00
31156794ad Fix reference counting problem in pyVaultNode::AddNode().
This is fixed in H'uru via extensive use of RAII around vault nodes.
2021-10-17 16:30:07 -06:00
fc79b5f45a Fix vaultOperation Python object leak.
This fixes a leak of a Python bound method. Leaking this means that
PythonFileMods keys are still loaded when the client exits. These
methods are most commonly used by xSimpleImager.py, so the effect of the
leak can be observed by simply linking to Relto and quitting with a leak
detector active.
2021-10-17 16:30:07 -06:00
542711c7c0 Fix misplaced return value.
The "wait for server response" return value was short-circuiting the
"already done" value. The previous commit fixed always needing a new
instance, exposing this problem.
2021-10-17 16:28:51 -06:00
b9f8e3d1bd Review changes cf. Adam: change name of local vars to not start
with 'f' prefix (used for fields in objects).
Also removed trailing space from lines that irritate Git difference listings.
2021-10-16 15:19:45 -06:00
224ad908cc Fix incorrect string handling in pfJournalBook::IRenderPage()
Unify references to HTML string chunk as being accessed as wchar_t[]
strings rather than repeatedly calling std::wstring.c_str() on the
chunk, then using character positions obtained from those strings
to index directly into the std::wstring[] form from chunk->fText.
2021-10-16 15:19:45 -06:00
ed516b6508 Fix wild access to font structures when rendering non-ascii unicode characters. 2021-10-16 15:06:11 -06:00
4329212d98 Fix assertion with incorrect limit on age sequence prefix. 2021-10-16 15:06:02 -06:00
8ff71fb384 Correct calls to StrTo(Unicode|Ansi) to use the correct size. 2021-10-16 14:53:27 -06:00
4 changed files with 10 additions and 3 deletions

View File

@ -777,4 +777,4 @@ void cyMisc::AddPlasmaMethods3(std::vector<PyMethodDef> &methods)
PYTHON_GLOBAL_METHOD_NOARGS(methods, PtGetUserPath);
PYTHON_GLOBAL_METHOD_NOARGS(methods, PtGetInitPath);
}
}

View File

@ -853,4 +853,4 @@ void cyMisc::AddPlasmaMethods4(std::vector<PyMethodDef> &methods)
PYTHON_GLOBAL_METHOD(methods, PtGetAIAvatarsByModelName);
PYTHON_GLOBAL_METHOD(methods, PtForceVaultNodeUpdate);
PYTHON_GLOBAL_METHOD(methods, PtVaultDownload);
}
}

View File

@ -474,6 +474,12 @@ void plPythonSDLModifier::IPythonVarToSDL(plStateDataRecord* state, const char*
int count = PyTuple_Size(pyVar);
plSimpleVarDescriptor::Type type = var->GetSimpleVarDescriptor()->GetType();
// Ensure that variable length arrays match.
if (var->GetSimpleVarDescriptor()->IsVariableLength()) {
if (var->GetCount() != count)
var->Alloc(count);
}
for (int i = 0; i < count; i++)
{
PyObject* pyVarItem = PyTuple_GetItem(pyVar, i);

View File

@ -117,7 +117,8 @@ void plWin32Sound::Update()
uint32_t currentTimeMs = (uint32_t)(GetActualTimeSec() * 1000.0f);
if (currentTimeMs <= srtReader->GetLastEntryEndTime()) {
while (plSrtEntry* nextEntry = srtReader->GetNextEntryStartingBeforeTime(currentTimeMs)) {
if (plgAudioSys::AreSubtitlesEnabled()) {
float currVol = QueryCurrVolume();
if (plgAudioSys::AreSubtitlesEnabled() && currVol > 0.01f) {
// add a plSubtitleMsg to go... to whoever is listening (probably the KI)
plSubtitleMsg* msg = new plSubtitleMsg(nextEntry->GetSubtitleText(), nextEntry->GetSpeakerName());
msg->Send();