Jump to content

demon cleaner

Member
  • Content Count

    105
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by demon cleaner

  1. Hi ! I'm trying to apply certain code to every element of an array by using this forEach loop: { call compile format [" while {true} do { if (!(isNil ""%1"") && !(isNull %1)) then { ... <snip>omitted because of irrelevance</snip> ... };", (_x select 0), (_x select 2)]; sleep 0.123; }; } forEach somePublicVariable; For some reason it will only iterate to the first index, while this code bock here works just fine: { call compile format [" if (!(isNil ""%1"") && !(isNull %1)) then { ... <snip>omitted because of irrelevance</snip> ... };", (_x select 0), (_x select 2)]; sleep 0.123; } forEach somePublicVariable; What's wrong with that while loop ? What am I missing here ? ... :confused: I simply can't explain this to myself and any insight would be greatly appreciated. Cheers ! DC
  2. demon cleaner

    Array iteration

    Yeah yeah go on bashing me...for that I deserve it ;) ... excuse me now I'll continue beating myself up for that
  3. demon cleaner

    Array iteration

    DOH ! ... OK now that was stupid. Thank you ! I now see what you mean. SOLVED
  4. demon cleaner

    Network ports?

    Not sure about the policy regarding links so I'm not posting one. Google for "Wireshark". Use a network protocol analyzer to see live traffic from/to/inside your LAN. Those tools will usually set the interface you're filtering on into promiscuous mode. You need to add a filter for the IP address of your client / server to filter out what you want / don't want to see. If you're unsure how to do that, they have a beginner forum where you may ask questions as you like. Cheers ! DC
  5. demon cleaner

    Network ports?

    Hi ! I was testing a bit the other day and ended up opening the following ports and ranges: udp/tcp 2300-2400 udp/tcp 47624 udp 28800-28900 I can connect to servers and host a server on a machine of choice in my LAN. If you want to host a server you need to properly forward port range 2300-2400 to the ip your server is on. If anyone has more precise information I'd be happy to hear from you. Cheers ! DC
×