View Issue Details

IDProjectCategoryView StatusLast Update
0000462Gameplay + OpenGL[All Projects] Bugpublic2017-04-18 07:38
ReporterMarrub 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000462: (ACS) SetUserVariable doesn't work with bool values
DescriptionIssue is as it says on the tin. Simple issue, but annoying in practice.
Steps To ReproduceDo something like this:

// ZScript
class Thingy : Actor
{
   bool thing;

   states
   {
   Spawn:
      TNT1 A 10
      TNT1 A 1 {Console.Printf("thing is %i", thing);}
      stop
   }
}

// ACS
script 1 ENTER
{
   int tid;
   SpawnForced("Thingy", 0, 0, 0, tid = UniqueTID());
   SetUserVariable(tid, "thing", true);
}

And it doesn't set anything. Works fine if type is changed to int.
TagsNo tags attached.

Relationships

Activities

Graf Zahl

Graf Zahl

2017-03-22 11:32

administrator   ~0001084

is it better now?
Marrub

Marrub

2017-03-23 04:01

reporter   ~0001085

Nope, doesn't seem to be fixed yet, using 2.5pre-126-g09c3060.
Graf Zahl

Graf Zahl

2017-03-30 03:05

administrator   ~0001184

I just want to note that this bug continuously gets pushed back because it does not contain a runnable example.
Graf Zahl

Graf Zahl

2017-04-14 10:22

administrator   ~0001369

Still waiting...
Blue Shadow

Blue Shadow

2017-04-18 07:13

reporter   ~0001433

Here is a demo file. And yes, the issue is still present in the latest development build as of this post (3.0pre-15-g11e6cfc).

bool_uservar.pk3 (865 bytes)
_mental_

_mental_

2017-04-18 07:38

developer   ~0001435

Fixed in 1d84b28

Issue History

Date Modified Username Field Change
2017-03-22 09:37 Marrub New Issue
2017-03-22 11:32 Graf Zahl Note Added: 0001084
2017-03-22 14:01 Graf Zahl Assigned To => Graf Zahl
2017-03-22 14:01 Graf Zahl Status new => feedback
2017-03-23 04:01 Marrub Note Added: 0001085
2017-03-23 04:01 Marrub Status feedback => assigned
2017-03-30 03:05 Graf Zahl Note Added: 0001184
2017-04-14 10:22 Graf Zahl Status assigned => feedback
2017-04-14 10:22 Graf Zahl Note Added: 0001369
2017-04-18 07:13 Blue Shadow File Added: bool_uservar.pk3
2017-04-18 07:13 Blue Shadow Note Added: 0001433
2017-04-18 07:38 _mental_ Assigned To Graf Zahl =>
2017-04-18 07:38 _mental_ Status feedback => resolved
2017-04-18 07:38 _mental_ Resolution open => fixed
2017-04-18 07:38 _mental_ Note Added: 0001435