Creating an NRaas project Attn C# Devs: Overwatch

Talk nerdy to us here.
User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 5:59 pm

lol, yeah, it just throws the exception, but nothing's there to catch it so that's exactly where it goes

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 6:17 pm

BTW In a non-yielding context, someone updated the Polish localization for the new Overwatch, how does that work? As for the mod, I'd do it but Packer gives me trouble with Export/Import. I don't know why, it just does something strange to the localization and it won't work anymore. I even tried redownloading it but to no avail. It took me 30 mins to import the English txt into the package, it kept importing it wrong and everytime with a different result, until eventually it got it right

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 6:33 pm

I'll leave it at that for now then :)

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7615
Joined: December 30th, 2011, 6:00 pm
Answers: 82
Contact:

Post by Chain_Reaction » January 26th, 2014, 7:17 pm

So, when is it appropriate to call Sleep? So far I've only seen it in while statements to wait for a Sim to cancel all interactions or waiting for a Sim to instantiate. Is that about the only appropriate use?

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 7:26 pm

Great :)

I wouldn't have expected troubles anyway, perhaps I was worried about setting alarms that are supposed to yield to non-yielding but that seems to work so far. The worst it can happen is a little slow down when running at high speed but it wouldn't even be too noticeable

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 7:32 pm

@Chain I would still recommend using Twallan's sleep, it checks appropriately first and you don't have to worry about placing it in the wrong place. That's a million dollar question though, cos it depends where you're using it. Interactions is a no-no, you need to use DoLoop() and that one will use Sleep() and do its thing nicely, except for ImmediateInteraction, that one is run by the Simulator and therefore in a yielding context. So, yeah, the answer is that it's appropriate to use in Tasks

Post Reply