4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 02:27:36 -04:00
Commit Graph

910 Commits

Author SHA1 Message Date
ea2e7eaf01 Merge pull request #285 from DoobesURU/SDLVarFix
SDL Variable Fix
2021-08-29 17:35:43 -04:00
28ace91e70 SDL Variable Fix
Updates an older code definition to fix an error with SDL layer animations.
2021-08-29 17:25:11 -04:00
c39f8f1fbb Bump Korman version for 0.12 release candidate. v0.12-rc1 2021-08-29 14:56:22 -04:00
7cc5bf1924 Merge pull request #282 from Hoikas/multi_animations
Multi animations
2021-08-28 19:39:14 -04:00
b520bfedd1 Add support for multiple animations per object.
I don't really want to talk about it. *Gulp*. Anyway, you define
multiple animations on either the animation modifier or the textures
panel. The UIs have all been unified. By default, you have an "(Entire
Animation)" that represents the old single animation. You may create
additional sub-animations over an arbitrary range of keyframes. Once
other animations are defined, the "(Entire Animation)" may be deleted.
However, if all subanimations are deleted, the "(Entire Animation)" will
resurect itself with its last known settings.

Behavior change: object animations (except for fixed cameras) now
REQUIRE an animation modifier be attached to export. It is now an error
to attach an animation modifier to any camera except for a fixed camera.
2021-08-28 19:38:37 -04:00
8a501811f8 Fix potential traceback when raising an error. 2021-08-28 19:25:04 -04:00
cbaebfdb24 Merge pull request #283 from Hoikas/moar_material_colors
Fix RT lit material shading animations
2021-08-28 16:21:21 -04:00
9eb4652d05 Allow multiple "base-layer" diffuse color animations.
This is for if you have a layer that has an animated opacity but no
alpha, it will be able to receive the material's color animation. For
now, we won't apply those to upper layers as that doesn't really seem
like what we would expect.
2021-08-27 19:07:37 -04:00
33a7055a13 Fix RT-Lit opacity animations.
This fixes a number of long standing chicken and egg problems that could
prevent opacity animations from working properly on RT-Lit materials.
Also addresses a number of odd situations where the lighting results
might drastically change in unexpected ways.
2021-08-27 18:36:11 -04:00
ee78b36f5e Fix runtime lit materials diffuse color animations. 2021-08-25 18:28:24 -04:00
ee492d90a2 Bump HSPlasma requirement.
Apparently, plLayerAnimationBase.runtimeCtl was returning the wrong
thing, significantly impacting our lighting calculations.
2021-08-25 18:16:00 -04:00
0fe35b573a Fix traceback in pre_export() handling. 2021-08-25 18:14:48 -04:00
4ad59b161b Allow pre_export() to return None. 2021-08-25 18:14:37 -04:00
f0dd0c5b2a Merge pull request #276 from Hoikas/loc_mark_deux
Add "Localized Text" Modifier
2021-08-25 10:39:50 -04:00
e2961208e7 Fix #279.
Don't error if random kickable sounds have no surface selected.
2021-08-23 12:38:57 -04:00
d7372acebd Fix #281.
The default definition of `pre_export()` (for documentation purposes)
was hiding the real default implementation of `pre_export()`, causing
any modifiers relying on said default implementation to export nothing.
2021-08-20 17:02:43 -04:00
ccc921b4dc Merge pull request #278 from Hoikas/movable_lamps
Don't mark lights in a group as `kLPMovable`.
2021-08-19 16:38:38 -04:00
fb493781b3 Unify localized string handling. 2021-08-18 13:18:05 -04:00
db1e088112 Don't mark lights in a group as kLPMovable.
It looks like simply attaching a lamp to a group already has fairly
major implications for how it's exported. If you're adding a lamp into
a group, then you are basically saying, "I only want to affect these
specific objects.", so marking them as movable (meaning, "apply me
to all objects") doesn't really make sense in that context.
2021-08-18 06:30:38 -04:00
533719e94e Merge pull request #277 from Hoikas/chain_satan
Clearly deliniate the circles of hell.
2021-08-17 12:08:29 -04:00
aff3a42bd4 Clearly deliniate the circles of hell.
If we've unleashed Satan on a material, he will perform his dark magick
on the material colors. Therefore, we need to prefix the satanic
materials with something other than "RTLit_" lest the plain old runtime
lit materials be infected by the prince of darkness.
2021-08-17 02:50:53 -04:00
a31b8ac964 Add localized text modifier. 2021-08-16 12:58:56 -04:00
bf49fb1284 Add Python attribute node creation helper. 2021-08-16 12:58:56 -04:00
4324735448 Add support pfLocEditor round-trips.
Splits up MOUL/EOA localization files into per-language database
thingos. Also fixes a bug with the PotS encoding escape hatch.
2021-08-16 12:58:56 -04:00
809581ed60 Fix non-determinism in Python material attributes.
The dumb string lookup probably worked most of the time, but with recent
changes that can cause layers and materials to be renamed to things not
matching the pattern exactly, it's better to explicitly lookup the keys.
This will prevent Dynamic Text Maps from seemingly "breaking" for no
reason just because the lighting strategy changes.
2021-08-16 06:15:09 -04:00
982a54dbf5 Merge pull request #274 from Hoikas/fix-weird-node-warping
Fix weird node warping.
2021-08-16 03:57:02 -04:00
014a21b295 Remove manual stack walking for bottom layers. 2021-08-15 04:06:14 -04:00
8c62ef677a Bump HSPlasma for plLayerInterface.bottomOfStack. 2021-08-15 03:34:12 -04:00
a2d4d3f7e2 Add ./build.ps1 -Dev.
This will let you build just the C++ parts of Korman for local usage. It
probably needs to be paired with a batch file to supply the needed
arguments.
2021-08-15 03:33:07 -04:00
9cd8eecf61 Fix Blender 2.79b+VS2013 build issues. 2021-08-15 03:32:28 -04:00
b100652d58 Fix ./build.ps1 -Classic to work with VS2013. 2021-08-15 02:18:08 -04:00
5a4479ffa7 Ensure parent objects generate CoordinateInterfaces. 2021-08-14 07:47:09 -04:00
524232352c Merge pull request #275 from TikiBear/patch-11
Warn if more than 8 RT lamps are on a material.
2021-08-14 03:15:29 -04:00
eb7914fb4b use container count
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
2021-08-14 00:01:14 -07:00
8994203b9f use container count
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
2021-08-14 00:00:51 -07:00
c705ec182d Warn if more than 8 RT lamps are on a material.
I'm probably late to the party, but I have found that PotS can't handle more than 8 RT lamps on one material. This might vary by target engine, though, so no failure pronouncement is made.
2021-08-13 22:53:34 -07:00
3cb1d43e96 Bonus: Minor performance improvement. 2021-08-14 00:27:01 -04:00
fec2891751 Apply visual transforms for objects with no CI.
Per report on the forum, objects with enable/disble visuals can go
missing https://forum.guildofwriters.org/viewtopic.php?p=75582#p75582
2021-08-14 00:26:00 -04:00
e2bfec6da9 Merge pull request #272 from Hoikas/ci2
Add Korman Buildsystem for CI.
2021-08-12 18:19:33 -04:00
6a67325229 Bump HSPlasma GIT_TAG for Korman 0.12. 2021-08-12 18:09:06 -04:00
ff9e0e3eab Merge pull request #273 from Hoikas/logic_persistence
Update LogicWiz modifiers for deferred logic export.
2021-08-12 17:40:42 -04:00
13478aeb7e Unify programatic generation of PFM nodes. 2021-08-11 21:51:22 -04:00
b36218aa57 Update LogicWiz modifiers for deferred logic export.
In a previous changeset, the Advanced Logic modifier was changed to
defer exporting logic until the very end of the export process. This
means that many nodes are designed with the assumption that all
non-logic PRP objects are fully exported by the time they are exported.
LogicWiz modifiers, however, violated this assumption by exporting
during the main export() phase.

