MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002341 | Zandronum | [All Projects] Suggestion | public | 2015-07-11 19:42 | 2018-09-30 21:40 |
|
Reporter | Visual Vincent | |
Assigned To | Edward-san | |
Priority | normal | Severity | tweak | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 |
Product Version | 2.1 | |
Target Version | 2.1 | Fixed in Version | 2.2 | |
|
Summary | 0002341: ACS function to restart the current map. |
Description | I would like to have a function to restart the current map, but still keeping all your items and stats etc. I am currently working on a Cooperative based mod where I want to include the option to play at the same map for a specified amount of rounds. When each round is over the map would restart. ResetMap() won't do it since it's not compatible with Cooperative and also because it won't respawn dead players or spectators if used in another gamemode.
I have tried to use the ChangeLevel function but it crashes in multiplayer. It does only appear to work in singleplayer. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | zandronum-crash-07_12_2015-14_46_56.3750.log (28,019) 2015-07-12 12:50 /tracker/file_download.php?file_id=1578&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2015-07-11 19:42 | Visual Vincent | New Issue | |
2015-07-11 20:05 | Edward-san | Note Added: 0012855 | |
2015-07-11 20:21 | Edward-san | Note Edited: 0012855 | bug_revision_view_page.php?bugnote_id=12855#r7581 |
2015-07-11 20:28 | Edward-san | Note Edited: 0012855 | bug_revision_view_page.php?bugnote_id=12855#r7582 |
2015-07-11 20:28 | Edward-san | Note Edited: 0012855 | bug_revision_view_page.php?bugnote_id=12855#r7583 |
2015-07-11 20:29 | Edward-san | Note Edited: 0012855 | bug_revision_view_page.php?bugnote_id=12855#r7584 |
2015-07-11 20:41 | Visual Vincent | Note Added: 0012856 | |
2015-07-11 20:42 | Visual Vincent | Note Edited: 0012856 | bug_revision_view_page.php?bugnote_id=12856#r7586 |
2015-07-11 20:42 | Visual Vincent | Note Edited: 0012856 | bug_revision_view_page.php?bugnote_id=12856#r7587 |
2015-07-12 08:10 | Edward-san | Note Added: 0012866 | |
2015-07-12 10:48 | Visual Vincent | Note Added: 0012875 | |
2015-07-12 11:32 | Edward-san | Note Added: 0012878 | |
2015-07-12 11:41 | Visual Vincent | Note Added: 0012879 | |
2015-07-12 12:49 | Edward-san | File Added: zandronum-crash-07_12_2015-14_46_56.3750.log | |
2015-07-12 12:49 | Edward-san | File Deleted: zandronum-crash-07_12_2015-14_46_56.3750.log | |
2015-07-12 12:50 | Edward-san | File Added: zandronum-crash-07_12_2015-14_46_56.3750.log | |
2015-07-12 17:16 | Edward-san | Note Added: 0012903 | |
2015-07-12 17:39 | Edward-san | Note Edited: 0012903 | bug_revision_view_page.php?bugnote_id=12903#r7618 |
2015-07-12 17:40 | Edward-san | Note Edited: 0012903 | bug_revision_view_page.php?bugnote_id=12903#r7619 |
2015-07-12 17:40 | Edward-san | Assigned To | => Edward-san |
2015-07-12 17:40 | Edward-san | Status | new => feedback |
2015-07-13 12:36 | Visual Vincent | Note Added: 0012914 | |
2015-07-13 12:36 | Visual Vincent | Status | feedback => assigned |
2015-07-13 12:38 | Visual Vincent | Note Edited: 0012914 | bug_revision_view_page.php?bugnote_id=12914#r7637 |
2015-07-13 12:38 | Visual Vincent | Note Edited: 0012914 | bug_revision_view_page.php?bugnote_id=12914#r7638 |
2015-07-13 18:14 | Edward-san | Note Added: 0012919 | |
2015-07-13 18:14 | Edward-san | Status | assigned => needs review |
2015-08-09 13:09 | Torr Samaho | Note Added: 0013151 | |
2015-08-09 13:09 | Torr Samaho | Status | needs review => feedback |
2015-08-22 16:26 | cobalt | Status | feedback => needs testing |
2015-08-22 16:26 | cobalt | Target Version | => 2.1 |
2015-08-22 16:26 | cobalt | Description Updated | bug_revision_view_page.php?rev_id=7930#r7930 |
2015-08-22 16:26 | cobalt | Note Added: 0013245 | |
2015-08-25 10:35 | Dusk | Note Added: 0013266 | |
2015-08-25 10:35 | Dusk | Status | needs testing => resolved |
2015-08-25 10:35 | Dusk | Fixed in Version | => 2.2 |
2015-08-25 10:35 | Dusk | Resolution | open => fixed |
2018-09-30 21:40 | Blzut3 | Status | resolved => closed |
Notes |
|
(0012855)
|
Edward-san
|
2015-07-11 20:05
(edited on: 2015-07-11 20:29) |
|
Quote from "Visual Vincent" I have tried to use the ChangeLevel function but it crashes in multiplayer. It does only appear to work in singleplayer.
Can you elaborate on this and why it's not reported as a bug?
Anyways, is the crash easy to reproduce with a simple example wad?
[edit]I and WaTaKiD tried with this acs script:
#include "zcommon.acs"
script 1 open
{
delay(100);
// The level would be automatically changed only in case we're at map01.
if (GetLevelInfo(LEVELINFO_LEVELNUM) == 1)
ChangeLevel("map02",0,CHANGELEVEL_NOINTERMISSION);
}
And could not reproduce it:
Quote
<WaTaKiD> local server, coop, 2.1: no crashes from it switches from map01 to map02, either as a spectator or player
|
|
|
(0012856)
|
Visual Vincent
|
2015-07-11 20:41
(edited on: 2015-07-11 20:42) |
|
I tested ChangeLevel with bots in my mod... I see now after testing it standalone, and not in my mod, it works great. Then there's something about my scripts that do not want to work properly when attempting to switch map.
Using StrParam and ChangeLevel it is possible to change to the same level, so please remove my statement about ChangeLevel not working (I can't seem to edit the ticket myself?).
Or if you'd like, you can close/remove the ticket completely as I now got ChangeLevel working. :)
|
|
|
|
Can you post your mod here with the bad ChangeLevel? |
|
|
|
I'd rather not since it's a very new, WIP mod... I can PM it via the forum to those devs who want it though.
But I do know the problem. I test the mod with bots. And when you die in the mod, you are morphed into a custom class that's made to work pretty much the same way as a spectator. (Flying, noclip, being invisible etc.)
When the bots are morphed into this class and the round is over, the game crashes when either calling Exit_Normal or ChangeLevel. However, If I (as a player) is morphed to this class it seems to work perfectly with atleast Exit_Normal.
I'll PM you the mod vi the forum, Edward. If any other dev want to have a look just tell me. :) |
|
|
|
Just to clarify: this happens in 2.0 and 2.1, right? |
|
|
|
I've only tried it in 2.1, but yes. |
|
|
(0012903)
|
Edward-san
|
2015-07-12 17:16
(edited on: 2015-07-12 17:40) |
|
|
|
(0012914)
|
Visual Vincent
|
2015-07-13 12:36
(edited on: 2015-07-13 12:38) |
|
Wow! Works perfectly! Thanks!
Should I create a new ticket about this so that we can mark it as resolved?
By the way (whoever hosts this tracker): You should make the creator of a ticket be able to edit or delete the ticket that he or she created.
|
|
|
|
Then it seems to be ready for review. |
|
|
|
I added your patch to the stable repo. |
|
|
(0013245)
|
cobalt
|
2015-08-22 16:26
|
|
|
|
(0013266)
|
Dusk
|
2015-08-25 10:35
|
|
Closing as patch was tested prior to inclusion. |
|