menu
 

Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+1 vote

So i am trying to use ak.wwise.core.project.preClosed to simply color some work units and save the project afterwards but it doesnt seem to be working. It asks me about a lambda object, even though i am providign it, and afterwards there are a lot of errors due to wwise being disconnected. So i guess communication broke up too early or something.

Is there some sort of limitation on this topic? Can you please provide an example on how to use it?

Thx

EDIT: Just adding a simple code snippet of code that doesnt work:

def simple_print_hi(object):
    print("hi")
handler_project_closed = client.subscribe("ak.wwise.core.project.preClosed", lambda object: simple_print_hi(object))
 
This throws the following error:
  File ".....\PycharmProjects\WAAPI\venv\lib\site-packages\waapi\wamp\async_decoupled_client.py", line 152, in <lambda>
    Thread(target=lambda: self._callback(**kwargs)).start()
  File "....\PycharmProjects\WAAPI\venv\lib\site-packages\waapi\client\event.py", line 56, in on_event
    self._callback(*args, **kwargs)
TypeError: <lambda>() missing 1 required positional argument: 'object'

in General Discussion by Eduardo B. (270 points)
edited by Eduardo B.

1 Answer

0 votes

Allright got it, It actually complains about an object but the topic doesnt require any. This is somehow hard for me to understand. So this is expected:

def simple_print_hi():
    print("hi")
handler_project_closed = client.subscribe("ak.wwise.core.project.preClosed", lambda: simple_print_hi())
by Eduardo B. (270 points)
...