❄️🎁⛄ The Winter Games Tournament is Live! 🎄🎅❄️
Jump to content

Recommended Posts

Posted

@Yue Do you recognize the problem?

Visual Studio Code can also be used, but it's sort of the unofficial path. I'd prefer to make sure the built-in IDE is working for all users.

If you open your project folder in Visual Studio Code, it's all set up to debug and run.

  1. You must install the Lua Debugger extension by dev-cat:
    https://marketplace.visualstudio.com/items?itemName=devCAT.lua-debug
     
  2. There is a setting called "Allow breakpoints everywhere" that must be enabled for the Lua debugger to work.

    image.thumb.png.6a721c21474f3ad83d801fd0a0863bd2.png

 

Let's build cool stuff and have fun. :)

Posted


@Josh
In my case it works, because I have the Spanish language of the country Spain, but it doesn't work if I use Latin American Spanish


image.png.ede3ca3cbe75e940a9024df286fe2d1f.png

 

 

Edit: Not Work on Editor.


image.thumb.png.3abd37d63ced202af5cd55d8d929006b.png

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted

The fact is that to remove brackets or keys. ALT + 123 / 125 ALT+91/93
 

This way you don't go to visual code.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

  • 2 weeks later...
Posted
On 12/3/2025 at 5:46 PM, Josh said:
  1. You must install the Lua Debugger extension by dev-cat:
    https://marketplace.visualstudio.com/items?itemName=devCAT.lua-debug
     
  2. There is a setting called "Allow breakpoints everywhere" that must be enabled for the Lua debugger to work.

 

I'd prefer the built-in IDE, but until you correct the problem with the keys on my keyboard language it's almost unusable for me.

I was installed the Lua Debugger and marked that checkbox, but seems still doesn´t work. When run, the Main.lua, a screen open and closes fast :unsure:

@Yue I see you use VSCode, can you explain how to do it to be able of launch and debug Leadwerks 5 projects?
Thanks

Posted

image.thumb.png.4f0d12686f8a4f51d4dad966aad8ded8.png


I was looking for the visual code configuration documentation, but it seems that it is not there. :(I'm asking on discord what happened, the only thing I know is that I have to install visual code and the DevCat debugger plug-in. And when you create a project within the razi directory there is a bat to launch visual code and recognize the development environment as such.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted
7 hours ago, Caronte3D said:

I'd prefer the built-in IDE, but until you correct the problem with the keys on my keyboard language it's almost unusable for me.

I was installed the Lua Debugger and marked that checkbox, but seems still doesn´t work. When run, the Main.lua, a screen open and closes fast :unsure:

@Yue I see you use VSCode, can you explain how to do it to be able of launch and debug Leadwerks 5 projects?
Thanks

I created a new blank project, installed the Lua Debugger by dev-cat, ran the project, and this is the result:

image.thumb.png.145a154e8957f447721c771215f67b7e.png

  • Like 1

Let's build cool stuff and have fun. :)

Posted
3 minutes ago, Josh said:

Does the game work if you just double-click the executable?

No :blink:
Just tried it and doesn't work.
When I run it from Leadwerks editor, the game runs perfectly, but launching the exe directly does not.

Posted

When you run from the editor, it includes the map file in the command line. If no map file is specific, the game starts in the default menu.

I would need to see your project in order to tell what is happening.

Let's build cool stuff and have fun. :)

Posted

Thaks! That was the problem!
I commented some lines in Main.lua to load the my map, I don't know if it's ok :huh:
Note: This project is only for testing and learning the basic things of Leadwerks before to make any more serious project.

--Load a map
--if isstring(game.commandline["map"]) then
	--local mapname = game.commandline["map"]
	local mapname = "Maps/testRagdoll.map"
	game.scene = LoadMap(game.world, mapname)
	if game.scene then
		mainmenu:ApplyCameraSettings()
		mainmenu:SetHidden(true)
		game.window:SetCursor(CURSOR_NONE)
		mainmenu.newgamebutton:SetText("Resume Game")
	end
--end

 

  • Like 1

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...