So, this adds a new `pre_export()` phase for all modifiers that lets
them generate logic trees and even entirely new Plasma Objects safely.
Futher, old LogicWiz modifiers have been tweaked to not leak junked
objects if the export fails in the middle of those modifiers.
2021-08-11 21:05:53 -04:00
a0d04cd928 Bump version for Korman 0.11a. v0.11a-b4k 2021-08-10 21:06:36 -04:00
4e8593597e Merge tag 'v0.11a' into ci2 2021-08-10 21:06:24 -04:00
2bb1c174c7 Add "Blender for Korman" and build/package process.
This will allow us to automate releases with the Blender 2.79
"experimenntal nightly" codebase. This is great because the newer
Blender uses Python 3.7 (instead of 3.5). This pulls from my fork of
Blender, which has a number of build improvements added on top.
v0.10-b4k
2021-08-10 21:06:04 -04:00
88ce61f3c5 Merge pull request #270 from Jrius/vcol_artifacts_removal
Vcol artifacts removal
2021-08-10 15:58:18 -04:00
a193e60644 Avoid BMesh Blender crash 2021-08-06 23:28:45 +02:00
8c6e49ea50 Smarter handling of BMesh. Sharp edges are ignored only if auto-smooth
is on, just like Blender does.
2021-08-06 15:22:16 +02:00
fc77f67ecc Vertex color smoothing, preserving sharp edges 2021-08-06 11:42:04 +02:00