How to resolve requires("path.file") ? #117

Closed
opened 2024-04-17 23:33:10 +00:00 by i-make-robots · 2 comments
i-make-robots commented 2024-04-17 23:33:10 +00:00 (Migrated from github.com)

Hello! Great project, thank you for all your hard work.

I'm playing around with Java and Factorio, which uses Lua. The C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\core\data.lua file has lines like

require("prototypes.fonts")
require("prototypes.noise-layers")
require("prototypes.style")
require("prototypes.utility-constants")

etc...
I know that, for example, .\prototypes\fonts.lua exists.

How would I resolve these in LuaJ so that I can load the entire script?

Thank you!

Hello! Great project, thank you for all your hard work. I'm playing around with Java and Factorio, which uses Lua. The `C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\core\data.lua` file has lines like ```lua require("prototypes.fonts") require("prototypes.noise-layers") require("prototypes.style") require("prototypes.utility-constants") ``` etc... I know that, for example, `.\prototypes\fonts.lua` exists. How would I resolve these in LuaJ so that I can load the entire script? Thank you!
farmboy0 commented 2024-04-18 16:38:48 +00:00 (Migrated from github.com)

This is not a support forum. Besides the project is mostly inactive.

This is not a support forum. Besides the project is mostly inactive.
i-make-robots commented 2024-04-18 20:06:22 +00:00 (Migrated from github.com)

Then what forum / active project do you suggest?

Then what forum / active project do you suggest?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-autonomous-connection/luaj#117