reepblue Posted November 2, 2015 Share Posted November 2, 2015 Hey all, As a curiosity, over the weekend I found the old install of the 3.0 demo that included assets from the old sample game "Darkness Awaits". While models, textures of this project might be on the template, I don't think the scripts are. The engine has come a long way since 3.0 and instead of simply just porting assets into the newer engine and call it a day, I took the time to streamline code, textures, and fix things that were broken in the old demo. This way, the template is another example of how to make games using Leadwerks! Changes include: The start map has been updated visually showing off the current features of the engine such as deferred shadows and decals. There is now more Goblins! Normal maps are now blue instead of the magenta color they where before. Adjusted some speculator settings in most materials. Removed any instances of mobile/touch controls. All code works with current SDK scripts (Such as the current PushButton.lua). Barbarian and Goblin models both have normal and spec maps for their sheets and weapons. The Player now dies and displays a GameOver screen. Player's healthbar has been fixed when the player's health reached 0. Player and Goblin scripts now use the ReleaseTables script. Other compatibility edits. Player and Goblin scripts calls animation names instead of sequence numbers. The Player's Delete() function got replaced with Release(). Fixed Goblin's Navigation code. Goblins now stop attacking the player when they are dead. Player code now creates a camera instead of the mapper having to add one. Player and Goblins now have footsteps sounds. Models had their shapes redone in the model editor instead of the old shape tool that's under the Legacy Features. Added Crate Model. Prefabs where updated/fixed. Removed the switch prefab (it was broken, and broke the editor). The template still uses the older App.lua due to it's menu system. However, it's been modified to include newer additions in later versions of that script. (map changing, settings via Properties) You can download the file here on my GitHub. Install it under Steam\steamapps\common\Leadwerks Game Engine\Templates. Should work on both Windows and Linux. I ported this project due to the fact I felt like this game showed how to make a simple menu/startscreen in Lua without needing FlowGUI, LEX, or other things. Also another reminder that I just did the port/fixes. "Darkness Awaits" was originally created by Josh, Chris Vossen, and other members who where involved. Again, I did this out of curiosity, and I thought it would benefit the community if it was re-released as a template. If you have any problems, let me know. 12 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted January 23, 2016 Share Posted January 23, 2016 This is really fantastic to see as a template. I think I should add the ability to publish templates in the Workshop, this is great. 6 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted January 23, 2016 Author Share Posted January 23, 2016 Thanks Josh! I found it an interesting project to do converting an old template to the current version of Leadwerks. It really shows how far the engine has came since. I'm all for custom template support. and I'm glad you've made the system very simple and open. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
SMS DIGITAL Posted January 23, 2016 Share Posted January 23, 2016 This is some great work. I look forward to templates becoming available to share on Steam too Keep up thew good work Quote Link to comment Share on other sites More sharing options...
Sharlenwar Posted January 27, 2016 Share Posted January 27, 2016 This is pretty amazing! Very helpful for those looking to replicate this sort of style. A wealth of information here when you build a new project! Thanks for the hard work put into this! This is definitely going to help me a ton! Quote ~~ Link to comment Share on other sites More sharing options...
Ameshi Posted July 14, 2016 Share Posted July 14, 2016 I'm getting this error: "F:/Development/Leadwerks/Projects/rpg_template/scripts/objects/player/player.lua" : 58 : attempt to index field 'script' (a nil value) He can't find this script: Failed to load component "F:/Development/Leadwerks/Projects/rpg_template/Scripts/Objects/Cameras/3rdPersonFollow.lua" Quote Link to comment Share on other sites More sharing options...
Ameshi Posted July 14, 2016 Share Posted July 14, 2016 Help T___T I tried reinstall the LE, I have the professional edition btw... Quote Link to comment Share on other sites More sharing options...
reepblue Posted July 14, 2016 Author Share Posted July 14, 2016 I'm getting this error: "F:/Development/Leadwerks/Projects/rpg_template/scripts/objects/player/player.lua" : 58 : attempt to index field 'script' (a nil value) He can't find this script: Failed to load component "F:/Development/Leadwerks/Projects/rpg_template/Scripts/Objects/Cameras/3rdPersonFollow.lua" Fixed, thanks. I've pushed the script to the repo. Seems it was removed from the common folder as of late. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Ameshi Posted July 14, 2016 Share Posted July 14, 2016 Thank you! It's working now There is something wrong with the torchs Quote Link to comment Share on other sites More sharing options...
WazMeister Posted June 21, 2023 Share Posted June 21, 2023 This looks amazing for learning content. Does this work with 4.6, could really open and edit all this for learning. 1 Quote Dream since child of making games! From Game Programming Starter Kit 3.0, Blitz Basic, Map Creation since Duke 3D, Game Maker, Blitz3D (of recent..2023) and many other engines and years..... never really sticking to it with inner struggles that I've had to fight along with pushing to learn and acheive. 40 years old.. came across Leadwerks on Steam... Learning slowly but surely and loving it! Learn with me or just watch me fail! at my random Youtube Channel, as I stream adhoc while learning and using LeadWerks and other game creating tools. https://www.youtube.com/@wazmeister3151/featured Link to comment Share on other sites More sharing options...
reepblue Posted June 21, 2023 Author Share Posted June 21, 2023 It should. One thing it'll do is remake the textures from the sources so some textures will not be using the correct compression. Otherwise, it should work fine. 1 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Yue Posted June 21, 2023 Share Posted June 21, 2023 6 hours ago, WazMeister said: This looks amazing for learning content. Does this work with 4.6, could really open and edit all this for learning. I feel very identified with your signature. Quote Link to comment Share on other sites More sharing options...
WazMeister Posted June 22, 2023 Share Posted June 22, 2023 Quickly rushed to try this before bed last night. Ran it and loaded fine apart from the torches. Then walked to a barrel and some error came up Nil something entity. I'll try jump back on tonight and write it down. Glad to find this and thanks for updating it back in 2016! This could help with making custom start screens, menus etc... Relative tutorials for Leadwerks are lacking. Quote Dream since child of making games! From Game Programming Starter Kit 3.0, Blitz Basic, Map Creation since Duke 3D, Game Maker, Blitz3D (of recent..2023) and many other engines and years..... never really sticking to it with inner struggles that I've had to fight along with pushing to learn and acheive. 40 years old.. came across Leadwerks on Steam... Learning slowly but surely and loving it! Learn with me or just watch me fail! at my random Youtube Channel, as I stream adhoc while learning and using LeadWerks and other game creating tools. https://www.youtube.com/@wazmeister3151/featured Link to comment Share on other sites More sharing options...
WazMeister Posted June 22, 2023 Share Posted June 22, 2023 Had a little play again tonight. The error when running the template is attempt to call method getdiatqncetoentity (a nil value). It flags the goblinAI script at a line with self. Target then local dis =self. Entity etc I looked around the template in Leadwerks and study some scripts.. But noticed I can't find any scripts or details of where the start screen is setup and introduced, loading message and HUD. I found a hud folder under materials with the textures. Where is the script and process of implementing these things in a game etc? Thanks again my friends. Quote Dream since child of making games! From Game Programming Starter Kit 3.0, Blitz Basic, Map Creation since Duke 3D, Game Maker, Blitz3D (of recent..2023) and many other engines and years..... never really sticking to it with inner struggles that I've had to fight along with pushing to learn and acheive. 40 years old.. came across Leadwerks on Steam... Learning slowly but surely and loving it! Learn with me or just watch me fail! at my random Youtube Channel, as I stream adhoc while learning and using LeadWerks and other game creating tools. https://www.youtube.com/@wazmeister3151/featured Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.