H-H-P Posted March 27, 2023 Share Posted March 27, 2023 i keep getting this error LOG : Lua , 1679906219861> Loading: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua Mar 27, 2023 9:36:59 AM zombie.Lua.LuaManager RunLuaInternal SEVERE: Error found in LUA file: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua ERROR: General , 1679906219867> ExceptionLogger.logException> Exception thrown se.krka.kahlua.vm.KahluaException: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua:2: '=' expected near `function` at LexState.lexerror line:278. ERROR: General , 1679906219867> DebugLogStream.printException> Stack trace: se.krka.kahlua.vm.KahluaException: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua:2: '=' expected near `function` and to me, it seems to me that it means that there should be a '=' between the function and SpawnPoints() that makes no sense to me but I did it, and still the same error. I am following a tutorial from 3 years ago so there might be an issue there but idk any help appreciated Link to comment Share on other sites More sharing options...
RingoD123 Posted March 27, 2023 Share Posted March 27, 2023 Try deleting your spawnpoints.lua file, remaking it in WorldEd and saving it again. Here is an example of Bedford Falls spawnpoints.lua file: function SpawnPoints() return { constructionworker = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, fireofficer = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, parkranger = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, policeofficer = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, securityguard = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, unemployed = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } } } end Link to comment Share on other sites More sharing options...
H-H-P Posted March 27, 2023 Author Share Posted March 27, 2023 16 minutes ago, RingoD123 said: Try deleting your spawnpoints.lua file, remaking it in WorldEd and saving it again. Here is an example of Bedford Falls spawnpoints.lua file: function SpawnPoints() return { constructionworker = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, fireofficer = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, parkranger = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, policeofficer = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, securityguard = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } }, unemployed = { { worldX = 46, worldY = 34, posX = 40, posY = 152, posZ = 0 } } } end nothing still just gunna make another map just of grass and see if that works Link to comment Share on other sites More sharing options...
H-H-P Posted March 27, 2023 Author Share Posted March 27, 2023 (edited) 19 minutes ago, H-H-P said: nothing still just gunna make another map just of grass and see if that works just did this no errors but its not in the game and its in in the spawnregions edit: it is in the mod list though Edited March 27, 2023 by H-H-P Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now