Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003054Zandronum[All Projects] Bugpublic2017-04-09 21:562018-09-30 21:47
ReporterKorshun 
Assigned ToTorr Samaho 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.0-beta 
Target Version3.0Fixed in Version3.0 
Summary0003054: Using GetCVar clientside with user cvars is broken in 3.0
DescriptionIn 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.
Attached Files? file icon user_getcvar_clientside.wad [^] (824 bytes) 2017-04-10 20:50

- Relationships
related to 0002634closed CLIENTSIDE SetMusic() or CVARINFO not working. 

-  Notes
User avatar (0017120)
Torr Samaho (administrator)
2017-04-10 17:44

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.
User avatar (0017121)
Korshun (reporter)
2017-04-10 20:50

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").
User avatar (0017132)
Torr Samaho (administrator)
2017-04-15 09:46

Should work as in 2.1.2 again now.
User avatar (0017150)
Korshun (reporter)
2017-04-16 12:24

Fixed in 170416-0710. The fix works in my mod.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- 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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker