SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Läs mer
(SOLVED) Check 8-bit-value
Hi,
a user has to put an analog code (e.g. 129) into a panel with 8 switches representing an 8-bit binary code (1, 2, 4...128).
When the appropriate switches are in the right position (in this example switch 1 (1) and switch 8 (128) =129) an action shall happen.

I tried to solve this with a logic case entity, but anyhow I couldn't get it work as wished.

Any other possibility to realize that?

Thanks in advance
Senast ändrad av gavovo; 23 maj, 2024 @ 13:16
< >
Visar 1-14 av 14 kommentarer
Rectus 13 17 maj, 2024 @ 6:51 
You gould probably do it with a math_counter and logic_compare.
gavovo 14 17 maj, 2024 @ 13:18 
That's it - works!

Allow me another question:
Is it possible to throw out all chunk stuff in the ../GAME/... section without getting the red wireframes after updating...? I guess I have some garbage in that section that will be uploaded over and over again and is basically not needed...
Rectus 13 17 maj, 2024 @ 13:47 
It should be possible to remove most things and the tools recompile them as needed. Always good to take a backup though.

You can also use Tools -> Asset Cleanup... from the asset browser to remove unneeded assets like out of date texture files. The folders _bakeresourcecache and _vrad3 can also be safely removed. These things are good to do before uploading an update, since the tools will include those files otherwise.
gavovo 14 17 maj, 2024 @ 13:55 
GOOD hints. I always make backups before I do ANY change. I'll try all these.

BTW: Guess we have the same online-times: always...

Thanks a lot for your help. I know you're playin' in another — a major — league, so its a luck for us that you answer questions from the regional league...

;-)
gavovo 14 18 maj, 2024 @ 1:12 
One more question to the cleanup:
I tried tools -> Asset Cleanup
...but it kills lots of assets that WILL be needed and all those are red lined and a Build ( is this the 'compile' you mentioned...?) doesn't heal that.

So, no problem - Backup back and all OK again; but also all garbage is there.

What am I doing wrong?

Edit: Maybe a 'Final Compile' will solve that?
Senast ändrad av gavovo; 18 maj, 2024 @ 1:46
Rectus 13 18 maj, 2024 @ 2:44 
That's odd, it's only suppsoed to remove assets that aren't referenced by anything. If it's materials, the tools should recompile them when you scroll tothem in the asset browser.
Senast ändrad av Rectus; 18 maj, 2024 @ 2:52
gavovo 14 18 maj, 2024 @ 2:53 
Yes, should ... but even in the Assetbrowser those Model/Materials are redlined and will not be repaired.

Looks like:
- let it and the end of updates is reached (cause of the total size)
- build from scratch ...

I'll try some things though but I'm afraid thats it with more of AIDA creatures exhibition...

Thanks!
Rectus 13 18 maj, 2024 @ 2:55 
If it fails to compile them, there should be an error message in the console on why it fails.
gavovo 14 18 maj, 2024 @ 3:00 
OK, I'll have look - I always forget to watch the console...
gavovo 14 19 maj, 2024 @ 4:16 
Hm, trouble with the math_counter: I feed in some integers to fit the value I want to compare with a logic_compare. This test is done by pressing a button. But the 'Compare-Value-is-correct' output will not be fired...

Can we read out the current value state of the math_counter via VConsole?

Sure we can, but I searched in vane; there are A LOT of commands...
Rectus 13 19 maj, 2024 @ 4:48 
I don't think there is anything that prints out the state, at least I haven't seen anything. It might be possible with VScript though. It might be a better option to reimplement the actual code logic in VScript at that point though.
gavovo 14 21 maj, 2024 @ 14:42 
Thanks - got it to work with math_counter and a logic_case (logic_compare doesn't function whatever I tried) and trial via ent_fire in the console

I wished I could solve this with vscript, but I have no idea how. I'm fit with VB6 and VBA (sorry, but I'm rather old... ;-) but all the tutorials for vscript programming havent't help me really.

The LUA manual doesn't too -- so I try to solve all ideas within Hammer and the possibilities there.

The vscript examples you showed in the past were very helpfull but even in the case of the problem I had there in the past. Find no way to go further on.


Maybe I'll find a tutorial especially for Hammer and the usage of vscript in the 'Misc' section of the several entities. Tried with the 'Arcade Toss' description I found, but still confuses me.

Is the SDK from Valve a help to find a way in...?
Rectus 13 21 maj, 2024 @ 15:03 
Glad you got it working.

There aren't really any good VScript tutorials. Valve hasn't really documented anything themselves, so you end up having to reverse engineer things to figure out how they work. I've tried writing tutorials for using it a few times, but it's hard.
gavovo 14 22 maj, 2024 @ 2:30 
Yes, I believe that writing tutorials is a lot of work and costs a lot of time. Thanks for your support.
< >
Visar 1-14 av 14 kommentarer
Per sida: 1530 50