Jump to content

Ttiki

Developers
  • Posts

    66
  • Joined

  • Last visited

Posts posted by Ttiki

  1. 24 minutes ago, Robert_d1968 said:

    Hello there,

    I have just purchased Ultra app kit. With that being said, where is the best place to find the documentation for this program?

    I would like to start building an application with this software, but I see no way to get started using it.

     

    Thanks for any help that you can provide.

    Robert

    You can find the documentation here: https://ultraengine.com/learn

    When you launch Ultra App Kit, go into the Learn tab and you will find quick links to the documentation, videos, and to create a post in the technical assistance forum.

    image.thumb.png.c934f0e3550be4c978116a8e9604cca0.png

    • Thanks 1
  2. Hello, sorry for the late response.
    I've never done VR games before, but I'm pretty sure your problem comes from the name of your map. Try deleting the "#" symbol and spaces. 
    If it doesn't work, your problem may come from a script somewhere that ends the game abruptly. I've encountered this problem before by deleting the world in one of my scripts.

     

    EDIT:

    Also, and I don't know if it's a big problem or not, but your are loading your map from the Materials folder !??

  3. Don't give up ?. Programming is about running into difficulties and problem sometimes. You need to planned out what you need and how you can do it before hand to avoid problems, but you will eventually run into something that will give you a hard time if you are working on a big script.

    To answer your problem, on this forum post (

    ) reepblue gave a code snippet of a character controller with a respawn function. Here is the direct link to the comment with the code in it.

    Hope it will help you with your problem?.

    • Like 1
  4. Hello, I hope you are having a good day.

    I will go straight to the point. I've been having a lot of fun playing around with UAK. However, when the project manager update came out, I started programming a little app on my Microsoft Surface 6. And I noticed the scale was all messed up. 

    I did already notice a scaling problem when generating the example app in the previous versions of UAK, but now I'm pretty sure there is something wrong. I've taken the screenshot below with my windows display options. As you can see I've got windows scaled to 200%. Even when I tried changing it to a lower value it's the same.

    I'm sorry if I'm missing something big and pretty obvious but never had to work on Windows scale befo

    re

    image.thumb.png.a99c44b86267b9da25b437c0285b670e.png

    Hope it's not me being dumb.

    Thank you very much and have a good day.

  5. Hello.

    I had the same problem when working on Twisted Minds demo. I figured out the problem came out from the material used on the vegetation model. Make sure to use shaders from Shaders\Vegetation for Vegetation and Veg Shadow shaders. Also use a shadow shader (shadow+alphamask.shader is the exemple from the doc.)

    You can find some documentation here https://www.leadwerks.com/learn?page=Tutorials_Editor_Terrain#section10.1 about vegetation material.

    Hope it helps.

     

    • Like 1
    • Thanks 1
  6. Hello again, hope you are all doing good.

    So, second post for tonight. I've chosen to install Ubuntu on my main computer as a dual boot as I need to use Linux for school and because I like Linux. I've chosen dual boot because I still want Windows to be running as my main OS for compatibility and ease of use. 

    Today I've finally took the time to install the latest of ubuntu on my computer and I wanted to try Leadwerk on Linux as I was curious. I wanted to open a .werk project but met an error when trying to import it inside the project manager. The project was created on Windows and was already far in development. Anyway, I thought it was a compatibility problem with Linux and windows. To test this hypothesis I create a new, first person shooter game to try. When I launch it inside the editor the game crash instantly. Inside the console is this message:

    Quote

    Executing "\home\clement\Documents\Leadwerks\Projects\test\test"...
    ERROR: ld.so: object '/home/clement/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    /home/clement/Documents/Leadwerks/Projects/test/test: /home/clement/.steam/debian-installation/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /home/clement/Documents/Leadwerks/Projects/test/test)
    Process Complete.

     I don't really understand, I make sure of everything before installing ubuntu to avoid any problem. I'm sure the installation process was complete and successful without any errors. And I installed Steam and Leadwerk correctly on Ubuntu. I really don't know from where this error is coming. I'm a bit rusty with Linux, it's been a pretty long time since I used it, so am I missing something (probably).

    Anyway, thank you very much for your help.

    Have a good night/day.

  7. Hello, hope you are all doing ok.

    So, I don't really know if it's the right place to post this but I think I've just encountered a bug on the website. My brother wanted to try the Demo for Twisted Minds and he just received a file with the name TwistedMindsDemo_zip.DA3C5A6A3FD2D71136F973E729354A5F. We've been looking for a cause, I've recompiled the game, re-zipped the game, nothing helped. Well, I couldn't upload the game (105Mb), the server always returned an error message. 

    To test if it was from my end or from Leadwerk's server end, I've tried download other games, and same result. I would always get a file like gamename_zip.RANDOMNUMBERANDLETTERS. I don't know since when this happened, but just a couple of weeks ago everything was working fine. I could download my and others games.

    Edit: Before submitting this topic I went to my game's page and try re-downloading the game but now I got this: (second image below)

    481986.80000000057_image.png

    errorXML.PNG

  8. Hello.

     

    So, it's been around three to four days now I've been trying to publish my game as a standalone including only used file. I know it's a pretty basic function but the game is just a little demo. I already publish it here without include only used files, which made the game bigger in size. I manually deleted unwanted files that won't be useful to the game but I really don't want to always manually delete useless files and I'm sure it's not efficient. A lot of files aren't used but are still include.

    The problem is, whenever I publish a standalone game only including use files, the game crash the second it opens. When I went to see the log I saw it was because of an Assert problem:

    Quote

    Initializing Lua...
    Warning: Lua sandboxing disabled.
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/Error.lua"
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/Main.lua"
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/Menu.lua"
    Initializing OpenGL graphics driver...
    OpenGL version 460
    GLSL version 460
    Device: GeForce GTX 660/PCIe/SSE2
    Loading font "C:/WINDOWS/Fonts/Arial.ttf"...
    Loading shader "C:/Users/clement/Desktop/IntroTest/Shaders/Drawing/drawprimitive.shader"...
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Panel.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Panel.lua"
    Loading texture "C:/Users/clement/Desktop/IntroTest/Materials/Resources/logo.tex"...
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Button.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Button.lua"
    Deleting script "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Button.lua"
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Button.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Button.lua"
    Loading shader "C:/Users/clement/Desktop/IntroTest/Shaders/Drawing/drawimage.shader"...
    Loading shader "C:/Users/clement/Desktop/IntroTest/Shaders/Drawing/drawtext.shader"...
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Tabber.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Tabber.lua"
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Label.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Label.lua"
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/ChoiceBox.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/ChoiceBox.lua"
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/TextField.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/TextField.lua"
    Loading component "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Slider.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/Scripts/GUI/Slider.lua"
    Loading map "C:/Users/clement/Desktop/IntroTest/Maps/start.map"...
    Loading texture "C:/Users/clement/Desktop/IntroTest/Materials/Common/bfn.tex"...
    Loading component "C:/Users/clement/Desktop/IntroTest/scripts/intro.lua..."
    Executing file "C:/Users/clement/Desktop/IntroTest/scripts/intro.lua"
    Jostatu Animation beginning
    Looped 1
    Loading texture "C:/Users/clement/Desktop/IntroTest/Materials/Resources/Startup/startup1.tex"...
    Error: Failed to load texture "C:/Users/clement/Desktop/IntroTest/Materials/Resources/Startup/startup1.tex"
    Loading shader "C:/Users/clement/Desktop/IntroTest/Shaders/Misc/occlusionquery.shader"...
    Loading shader "C:/Users/clement/Desktop/IntroTest/Shaders/Lighting/ambientlight.shader"...
    Loading texture "C:/Users/clement/Desktop/IntroTest/Materials/Resources/splash.tex"...
    Error: Assert failed.

    So I dig up inside the data.zip folder to see if the file was here, and in fact IntroTest/Materials/Resources/splash.tex was in the data.zip. The problem actually comes from IntroTest/Materials/Resources/Startup/startup1.tex. There wasn't any Startup folder. See the hierarchy of my files in the picture below to help you understand:

    image.png.7b748a06b033ffed591bb8e93b50cc98.png

    I use this texture files for a splash screen. In the code I iterate through each frames with a Wait of 10ms between each frames using coroutines. You can find the code below. It's pretty basic and probably very bad, I wrote it a few months ago when I was re-learning Lua for a billionth times.

    --Intro start "video" screen.
    --Display Jostatu, Leadwerk logo.
    
    function Script:Start()
    	
    	menuenable = false
    	
    	alpha = 1
    
    	self.x = window:GetWidth()
    	
    	self.y = window:GetHeight()
    
    	self.imgData = { pos = {x = 0, y = 0}, alpha = 0 }
    	
    	--Coroutine declaration 
    	self.intro = coroutine.create(Intro)
    end
    
    function Script:UpdateWorld()
    	if coroutine.status(self.intro) ~= "dead" then
    		coroutine.resume(self.intro, self)
    	end
    end
    
    --This function will be called after the world is rendered, before the screen is refreshed.
    --Use this to perform any 2D drawing you want the entity to display.
    function Script:PostRender(context)
    	context:SetBlendMode(Blend.Alpha)
    
    	context:SetColor(Vec4(1, 1, 1, alpha))
    
    	if frametexture ~= Texture:Load("Materials/Resources/splash.tex") then
    		context:DrawImage(frametexture, 0,0,self.x,self.y)
    	else
    		context:DrawImage(frametexture, self.x / 2 - 500,self.y / 2 - 200) --Align image to center (widnows width / height : 2 - widht / height of image : 2)
    	end
    
    	context:SetBlendMode(Blend.Solid)
    
    end
    -- helper function to wait x ms
    function Wait(ms)
    	local time = Time:GetCurrent()
    	while Time:GetCurrent() < time + ms do
    		coroutine.yield()
    	end
    end
    
    function FadeOut()
    
    	for c = 1, 0, -0.01 do
    		alpha = c
    		
    		Wait(10)
    	end
    end
    
    function FadeIn()
    
    	for c = 0, 1, 0.01 do
    		alpha = c
    		
    		Wait(10)
    	end
    end
    
    function Intro()
    
    	--Jostatu intro video
    	System:Print("Jostatu Animation beginning")
    	
      [[--=================================================================================================================
      THIS IS WHERE THE FRAMES ARE ITERATING, AND TEXTURE ARE BEING LOADED WITH THE ACTUAL FRAME
      =================================================================================================================--]]
    	local frame = "Materials/Resources/Startup/startup"
    	for framenb = 1, 14 do	
    		System:Print("Looped "..framenb)
    		frametexture = Texture:Load(frame..framenb..".tex")
    		Wait(50)
    	end
    	System:Print("Jostatu animation done")
    
    	Wait(1000)
    
    	--First fadeout
    	FadeOut()
    
    
    	--Leadwerk splashscreen
    	System:Print("Changing image to Leadwerk engine splash screen")
    	frametexture=Texture:Load("Materials/Resources/splash.tex")	
    
    	--First fadein
    	FadeIn()
    
    	Wait(1500)
    
    	--Last fadeout
    	FadeOut()
    end

    In the editor the intro plays nicely, everything is ok. But when I publish the game, as a standalone, only including used files, well it crashes with the error we've talked above because Leadwerk do not include the Startup folder in the publish process:

    image.thumb.png.890f36641d3d11cf48074b445d457dbd.png

    I've created a blank project, only including needed files for the startup intro. Same, so it's not coming from my game but from Leadwerk. You can download this blank project below if you want to see by yourself. I've also included the leadwerk project if you want to explore in the editor.

     

    Thank you very much for your help.

    I'm sorry if I miss something big and it's obvious ?

    IntroTest.zip

    • Like 2
  9. 7 minutes ago, Thirsty Panther said:

    We had a challenge on this very subject.

    Not sure if all the links in it still work.

    Let me know if you cant find can find some of the scripts I may have them stored offline.

    Thank you very much, this looks very promising and will certainly help me with my current game ?

     

    • Like 1
  10. Hello.

    I thought about a physic property for materials where you would choose the kind of material (water, wood, concrete, grass, etc.). Then, from lists of sounds (i.e. walking sounds for the player kind of list), Leadwerk would play them randomly depending on what materials the player is interacting with and depending on the physic of the material.

    I don't know how complicated this would be to add. I know I could try to make a system like that by I think having it natively into Leadwerk would be a good point for Leadwerk.

    Thank you and have a nice day.

    • Like 1
×
×
  • Create New...