Announcement

Collapse
No announcement yet.

Need help with horizon example script from github [error]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with horizon example script from github [error]

    I am new to scripting and I am trying to add the horizon folder scripts into my server so I can play around and learn how some of the scripting works. I basically copied all scripts and files from the horizon github example (https://github.com/BlueMountainsIO/O...master/horizon).

    The trouble is I run into this error [error] [string "horizon/server/scriptconfig.lua"]:22: attempt to call nil value (global 'ini_open') when I try to start the server. This causes the server to fail on the startup. Can anyone help me or explain why I am getting this error and how to possibly fix it?
    Last edited by DaBrevren; 12-16-2019, 09:25 AM.

    #2
    Hey,
    your "ini_open" want open your "script_config.ini", maybe u dont copie this file in your package folder ? Or u change the name ?

    Comment


      #3
      I have the "script_config.ini" in the main folder "horizon" and everything is copied as from github.

      Comment


        #4
        Did u changed something in the file ? Maybe u call the "LoadScriptConfig()" with the wrong Parameter ?

        Comment


          #5
          Everything is copied exactly the same from the github script nothing is changed unless I have it set up wrong or I am supposed to change something in the script to adhere to my server?

          Comment


            #6
            Hi. You are missing a reference to a plug-in in your server_config.json.

            I had the same problem and finally asked on discord. Not sure how we are supposed to KNOW we need this line in this file, but that it is the fix.

            In server_config.json add the line "ini-plugin" under "plugins".

            PHP Code:
                "plugins": [
                    
            "mariadb",
                    
            "ini-plugin"
                
            ], 

            Comment

            Working...
            X