22,937 questions
Score of 1
0 answers
53 views
Nvim Dap & codelldb erroring out after program finishes
I'm am trying to set up nvim with a debugger. I am currently trying to use nvim-dap and julianolf/nvim-dap-lldb plugin with codelldb and sometimes it runs my code and then errors other times it just ...
Score of -1
0 answers
57 views
Lua 5.2 bytecode with 8-byte instructions cannot be loaded by standard Lua 5.2 [closed]
I'm trying to decompile a Lua 5.2 bytecode file using LuaDec 2.2, but I get:
incompatible precompiled chunk
I verified that the file is Lua 5.2 bytecode:
1b 4c 75 61 52 00 01 04 04 04 08 04 19 93 0d ...
Score of -2
1 answer
123 views
Weird physics problem when applying force to a part while moving [closed]
In a LocalScript, I got this function which makes you kick a ball while you have it. You can kick it at different forces depending if you're moving or not:
uis.InputBegan:Connect(function(input)
...
Score of -6
0 answers
104 views
Why is a multi-line string not being treated as a multi-line string by a function? [closed]
I have the method:
SendChatMessage(string msg)
If I pass in a multi-line string, just the first line is printed. Is there any way to prevent the multi-line string from being split by line? Wrapping ...
Score of -5
2 answers
171 views
Roblox Lua: House generator stops running when math.random picks a duplicate number
I have a ModuleScript called HouseGenerator. It randomly selects and clones houses from a folder. However, whenever the random generator picks the exact same index number twice in a row, the script ...
Score of 0
0 answers
93 views
Why does my code run into walls when the pathfinding code detects them and routes my code around it?
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local PathfindingService = game:GetService("PathfindingService")
local NPC = ...
Score of -5
1 answer
205 views
For loop is happening instantly
My current goal is as follows: I wish to make a player that is able to "jump" such as in a platformer game like Super Mario Bros. I have this pico-8 code:
-- player
player={}
function player....
Score of 0
0 answers
52 views
UserInputService firing twice after the player respawns
I’ve got this connection that allows the player to interact with objects in the world:
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.E then
local objeto = nil
...
Score of -1
2 answers
158 views
Transitioning to Roblox studio language(Luau) from Python/C++
I am an experienced programmer(primarily coming from C++, Python, JS and PHP) moving into Roblox game development. I want to build clean, maintainable systems using Luau but want to avoid the classic ...
Score of 3
2 answers
74 views
How to get information from a Block into an Inline in Pandoc with Lua Filter
I am processing an xhtml file with pandoc. The file contains footnotes which are marked in the body with a link targeting an element that is not in the body.
In the AST, the footnotes are contained ...
Score of 0
2 answers
124 views
How do I make my Neovim open specific file instead of splash screen when I execute "nvim" in my shell?
I have a file called "todo", which is basically a text file that stores my todo list. I want to be always reminded of my ongoing task when I open my Neovim. So, when I execute "nvim&...
Score of 0
1 answer
133 views
How to connect multiple services without creating direct dependencies between them?
(Translated by translator)
I use Roblox Studio for development.
In short, I'm having trouble connecting multiple services. For example, when an event is triggered in Service #1, I need Service #2 to ...
Score of 0
1 answer
97 views
Universal Bresenham
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 ...
Score of 1
1 answer
123 views
Load module only if file exists or fallback to {}
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
-...
Score of -1
1 answer
157 views
FiveM: Player distance inaccurate with DrawMarker Scale
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 ...