4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-13 18:17:38 -04:00
Commit Graph

1172 Commits

Author SHA1 Message Date
03746ed681 Fix responder nodes not notifying python nodes
In order for a python script to be notified that a responder attribute
has finished executing, we have to have a callback notify message in the
responder state. Cyan seems to require the artist to do this by hand,
but that seems like such a common operation that we'll add a callback at
the end of every state of any responder linked to a Python node. Cyan's
approach is somewhat more flexible in that you can call back at any
point in the responder, but that seems a bit excessive.
2018-08-25 20:33:26 -04:00
6b3d79a6a1 Merge pull request #103 from Hoikas/image-re
Fix #76
2018-08-25 18:51:36 -04:00
a071dff261 Merge pull request #107 from Hoikas/resp-nodes
Responder State IDs
2018-08-25 18:44:51 -04:00
34403a9720 Fix odd traceback on NodeLinks to invalid sockets
Observed in GoMePubNew blend. I'm assuming this is an old link that was
made to a socket that has since been removed from a node...
2018-08-25 17:31:03 -04:00
2a3a9c59d2 Fix exporting unsaved blends
This would only trigger if the blend file both
- is not saved
- has no valid age name
2018-08-25 17:30:54 -04:00
07e73f7792 Fix export crash introduced by #110
If there were no lightmapping passes, the `max()` call would raise a
ValueError.
2018-08-25 17:30:38 -04:00
f1d36da92a Merge pull request #113 from Deledrius/volsens_typos
Fix Volume Sensor typos.
2018-08-23 23:36:09 -04:00
bae8ad28d1 Fix Volume Sensor typos. 2018-08-23 20:33:25 -07:00
9f99e1974d Update footstep regions for respv2 2018-08-23 21:32:47 -04:00
9ac032ec07 Merge pull request #110 from Hoikas/lightmap-fixes
Fix #108
2018-08-22 19:53:23 -04:00
a7c6a3d07f Merge pull request #112 from Hoikas/page-version
Allow version specific pages
2018-08-21 08:24:01 -04:00
731e65d1c2 Allow version specific pages
This allows the artist to set specific export versions for PRPs,
enabling game version specific age features.
2018-08-20 21:49:34 -04:00
c4d26432ef Merge pull request #109 from Hoikas/export-scene
Fix #106
2018-08-20 16:40:42 -04:00
90a3a97705 Fix #108 2018-08-18 22:03:42 -04:00
5f671fb8e4 Add warning message about small lightmap passes
Each lightmap pass triggers a scene update... a slow, single-threaded
operation.
2018-08-18 21:45:31 -04:00
803f0dd62d Fix #106
Given that the Plasma World (read: age) is defined per scene, it seems
appropriate to limit the export to the current scene. Other scenes could
potentially have other age definitions...
2018-08-18 20:24:59 -04:00
da30e3f0c7 Implement basic cameras
This implments basic follow and fixed cameras. Currently, animating
cameras and/or their field of view are/is not supported.
2018-08-18 20:13:15 -04:00
93c5963b3a Fix pykorlib import issues 2018-08-18 20:12:44 -04:00
32dac5472f Responder Nodes v2
This introduces the ability to version nodes. Responders have been
bumped to version 2. The difference is that v2 responder nodes maintain
a list (hopefully) all responder states on the responder itself. Each
state has its own socket and displays its index for usage in python
scripts. For better predictability, any states that are only linked to
another state's gotostate socket will be exported at the end of the
state list.
2018-08-18 19:50:49 -04:00
fb1888a5fc Fix profile data saving 2018-08-16 21:33:06 -04:00
9601d6e28b Optimize find_key by using a hash map 2018-08-16 19:32:03 -04:00
77c1f7f230 Fix crash in dynatext python nodes 2018-08-16 16:15:38 -04:00
1200979322 Fix duplicate DSpan exports
Arbitrary data from a material's layer flags were able to creep into a
DSpan's criteria, causing geometry that should go into the same span to
spawn a new DSpan with an identical name. Only one of the DSpan objects
would be exported, and Uru would either show crazy stuff or crash as a
result.
2018-08-15 21:49:03 -04:00
f87a9b9efe Maintain the current selection after exporting 2018-08-13 20:08:44 -04:00
74cd0bd541 Merge pull request #104 from Hoikas/list-ui
Fix #22
2018-08-13 17:58:17 -04:00
25e8a82875 Convert all modifier lists to ui_list
The world lists (pages and games) require special operators, so it seems
best to just leave them as they are for now.
2018-08-12 21:13:53 -04:00
f8aafcf3f1 Implement standard UI List draw function
Same as before, only doing Textures right now.
2018-08-12 19:48:11 -04:00
1f37fae4a9 Implement generic list add/remove operators
Currently, this only takes the place of the texture operators. Once the
generic UI code is done, this will be propagated throughout.
2018-08-12 19:22:34 -04:00
554cb31bae Fix #76
On the surface, this allows lightmaps to be exported as PNGs. However,
it also includes a light refactor of image exporting to facilitate
requesting export formats and the targeting of plImageLibMod. This
should better enable #96.
2018-08-05 19:42:48 -04:00
b8414394da Fix lightmap baking with "Receive Transparent"
Due to our disabling of texture baking when lightmapping, Blender would
not be able to cast light through transparent materials. Now, we revert
back to something resembling the manual method of lightmapping from the
bad old days of PyPRP.

