Jump to content

reepblue

Developers
  • Posts

    2,600
  • Joined

  • Last visited

Everything posted by reepblue

  1. I got a little nervous when I read your post at first, but now that a buy-once model is still gonna be used when it's release, I feel better. I see the subscription model for beta software like a Patreon of a sort. Best all, you know you're doing something right or wrong based on number of subscriptions, so you can dynamically change things based on real feedback rather than assumptions.
  2. You can also make a fullscreen window by making a boarder less window with the window size the same as the monitor. This method is multi monitor friendly too, and you can toggle between fullscreen mode and windowed mode easily, as the entire app is just one big window. window=Window:Create(title,0,0,1920,1080,0) I'm thinking about changing Luawerks to this instead, but I want to check if this works in Linux first.
  3. Seems that there is a change in how fullscreen works. Try: local s = Vec2(System:GetGraphicsMode(System:CountGraphicsModes() - 1).x, System:GetGraphicsMode(System:CountGraphicsModes() - 1).y) window = Window:Create("Test",0,0,s.x,s.y,Window.FullScreen)
  4. Not even the stock code works? Because when I upgraded, I was having a similar problem, but the stock code worked.I had to rewrite my window system.
  5. Luawerks has been updated this morning, making the console more responsive and a new tab for the Options Menu for user's to bind keys to actions. Actions have always been part of Luawerks, but until now, there wasn't really a motive to use them. Now, the Action class look in the config to check what key the user binded to that action. You can read more on how this works here. Like the console, this may be improved more in the future. About Luawerks Luawerks is a Lua framework for video games developed on the Leadwerks Game Engine. It supplies developers with additional functions, handles the game loop and allows them to debug their code with a developers console. With all that out of the way, you can focus on making your game fun! You can purchase Luawerks from the Leadwerks Workshop Store for $9.99. For documentation and bug reporting, please visit the GitHub page.
  6. Crazycarpet made one with more features in C#. It prob can be compiled for Linux using Mono.
  7. Looks cool, I'd put the source on a git so people can fork/pull request changes and fixes.
  8. I'm currently testing Luawerks for Linux, and I've noticed that window:FlushMouse() and window:FlushKeys() seem to not be working with Linux. This is probably well known as I'm sure X11 is hell to work with. Any idea how to remedy this in the meantime? I tried to fix this with booleans and timers, but it just delays the action.
  9. Daww, you should at-least ship out stickers while you got em. I actually don't like using stickers if I only have one of em. If you're done sending prizes, that's understandable, hopefully someday you'll find a way to make it work.
  10. The physics in that is really botched in that demo as I had no idea what I was doing. I should just replace the app with a different one. In-fact, I should just make the full game at this point regardless.
  11. That would be a start. I'd say roll back to the old GUI and see how it goes from there.
  12. reepblue

    AppDataPath()

    From what it looks like, it seems like your making a new directory under root. I recall LE storing the AppData folder under /home/USER/. The user doesn't have permission to access anything outside their home folder by default. Also, the folder is hidden with a period at the start.
  13. I made a git repo to future update the script. Please update this overtime. https://github.com/reepblue/leadwerks-get-packages Also. unless Steam pulls this already, I think we can remove unity-gtk2-module:i386 once Gnome takes over the Ubuntu desktop, but not 100% sure. Hence why the script is on a git. To Install: wget https://raw.githubusercontent.com/reepblue/leadwerks-get-packages/master/leadwerks-get-packages.sh bash leadwerks-get-packages.sh
  14. According to this post, the subscription service is just an option. If you want to put 100-200$ to own the software, that's cool too. I hope this remains the case when it comes time to release. I dislike the idea of 'renting' software, hence why I moved to most open source software, but I also understand the arguments.
  15. Run this shell script. It includes everything you need to build/run LE.
  16. Prob a good idea to upload the fbx. Just checked my model with animation, and it seems OK.
  17. Classes/Entities/Camera.h starting at line 139. virtual void SetFogColor(const float r, const float g, const float b, const float a);//lua virtual void SetFogAngle(const float start, const float stop);//lua virtual void SetFogRange(const float start, const float stop);//lua virtual Vec4 GetFogColor();//lua virtual Vec2 GetFogAngle();//lua virtual Vec2 GetFogRange();//lua virtual void SetFogMode(const bool mode);//lua virtual bool GetFogMode();//lua Hopefully when Return To The Zone releases, they'll be fog settings in the scene panel.
  18. Thanks for your interest. Off the top of my head, a controls tab in the options and some sort of map select when hitting new game were things I wanted to put in this update, but I wanted it to be ready for 4.4's release. A Trello for a road map would be a good idea, I'll set one up soon. Thanks.
  19. Luawerks has been updated for Leadwerks 4.4, taking advantage of the new GUI system while adding new features and commands that allow you to develop your game better. Developer Console Refresh The Developer Console is the stable of the framework. Thanks to the GUI, you can now scroll through your history, highlight, and move the cursor around! Page through your history using the Page Up and Page Down keys! Having a console is vital for development as it allows developers to change maps and other values in-game instead of restarting the program after changing some code. You can add your own commands easily as well. For more information, see the page about the Console here. An Integrated Menu The standard release of Leadwerks 4.4 comes with a menu. I shipped my own standard menu with Luawerks to be more integrated with the rest of the framework. Unlike the official menu script, the Luawerks menu uses 2 GUI's; one for the main menu, and the other for the panels/windows. You can just edit the main menu without effecting the panels, and vise versa. Menu also calls the panels via console commands. The Gotcha's Fixed Upon installing Luawerks into the project, I recommended that the user calls SetCamera() instead of Camera:Create(), so that the world class would know what camera to reference. This caused a problem when the user switched maps, so I also requested that the user releases the camera too. I replaced this with a for loop in the GetCamera() function, and calling camera:Release() isn't necessary. You can now load maps in-which their names have spaces! Load Models as Copies I added a second parameter to the LoadModel() function. If set to true, the function will load a model, create and return a copy of the model, and release the original asset. This allows you to manipulate that model without effecting other references. This is great if you want one model to use multiple skins. This image shows two of the same models loading two different materials. Here is an example on how to create a copied/unique model: self.mymodel = LoadModel("Models/MyModel.mdl",true) LOD Models [Experimental] An experimental feature I've added is an object with multiple models and it switches the models based on the camera's distance from the entity. This only works on Static objects as I didn't calculate velocity and mass. You'd need to make it an object script like so: function Script:Start() self.model = ModelLOD("Models/LodTest/main.mdl") self.model:Get():SetPosition(self.entity:GetPosition()) self.model:AddLOD("Models/LodTest/lod1.mdl",5) self.model:AddLOD("Models/LodTest/lod2.mdl",10) self.model:AddLOD("Models/LodTest/lod3.mdl",15) end function Script:UpdateWorld() self.model:Update() end As I said before, this was something I was playing with, and I don't think it's ready for full use yet. Although it'll help with poly counts, each ModelLOD needs to be updated to get the distance of the camera, so you'd need to weigh your costs. On top of all that, bug fixes were made, new commands were added, and more things are planned for future releases. Documentation will continue to be updated here. About Luawerks Luawerks is a Lua framework for video games developed on the Leadwerks Game Engine. It supplies developers with additional functions, handles the game loop and allows them to debug their code with a developers console. With all that out of the way, you can focus on making your game fun! You can purchase Luawerks from the Leadwerks Workshop Store for $9.99. For documentation and bug reporting, please visit the GitHub page.
  20. Steam should install whatever required packages are needed to run. What version of Windows are you running on? You should be able to have multiple redists installed at the same time. Other than that, not sure why you're running into this issue.
  21. For me at least, None and 2x seem the same. It's not until I get to 4x where I see improvements. Here is the apply code. --Antialias item = self.antialias:GetSelectedItem() if item>-1 then local aa = self.antialias:GetItemText(item) aa = string.gsub(aa,"x","") if aa=="None" then aa="1" end aa = tonumber(aa) local count = world:CountEntities() for n=0,count-1 do local entity=world:GetEntity(n) if entity:GetClass()==Object.CameraClass then local camera = tolua.cast(entity,"Camera") camera:SetMultisampleMode(aa) end end System:SetProperty("antialias",aa) end I mentioned this to Josh, and I think he knows. I think it has something to do with rendering with the OpenGL context as if you just drew the GUI on the window, the text looks nice and crisp. I saw this a while back, and thought Josh would fix it. The original text read "$PROJECT_TITLE so when it got copied, it would get replaced by the name of your game. Just change 'title' in the Main.lua script to fix.
  22. Yep already updated my script.
  23. reepblue

    Leadwerks 4.4 RC2

    Prob would be best to have fog options be adjustable in the scene tab so the user can see their fog results in the editor. Overall, really cool!
  24. I hope the final iteration is a bit brighter, unless it looks brighter in-game. That or should be 1:1 with the LE2 version. But overall, amazing work I'm excited to finally be able to play this, I hope this gets released as a template or an open source project.
  25. reepblue

    Luawerks

    Pretty much final now. I removed my mess of networking and my menu GUI is just a set of buttons that open panels via console commands! Only thing left to do is to add a "Controls" tab in the options menu, but I'm still investigating how that'll work. The functionality already exists, the issue is what Widget would be best. Now I'm just gonna spend the next few days polishing, bug hunting and updating documents. I'll push this update when 4.4 goes gold as you now need 4.4 for this to work.
×
×
  • Create New...