Jump to content

Rocko

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by Rocko

  1. 12 часов назад, Optimus Josh сказал:

    Can you upload a working project I can run to test?

    Okay, but it's not my project, i downloaded this in this topic and updated to newer version of leadwerks (4.6), but i fixed it. I use this example project, because i needed it to learn tolua bridge.

     

     

    Shooter.zip

    • Thanks 1
  2. 17 часов назад, Optimus Josh сказал:

    See this:

     

    1834255389_.thumb.png.2c8ef71bc23e00ebb5cf9f33db78ea4b.png

    THANK YOU, MR OPTIMUS JOSH, FOR YOUR HELP IN GLUE CODE! ?

    2115438366_.thumb.png.3c3f839ea8bae70aa656ed85cc6375d0.png

     628394988_.png.ed33bdaa0aab53b428311784eb007c1e.png

    All ok, but when i use Debug breakpoint this doesn't work properly, or application of game closed without error or i have this error  of Visual C++

  3. 39 минут назад, Optimus Josh сказал:

    I made these changes to make your code compile:

    • Added "#pragma once" at the top of ok.h.
    • Added "public:" in ok class.
    
    
    #pragma once
    #include "Leadwerks.h"
    
    using namespace Leadwerks;
    
    class ok
    {
    public:
    	ok(); //lua
    
    	void ko(); //lua
    
    };

    And I added this at the top of ok_lua.cpp:

    
    
    #include "ok.h"

    I did not test beyond that, but it compiles.

    820525546_.png.0118bb0675baebc95a6f2a71893efc66.png1068512633_.thumb.png.e748a02d84cde656fb2fca3021423a25.png

    1742171091_.thumb.png.102c36395e302e7622c9186d07081d69.png1895923591_.thumb.png.e856f92d211c935ff95fb013141ad82c.png1461949611_.thumb.png.701f2346b20c12a6b60880888d1b915b.png

    It compiled, but i got this error :(

    • Sad 1
  4. 13 часов назад, reepblue сказал:

    I would hook you up, but the code is pretty old and I had issues with Interpreter doing so. What functions do you need to call? Unless it's math functions, it's not worth it. If it's actor assigning, please take a look at this

    oooh....

    Okay, for example, i wrote function in App.cpp

    void App::Test(lua_State* L)

    {

    System::Print("TEST FUNCTION");

    }

    in .h file i wrote in public functions this:

    virtual void test(lua_State* L);

     

    in test lua file i  wrote this:

    function Script:Start()

       App:test()
    end

    but it  doesn't work. What am I missing to make this work?  It's test function, i know lua language, but I need to  rewrite part of the Lua code into C ++, but I don’t know how to call my custom C++ by lua.
    That's why I started with simple functions, but I can't even just write a message to the console. 

     

     

     

     

     

     

  5. On 1/30/2021 at 7:50 PM, reepblue said:

    What is it exactly you're trying to do? You want to expose functions with glue code? 

     

    Sorry for being so late, this just recently grabbed my attention.  

    I want to call C++ function by lua but i don't know how to do it

  6. Hello, i write code by lua but i need to use C++ because it need for my project. I searched the Internet for information about this and found only vague references or something that did not suit me for leadwerks. I learned how to call lua functions via C ++ via the Interpreter, but that's not what I need. If someone can provide a simple project (with text output to the console, for example) or a clear explanation with examples, I will be very grateful!

  7. Hello. We have been developing our game on Leadwerks 4.7 for a long time, but now we are faced with such an unsolvable problem, which you can see in the screenshot.
    Problem is in appearance of a strange phantom shadow line extending over the entire level. The engine version doesn't matter, I got the same bug on a completely empty project with Leadwerks 4.1-4.5

    Even when adjusting the Density of Vegetations, this shadow line just moves to another part of the level. Please help me fix it.

    20210116233649_1.jpg

    image_2021_01_16T18_45_14_516Z.png

  8. 1 hour ago, Josh said:

    This can happen if you called Release() twice on an object or something like that. Release will return the ref count so if it ever returns -1 you have a problem.

    However, unless this is actually causing a crash I would just treat it as a warning.

    Okay, thanks

  9. 1 hour ago, Josh said:

    Do you have a material for this, or are you just attaching the texture? If it is your own material,uncheck depth mask in the skybox material settings.

    Thanks, Mr Josh!

  10. Hello, when i use ReleaseTableObjects function in my project and change map, console in the editor show message "Possible reference count error for asset" for all objects in table. For example, this are textures,sound and etc. I create new project and test it. This happened in new project. ?  

    44.JPG

  11. 3 hours ago, Josh said:

    There is a history of this and Nvidia drivers not working correctly. If you search I think there is a Windows setting that fixes this.

    I tried to run Leadwers Editor at Integrated GPU  (Intel® HD Graphics 510)  . Editor runned, but i can't rotate camera by holding right mouse button, again :( I unplugged my gaming mouse and rebooted my OS. I runned LED, but i can't rotate camera. 

  12. 3 hours ago, Crazycarpet said:

    It might help Josh figure this out (assuming it's an editor issue) if you'd provide him with more details, maybe a video? and at the bare minimum the OS you're running.

    Okay. I work on a windows 10 laptop. My specs:
    OS: Windows 10 x64
    RAM: 8 gb DDR 4
    CPU: I5-6198DU
    GPU: Geforce 920 MX 2 gb vram
    More details? Which more details? Before it, all worked okay. When i worked on my project, i closed leadwerks window and  it offered to terminate process of my game. I press "Ok" and leadwerks was clossing. On the next day i opened leadwerks and i can't rotate camera by holding right button

    I tried the next actions:
    1) I deleted config User/MyDocuments/Leadwerks/Leadwerks.cfg
    2) I reinstalled leadwerks editor
    3) I rebooted my OS

×
×
  • Create New...