Issues with syntax and LUA extension

ITcore

Warlord
Joined
Dec 25, 2016
Messages
248
Location
127.0.0.1
I'm having two issues that have come up recently.

EDIT: Syntax error fixed. Was missing a comma.

Second issue seems simple. The Modding log is saying it failed to load a LUA file I have because it's not a valid extension. I have the file extension in the MODINFO file too, so I can't figure out why it's not loading it.
 
Last edited:
Solved the first issue myself. Missing a comma in one of the modifier tables for Gorgo's friendship bonuses. Note to others, Visual Studio Code with the mssql extension are life savers.

Still have no clue about the LUA issue.
 
It's the mod that I am using but it is no longer standalone. The LUA file from that mod is completely unchanged. I moved it over to my merged mod under a folder named Gameplay. I then added two lines in my MODINFO file. I added <File>Gameplay/LiberateCityStates.lua</File> under <Files> and <Items>, as I have done with most other files. This is the first LUA I have added, however.

EDIT:
And I've now solved the issue. I took a look at the MODFILE and realized I needed to a new section under <Components> for the LUA file. <GameplayScripts> fixed it. Thank you for your help, LeeS.
 
Last edited:
^ this is why we ask for the mod itself. about 80% of the time it is something simple a person has overlooked, but which cannot be deduced from descriptions of the trouble.
 
^ this is why we ask for the mod itself. about 80% of the time it is something simple a person has overlooked, but which cannot be deduced from descriptions of the trouble.

Duly noted. This was a good learning experience.
 
Back
Top Bottom