MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0003054 | Zandronum | [All Projects] Bug | public | 2017-04-09 21:56 | 2018-09-30 21:47 |
|
Reporter | Korshun | |
Assigned To | Torr Samaho | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 3.0-beta | |
Target Version | 3.0 | Fixed in Version | 3.0 | |
|
Summary | 0003054: Using GetCVar clientside with user cvars is broken in 3.0 |
Description | In 2.1.2, using GetCVar("some_user_cvar") clientside will return the cvar's value. In 3.0, it returns 0.
This means that all 2.1.2 mods that are currently using GetCVar clientside with user cvars will need to replace GetCVar("some_user_cvar") with GetUserCVar(ConsolePlayerNumber(), "some_user_cvar") to work in Zandronum 3.0. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0002634 | closed | | CLIENTSIDE SetMusic() or CVARINFO not working. |
|
Attached Files | user_getcvar_clientside.wad (824) 2017-04-10 20:50 /tracker/file_download.php?file_id=2059&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2017-04-09 21:56 | Korshun | New Issue | |
2017-04-10 17:44 | Torr Samaho | Note Added: 0017120 | |
2017-04-10 18:31 | Torr Samaho | Assigned To | => Torr Samaho |
2017-04-10 18:31 | Torr Samaho | Status | new => feedback |
2017-04-10 20:50 | Korshun | File Added: user_getcvar_clientside.wad | |
2017-04-10 20:50 | Korshun | Note Added: 0017121 | |
2017-04-10 20:50 | Korshun | Status | feedback => assigned |
2017-04-15 09:46 | Torr Samaho | Note Added: 0017132 | |
2017-04-15 09:47 | Torr Samaho | Status | assigned => needs testing |
2017-04-15 09:47 | Torr Samaho | Target Version | => 3.0 |
2017-04-16 07:03 | Torr Samaho | Relationship added | related to 0002634 |
2017-04-16 12:24 | Korshun | Note Added: 0017150 | |
2017-04-17 14:40 | Ru5tK1ng | Status | needs testing => resolved |
2017-04-17 14:40 | Ru5tK1ng | Resolution | open => fixed |
2017-04-17 14:40 | Ru5tK1ng | Fixed in Version | => 3.0 |
2018-09-30 21:47 | Blzut3 | Status | resolved => closed |
Notes |
|
|
We discussed about this issue in 0002634:0016395, I'm still open to add the fallback option mentioned in 0002634:0016403 though. Can you post a minimal example wad? Then I'll look into this. |
|
|
|
You are right that it turns out it doesn't break if the player is the activator.
Attached an example wad that does SetActivator(-1) and then calls GetCVar("some_user_var"). |
|
|
|
Should work as in 2.1.2 again now. |
|
|
|
Fixed in 170416-0710. The fix works in my mod. |
|