mIRC Home    About    Download    Register    News    Help

Print Thread
Need help on making script more efficient #263434 02/08/18 08:52 AM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
https://pastebin.com/c66HvzWY

Any suggestions on easy ways to make this run better is appreciated, but there is one thing I really really want more than anything:

How can I update only the users that are currently in my chat, and avoid going through my full list every time it exports.

Currently MIRC "hiccups"/pauses every time an export happens, and I wonder if my games "jumping" at random, is because of this?

Re: Need help on making script more efficient [Re: darthclide] #263435 02/08/18 09:26 AM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
Update: It is confirmed that this script is why my games stutter from time to time.

Re: Need help on making script more efficient [Re: darthclide] #263436 02/08/18 11:11 AM
Joined: Jan 2004
Posts: 1,276
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,276
Everywhere you're reading or writing from an ini file use a hash table instead; then load and save them as needed.

Re: Need help on making script more efficient [Re: Loki12583] #263437 02/08/18 11:20 AM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
Can you show me which lines will be replaced, and a simple example of a hash table being updated? I think I can figure it out from there.

Re: Need help on making script more efficient [Re: darthclide] #263439 03/08/18 02:49 AM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
Or if anyone is willing to take a stab at it, I would pay 10$ just to have this converted to hash tables (as loki suggested) or 20$ for a complete overhaul of the whole script to make it more efficient in all areas, not just when points are recorded.

Re: Need help on making script more efficient [Re: darthclide] #263446 05/08/18 02:05 PM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
Somebody sent me a private message, but I can't seem to see their message in my profile? My offer still stands, even though I wish I could do this myself for the experience.

Re: Need help on making script more efficient [Re: darthclide] #263481 10/08/18 12:17 PM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
Still looking for someone to change only the ini system to hash tables instead. Willing to pay 20$ for this.

Or if someone can show me some examples of hash tables doing the following:

Storing a username and their color (light or dark. It can be switched with a command in chat). And the username and their level (they will go from level 1-10 on light side. And then 1-10 on the dark side). They will earn points simply by spending time in chat.

Re: Need help on making script more efficient [Re: darthclide] #263574 23/08/18 12:49 AM
Joined: Jun 2014
Posts: 52
D
darthclide Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2014
Posts: 52
Still looking for help with my point system. Thanks in advance!