Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
69 views

I've tried to make the Bresenhams's algorithm for parabola and catenary. Is is possible to make it for the any function y = f (x), just the universal solution? I've tried to make something naive, not ...
darkfrei's user avatar
  • 638
1 vote
1 answer
99 views

local baz = require("foo.bar") or {} I was hoping something like this would work but then I renamed bar file I got an error. bar.lua: local baz = {} baz.example = true return baz main.lua -...
sloppy's user avatar
  • 325
-2 votes
1 answer
90 views

I am trying to create a circular zone in a FiveM GTA V server, but I am having issues with distance calculation between two coordinates. The values I calculate never seem to match the radius used in ...
Moxley's user avatar
  • 1,579
1 vote
0 answers
128 views

I'm trying to make a mechanic where a player can look behind themselves (like in Outlast) while still being able to move in the forward direction, not the direction the camera is now facing (i.e. ...
mar sky's user avatar
  • 29
4 votes
1 answer
123 views

i'm writing a small utility for a roblox game. it's just server-side lua, not executor stuff. i'm filtering a list of values before using them for spawn logic. i'm trying to remove numbers lower than ...
witheredheartz's user avatar
1 vote
1 answer
62 views

I've got this string of code in a global script fired from a local script which creates a straight line from the origin of the Raycast to the ending of it, essentialy tracing its trajectory accurately:...
Martin's user avatar
  • 31
1 vote
1 answer
76 views

I am trying to upgrade from Neovim version 0.10.0 to 0.12.0. However, the runtimepath is still configured for version 0.10.0. When I run lua print(vim.inspect(vim.api.nvim_list_runtime_paths())) the ...
Lucas Myers's user avatar
4 votes
2 answers
108 views

This is the Lua version of Knuth's "Man/Boy Test". I found that, to reproduce the result shown in the Wikipedia article, I had to declare the nested function "B" "local"....
Jay Michael's user avatar
0 votes
1 answer
114 views

I have forked kickstart.nvim and cloned it to my machine while also adding nvim-config-local to the require('lazy').setup(...) section of ~/.config/nvim/init.lua. Now I would like to put a .nvim.lua ...
Jared's user avatar
  • 790
0 votes
1 answer
121 views

I’m working in Roblox using Luau with --!strict enabled. This is a ModuleScript intended to return a typed table. It runs on both client and server. Here is the minimal code that causes the issue: --!...
riuuu's user avatar
  • 11
Advice
1 vote
1 replies
96 views

I also want to know if it would even work. Im trying to make a function that whenever it runs it selects a cheese from the list and then gives it mutations. It should be able to give as many mutations ...
sam the man's user avatar
1 vote
1 answer
71 views

I'm trying to parse an arbitrary numbers of XML documents for a Neovim plugin with xml2lua (I use a specially packed version but I can reproduce this issue with the package from luarocks too). The ...
Mensh123's user avatar
1 vote
1 answer
77 views

I've been messing with LÖVE2D framework for a project, and while I was designing a scene manager, I came up to this issue which I couldn't find information about, nor I could troubleshoot. I have a ...
Neblinus's user avatar
0 votes
1 answer
245 views

I'm building a Discord bot that controls RE4 Remake in real time via REFramework Lua scripts justo for fun for my friends and me. I have some things working but I'm stuck on two specific things. What ...
Cesar Daniel Rangel Hernandez's user avatar
1 vote
1 answer
106 views

I have been working on a project for a while, and have recently ran into an issue where, while trying to load a "chart" for a game 5 I am working on, the game will stop responding and eat ...
Echo Legge's user avatar

15 30 50 per page
1
2 3 4 5
1530