-
Posts
775 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Everything posted by Guppy
-
but in a brand new project it doesn't happen ... :| time to delete code untill it stops happening I guess Well this was embarasing - somehow ( and I swear I've not changed it ) the debug build target lost the ".debug" extension so the LE editor was using an old version every time I hit debug. The crash you ask? well that is aparently how LE handles unkown functions - would have been really nice to get an error tbh.
-
The capital b seems to be a paste error, I added the reset line just before loading the the start map and much as I suspected it made no difference ( being called from a script being run by the Interpreter the Interpreter should be initialized ). The most annoying bit is there is no indication of why it stops it just exits with "Error: Unkown client disconnected"
-
Disclaimer: It's getting a bit late so maybe I'm missing something obvious I've been trying to figure out the Interpreter class and how to create custom lua functions, and it's going well quite apart from not being able to identify a register function on the interpreter class - so I cheated a bit there. static int addTwo(lua_State *L){ int argc=Interpreter::GetStackSize(); // equiv to lua_gettop(Interpreter::L) ? int i,t; for (i = 1; i <= argc; i++){ t=Interpreter::ToNumber(i); std::cout << "[C++]addTwo(" << t << ")=" << (t+2) << std::endl; Interpreter::PushFloat(t+2); } return i-1; } and in App::Start() lua_register(Interpreter::L,"addTwo",addTwo); In the fps player controller i added this a,b,c=addTwo(1,2,3) System:Print(a) System:Print(B) System:Print(c) to the pickup code rigth after "mass = pickInfo.entity:GetMass()" to make sure I can trigger it when ever I want. Now the strange bit is this works perfectly in Code::blocks - but by when I run it in the LE editor it instantly crashed when I try to pick something up. I've tried toggling sandbox to no avail
-
pickinfo.entity name and collision problem with prefabs
Guppy replied to CrazyM's topic in Programming
Ran head long into much the same problem - I wanted to check if a specific key had NOT been set. In this case you would expect GetKeyValue to return nil - however it always returns a string and in the case of unset values it returns an empty string So if entity:GetKeyValue("unsetkey") ~= nil then System:Print('this will be printed'); end Where as if entity:GetKeyValue("unsetkey") ~= "" then System:Print('this wont be printed'); end Embarrassingly enough this is actually mentioned in the docs; http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitygetkeyvalue-r773 -
You would ofcourse do automatic backups of the versioning database...
-
pickinfo.entity name and collision problem with prefabs
Guppy replied to CrazyM's topic in Programming
Given that you can set any old value with setKeyValue why not set a property telling your if it's destructible? :SetKeyValue("canBeMined",true) That way you can also have blocks that cannot be destroyed ( and comparing a bool almost certainly faster than doing string comparision ) -
Very handy - you could even make a "remove fluff" step to get rid of the non optional stuff your project dont need
-
Specify system requirements for Linux on the Steam store page.
Guppy replied to DerRidda's topic in Suggestion Box
And note that the editor is only supported on ubuntu LTS -
I've been wondering about this - is there any reason projects are not auto updates automagically? ( LUA and C++ both )
-
Last comment here; http://www.leadwerks.com/werkspace/blog/1/entry-1203-beta-branch-update-tons-of-art-pipeline-enhancements/
- 5 replies
-
- physics shapes
- blender
-
(and 1 more)
Tagged with:
-
Just name it Collision in blender?
- 5 replies
-
- physics shapes
- blender
-
(and 1 more)
Tagged with:
-
The shader needs to be the animated one (there are several) and yes I mean in Leadwerks
-
Using animated shader?
-
While solving having only one camera shared between c++ and lua I came across something strange - all lights seem to be registered as cameras as well. Now I suspect that this has "something" to do with the deferred rendering, I was just hoping somebody could shed some light on what that "something" is
-
[Linux,C++,Steam] autopistol causes segfault on exit
Guppy replied to Guppy's topic in Leadwerks Engine Bug Reports
Missed the update due to always using the desktop icon - but even so that didn't fix the problem. When not seg faulting the last lines area "OpenAL: AL_INVALID_OPERATION AL lib: ReleaseALC: 1 device not closed" Might be related? Anyway steps to reproduce; Create new C++ project Open up the start.map Add FPScontroler prefab Comment line 35-36 in App.cpp Compile Run the game from code::blocks Now at this point the game runs and doesn't segfault Add the weapon prefab Save the map Run the game from code::blocks Hit ESC or ALT+F4 to end the game And there is the the segfault. I just did the above steps again to confirm If you still cannot reproduce it would the coredump help? -
Please add the "Leadwerks/Include" dir to Additional Search paths ( Project -> Properties.. -> C/C++ parser options ) This adds full codecompletion to all leadwerks headders - very very handy <3 If somebody wants to do it them selves the path is /home/YOURUSERNAME/.local/share/Steam/SteamApps/common/Leadwerks/Include/ Then exit code::blocks and open the project again
-
Like that of geany It's just very usefull to have
-
Except that gtkparasite does just that... http://chipx86.github.io/gtkparasite/
-
Drivers is software, software have bugs - especially when the engineers try to cut corners in the name of benchmarks scores (=more sales) *shrug*
-
Firstly; Secondly have you tried launching it from the console/commandline to see exactly what locks it up?
-
[Linux,Steam,C++] FPS controller doesn't move the camera
Guppy replied to Guppy's topic in Leadwerks Engine Bug Reports
Gah - you are correct, commenting out line 35-36 makes it work as expected. But then I lose my camera reference in c++ :| Oh well I set out to investigate how to pass information back and forth between C++ and lua, I suppose the camera is as good a place to start as any -
Is there some limit to what I can drag into the flowgraph editor? It says to drag from the scene tree, so far I've tried CSGs, the player object, boxes, barrels, etc but the cursor just turns into an X and notting happens. I'm fairly tired ATM so maybe it's down to user stupidity but how is it supposed to work?
-
Adding a weapon prefab makes it a little clearer - I didn't think of that untill after I uploaded the video. Map file can be found here; https://drive.google.com/file/d/0B7B0hlkpWcYWUU5qdjBTa3QzWUU/edit?usp=sharing The map works just fine if I create a lua project - how ever using even a freshly created unmodified c++ project ( well I hit compile but that's all ) it's displaying this behaviour. Freshly created project; https://drive.google.com/file/d/0B7B0hlkpWcYWZ0R2Skg1QjVhQjA/edit?usp=sharing and yes I'm running Ubuntu 14.04 with that loathesome unity desktop