[WIP] The Old Nexus 「 Grimrock XL 」

Are you looking for fun Custom Dungeons that you could play or do you want to share your mod with others? Then this forum is for you!
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: [WIP] The Old Nexus 「 Grimrock XL 」

Post by Komag »

7Soul wrote: Fri Nov 06, 2020 6:56 pm It will come out before Grimrock 3
that's funny ;)
Finished Dungeons - complete mods to play
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: [WIP] The Old Nexus 「 Grimrock XL 」

Post by Zo Kath Ra »

https://github.com/7Soul/log2_the_old_nexus

mod_assets/scripts/init.lua contains this line:

Code: Select all

import "mod_assets/scripts/functions.lua"
I don't understand why the line is there.

I thought that init.lua and the files it imports could only contain definitions:
defineAnimationEvent
defineObject
etc.

And you also load mod_assets/scripts/functions.lua into a script entity called "functions" in dungeon.lua

Put another way, what would happen if you removed this line from mod_assets/scripts/init.lua ?

Code: Select all

import "mod_assets/scripts/functions.lua"
User avatar
7Soul
Posts: 199
Joined: Sun Oct 19, 2014 1:56 am
Location: Brazil

Re: [WIP] The Old Nexus 「 Grimrock XL 」

Post by 7Soul »

When you use an external script, you gotta import it
Join the LoG discord server: https://discord.gg/ArgAgNN :D

My Mods
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: [WIP] The Old Nexus 「 Grimrock XL 」

Post by minmay »

7Soul wrote: Sun Nov 15, 2020 11:24 pm When you use an external script, you gotta import it
This isn't true at all. How would that even work? import just runs the file you give it and returns whatever that file's main function returned, it doesn't do anything else.

edit: in fact it looks like Grimrock's import doesn't even pass through the return value, it always returns nothing.
Last edited by minmay on Mon Nov 16, 2020 1:42 am, edited 1 time in total.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
7Soul
Posts: 199
Joined: Sun Oct 19, 2014 1:56 am
Location: Brazil

Re: [WIP] The Old Nexus 「 Grimrock XL 」

Post by 7Soul »

Well then
Join the LoG discord server: https://discord.gg/ArgAgNN :D

My Mods
Post Reply