Jump to content

main.lua refuse to run


DjPoke
 Share

Go to solution Solved by Josh,

Recommended Posts

Hi,

I've just ordered Ultra Engine on Steam yersterday, and I try to make my first game with it.

I've made my own map, replacing start map.

I've configured VSCode, but when I run default main.lua with the debugger, this is what happens :

- The debugger starts, and stops after 1 or 2 seconds.

- The main window does not open.

- No error messages.

If I add print("hello") at the beginning of my code, "hello" is never shown in the console.

I've tested to run main.lua within VSCode and without opening Ultra Engine, I've got error messages about missing dll's.

 

Any idea of what it is ?

Edited by DjPoke
Added more informations
Link to comment
Share on other sites

  • Solution

The capitalized Print function is an Ultra Engine command. The lower-case print function is a built-in Lua command that is more limited and does not seem to appear in the VSCode console.

You must install the Lua debugger extension by DevCat:
https://marketplace.visualstudio.com/items?itemName=devCAT.lua-debug

I tried creating a new Lua project with Ultra Engine on Steam and it worked as expected. The easiest way to open the project folder is to double-click the "Open in VSCode" bat file in your project folder.

If you still have problems I will make a video walking through the steps so you can see exactly what I did.

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

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.

 Share

×
×
  • Create New...