Comments (2)
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)
- 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.
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)
- Precompiled build is missing HOT 1
- Do you have plans to continue this project? HOT 1
- function 'lanes_core/now_secs' not found HOT 2
- Functions are not transfered properly ('function not found in Lane destination transfer database') HOT 1
- Question regarding one of the listed limitations of Lua_Lanes HOT 1
- Issues when trying to compile against newest garrysmod_common HOT 6
- lanes assert failed HOT 6
- Improve the docs HOT 1
- Crash issue with lanes.gen() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmod_lanes.