Do note that because we attempt to batch object baking as much as
possible, I have disabled baking lightmaps to transparent objects.
This is because the transparent objects would need its textures disabled
for it to be baked to, but with the textures disabled, the renderer
would be unable to correctly determine the object's transparency. D'oh!
It would be possible, I suppose, to move them into their own batch, but
that makes the state machine a bit more complex. It would be better to
wait for someone to need that functionality, I think.
2018-08-05 17:53:33 -04:00
1bae36b7bc Merge pull request #97 from dpogue/anim-addcallback
Add callbacks flag to chained AnimCmdMsgs
2018-07-08 12:39:07 -04:00
415629890a Add callbacks flag to chained AnimCmdMsgs 2018-07-08 01:33:54 -07:00
4a435ae01b Fix #81
This fix only changes the behavior to use whatever the original
filename is. A complete fix would involve managing sound files and
ensuring that they are ogg-compressed.
2018-07-07 18:23:50 -04:00
6b296dd904 Merge pull request #95 from Hoikas/responder_cmd
Deprecated Responder Command Nodes
2018-07-05 19:30:38 -04:00
6e9e690d8a Ensure only valid responders can be graphed
Responder commands are serialized, so it is not possible to execute a
truly tree-shaped responder. Sigh.
2018-07-04 17:08:45 -04:00
b30f03eafc Responder Command node upgrader/deprecate
Adds a framework for dealing with deprecated logic nodes. First
implementation is for Responder Commands, which hooks the messages
directly onto the Responder States. Note that the old socket definitions
are left alone because the upgrader will need that data.
2018-06-18 19:19:12 -04:00
36a9c3ee43 Update Footstep Region Modifier for Node changes
Footstep Region Modifiers now properly connect Message nodes to
Responder State nodes
2018-06-18 19:03:43 -04:00
35d07d3645 Deprecate Responder Command nodes
This commit removes the ability for Responder State nodes to specify
Responder Command nodes. Now, Responder State nodes reference Message
nodes directly. Messages that support sending callbacks can now
reference other messages as linked outputs.

Note that old node trees are currently broken and will need to be
reworked by hand. TODO is to automatically upgrade those old command
based node trees. Also, LOGICWIZ code using command nodes needs to be
updated.
2018-06-18 19:03:42 -04:00
476ede1405 Fix infinite recursion in Python int attrib nodes 2018-06-18 19:02:24 -04:00
0457dad4ca Merge pull request #92 from Hoikas/game-tracker
Game tracker
2018-06-18 18:20:39 -04:00
8b9846d712 Fix some usability issues with age names.
Disallow exporting from the World panel if the age name is blank and
draw attention to it in the UI.
2018-06-17 21:10:59 -04:00
b5cf75afd1 Handle filepaths better
This change lops off any filename portion of a path and attempts to
verify that it is a valid Uru directory.
2018-06-17 21:10:59 -04:00
0ed6ddd34f Merge pull request #94 from Deledrius/ladder_pots_fix
Fix ladder detector regions for PotS exports.
2018-06-17 16:45:25 -04:00
cb8011c135 Fix ladder detector regions for PotS exports. 2018-06-17 13:43:54 -07:00
e17ada3fca Fix access violation in node socket updates
As it turns out, enumerating a collection that can be modified is a bad
idea. Indeed, Blender expects that we won't do this. Sometimes, it
appears to work, however, other times, Blender is unable to handle it
and the internal data gets corrupted, causing a crash.
2018-06-16 21:29:10 -04:00
bbb02094a1 Add the ability to export to tracked games 2018-05-26 16:35:58 -04:00
3e7b22c344 Rudimentary game tracking 2018-05-26 13:45:19 -04:00
e3b2ce53d6 Fix another idprop oversight 2018-01-13 15:43:19 -05:00
418fbfe86e Fix oversights in fb244df v0.06 2018-01-01 21:27:54 -05:00
c3daa72677 Fix the fix for PotS swim regions 2018-01-01 15:25:04 -05:00