Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gideros Wax Plugin Alive Again — Gideros Forum

Gideros Wax Plugin Alive Again

troysandaltroysandal Member
edited September 4 in Plugins
I'm trying to bring back an old game I wrote that relied very heavily on wax. Wax hasn't been supported in a long time so I took it upon myself to get it working again in Gideros. It's now compiling and running against both Lua 5.1 and Gideros Luau. There's still going to be some bugs but I'm happy to open it up for testing.

To get Wax running in Gideros start at my BhGideros repo (name will probably change, sorry).
+1 -1 (+5 / -0 )Share on Facebook

Comments

  • MoKaLuxMoKaLux Member
    edited September 5
    added to the wiki ;)
    https://wiki.gideros.rocks/index.php/Plugins

    PS: sorry if I missed something!

    Likes: troysandal

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
    +1 -1 (+1 / -0 )Share on Facebook
  • Thank you.

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • I have built the player, but when I run it, I get the following error. Do you have any suggestions?
    ```
    METAL:Apple A18 Pro GPU

    [gideros] starting render thread.
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSScene touch]: unrecognized selector sent to instance 0x1261fc0a0'
    *** First throw call stack:
    (0x1947800c0 0x191c19abc 0x1947ea4c0 0x1946948bc 0x194694940 0x101ac6940 0x1006f1794 0x1004d5170 0x1004d5238 0x100714ea0 0x100714df0 0x193354804 0x21eb23344 0x21eb20ab8)
    libc++abi: terminating due to uncaught exception of type NSException
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSScene touch]: unrecognized selector sent to instance 0x1261fc0a0'
    *** First throw call stack:
    (0x1947800c0 0x191c19abc 0x1947ea4c0 0x1946948bc 0x194694940 0x101ac6940 0x1006f1794 0x1004d5170 0x1004d5238 0x100714ea0 0x100714df0 0x193354804 0x21eb23344 0x21eb20ab8)
    terminating due to uncaught exception of type NSException
    Can't show file for stack frame : - stackNumber:14 - name:metalShaderEngine::present. The file path does not exist on the file system: /Users/nico/git/gideros/2dsg/gfxbackends/metal/metalShaderEngine.mm
    ```
    Screenshot 2025-09-09 at 08.27.20.png
    1936 x 1392 - 934K
    Screenshot 2025-09-09 at 08.26.58.png
    2790 x 1726 - 1M
    Coming soon
  • troysandaltroysandal Member
    edited September 9
    Can you upload the lua code you are trying to run? Or did this happen just building and running a brand new Player? If so, did you turn off ARC for Wax (or the inverse) per my instructions in the README?
  • Ok I see the issue - you added the -fno-objc-arc to everything. Take it off main.m, AppDelegate.m, EAGLView.m and ViewController.m, that's causing the issue.
    +1 -1 (+2 / -0 )Share on Facebook
  • Awesome, thank you! Please update the README of Gideros Player with Wax to include the names of these 4 example files as well!

    I was able to test with BhWaxDemo.new().
    With the example BhWaxAutocomplete.new() I’m encountering an error.

    Thank you so much! The project is really running and the result feels like magic!
    ```
    visit(TimerEvent* v)* stack NOT ok begin:0 end:16 delta:0
    *CppLuaBridge::luaEvent* stack NOT ok begin:0 end:16 delta:0
    *enterFrame* stack NOT ok begin:0 end:16 delta:0
    Autocomplete.lua:44: attempt to call a nil value
    stack traceback:
    Autocomplete.lua:44: in function getClassNamesMatching
    Autocomplete.lua:58: in function generateAutocompleteListForClassesMatching
    Autocomplete.lua:164: in function init
    [string "luabinding/property.lua"]:75: in function __new
    [string "luabinding/property.lua"]:82: in function new
    BhWaxAutoComplete.lua:70: in function
    [string "luabinding/compatibility.lua"]:32: in function delayedCallWrapper
    METAL:Apple A18 Pro GPU
    ```

    Likes: MoKaLux

    Coming soon
    +1 -1 (+1 / -0 )Share on Facebook
  • troysandaltroysandal Member
    edited September 11
    I’ll take a look today. Might have forgotten to check something in, I did have that working though it doesn’t write to disk for some reason. Thanks for testing.
    +1 -1 (+2 / -0 )Share on Facebook
  • I just checked out a clean repo, built the plugin, built the Player and ran the BhWaxDemo.gproj and was able to get every demo to run.

    What version of Gideros are you running?
Sign In or Register to comment.