larsiusprime / polymod

Atomic modding framework for Haxe
MIT License
159 stars 60 forks source link

[BUG] pathName parameter for scripted functions is ignored #153

Closed AltronMaxX closed 1 year ago

AltronMaxX commented 1 year ago

As described here, this parameter allows you to call a function from a file that is not named as the function itself. I`ve done it (picture 1), but hscript is still looking for the buildCallbacks file (picture 2). I also attach a view of the getScriptPath function (picture 3). image image image

EliteMasterEric commented 1 year ago

I haven't stress-tested the scripted functions system in a while, I've mainly been using the scripted classes system since I built it last year.

Will try to reproduce and fix this, this seems like a legitimate bug that needs fixing.

AltronMaxX commented 1 year ago

Oh, I found out it was my fault. Sorry for bother. I forgot about setting the value of the noteType variable.

EliteMasterEric commented 1 year ago

@AltronMaxX Wouldn't it have tried to find the script notes/ then?

AltronMaxX commented 1 year ago

It tried to find buildCallbacks script in that folder.