Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8399073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:12:10+00:00 2026-06-09T21:12:10+00:00

Error at line luaL_dofile and debugger doesn’t show anything about error. I can use

  • 0

Error at line “luaL_dofile” and debugger doesn’t show anything about error.

I can use command “luaL_dostring” but I don’t know why I can’t dofile.

My code is following:

const char* file = "/app_home/data/minigames/mg_hint_machine_2.lua";
ret = luaL_dofile(LS, file);
if(ret != 0){
    PRINTF("Error occurs when calling luaL_dofile() Hint Machine 0x%x\n",ret);
    }
else PRINT("\nDOFILE SUCCESS");

and debugger shows error in this line and “ret” still not get returned value from dofile.

If you want to see about error in debugger

02C2D304 7C21016A stdux r1,r1,r0 03 (02C2D300) REG PIPE LSU

Debugger points in this line and I can’t understand it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:12:11+00:00Added an answer on June 9, 2026 at 9:12 pm

    As an elaboration on superzilla’s answer (upvote that answer rather than this one),
    to get the error message your code needs to look like this:

    const char* file = "/app_home/data/minigames/mg_hint_machine_2.lua";
    ret = luaL_dofile(LS, file);
    if(ret != 0){
      PRINTF("Error occurs when calling luaL_dofile() Hint Machine 0x%x\n",ret);
      PRINTF("Error: %s", lua_tostring(LS,-1));
    }
    else PRINT("\nDOFILE SUCCESS");
    

    Your change (in the comments) changed the luaL_dofile to a luaL_dostring, which is why you’re getting unexpected error message ( as mentioned here ).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code. But I always get an error line 34: [24: command
I can't run this function. It gives the error: ERROR at line 9: PL/SQL:
Jshint.com is giving the error: Line 36: var signin_found; Missing use strict statement.
When using a Restful Store the remove command is throwing an error (Line 1717
this is the error: Line 29, Column 134: end tag for img omitted, but
i get this error line on this php file . can someone locate where
Does the @error line even make sense here? Would it even be hit in
When trying to validate my site, I get the following error: Line 188, column
I get an error on line 14 of the below: using System; using System.Collections.Generic;
I got an Error at line myconn.Open(); How to solve it. {A network-related or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.