PyPRP 1.6.1 Released!

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

Re: PyPRP 1.6.1 Released!

Postby Tsar Hoikas » Mon Apr 22, 2013 11:20 am

You're quite welcome. If you have any other patches lying around, please let me know!

I am doing some profiling and optimizing of the plugin in my (extremely limited) spare time for a PyPRP 1.7 release. It's always fun to watch execution times drop by many seconds from some very trivial code changes :)
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: PyPRP 1.6.1 Released!

Postby tachzusamm » Wed Apr 24, 2013 6:29 am

Yes, I have a patch lying around.

Scope: Playing IPO animations controlled by Python
Problem: Plasma needs the *same* index for both "animationname" (the name) and "animation" (animated object); but AlcScript simply increments the index for each AlcScript entry, so name and object do not match, and playing an animation via Python does not work
Solution: Give the ability to force name and object to the same index where needed in AlcScript

This patch does allow it:
prp_LogicClasses_py.zip
(15.99 KiB) Downloaded 699 times


AlcScript example:

Code: Select all
                # each line starting with "-" normally counts up the index automatically
                # ...
                # Normal stuff
                  - type: (some type)          # auto-index: 8
                    value: (some value)
            
                # Animation
                  - type: animationname        # auto-index: 9
                    value: OuterCamAnim_01  # animation NAME
                    index: 10                  # 9+1 (force to 10)
                  - type: animation            # index 10
                    ref: :TransOuterCam_01   # animated OBJECT, not animation name!
                    index: 10                  # (same index as name)
                 
                # Normal stuff again
                  - type: (some type)          # auto-index 11 (counting continues)
                    value: (some value)
                  - type: (some type)          # auto-index 12
                    value: (some value)


The patch does not affect existing ages; it only comes into play when there's an index value attached to an object in AlcScript. This is already used in Relativity.
Without this patch, a Relativity export won't behave as desired; the Transporters won't work, because their animation has to be managed by Python.


Original thread this is based on:
viewtopic.php?f=7&t=5300


Btw, cool that you do profiling to speed PyPRP up. Do you use profile of cProfile?
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: PyPRP 1.6.1 Released!

Postby Karkadann » Wed Apr 24, 2013 11:21 am

Any progress on a Blender age exporter for the Open Source game engine?
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: PyPRP 1.6.1 Released!

Postby Sirius » Wed Apr 24, 2013 11:43 am

Can't PyPRP 2 generate files for MOUL/Dirt clients ?
Anyway, if you're up to the challenge, you can try converting them with HSPlasma.
I know you can convert a prp this way:
Code: Select all
PageConvert -tomoul yourfilename.prp
But you'll have to find out for .age, .fni and .sum files.
User avatar
Sirius
 
Posts: 1506
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: PyPRP 1.6.1 Released!

Postby Karkadann » Wed Apr 24, 2013 12:14 pm

I'm actually a Max user, the reason I'm asking is most of the Age Creators from what I understand are Blender users and I figured if their were a way to export Ages for MOUL/Dirt as easy as you can export for the Uru CC program it would increase the number of ages available for the all MOUL/Dirt shards
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: PyPRP 1.6.1 Released!

Postby Tsar Hoikas » Wed Apr 24, 2013 1:26 pm

I'll see about getting that patch applied to the git repository soon-ish. I'm using cProfile to profile the export process. I didn't want to slow things down by using a pure python profiler ;). The largest slowdowns that I see in a "trivial" age are related to converting RGBA images to DDS, processing meshes, and lots of silly calls to range.

Karkadann wrote:Any progress on a Blender age exporter for the Open Source game engine?

No. There is a bug in Python 3.3.0 (used by blender 2.66) that prevents me from working on it.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: PyPRP 1.6.1 Released!

Postby tachzusamm » Mon Aug 05, 2013 7:42 am

If you find time to update PyPRP to 1.62, could you include this as well?

viewtopic.php?f=114&t=6203
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Previous

Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron