ASSS Custom Projects - sendto in asss Cheese - 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?
Bak - Wed Dec 31, 2008 1:26 pm Post subject:
?send <arenaname>
Cheese - Wed Dec 31, 2008 6:33 pm Post subject:
to a different zone, and possibly a specific arena in another zone...
>_>
Dr Brain - Wed Dec 31, 2008 6:37 pm Post subject:
Look up the packet protocol and make your own.
Snrrrub - 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
Arnk Kilo Dylie - 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.
Snrrrub - 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
Arnk Kilo Dylie - 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?
Snrrrub - 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
Cheese - Sun Feb 01, 2009 12:56 pm Post subject:
never did get that last question answered, snrrrub...
Goldeye - 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?