GithubHelp home page GithubHelp logo

love.maker's People

Contributors

2dengine avatar gphg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

love.maker's Issues

Suggestion: Change the zip's base directory.

Current version is on root of project here main.lua located. I suggest it should be possible to make a zip out of a project's sub-directory.

Suggestion example:

love.maker = require("maker.main")
local assetBuild = love.maker.newBuild("assetDir", "txt", "png", "json", "xml")
assetBuild:save("gameasset.zip") -- iterate over "assetDir" and save into a zip.

I managed to get it work without love.maker and directly using zapi:

local zapi = require("maker.main.zapi")
zapi.writeZip("assetDir", "gameasset.zip")

`os.remove`, `os.rename`, and `os.tmpname` replacement.

I found these are the problem that cause file not being written on Linux. I managed to get it writing the file by replace these with love.filesystem.

Also zorg said on forum:

As for lua itself, these would be best avoided:
- dofile, loadfile (not loadstring or load), the whole io library, os.remove, os.rename, os.tmpname -> due to the fact that paths can behave differently on different OS-es. one exception: with some editors, to have console output, you need to do io.setvbuf('no').

`os.remove`, `os.rename`, and `os.tmpname` replacement.

I found these are the problem that cause file not being written on Linux. I managed to get it writing the file by replace these with love.filesystem.

Also zorg said on forum:

As for lua itself, these would be best avoided:

  • dofile, loadfile (not loadstring or load), the whole io library, os.remove, os.rename, os.tmpname -> due to the fact that paths can behave differently on different OS-es. one exception: with some editors, to have console output, you need to do io.setvbuf('no').

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.