View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001982SphereServerexecutable - genericpublic18-06-11 15:2424-06-11 01:46
Reporterbabidi 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version20-09-2009, 0.56b Prerelease 
Target VersionFixed in Version 
Summary0001982: f_onaccount_login ARGO can't be used
Descriptioni remember that argo was introduced to permite sending a sysmessage to client to give a reason of why is not permited to login

but now it does not work

[FUNCTION f_onaccount_login]
ARGO.SYSMESSAGE LOGIN NOT PERMITED FOR YOU!
return 1
TagsNo tags attached.
Nightly VersionNot Available
Experimental FlagsNone
Option FlagsNone
Internal Build Number1468
Attached Files

- Relationships

-  Notes
(0001121)
Mirravin (reporter)
18-06-11 16:49

It is because ARGO is a client, but not a character. So character-based functions don't work with it.
(0001124)
babidi (reporter)
18-06-11 17:17

is there no reason to have argo if can't be used

i remember it was put there because of message when reject login

like onchar_create
src.sysmessage doesn't work
but
argo.sysmessage works
(0001131)
MrSugarCube (administrator)
19-06-11 02:19

ARGO.SYSMESSAGE works fine in f_onaccount_login. The problem is that returning 1 indicates that the connection should be closed, and Sphere will only wait long enough to send high-priority packets before terminating a connection.

You could try ARGO.FLUSH after the SYSMESSAGE, which should improve the chances of the packet being sent.
(0001132)
babidi (reporter)
19-06-11 02:29

you're right

i solved this way

if (<argn1> == 3)
    ARGO.SYSMESSAGE @021 LOGIN NON ALLOWED!
    ARGO.FLUSH
elif (<argn1> == 4)
    return 1
endif

- Issue History
Date Modified Username Field Change
18-06-11 15:24 babidi New Issue
18-06-11 16:49 Mirravin Note Added: 0001121
18-06-11 17:17 babidi Note Added: 0001124
19-06-11 02:19 MrSugarCube Note Added: 0001131
19-06-11 02:29 babidi Note Added: 0001132
24-06-11 01:46 MrSugarCube Status new => closed
24-06-11 01:46 MrSugarCube Resolution open => no change required


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker