Jump to content

Recommended Posts

Posted

I am currently crashing anytime I open my published games .exe file when I click on a Amnesia note. I have sandbox lua unselected like it was recommended and everything is attached properly. The notes work fine before i publish the game but after the game is published, opening the notes causes the game to crash. It flashes to fast for me to read what error is being produced. Has anyone heard this from anyone else or have any idea why this is crashing?

Posted

Find the exe folder. In an empty area of the window hold shift and right click. Click start command prompt her. Type your games exe name.

 

Also make sure your app/main.lua file is actually loading the right map. By default it's start.map

Posted

I think Brutile means set a breakpoint, but it's weird that it wouldn't crash in debug mode. I'm kind of confused. Is it crashing on startup or when you are in game reading a note? Those are two totally different things.

Posted

Okay cool that worked great. The Error that is being registered is 302 attempt to call local 'luaFile' (a nil value) when it is opening scripts/items/note.lua. I'm not sure why it is getting that error when it works fine in the none published version.

 

it crashes as soon as i click E on the note to open it

Posted

When you published, did you choose the option to automatically pack files (do you see a .zip file containing your items)? This may not work with your script if this is the case because your file is being dynamically loaded.

Posted

Correct, all the files seem to be loaded and in their proper location as in the game prepublished. I also did not see an option to manually move the files on publishing i only saw and option to move all files and to move only the files used.

Posted

Already attempted it multiple times, it did not fix it sadly. I am not sure what else i could do lol. Something in between the game running in the engine and being published is messing up.

Posted

I'm currently having the same problem, I can run the game fine in the editor.

But if I publish it stand alone or game launcher it won't launch, the only fix I found (for me at least) was to copy over the "Materials" folder to the published game directory.

Posted

One hack is to add a commented-out line in any script that has the file name in it:

--"myfile.mat"

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted (edited)

mhh. thats odd. I am 99% sure i fixed that once. Seems that an old version is up on the steam workshop again. :/

 

sorry for the late response. Was and still am ill laying in the bed. :/

 

 

For the time being here is the current script. (the text.lua files need to look a bit different in this so the fix works. But there is an example text.lua file included)

 

https://cloud.software-sl.de/index.php/s/sHbt6kKfMT926zi

 

Will see to upload that version again to the steam workshop.

 

//Edit: doesnt let me upload to steam workshop again. :/ i start to hate steam...

Edited by beo6
Posted

mhh. thats odd. I am 99% sure i fixed that once. Seems that an old version is up on the steam workshop again. :/

 

sorry for the late response. Was and still am ill laying in the bed. :/

 

 

For the time being here is the current script. (the text.lua files need to look a bit different in this so the fix works. But there is an example text.lua file included)

 

https://cloud.software-sl.de/index.php/s/sHbt6kKfMT926zi

 

Will see to upload that version again to the steam workshop.

 

//Edit: doesnt let me upload to steam workshop again. :/ i start to hate steam...

One hack is to add a commented-out line in any script that has the file name in it:

--"myfile.mat"

 

Does this work with tex files? Like:

--"mytex.tex"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...