Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Liquidfun... or is it? — Gideros Forum

Liquidfun... or is it?

I'm back!

Attempting to resurrect a game from 2018 called Zomball. It exports fine, but for some reason I can't seem to run it in the local player. How do I set up the local player with Liquidfun again? My memory appears terribly short.

This is the error:
Libs/Rube.lua:55: module 'liquidfun' not found:
	no field package.preload['liquidfun']
	no file './liquidfun.lua'
	no file './liquidfun/init.lua'
	no file './_LuaPlugins_/liquidfun.lua'
	no file './_LuaPlugins_/liquidfun/init.lua'
	no file '/usr/local/share/lua/5.1/liquidfun.lua'
	no file '/usr/local/share/lua/5.1/liquidfun/init.lua'
	no file '/usr/local/lib/lua/5.1/liquidfun.lua'
	no file '/usr/local/lib/lua/5.1/liquidfun/init.lua'
	no file './liquidfun.so'
	no file '/usr/local/lib/lua/5.1/liquidfun.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
My Gideros games: www.totebo.com
+1 -1 (+3 / -0 )Share on Facebook

Comments

  • I have
    require "liquidfun"
    Followed by...
    local world=b2.World.new(0,9.8)
    etc...

    Welcome back btw! :)

    Likes: MoKaLux, totebo

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+2 / -0 )Share on Facebook
  • totebototebo Member
    edited March 2021
    Hey, thanks! :)

    Yeah, that's what I thought. For some reason the require doesn't work, but only when testing in the player. When exporting as HTML5 everything works as it should and the game starts fine.

    This is an old codebase, so I'm just trying to run the game locally, without any code changes (for now).

    I should add that I'm testing on the latest version of Gideros.

    Likes: MoKaLux

    My Gideros games: www.totebo.com
    +1 -1 (+1 / -0 )Share on Facebook
  • olegoleg Member
    totebo said:

    I'm back!

    Attempting to resurrect a game from 2018 called Zomball. It exports fine, but for some reason I can't seem to run it in the local player. How do I set up the local player with Liquidfun again? My memory appears terribly short.

    This is the error:

    Libs/Rube.lua:55: module 'liquidfun' not found:
    	no field package.preload['liquidfun']
    	no file './liquidfun.lua'
    	no file './liquidfun/init.lua'
    	no file './_LuaPlugins_/liquidfun.lua'
    	no file './_LuaPlugins_/liquidfun/init.lua'
    	no file '/usr/local/share/lua/5.1/liquidfun.lua'
    	no file '/usr/local/share/lua/5.1/liquidfun/init.lua'
    	no file '/usr/local/lib/lua/5.1/liquidfun.lua'
    	no file '/usr/local/lib/lua/5.1/liquidfun/init.lua'
    	no file './liquidfun.so'
    	no file '/usr/local/lib/lua/5.1/liquidfun.so'
    	no file '/usr/local/lib/lua/5.1/loadall.so'
    Check if you have the Liquidfun plugin enabled

    Likes: MoKaLux, totebo

    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
    +1 -1 (+2 / -0 )Share on Facebook
  • Maybe you have a different liquidfun in the user plugins folder? It may have been that long ago that it was experimental?

    Likes: oleg, totebo

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+2 / -0 )Share on Facebook
  • totebototebo Member
    edited March 2021
    Cheers guys. The plugin seemed right, but to make sure I removed it and added it again. The main mystery here is why it works when exported as HMTL! I can export the project as a player and test it in a browser. Miight just go down that route. But - strange!

    Edit: Now this IS strange. I get the same issue with this setup:

    - Vanilla Gideros 2021.2 on macOS Big Sur
    - An empty project with one line of code in it to require "liquidfun" (uploaded here, couldn't attach it to this message for some reason).




    There must be something I'm doing wrong?
    My Gideros games: www.totebo.com
  • totebototebo Member
    edited March 2021
    -- delete please --
    My Gideros games: www.totebo.com
  • totebototebo Member
    edited March 2021
    -- delete please --
    My Gideros games: www.totebo.com
  • totebototebo Member
    edited March 2021
    -- delete please --
    My Gideros games: www.totebo.com
  • rrraptorrrraptor Member
    edited March 2021
    Maybe its "LiquidFun" ? :D
    Anyways, you can print all available plugins and check if it exists:
    for k in pairs(package.preload) do print(k) end

    Likes: totebo, oleg

    +1 -1 (+2 / -0 )Share on Facebook
  • Maybe its "LiquidFun" ? :D


    I actually tried all sorts of variations, no luck!

    Anyways, you can print all available plugins and check if it exists:


    Handy! This is what it spits back. Remember, this is a vanilla project only with Liquidfun added as a plugin (see above).
    lsqlite3	function: 0x7fa61c90e1e0
    media	function: 0x7fa61c91aec0
    json	function: 0x7fa61c91af80
    spine	function: 0x7fa61c90e480
    cbump	function: 0x7fa61c91acf8
    lpeg	function: 0x7fa61c90e180
    luamidi	function: 0x7fa61c90e250
    mime.core	function: 0x7fa61c90e320
    gyroscope	function: 0x7fa61c910a40
    json.safe	function: 0x7fa61c91afe0
    FastNoise	function: 0x7fa61c91ae50
    lfs	function: 0x7fa61c91b050
    geolocation	function: 0x7fa61c910a78
    accelerometer	function: 0x7fa61c910a08
    reactphysics3d	function: 0x7fa61c90e390
    camera	function: 0x7fa61c91acc0
    clipper	function: 0x7fa61c91ad80
    ImGui	function: 0x7fa61c91af20
    socket.core	function: 0x7fa61c90e2b0
    struct	function: 0x7fa61c90e4e0
    controller	function: 0x7fa61c91ade0
    bit	function: 0x7fa61c91ac60
    My Gideros games: www.totebo.com
  • rrraptorrrraptor Member
    edited March 2021
    Or according to this: https://github.com/gideros/gideros/blob/d109048583a8e43fa295ef739c53523f989df187/plugins/liquidfun/source/common/liquidfunbinder.cpp#L87
    you can try
    require "box2d"

    Likes: totebo

    +1 -1 (+1 / -0 )Share on Facebook
  • That seems to be there:


    My Gideros games: www.totebo.com
  • rrraptorrrraptor Member
    edited March 2021
  • try to uninstall gideros and delete manually if anything is left in the folder. then reinstall. should not take much time and worth a shot.

    Likes: oleg

    +1 -1 (+1 / -0 )Share on Facebook
  • Do you have access to Windows - see if that gives that same result for you?

    Likes: oleg, Makoren

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+2 / -0 )Share on Facebook
  • Afraid not. Mac and Chromebook all the way. :s
    My Gideros games: www.totebo.com
  • hgy29hgy29 Maintainer
    Accepted Answer
    Sorry, I am late to the party, but not too late fortunately. I just tried on my Mac and yes, none of liquidfun projects work, the same error is reported.
    On further look, the Dylib are there but the entry point is wrongly named. And liquidfun is not the only plug-in affected, others are microphone, gsfxr, harfbuzz, ogg, and threads.
    The problem is certainly a bad definition in the binding file, I fix that
    +1 -1 (+3 / -0 )Share on Facebook
  • YAAAAY! Thanks @hgy29, superhero!
    My Gideros games: www.totebo.com
  • The problem is certainly a bad definition in the binding file, I fix that


    Hey @hgy29, did you have a chance to look at this? In the meantime, is there a temporary fix I could do myself to be able to test locally?
    My Gideros games: www.totebo.com
  • MoKaLuxMoKaLux Member
    Accepted Answer
    totebo yes it's been fixed https://github.com/gideros/gideros/commit/d09efaecb05b8d3ed007559b78316bf0924ccb02

    now need to wait a little bit for the next release :)
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • hgy29hgy29 Maintainer
    Yes, it has been fixed, and furthermore integrated in the 2021.3 release I have uploaded this morning. I left it in pre-release though, as it wasn't tested much
    +1 -1 (+3 / -0 )Share on Facebook
  • Testing 2021.3 now, so far it works! The error is gone and things seem to be running smoothly. Thanks!

    Likes: MoKaLux

    My Gideros games: www.totebo.com
    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.