Stencyl 3.4.0 is now out. Get it now!

Multiplayer Extensions Resource List

SadiQ

  • Posts: 1724
I think the best way to go about it is to download about 10 or 20 scores at a time in chunks, usually starting where the player is and allowing the option to download the next/previous chunk.

If I'd want to see my score I'd want to see me(preferably in the middle of the list), a few other players above and below me, and I'd probably want to know how far away I am from the first/last place.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

RulezTeam

  • *
  • Posts: 217
hi mdotedot,

yes, my idea is to get about 50 scores before my score and as SadiQ says it's good to know the first .
I think that 50 is a good solution, but as SadiQ says download chucks is a good idea too.

So, what's do you think about it? Is it possible to create a block ? is it simple ?

Thank you mdotedot for your support.

mdotedot

  • *
  • Posts: 1259
Hi RulezTeam,

Today I worked on the implementation. I've encountered some problems relating the combination of text,number and time lists.
Also I think it is not something that most people need, so I made an extension seperately from the ' base ' extension.

RulezTeam Scoreboard
* ScoreIndicator
* new score.php for your server (or you can use mine from the free-server)

All the blocks are the same and I added one extra block with which you can get a list that include the previous and next scores of a ' base '  score.

So if your player scored 2300 points you can use that score (2300 ) in the block.
The list will contain the scores before and after the limit-number of items.

Check if you can use this. If not I have to think harder but I spend about 4 to 5 hours already and I fear it will become a too large impact on the code that is there already.

Hopefully it wil be sufficient. We will see.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

RulezTeam

  • *
  • Posts: 217
Thank you a lot mdotedot.
I'll test this mod asap.

RulezTeam

  • *
  • Posts: 217
Hi mdotedot,
do you know about some problem with MariaDB 10.1 ?
I have these strange errors :

Code: [Select]
11-08 12:09:47.640: I/trace(28796): Lobby.hx:719: encrypted send: Ykc5aVluayxhVzVwZEEsUXpjME1UQSxUMDFCUzBSQ1MwUSxNVGd3TWpBNU9UTSxVbEJIVkVwR1ZFdyw
11-08 12:09:47.640: I/trace(28796): Lobby.hx:722: Calling :https://myserver/stencyl.php?c=C7410&a=Ykc5aVluayxhVzVwZEEsUXpjME1UQSxUMDFCUzBSQ1MwUSxNVGd3TWpBNU9UTSxVbEJIVkVwR1ZFdyw&t=MjAxNy0xMS0wOCAxMjowOTo0Nw
11-08 12:09:48.246: I/trace(28796): Lobby.hx:324: In onData: [Event type=complete bubbles=false cancelable=false]
11-08 12:09:48.246: I/trace(28796): MultiPlay.hx:75: RETURNING: [C7410,init,NON_EXIST,-1,-,1-,1,]
11-08 12:09:48.246: I/trace(28796): Lobby.hx:328: Data: Qzc0MTAsaW5pdCxOT05fRVhJU1QsLTEsLSwxLSwxLA.. Decoded: C7410,init,NON_EXIST,-1,-,1-,1,

mdotedot

  • *
  • Posts: 1259
Hi RulezTeam,

No, I don't know about problems. I don't have that version running.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

RulezTeam

  • *
  • Posts: 217
Hi mdotedot,

what about error from Multiplay.hx ? Seems that there is a wrong return code. Probably the encryption base64 ?

Another question: is there a reason if you have set some table with MyISAM engine ? Can I convert it to InnoDB ?

Thank you

RulezTeam

  • *
  • Posts: 217
Hi mdotedot,

I've found these other errors from apache/nginx :

Code: [Select]
AH01071: Got error 'PHP message: PHP Warning:  Missing argument 2 for turn_nextturn(), called in /myserver/turn.php on line 80 and defined in /myserver/turn.php on line 146\n'
Edit : I've found other error like this :

Code: [Select]
AH01071: Got error 'PHP message: PHP Warning:  mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /myserver/turn.php on line 126\n
Are these errors expected bacause I'm using a newer PHP version (5.6 or 7.0) ?

« Last Edit: November 08, 2017, 08:38:22 am by RulezTeam »

mdotedot

  • *
  • Posts: 1259
These are the versions I work with:

PHP 5.3.3
mysql  Ver 14.14
httpd-2.2.15

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

RulezTeam

  • *
  • Posts: 217
Hi mdotedot,

I've tried php 5.4 but I have error with connect.php too.  I'm using httpd 2.4 but I think that the "problem" is the syntax of php because from version 5.4/5.5 some of mysql request are been deprecated.

mdotedot

  • *
  • Posts: 1259
Hi RulezTeam,

It will take some time before I'm going back to multiplayer stuff. Lately I'm playing with 3D and a Drawing App.
Maybe in 2018 I will pick up the multiplayer stuff again and I might upgrade to some newer versions and see what is working and what is not.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

RulezTeam

  • *
  • Posts: 217
Hi mdotedot,

ok. Thank you.