Quote from: Blizzard on January 16, 2013, 05:11:55 am
Did you add the server extension for the Global Switches and Variables script?
You don't need to create the .dat files yourself, RMX-OS takes care of that for you.
In the config file? Yes. It looks like:
EXTENSIONS = ['Global Switches and Variables']
The Global Switches and Variables.rb file is in the Extensions folder as well. When I start the server running, line 5 in the cmd says Global Switches and Variables was loaded and initialized, so I assumed it's working fine. But the second the switch changes in game, the client who changed it bugs out with the error in my last post. I can't imagine it has anything to do with the event in the editor, it's just a simple turn switch on command.
Here is what the error log printed out. Hopefully it helps.
2013-01-16 10:53:24 UTC; 1 (Kyle) - Error:
deadlock; recursive locking
<internal:prelude>:8:in `lock'
<internal:prelude>:8:in `synchronize'
<internal:prelude>:27:in `exclusive'
./Extensions/Global Switches and Variables.rb:77:in `client_update'
Data/Client.rb:43:in `block in handle'
Data/Client.rb:43:in `each_value'
Data/Client.rb:43:in `handle'
Data/Server.rb:276:in `block (2 levels) in run'
<internal:prelude>:28:in `block in exclusive'
<internal:prelude>:10:in `synchronize'
<internal:prelude>:27:in `exclusive'
Data/Server.rb:274:in `block in run'
Thanks so much for helping!
UPDATE:
I think I fixed it, here's what I did. Line 77 for switches and 88 for variables, in the .rb file, had the problem, so I just commented that line, and its ending bracket, for both the switches and variables. The .dat files showed up after the test. Registered a new account, jumped in, and sure enough the switch change was there. I'm not sure if those specific lines are necessary, but I thought I'd let you know, in case you wanted to look at it.
Thanks again for RMX-OS Blizzard, I've had a blast playing with it!