WARGAMES Posted February 1, 2017 Share Posted February 1, 2017 I got a lot of ore for what I wanted, and tried to get a scale 3 full size ship tow ork off of as a base,since I liked the look. http://images.akamai.steamusercontent.com/ugc/81464660225039712/C1B9CDF061FC3A68AEC6E7C1683F162072FA2D00/ problem, the shipyard said 1 hour 52 minutes. I have been waiting since over 12 hours for that ship. if I relog it shows the ship still being built at like half way. I have both left the system for hours at a time, and waited IN the system for hours at a time. I have not read of shipyard bugs not spawning ships yet. http://pastebin.com/znpNPAX1 the log mostly this though Wed Feb 01 01:00:58 2017| could not execute function 'update' in '"data/scripts/entity/merchants/shipyard.lua"': Wed Feb 01 01:00:58 2017| invalid argument 'nil' at stack position 2, expected 'Faction' Wed Feb 01 01:00:58 2017| stack traceback: Wed Feb 01 01:00:58 2017| [C]:-1: in function createShip Wed Feb 01 01:00:58 2017| data/scripts/entity/merchants/shipyard.lua:592: in function createShip Wed Feb 01 01:00:58 2017| data/scripts/entity/merchants/shipyard.lua:461: in function ? Wed Feb 01 01:00:58 2017| Setting script "data/scripts/entity/merchants/shipyard.lua" to invalid. I also reverted the same shipyard file to the before patch lau file. still got this. Wed Feb 01 17:44:03 2017| could not execute function 'update' in '"data/scripts/entity/merchants/shipyard.lua"': Wed Feb 01 17:44:03 2017| invalid argument 'nil' at stack position 2, expected 'Faction' Wed Feb 01 17:44:03 2017| stack traceback: Wed Feb 01 17:44:03 2017| [C]:-1: in function createShip Wed Feb 01 17:44:03 2017| data/scripts/entity/merchants/shipyard.lua:592: in function createShip Wed Feb 01 17:44:03 2017| data/scripts/entity/merchants/shipyard.lua:461: in function ? Wed Feb 01 17:44:03 2017| Setting script "data/scripts/entity/merchants/shipyard.lua" to invalid. Wed Feb 01 17:44:03 2017| Warning, can't keep up, skipping 1 frames... Link to comment Share on other sites More sharing options...
Motsu Posted February 4, 2017 Share Posted February 4, 2017 I have the same problem. I want to build some ships to build some station. Now my shipyard got stuck and i cant build anny ships. I dont know where i can find the logs :-\. Link to comment Share on other sites More sharing options...
WARGAMES Posted February 4, 2017 Author Share Posted February 4, 2017 I've deduced that it is likely relating to my leaving the sector and unhooking the ship from my player id there for it cannot spawn it for x person. but that's my guess as I went to another of the same station type, waited, did not leave and boom got my ship at another station instead. while my other is still stuck in a loop not finishing. Link to comment Share on other sites More sharing options...
Laserzwei Posted February 4, 2017 Share Posted February 4, 2017 This definately happens when an ship is in production and you log off. At least the 'job.shipOwner' value gets lost in the saving process when logging off or can't be retrieved when the player logs in. Here is a small fix for it: In Avorion\data\scripts\entity\merchants\shipyard.lua at line ~450 replace the update(timeStep) with this one: function update(timeStep) for i, job in pairs(runningJobs) do job.executed = job.executed + timeStep if job.executed >= job.duration then if(job.shipOwner == nil) then job.shipOwner = Sector():getPlayers() end if onServer() then createShip(job.shipOwner, job.singleBlock, job.founder, job.insurance, job.captain, job.styleName, job.seed, job.volume, job.scale, job.material, job.shipName) end runningJobs[i] = nil end end end Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted February 4, 2017 Boxelware Team Share Posted February 4, 2017 This has been fixed an will go live with the next patch. Link to comment Share on other sites More sharing options...
WARGAMES Posted February 4, 2017 Author Share Posted February 4, 2017 I see and thank you to both of you 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