GithubHelp home page GithubHelp logo

Comments (2)

VaasKahnGrim avatar VaasKahnGrim commented on June 25, 2024

currently going off of this link to try and figure out how to use this module http://lualanes.github.io/lanes/#creation

currently I have the following code from that page inside the init file for a gamemode at the very top of it:
require'lanes' local f = lanes.gen(function(n) return 2 * n end) local a = f(1) local b = f(2) print(a[1],b[1])
the issue I'm running into is:
[ERROR] gamemodes/mygamemode/gamemode/init.lua:2: attempt to call field 'gen' (a nil value)

  1. unknown - gamemodes/mygamemode/gamemode/init.lua:2

Couldn't Load Init Script: 'mygamemode/gamemode/init.lua'

my guess is I'm not using the correct way of using gen but I am unsure of what exactly I am doing wrong here.
I currently have gmsv_lanes.core_win32 inside my garrysmod/garrysmod/lua/bin/ and lanes.lua inside garrysmod/garrysmod/lua/includes/modules/

So everything SHOULD be in the correct place to my knowledge.

EDITE: I got it to work with the code, needed to use the configure function after require. I am still interested in a demonstration but I'm going to also practice aswell on my own. thank you for creating this btw :)

from gmod_lanes.

danielga avatar danielga commented on June 25, 2024

The best source of information is definitely that website, http://lualanes.github.io/lanes, since this module is just a port to Garry's Mod.

from gmod_lanes.

Related Issues (10)

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.