Author |
Message |
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Wed Dec 31, 2008 10:49 am Post subject: sendto in asss |
|
|
|
|
is it currently possible?
does it already exist?
if not, can we make a module? _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Wed Dec 31, 2008 6:33 pm Post subject: |
|
|
|
|
to a different zone, and possibly a specific arena in another zone...
>_> |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Dec 31, 2008 6:37 pm Post subject: |
|
|
|
|
Look up the packet protocol and make your own. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Snrrrub Novice
Joined: May 29 2008 Posts: 37 Offline
|
Posted: Sat Jan 03, 2009 2:23 pm Post subject: |
|
|
|
|
I've updated ASSS 1.4.4 to support *sendto. If there's interest, I can release the patch.
-Snrrrub |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Thu Jan 29, 2009 1:40 pm Post subject: |
|
|
|
|
A command is fine but a fix redirect module is what I'm looking for. I can probably adapt what you've done if you don't want to do it. |
|
Back to top |
|
|
Snrrrub Novice
Joined: May 29 2008 Posts: 37 Offline
|
Posted: Sat Jan 31, 2009 2:41 am Post subject: |
|
|
|
|
The *sendto patch includes a fix for the redirect module. But the redirect module fix is a one-liner so here you go:
redirect.c:37:
pkt.ip = ntohl(addr.s_addr);
The IP address should be sent as a little-endian 32-bit integer, not in network byte order. Of course, this code assumes you're on a little-endian machine but as3 makes that assumption everywhere anyway so no harm done.
Enjoy.
-Snrrrub |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Sat Jan 31, 2009 4:44 pm Post subject: |
|
|
|
|
What? I already knew about the byte order thing being out of whack, I thought you had something that would make redirect/sendto protocol actually work. :|
It doesn't work because there is no way to authorize players that were redirected in asss and asss doesn't seem to do whatever is necessary to get redirected players allowed in subgame zones either. Am I missing something here? |
|
Back to top |
|
|
Snrrrub Novice
Joined: May 29 2008 Posts: 37 Offline
|
Posted: Sun Feb 01, 2009 11:58 am Post subject: |
|
|
|
|
There's nothing else wrong with as3's redirect implementation. You're not seeing logins succeed because your zone isn't connected to the SSC biller. See http://forums.minegoboom.com/viewtopic.php?t=8298 for details.
-Snrrrub |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Sun Feb 01, 2009 12:56 pm Post subject: |
|
|
|
|
never did get that last question answered, snrrrub...
|
|
Back to top |
|
|
Goldeye Novice
Gender: Joined: Dec 15 2003 Posts: 57 Offline
|
Posted: Mon Feb 09, 2009 2:03 am Post subject: |
|
|
|
|
It seems that the current ASSS implementation does not receive redirects successfully. Sending from HZ to a subgame zone works, but from HZ back to itself or HS (both ASSS) does not.
I haven't tested subgame to HZ, but I expect it will not work.
It's not entirely clear why. My guess is that the billing identity packet is sent to the client later than it should be. Odd that it works for the GUI but not the redirect. The code that sends the billingidentity is in security.so, so it's hard to check its behavior. Anyone able to forward this to Grelminar to take a look? |
|
Back to top |
|
|
|