MikeRaarupBirk (09-22-2016),RotmgSyahid (08-22-2017)
I dont know if any of you have this error with the inventory of character not showing when hovering over the character slot, but I know for a fact 2 other people I have talked to who also are using this client have had this error as well, so I guess I will show this easiest-fix-in-the-world for the people who have the same error.
I debugged the client and simply saw this and immediately was able to spot the error.
It's basically saying there was an error with the CreateUI function, that is written in MyPlayerToolTip.as, which was called in CurrentCharacterRect.as, and something from Player.as was used in the CreateUI function.Code:TypeError: Error #1007: Instantiation attempted on a non-constructor. at com.company.assembleegameclient.objects::Player$/fromPlayerXML()[C:\Users\riigg\Desktop\FSoD\Client\src\com\company\assembleegameclient\objects\Player.as:162] at com.company.assembleegameclient.ui.tooltip::MyPlayerToolTip/createUI()[C:\Users\riigg\Desktop\FSoD\Client\src\com\company\assembleegameclient\ui\tooltip\MyPlayerToolTip.as:53] at com.company.assembleegameclient.screens.charrects::CurrentCharacterRect/onMouseOver()[C:\Users\riigg\Desktop\FSoD\Client\src\com\company\assembleegameclient\screens\charrects\CurrentCharacterRect.as:107]
In src\com\company\assembleegameclient\objects\Player .as
You should see this line, the 3rd line, in the "fromPlayerXML" function. (Just CTRL+F fromPlayerXML)
I am pretty sure this line gets an underline error anyways (says Player take no arguments) but the line is the same as the one from the ****** repo (https://prntscr.com/ckuf19) and I mean, Kaos (person who pushed the repo onto Git) and nobody on the thread that @WintersQ made said anything about this so I guess I was the only one who got this error.Code:var _local_5:Player = new (Player)(_local_4);
But all you have to do is change that line of code I showed above, to..
Some people I know for a fact had this error with the tooltip as well, some people might not, I guess it depends on the Flex version (possibility?) you imported or whatever.Code:var _local_5:Player = new Player(_local_4);
Last edited by Riigged; 09-21-2016 at 06:17 PM.
MikeRaarupBirk (09-22-2016),RotmgSyahid (08-22-2017)
There is indeed an invalid number of arguments there and simply removing the parentheses fixes it like you did, but it should definitely not have had any impact on the inventory not showing while hovering on a character in the character select screen. It works fine for me whether that line is fixed or not so it must be something else you are doing. It's really more of a Warning than an Error.
I recommend using the SDK posted on the ****** instead of trying to find a compatible one elsewhere if that's the case. I will let him know about the invalid argument there though so it can be fixed, thanks for finding it. I encourage you to use the ****** page to report any future issues though if possible. He's pretty good with getting fixes out quickly!
Well the original line,
var _local_5:Player = new (Player)(_local_4);
got an error when I first set up the client source, and I ended up changing the (_local_4) to be [_local_4] and the error went away, not much experience with AS3 but the reason I did that is because I saw the line above that and saw [_local_3] so I was like oh it should be brackets" and I tried it out and the error went away.
Not sure if THATS why the tooltip error occurs/occurred, but I dont think so because a few people I talk to on Skype also use the client and said that their tooltip doesnt show either and I doubt all of them did the same exact thing I did (changing the parentheses to brackets).
I do believe its todo with the SDK, for some reason, when using the suggested SDK, 4.9 I think? A lot of stuff in the client source gets underlined and errors...
https://prntscr.com/ckv7t8
As I keep saying, you need to use the SDK that is literally posted on the ****** page under the "Issues" tab and read the "Right Click" question. The correct SDK is located there.
I have a question, does editor show for you on your client? I just used that Flex SDK version Kaos linked and all works fine now, but Editor still doesn't show on the home screen (it didn't even before I started using 4.9 Flex). If it's just not showing for me, then I will work on fixing tonight, but if it's broken for everyone then I will still work on it and release a tut to fix.
The "quit" button also magically shows since I started using 4.9.1, lol. The quit button is positioned where the editor button should be, according to the default client from Ossi's ******.
Edit 2: edited this edit xD fixed nvm
Last edited by Riigged; 09-21-2016 at 09:30 PM.
Editor works just fine. There is nothing wrong with this client at all so you must have did something with ranks on the server side or something else.
You should probably request for this thread to be deleted now since it's really not needed if you're using the correct SDK. The invalid arguments doesn't affect anything and will be updated on the ****** anyways.
@Luis @Joe go ahead and delete the thread, if you want
only people who arent using flex 4.9.1 will need this "fix" but its their fault for not using that version when the git clearly says to anyways
also @WintersQ nope I havent done anything to the ranks. this is an untouched fabiano source downloaded right from ossis ****** and then the client downloaded right from Kaos' ****** with the edits you stated in that tutorial, pretty much everything thats been added/edited/changed is on this thread
https://www.mpgh.net/forum/showthread.php?t=1168212
Last edited by Riigged; 09-21-2016 at 09:58 PM.