bau.movement
Registered:1458745349 Posts: 98
Posted 1474163293
Reply with quote
#1
Hello, all! I'm working on a bridge that we're getting lighting integrated in. We've been running various versions of the bridge for the last couple of games, but I've noticed that certain DMX events don't run, no matter what I do. Generally I've just let it go, because it's events like the low power and ship damage (20, 40, 60) that don't see to run as I expected them to. But now, for no apparent reason, the "SOMETHING_HITS_PLAYER" command is no longer working. (All the base events are working fine - normal condition, shields up and down, red alert, jump initiated and jump executed, etc) I've tried essentially everything that I can think of... sticking the event name on other scripts that I know are working, running nothing in the DMXCommands file except the one event I was having trouble with... also, using the script commands for PLAYER_TAKES_INTERNAL_DAMAGE and PLAYER_TAKES_SHIELD_DAMAGE. Anyone have any ideas about this? PS, I've got a game tomorrow (9/18) I'm going to get some photos up here of what we're working on and a list of thank yous to all the Forum members whose posts my engineer and I have used to put everything together.
__________________~ Cincinnati Shipyards ~ There are no problems you can't fix with a large enough hammer .--EYES ONLY: TSN Bergeron refit--
notsabbat
Registered:1390458126 Posts: 1,495
Posted 1474169550
Reply with quote
#2
My first thought is do you have any cues set to a duration of less than 150 milliseconds? I find that if I do that sometimes they dont work. My second though is maybe re-install drivers and software?
__________________ -Captain of the TSN Gungnir JN-001 -Eastern Front online group member -My continuing bridge build:https://artemis.forumchitchat.com/post/immersion-bridge-build-in-progress-7335195?&trail=165
davekp
Registered:1472008893 Posts: 112
Posted 1474171459
· Edited
Reply with quote
#3
Hi Bau Movement (<-- really? ) What kind of DMX hardware are you using? One thing I noticed with the DMX LED strips is that you have to make sure each individual wire is well connected. If one wire is loose, you lose a color...either Red or Green or Blue. This means that if your event is for one of those colors only, it will look like nothing is happening. For example, on "Docking Complete" you get a solid Green color. If the wire connecting the green LEDs is loose, it looks like the "Docking Complete" isn't working. If you're using the 3 or 5 pin plugs, that's probably not the problem. But if you're using manually connected wires, it's something check, especially if it WAS working but now it's not. That has loose wire written all over it.
__________________ The Universe is a wild place.
Dave Thaler
Registered:1424550389 Posts: 563
Posted 1474173298
Reply with quote
#4
Quote:
Originally Posted by bau.movement I'm working on a bridge that we're getting lighting integrated in. We've been running various versions of the bridge for the last couple of games, but I've noticed that certain DMX events don't run, no matter what I do.
You might try using the debugging facilities of Artemis Bridge Tools . My first guess is that you have your cues ordered wrong such that another cue is masking the effect of those cues in your file. So your first task should be to use the "Validate" button (open Artemis Bridge Tools, click "Edit..." under Artemis DMX Commands, and then click the "Validate" button). If that doesn't find anything wrong, you can use the "Test Active" facility to manually trigger cues from within Artemis DMX Editor to see what effect they have using your configuration file. Finally, you can set the tracing port to 23 (at the top of the same screen that has the Validate button), and while running the game, you can telnet to your server to see the cues fire during the game.
bau.movement
Registered:1458745349 Posts: 98
Posted 1474204123
Reply with quote
#5
Morning all, thanks for the quick response! I love the community around this game.davekp, I got a degree in art and I like building things. I thought the Germans had the right basic idea, and it's funny. The base setup of our DMX is built off notsabbat's "Cheap USB interface and DMX LED strip build " post (by the way, notsabbat, super useful and appreciated!). We've got 2 4-channel boards from Holidaycoro running side by side. One is driving 4 LED stips (RGBC) that all run the same color and one runs a 3 relay board that I'm using as a switch for 110v outlets. Davekp, I'm right there with you, loose wire, crashed driver, forgot to plug the damn thing in... those are generally the first place I go (because it's usually what I've done wrong). So I keep Xlights open throughout and regularly run a sequence of all the channels... for a while we were having issues with the FTDI board getting something stuck in it's craw that was stopping it from receiving the Artemis signals (or something, idk... if I ran turn off all from Xlights it started behaving). Dave Thaler, thanks for the tip. I haven't been using the Bridge Tools, I've just been mucking about in the game files. I'll run that through now, then I'm off to the shop in a little bit to proceed with the never ending process of trial and error that I excel at! I will update. Attaching pic of the box/boards. Attaching copy of the DMXcommands file.
Attached Images
Attached Files
DMXcommands.txt
(34.71 KB, 10 views)
__________________~ Cincinnati Shipyards ~ There are no problems you can't fix with a large enough hammer .--EYES ONLY: TSN Bergeron refit--
notsabbat
Registered:1390458126 Posts: 1,495
Posted 1474213144
· Edited
Reply with quote
#6
Quote:
Originally Posted by bau.movement Generally I've just let it go, because it's events like the low power and ship damage (20, 40, 60) that don't see to run as I expected them to. But now, for no apparent reason, the "SOMETHING_HITS_PLAYER" command is no longer working. (All the base events are working fine - normal condition, shields up and down, red alert, jump initiated and jump executed, etc) I've tried essentially everything that I can think of... sticking the event name on other scripts that I know are working, running nothing in the DMXCommands file except the one event I was having trouble with... also, using the script commands for PLAYER_TAKES_INTERNAL_DAMAGE and PLAYER_TAKES_SHIELD_DAMAGE. Anyone have any ideas about this?
Good idea posting your code. Looking it over it looks like ship damage (20, 40, 60) and SOMETHING_HITS_PLAYER have a lot of commands that are under 100ms. I have had issues in the past where if I code something for that short of a time frame it will work at first and then stop working; That may be your issue. Take the individual timeblocks to 100 or above and try it again. *edit* Wait....your in Cincinatti OH!? Im in Dayton OH.
__________________ -Captain of the TSN Gungnir JN-001 -Eastern Front online group member -My continuing bridge build:https://artemis.forumchitchat.com/post/immersion-bridge-build-in-progress-7335195?&trail=165
bau.movement
Registered:1458745349 Posts: 98
Posted 1474214570
Reply with quote
#7
Yeah, I'd seen that the Snackbar ports in Dayton... when it's decommissioned, you think they'll put it in the National Museum of the United States Air Force? I just got to the shop and stripped the DMXcommand down to the normal condition and swapped the shields up script for something hits... that pushed it through. So I'm going to tweak that backwards, make sure I don't have something overlapping and I'll definitely check on the duration. Question, though, I have the Jump Initiated and Jump Executed script which both work fine. I'd taken one of them as is (I don't recall which I copy/pasted) and dumped the flickers from that in as the something hits, but it doesn't work for the hits, even though it does for the jump. Curious, no?
__________________~ Cincinnati Shipyards ~ There are no problems you can't fix with a large enough hammer .--EYES ONLY: TSN Bergeron refit--
bau.movement
Registered:1458745349 Posts: 98
Posted 1474218648
Reply with quote
#8
Like with many things, trying the same thing over and over eventually will yield the desired results. You just have to be more stubborn than the computer. I moved the SOMETHING_HITS_PLAYER up to the top of the file and suddenly it works... didn't really change anything else. Go figure, eh? My internet isn't cooperating with uploads, but I'll shoot some video, etc and post later. I put up the edited DMXcommands, which seem to be working now. Thanks for all the help!
Attached Files
DMXcommands.txt
(35.61 KB, 10 views)
__________________~ Cincinnati Shipyards ~ There are no problems you can't fix with a large enough hammer .--EYES ONLY: TSN Bergeron refit--
davekp
Registered:1472008893 Posts: 112
Posted 1474224495
Reply with quote
#9
I haven't looked at your text file, but what sometimes happens with XML parsers is that if there's an error in the file, depending on the parser, it will process the file correctly until it gets to the error, then it'll crap out. So moving that event to the top might suggest that there's an XML error somewhere between the top and where it was before. Also, some parsers are really picky and some are not. So an error could be something big like an unclosed block, or something small like an invisible control code somewhere in the file.
__________________ The Universe is a wild place.
davekp
Registered:1472008893 Posts: 112
Posted 1474224673
· Edited
Reply with quote
#10
Ah...you do have XML issues. Use this website:http://www.w3schools.com/xml/xml_validator.asp --- second edit --- I removed the first web site. w3schools is an excellent site with a good rep. Stick to them.
__________________ The Universe is a wild place.
bau.movement
Registered:1458745349 Posts: 98
davekp
Registered:1472008893 Posts: 112
Posted 1474517627
Reply with quote
#12
What I want to know is, did that person in the 2nd video ever get a straw?
__________________ The Universe is a wild place.
notsabbat
Registered:1390458126 Posts: 1,495
Posted 1474518804
Reply with quote
#13
Looking good! Whet ended up fixing it for you?
__________________ -Captain of the TSN Gungnir JN-001 -Eastern Front online group member -My continuing bridge build:https://artemis.forumchitchat.com/post/immersion-bridge-build-in-progress-7335195?&trail=165
bau.movement
Registered:1458745349 Posts: 98
Posted 1474544264
Reply with quote
#14
Unfortunately, acting Captain Emilie didn't get her straw... we fixed the lights, but the replicators immediately went on the fritz. We decided to play in the fighter helmets that we've been working on, which is a lot of fun, but turns out that it's hard to drink around the blast shields. I think you were right about the flicker when taking damage being masked by another event, though I'm still not sure which one. I started by stripping out everything but the Condition Normal and SOMETHING_HITS_PLAYER. That started doing what it was supposed to immediately (I ended up not having issues with the short commands <100ms, except with one 110v LED light running off a relay switch that couldn't cycle fast enough to show a really quick blink). Then I stuck all the rest of the code back in, things were still working, except it then proved out that the damage wasn't registering when the shields were up. So, I resorted to my tried and true method of solving a problem, which is to say I just kept changing things until something happened that I could benchmark and go from there. In the course of doing that I realized that I had some code that hadn't been closed - you were right about that - and there were a couple of parts that had gotten duplicated through copy/paste cycles, so the same event was being called in different parts of the code. Most importantly, we managed to have everything up and fully immersive before hands reported for duty - which is a victory in an of itself. Thanks again for all your help... I'll start migrating some of our stuff over to the custom bridges side of things, show off some of our digs!
__________________~ Cincinnati Shipyards ~ There are no problems you can't fix with a large enough hammer .--EYES ONLY: TSN Bergeron refit--
davekp
Registered:1472008893 Posts: 112
Posted 1474561323
Reply with quote
#15
Sounds good! But if you really want to run your bridge efficiently, you need to get these:https://www.amazon.com/Colorful-Kids-Kurly-Straws-Count/dp/B00NBD0VY8/ref=sr_1_8?ie=UTF8&qid=1474561244&sr=8-8&keywords=twisty+straw
__________________ The Universe is a wild place.