[Release] Orbit Reborn - Source

10/28/2014 16:59 sveratus#106
Quote:
Originally Posted by sveratus View Post
I need fix for hangar and shop
I need fix :))
10/28/2014 17:50 steppdroid#107
for fix user online in index (/views/index/index.php)
remplace line 31 with this:

PHP Code:
<div class="users_online" style='position: absolute;margin-top: 20px;color: white;font-family: "Myriad Pro";font-size: 12px;'> <?php echo Server_status::online_users(); ?> users online</div>
10/28/2014 18:09 linkpad#108
Quote:
Originally Posted by steppdroid View Post
for fix user online in index (/views/index/index.php)
remplace line 31 with this:

PHP Code:
<div class="users_online" style='position: absolute;margin-top: 20px;color: white;font-family: "Myriad Pro";font-size: 12px;'> <?php echo Server_status::online_users(); ?> users online</div>
online_users() need an edit, because counting users online is not the best way.

Go to "util/Server_status.php" line 16 and replace with this :

PHP Code:
$req $this->db->prepare('SELECT sval FROM server_statistics WHERE skey="active_connections"'); 
10/28/2014 18:27 BotorCrime#109
Who have code of Group System and HellStorm ? ;)
10/28/2014 18:42 hawk799#110
[Only registered and activated users can see links. Click Here To Register...]

Somehow I managed to make website work, But i cant login :D , what to do next?
10/28/2014 18:53 cryz35#111
Quote:
Originally Posted by BotorCrime View Post
Who have code of Group System and HellStorm ? ;)
Noone. You should understand how the emulator works and code it yourself.

And I just wonder, linkpad, you don't like creating instances?
I just checked some classes and all methods are static :confused:
10/28/2014 18:59 steppdroid#112
Linkpad you could make a list of the most important commands of the emulator?
10/28/2014 19:01 linkpad#113
Quote:
Originally Posted by cryz35 View Post
Noone. You should understand how the emulator works and code it yourself.

And I just wonder, linkpad, you don't like creating instances?
I just checked some classes and all methods are static :confused:
Just look at Npc, Maps, Sessions, Characters, Portals, then explain me why I should create instances for others things ? What should be the benefits in creating instance for packet handling ?
10/28/2014 19:48 Puma<3#114
i need help [Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

please help :$
10/28/2014 21:56 cryz35#115
Quote:
Originally Posted by linkpad View Post
Just look at Npc, Maps, Sessions, Characters, Portals, then explain me why I should create instances for others things ? What should be the benefits in creating instance for packet handling ?
I'm just trying to understand, it always sounds better to me to create an instance and set the Session once in the creation instead of passing it every handling. If you have tried both, which one is more efficient?

Dont get me wrong, I'm checking on a mobile text viewer so I haven't tried your code, neither saying anything bad about the code.
10/28/2014 22:08 linkpad#116
Quote:
Originally Posted by cryz35 View Post
I'm just trying to understand, it always sounds better to me to create an instance and set the Session once in the creation instead of passing it every handling. If you have tried both, which one is more efficient?

Dont get me wrong, I'm checking on a mobile text viewer so I haven't tried your code, neither saying anything bad about the code.
I'm a little bit confused, the Session is instanciated one time when the users connect, then I just parse the Session in packet handling I don't see any others methods I could do
10/28/2014 22:18 cryz35#117
Quote:
Originally Posted by linkpad View Post
I'm a little bit confused, the Session is instanciated one time when the users connect, then I just parse the Session in packet handling I don't see any others methods I could do
For example:
private static void RocketAttack(Session Session, ClientMessage Message)
DataRouter looks nice, just wonder why it's that way.

I just do the following in the Player class when a user logs in;
AttackManager = new AttackManager(this);
and handling would call like AttackManager.RocketAttack()

btw sorry for spamming the thread.
10/28/2014 23:18 linkpad#118
Quote:
Originally Posted by cryz35 View Post
For example:
private static void RocketAttack(Session Session, ClientMessage Message)
DataRouter looks nice, just wonder why it's that way.

I just do the following in the Player class when a user logs in;
AttackManager = new AttackManager(this);
and handling would call like AttackManager.RocketAttack()

btw sorry for spamming the thread.
It's that way because it use less ressource, here an example :

If you have 100 users online, that mean you will have 100 instance of AttackManager, with my method when the packet is handled and the function RocketAttack is called, the code is executed then it's garbage collected.
10/29/2014 07:30 Chirdo#119
thx :)

but when i connect to the server
the map screen is black? can you help my
10/29/2014 08:38 Luffa#120
Quote:
Originally Posted by Chirdo View Post
thx :)

but when i connect to the server
the map screen is black? can you help my
Uhm if you don't know the concept of troubleshooting the why even try?


Also linkpad at some point for the reason of stress, why did You make this thread? XD

Best regards Bau