Textblox doesn't seem to work in my episode ...

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Textblox doesn't seem to work in my episode ...

Postby Sambo » Sat Jul 23, 2016 7:22 pm

The Textblox API doesn't work in my episode. I get this error:
Image
It works in every other episode. I don't need it in my episode right now, but I was planning on using it, and it breaks an API I made when it doesn't work.

I seem to have quite a knack for causing errors that no one in the universe can recreate, or knows how to fix, but I was wondering if anyone knew what the cause might be and how I might fix it.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Textblox doesn't seem to work in my episode ...

Postby underFlo » Sat Jul 23, 2016 7:23 pm

Maybe give a hastebin of the code used in your level?

Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Re: Textblox doesn't seem to work in my episode ...

Postby Sambo » Sat Jul 23, 2016 7:40 pm

The level code probably isn't the problem, because I have the same problem in every level of my episode. It must be lunaworld.lua:
http://hastebin.com/fogopevoke.lua
Also, there's close to 1000 lines of code in there. Finding the cause for the error would be like trying to find a piece of hay in a needlestack.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Textblox doesn't seem to work in my episode ...

Postby underFlo » Sat Jul 23, 2016 7:45 pm

so first off where are you loading the textblox API

Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Re: Textblox doesn't seem to work in my episode ...

Postby Sambo » Sat Jul 23, 2016 7:53 pm

The Textblox API is loaded in the level's lunadll file, but no matter what lua file in my episode I use, it won't work.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Textblox doesn't seem to work in my episode ...

Postby underFlo » Sat Jul 23, 2016 8:07 pm

If you're not accessing textblox.lua in the lunaworld, then obviously the problem has to be in the lunadll.lua. Maybe give a hastebin for that?

Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Re: Textblox doesn't seem to work in my episode ...

Postby Sambo » Sun Jul 24, 2016 6:06 pm

Ok, here's what's going on: I made an API. This API uses Textblox to display debug information. In the level I originally used to test the API, Textblox works just fine. In my episode, the error occurs on the first tick, in all of the 2 or 3 levels I tested it in. I tried calling the API separately in lunaworld.lua and lunadll.lua, and it still threw the same error every time. Since this API hasn't been released, I don't really want to post some link to it that everyone can see, so I'll send you a folder with all the CGFX and lua files, the API, and one level, via PM. I would like to ask that you don't use the API for your personal use or tell people about it until I release it. This could take a while while I set it up.

Edit: I don't know if I'm going to PM you anything. In the folder I was going to send, it works with all the .lua files in there. In my episode folder, it still doesn't work, though. So, it appears that some condition other than what's in the lua files is screwing it up, which makes no sense. At all. I tested it in the same levels as I did before, and it works, but not in my episode folder. Apparently, my episode folder is somehow making Textblox unable to load some file.

Edit 2: I copied all the files in my episode folder into the folder I was going to send you. It still ran in there. I copied all the files from THAT folder back into my episode's folder. It still didn't work there. I opened the properties for both folders and compared them. The only file that was different was a custom icon I created to use for the folder, so I restored the default settings for the folder icon. It still didn't work. I deleted the episode folder and renamed the other one to the same name, and then it worked until I tried to use a custom icon for the folder again. I repeated the whole process but didn't use a custom icon, and it worked. So, this whole nightmare was caused by giving the folder a custom icon. Apparently, a custom icon causes some screwy meta-change to happen to the folder, which breaks Textblox.lua somehow and can't be reversed unless you delete the folder entirely. This is no big deal, since I don't need the custom icon, but why, though? This makes no sense!

The custom folder icon option is an obscure feature of Windows that no one uses, like ever. But if anyone is using Textblox.lua, don't use this feature, in ANY of the path to your level folder, since it breaks it for some unknown reason.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari