MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001218 | Zandronum | [All Projects] Bug | public | 2012-12-17 15:10 | 2014-06-13 15:57 |
|
Reporter | ZzZombo | |
Assigned To | | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | backport later | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0001218: Increase the limit of ACS scripts |
Description | Currently Zandronum allows only up to 1001 scripts to be defined in libraries (counting from 0). Loading ZDoom ACS scripts can cause Zandronum to hang if a script which number is greater than 1000 present. |
Steps To Reproduce | Create a script with number of 1001 of type OPEN and compile it. Run Zandronum with it and load any level. |
Additional Information | Patch |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-12-17 15:10 | ZzZombo | New Issue | |
2012-12-19 17:37 | Edward-san | Note Added: 0005535 | |
2012-12-19 17:42 | Edward-san | Note Edited: 0005535 | bug_revision_view_page.php?bugnote_id=5535#r3032 |
2012-12-19 17:44 | Edward-san | Note Edited: 0005535 | bug_revision_view_page.php?bugnote_id=5535#r3033 |
2012-12-19 17:50 | Edward-san | Note Edited: 0005535 | bug_revision_view_page.php?bugnote_id=5535#r3034 |
2012-12-19 17:51 | ZzZombo | Note Added: 0005536 | |
2012-12-19 17:53 | ZzZombo | Note Edited: 0005536 | bug_revision_view_page.php?bugnote_id=5536#r3036 |
2012-12-22 05:17 | Watermelon | Note Added: 0005540 | |
2012-12-22 12:58 | ZzZombo | Note Added: 0005545 | |
2012-12-22 14:33 | Qent | Note Added: 0005546 | |
2012-12-22 14:36 | Qent | Note Edited: 0005546 | bug_revision_view_page.php?bugnote_id=5546#r3038 |
2014-06-13 15:57 | Watermelon | Note Added: 0009200 | |
2014-06-13 15:57 | Watermelon | Status | new => closed |
2014-06-13 15:57 | Watermelon | Resolution | open => backport later |
Notes |
|
(0005535)
|
Edward-san
|
2012-12-19 17:37
(edited on: 2012-12-19 17:50) |
|
#define NUM_SCRIPTS 32767
That's wrong. If you want to increase the maximum script number from 999 to 32767, you should increase the storage size from 999+1 = 1000 to 32767+1 = 32768.
Also, there's no trace of this code in the zdoom source. Which revision increased the size?
[edit] The revision with the increase is r3359 and it's related to the initial support of the Named scripts.
I don't know if Torr agrees with the code, but it'll cause headaches when he'll begin to update the zdoom codebase.
|
|
|
(0005536)
|
ZzZombo
|
2012-12-19 17:51
(edited on: 2012-12-19 17:53) |
|
[Reply to initial post] Indeed, my bad ;)
|
|
|
|
I support this because mod's nowadays are getting so huge that were sometimes having to restructure scripts because we're running out of them. |
|
|
|
> it'll cause headaches when he'll begin to update the zdoom codebase.
Hm. A simple replacement of 1000 to NUM_SCRIPTS can't cause any headache >.<. This patch is worth to be pulled after I'll fix it because I highly doubt named scripts will be backported in any versions of Zandrponum would out in next several months while this change can be applied to next version easily. |
|
|
(0005546)
|
Qent
|
2012-12-22 14:33
(edited on: 2012-12-22 14:36) |
|
Why not backport named scripts instead?
EDIT: Or, I suppose this and named scripts would probably come as an item.
|
|
|
|
Hey I want this really badly too, but we have to wait for zdoom :( |
|