View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002403 | Spring engine | General | public | 2011-04-14 16:25 | 2012-03-31 11:49 | ||||
Reporter | Google_Frog | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | sometimes | ||||
Status | resolved | Resolution | duplicate | ||||||
Product Version | 0.82.7.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002403: Error in lua unit script | ||||||||
Description | There is a crash in Sleep in a unit lua script, the thread is missing. This often occurs at the end of the firing loop for armstilleto_laser in version 0.8.4.4 (r2258) of ZK. http://planet-wars.eu/ss/SS-20110408213500.jpg (The bit after scripts/bombers is irrelevant, already fixed bug) | ||||||||
Additional Information | function Spring.UnitScript.Sleep(milliseconds) local n = floor(milliseconds / 33) if (n <= 0) then n = 1 end n = n + sp_GetGameFrame() local zzz = sleepers[n] if (not zzz) then zzz = {} sleepers[n] = zzz end local thread = activeUnit.threads[co_running() or error("not in a thread", 2)] zzz[#zzz+1] = thread thread.container = zzz -- yield the running thread: -- it will be resumed in frame #n (in gadget:GameFrame). co_yield() end Crash on line thread.container = zzz | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-04-14 16:25 | Google_Frog | New Issue | |
2012-03-31 11:49 | Kloot | Note Added: 0008547 | |
2012-03-31 11:49 | Kloot | Status | new => resolved |
2012-03-31 11:49 | Kloot | Resolution | open => duplicate |
2012-03-31 11:49 | Kloot | Assigned To | => Kloot |