-
Posts
28 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by Rocko
-
-
-
-
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.
It compiled, but i got this error
- 1
-
1 час назад, Optimus Josh сказал:
This describes usage:
https://www8.cs.umu.se/kurser/TDBD12/VT04/lab/lua/tolua++.htmlI have many errors
-
19 часов назад, Dark Yue сказал:
i readed it, but I didn't understand anything otherwise I wouldn't write there about this
-
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()
endbut 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. -
20 часов назад, Optimus Josh сказал:
tolua++ is the library we use. It will do what you need.
How exactly can i use it?
-
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
-
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!
-
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.5Even when adjusting the Density of Vegetations, this shadow line just moves to another part of the level. Please help me fix it.
-
-
On 12/22/2017 at 6:56 PM, Josh said:
I hope 4.6 will have it in January. Thanks for being patient.
Mr Josh, i update my leadwerks to 4.6 beta, but car isn't still moving. When do you fix it?
- 2
-
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
-
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 hours ago, macklebee said:
What?
-
-
-
Hello. I have a big problem. When i create at my map some decals, set render view to "Textured" and try to load another some map, my editor can be crash with message "EXCEPTION_ACCESS_VIOLATION". I use leadwerks 4.6 beta ?
-
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.
-
36 minutes ago, Josh said:
You have a high-precision gaming mouse?
Yes, i have it, but i tried to use touchpad and it didn't work too
-
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 buttonI tried the next actions:
1) I deleted config User/MyDocuments/Leadwerks/Leadwerks.cfg
2) I reinstalled leadwerks editor
3) I rebooted my OS -
I tried to close leadwerks window and it offered to terminate process of my game (I didn't close my game window). After it, i can't rotate camera by holding right button
-
7 hours ago, cassius said:
This happened to me some time ago. It worked ok after rebooting. Or you could reinstall from steam.
It doesn't work
-
Hello, i can't rotate camera by hold right mouse button in Leadwerks Editor Window. Please, help me
lua cast to C++
in Programming
Posted
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