Giter Site home page Giter Site logo

roguelove's People

Contributors

rorkh avatar vaughantay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rorkh brugarolas

roguelove's Issues

Status? Is this still alive?

Just wondering about the status of this project. Is it complete or at least useable? If not complete, what is outstanding that a dev would need to know about before using this framework?

Change modding system

It's would be cool to have modding system similar to Cataclysm DDA game:

  • All mods have same structure (kindaa similar)
  • Base game data is in it's own mod (not similar :( )
  • Each mod loads it's own data (similar)

So I suggest to move data files into it's own mod (there will be no data folder, so make global variables for all data) and during mod load each supported file in each mod will merge it's return with global variable.
Like

-- Global data table
data = {achievements = {}}

-- Load mod with name 'name'
local function load_mod(name)
   -- List of file names to load from mod (all filenames that now in data folder)
   local files = {'achievements'}
   -- Load each file
   for _, part in ipairs(files)
      local path = 'mods/' .. name .. '/' .. part
     
      if love.filesystem.exists(path) then
         -- Get returned table from mod file
         local mod_data = require('mods/' .. name .. '/' .. part)
         for k, v in pairs(mod_data) do
            data[part][k] = v
         end
      end
   end
end

So core data as other mods will have same structure and loading will be simplified (because of unification), And it will be possible to delete core data because global variables for data containment will be created not in data files.
I can do PR for this but idk if there will be changes to data.

data/ai.lua:464: attempt to index field 'target' (a nil value)

Got this error when played, attacked the enemy.
I was unable to copy error (Ctrl + C or tap didn't worked) so I wrote some part of it by hand (to copy and navigate to main error functions) and attached the screenshot

Error

data/ai.lua:464: attempt to index field 'target' (a nil value)

Traceback

[love "callbacks.lua"]:228: in function 'handler'
data/ai.lua:464: in function 'moveAlongPath'
data/ai.lua:140: in function 'basic'
classes/creature.lua:937: in function 'advance'

image

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.