Problem to Get Mobs - Spawns To INI...

11/16/2008 16:12 unknownone#16
Quote:
Originally Posted by µ~Xero~µ View Post
MySQL runs smoother??
Wrong , it querys to much at mobs and lags unless u got better hardware.


U wont be able to have tings like ko board and top players?

Wrong PHP can read ini files get the line and show the things.

This wasnt a attack but i think they arent tht bad :)
SQL Runs at localhost n uses internet bandwdh which isnt good 4 my modem xD
But thx 4 tring to help me ^^
---------------------------------------------------------------------

Please someone Help :)
Your server shouldn't need to query mobs. Mobs are volatile data - they don't need saving, you can hold them entirely in memory and just reload them when you restart the server etc. Mob spawns should be kept in a database, but they are only called routinely on a timer, and that shouldn't produce any kind of lag, particularly if you're threading properly.

Lol. Services running on localhost do not use bandwidth.

About reading ini files with PHP etc. Why? This is the exact reason why ini files are no good. You've already implemented a method to read the ini in C#, but now, you wanna re-implement the same thing in php? What's wrong with having a database with stored procedures? That way you're only implementing once.

Ok, so you might be able to query a few ini files at a decent rate, you don't have much data. I'll tell you before you make the mistake and fail, using plain text files is unscaleable. Once you have alot of data, you will get slowdowns. Databases are much more scaleable - you'll still have quick qeurying when you're into gigabytes of data.
11/16/2008 16:51 Tw3ak#17
Quote:
Originally Posted by µ~Xero~µ View Post
MySQL runs smoother??
Wrong , it querys to much at mobs and lags unless u got better hardware.


U wont be able to have tings like ko board and top players?

Wrong PHP can read ini files get the line and show the things.

This wasnt a attack but i think they arent tht bad :)
SQL Runs at localhost n uses internet bandwdh which isnt good 4 my modem xD
But thx 4 tring to help me ^^
---------------------------------------------------------------------

Please someone Help :)
Actually you can run remote sql very easy with small modification of the database class it doesn't have to be localhost.
11/16/2008 17:32 tao4229#18
Quote:
Originally Posted by Tw3ak View Post
Actually you can run remote sql very easy with small modification of the database class it doesn't have to be localhost.
like changing the IP string to your hosts IP?
I think some leachers could do that!
11/16/2008 17:44 µ~Xero~µ#19
Quote:
Originally Posted by unknownone View Post
Your server shouldn't need to query mobs. Mobs are volatile data - they don't need saving, you can hold them entirely in memory and just reload them when you restart the server etc. Mob spawns should be kept in a database, but they are only called routinely on a timer, and that shouldn't produce any kind of lag, particularly if you're threading properly.

Lol. Services running on localhost do not use bandwidth.

About reading ini files with PHP etc. Why? This is the exact reason why ini files are no good. You've already implemented a method to read the ini in C#, but now, you wanna re-implement the same thing in php? What's wrong with having a database with stored procedures? That way you're only implementing once.

Ok, so you might be able to query a few ini files at a decent rate, you don't have much data. I'll tell you before you make the mistake and fail, using plain text files is unscaleable. Once you have alot of data, you will get slowdowns. Databases are much more scaleable - you'll still have quick qeurying when you're into gigabytes of data.
i got a PC with integrated HSDPA modem it uses bandwidth :S i cant do anything against it all localhost transfer goees over the modem :P
11/16/2008 18:10 unknownone#20
Ok, so your network monitor might report data being sent etc, but anything to the loopback address never gets onto a cable, the transfer is done entirely in your own machine, and is in the magnitude of megabits per second. Unless your network card is from the early eighties, then you shouldn't have any harware limitation.

If there's something causing lag, it could be a firewall, QoS application or something running locally.
11/16/2008 18:23 µ~Xero~µ#21
Quote:
Originally Posted by unknownone View Post
Ok, so your network monitor might report data being sent etc, but anything to the loopback address never gets onto a cable, the transfer is done entirely in your own machine, and is in the magnitude of megabits per second. Unless your network card is from the early eighties, then you shouldn't have any harware limitation.

If there's something causing lag, it could be a firewall, QoS application or something running locally.
My INtegrated modems lights are flashing .

Its causing the LONG way transfer coz its a usb modem and coneccted to my ethernet one wich split it half way so all transfer goes over My integrated one over my external one n lags it up i can monitore all from my HSDPA modem n from my ethernet with means its rly sending data . i was in some ( austrian ) forums n they know the problem somee slow computers got massive internet probs xD thx 4 reading haha u can thrust me xD

Thx 4 your infos about not using inis but ill do :) some one could post a working code??