Giter VIP home page Giter VIP logo

Comments (6)

Afforess avatar Afforess commented on June 12, 2024

Can you be a bit more specific about what you are looking for? You want stdlib/ to become the root directory of the project?

from factorio-stdlib.

mojo2012 avatar mojo2012 commented on June 12, 2024

Sorry, I was in a hurry ;-)

When I include this repo as a git submodule in my mod's root directory, I get:

mojo-ressource-processing
-Factorio-Sdtlib/stdlib
-control.lua
-...

I can "require" stdlib/*.lua in my control.lua file by using: require("Factorio-Stdlib/stdlib/area/chunk.lua"). This will work. But the chunk.lua itself requires just "stdlib/core", which LUA won't find!

I'm not aware of setting the "base path" or anything like to tell LUA to start looking for lua scripts starting from this point.

Currently I have to move the "stdlib" folder to my root directory. Then all works fine.

But this doesn't allow me to use it as a git submodule :-/

from factorio-stdlib.

OvermindDL1 avatar OvermindDL1 commented on June 12, 2024

What I generally do is put any submodules in a 'deps' directory then symlink what I need from them to the main project area when things work like that. Thus just a symlink to ./stdlib from ./deps/Factorio-Stdlib/stdlib works fine, then just store that link in git too.

from factorio-stdlib.

mojo2012 avatar mojo2012 commented on June 12, 2024

The problem is, that windows users then can't checkout my mod.
Currently I play with a friend of mine, and each time we play I ask him to git pull. but that won't work in that case.

from factorio-stdlib.

OvermindDL1 avatar OvermindDL1 commented on June 12, 2024

They should be able to as long as they are Windows 7 or higher. NTFS has symlink support in it since then. If distributed as a zip then no issues regardless as that is packed however your packing script works.

from factorio-stdlib.

mojo2012 avatar mojo2012 commented on June 12, 2024

Ok works quite well :-) you can close this issue. Thanks for the help

from factorio-stdlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.