Still have Main Threads error :( [last profiles] - Lazarus - 09-22-2012 05:43 PM
Hi! I'm Still having all the main threads problem. I can't detect what is the fault here, maybe this last profiles tell anyone something... Because I just tried ALL! I try new scripts, search one of the big problem and others faults... but... Nothing.
I have the server open. I can't take it away, and I can't force the main thread in a localserver... it's impossibru
The first profile dump was ON the main thread problem. The other prof, it's AFTER the main thread [I didn't restart sphere]
Lazarus!
Thanks for reading this
Code:
Profiles ON: (10 sec total)
Thread 1596, Name=Main
IDLE = 0.0000s avg: 0.9504s [samples: 0 avg: 87497 ] runtime: 4314s
OVERHEAD = 0.0001s avg: 0.0154s [samples: 66 avg: 13754 ] runtime: 4314s
NETWORK_RX = 0.0000s avg: 0.0823s [samples: 0 avg: 72805 ] runtime: 4314s
CLIENTS = 0.0000s avg: 0.0702s [samples: 0 avg: 1784 ] runtime: 4314s
NETWORK_TX = 0.0000s avg: 0.0234s [samples: 0 avg: 1147 ] runtime: 4314s
CHARS = 189.9417s avg: 0.2513s [samples: 474 avg: 34425 ] runtime: 4314s
ITEMS = 0.0057s avg: 0.0437s [samples: 174 avg: 26448 ] runtime: 4314s
MAP = 0.0054s avg: 0.1486s [samples: 1542 avg:101674 ] runtime: 4314s
NPC_AI = 0.0448s avg: 0.8765s [samples: 1733 avg:104505 ] runtime: 4314s
SCRIPTS = 0.0029s avg: 0.0536s [samples: 54 avg: 1282 ] runtime: 4314s
FAULTS = 0 (total: 0) instances
Scripts: called 2457434 times and took 284518.2813 msec (0.1156 msec average). Reporting with highest average.
FUNCTION 'isbanned' called 605 times, took 1.3601 msec average (1.2618 min, 9.0927 max), total: 823.0134 msec
FUNCTION 'list' called 81 times, took 10.7356 msec average (5.1905 min, 13.1793 max), total: 869.6110 msec
FUNCTION 'estado' called 15 times, took 3.6102 msec average (2.0103 min, 10.6454 max), total: 54.1545 msec
FUNCTION 'isfriend' called 24977 times, took 1.0561 msec average (0.0374 min, 55.3537 max), total: 26382.9566 msec
FUNCTION 'f_autotele' called 771 times, took 0.1983 msec average (0.0737 min, 0.8119 max), total: 153.1469 msec
FUNCTION 'helppage' called 18 times, took 0.1260 msec average (0.0919 min, 0.3514 max), total: 2.2699 msec
FUNCTION 'f_house_release' called 41 times, took 0.6021 msec average (0.0863 min, 0.8608 max), total: 24.6876 msec
FUNCTION 'f_house_lock' called 43 times, took 0.5034 msec average (0.0843 min, 0.7183 max), total: 21.6577 msec
FUNCTION 'f_house_secure' called 40 times, took 2.0444 msec average (0.0687 min, 3.0254 max), total: 81.7859 msec
FUNCTION 'admin' called 70 times, took 9.6906 msec average (7.4462 min, 15.7404 max), total: 678.3593 msec
FUNCTION 'admin_renderdialog' called 123 times, took 4.0413 msec average (0.3629 min, 4.6621 max), total: 497.0972 msec
FUNCTION 'f_onserver_save_ok' called 42 times, took 0.2998 msec average (0.1547 min, 0.4576 max), total: 12.5965 msec
FUNCTION 'online' called 57 times, took 24.1547 msec average (9.9681 min, 36.7893 max), total: 1376.8351 msec
FUNCTION 'conteoips' called 58 times, took 12.7809 msec average (3.4406 min, 22.5909 max), total: 741.3101 msec
FUNCTION 'f_msg_queue' called 104 times, took 0.1791 msec average (0.0712 min, 1.6429 max), total: 18.6362 msec
FUNCTION 'stuck' called 23 times, took 0.2383 msec average (0.0508 min, 0.4319 max), total: 5.4864 msec
FUNCTION 'f_unfreeze' called 18 times, took 0.4618 msec average (0.1964 min, 0.5998 max), total: 8.3140 msec
FUNCTION 'f_clear_elem' called 44 times, took 1.5381 msec average (1.1304 min, 2.2179 max), total: 67.6884 msec
FUNCTION 'f_house_eject' called 1 times, took 1.6811 msec average (1.6811 min, 1.6811 max), total: 1.6811 msec
FUNCTION 'f_terminada2' called 1 times, took 0.3663 msec average (0.3663 min, 0.3663 max), total: 0.3663 msec
FUNCTION 'f_guildsys_recruitguy' called 1 times, took 0.5820 msec average (0.5820 min, 0.5820 max), total: 0.5820 msec
FUNCTION 'f_guildsys_addchartoguild' called 1 times, took 0.2327 msec average (0.2327 min, 0.2327 max), total: 0.2327 msec
FUNCTION 'accadd' called 1 times, took 1.3749 msec average (1.3749 min, 1.3749 max), total: 1.3749 msec
FUNCTION 'g' called 18 times, took 2.0145 msec average (1.5917 min, 2.1891 max), total: 36.2648 msec
FUNCTION 'f_house_add_friend' called 3 times, took 1.8533 msec average (1.6655 min, 1.9491 max), total: 5.5599 msec
FUNCTION 'house_find_guild' called 2 times, took 0.2279 msec average (0.2184 min, 0.2374 max), total: 0.4559 msec
FUNCTION 'f_house_demolish' called 1 times, took 0.6901 msec average (0.6901 min, 0.6901 max), total: 0.6901 msec
FUNCTION 'check_account_typedef' called 11 times, took 0.8644 msec average (0.5115 min, 1.1603 max), total: 9.5107 msec
FUNCTION 'f_check_typedefs' called 18 times, took 0.4442 msec average (0.2774 min, 0.7203 max), total: 7.9966 msec
FUNCTION 'f_fix_house_chars' called 6 times, took 2.9175 msec average (0.7960 min, 5.8343 max), total: 17.5065 msec
FUNCTION 'f_check_house_chars' called 6 times, took 2.6856 msec average (0.5607 min, 5.6202 max), total: 16.1142 msec
FUNCTION 'area' called 1 times, took 0.1601 msec average (0.1601 min, 0.1601 max), total: 0.1601 msec
FUNCTION 'f_remove_keys' called 1 times, took 1.1547 msec average (1.1547 min, 1.1547 max), total: 1.1547 msec
FUNCTION 'f_house_transfer' called 1 times, took 108.4677 msec average (108.4677 min, 108.4677 max), total: 108.4677 msec
FUNCTION 'f_house_add_coowner' called 3 times, took 1.6303 msec average (1.6037 min, 1.6574 max), total: 4.8913 msec
FUNCTION 'f_lower_stat' called 25 times, took 3.0315 msec average (0.2310 min, 6.0815 max), total: 75.7940 msec
FUNCTION 'f_terminada' called 4 times, took 0.4325 msec average (0.3785 min, 0.4881 max), total: 1.7309 msec
FUNCTION 'f_sword' called 1 times, took 0.1693 msec average (0.1693 min, 0.1693 max), total: 0.1693 msec
FUNCTION 'regs' called 5 times, took 0.8723 msec average (0.4470 min, 1.4322 max), total: 4.3618 msec
FUNCTION 'follow' called 1 times, took 0.3277 msec average (0.3277 min, 0.3277 max), total: 0.3277 msec
FUNCTION 'static' called 17 times, took 0.1162 msec average (0.1036 min, 0.1802 max), total: 1.9796 msec
FUNCTION 'static_' called 14 times, took 0.1405 msec average (0.1187 min, 0.1905 max), total: 1.9698 msec
FUNCTION 'telenextchar' called 63 times, took 0.3514 msec average (0.0841 min, 1.0905 max), total: 22.1592 msec
FUNCTION 'j' called 3 times, took 0.1483 msec average (0.1419 min, 0.1545 max), total: 0.4450 msec
FUNCTION 'f_jail' called 1 times, took 6.7622 msec average (6.7622 min, 6.7622 max), total: 6.7622 msec
TRIGGER '@personalspace' called 8623 times, took 0.2875 msec average (0.0162 min, 0.9139 max), total: 2479.6677 msec
TRIGGER '@enter' called 13537 times, took 0.1282 msec average (0.0195 min, 9.1570 max), total: 1739.1153 msec
TRIGGER '@itemdclick' called 310309 times, took 0.1402 msec average (0.0779 min, 8.5945 max), total: 43581.1469 msec
TRIGGER '@dclick' called 243001 times, took 0.2070 msec average (0.0581 min, 55.5806 max), total: 50361.9941 msec
TRIGGER '@spellsuccess' called 23410 times, took 0.1268 msec average (0.1072 min, 1.4358 max), total: 2975.1869 msec
TRIGGER '@spelleffect' called 22613 times, took 0.1257 msec average (0.0265 min, 6.3347 max), total: 2848.0899 msec
TRIGGER '@targon_char' called 175297 times, took 0.3294 msec average (0.0421 min, 20.2372 max), total: 57785.7979 msec
TRIGGER '@npcheargreeting' called 624 times, took 0.3056 msec average (0.2704 min, 0.5143 max), total: 190.8139 msec
TRIGGER '@npchearunknown' called 245 times, took 0.7259 msec average (0.6417 min, 2.0061 max), total: 177.8547 msec
TRIGGER '@dropon_self' called 12645 times, took 0.1891 msec average (0.1517 min, 0.6445 max), total: 2394.8088 msec
TRIGGER '@step' called 656 times, took 0.1768 msec average (0.0273 min, 0.6591 max), total: 116.1480 msec
TRIGGER '@hit' called 57590 times, took 0.1187 msec average (0.0271 min, 8.4601 max), total: 6839.5043 msec
TRIGGER '@npcseewantitem' called 19 times, took 0.1433 msec average (0.1329 min, 0.1620 max), total: 2.7267 msec
TRIGGER '@targon_ground' called 85 times, took 0.3182 msec average (0.0522 min, 0.4674 max), total: 27.0508 msec
TRIGGER '@targon_item' called 10 times, took 0.1707 msec average (0.0472 min, 0.3006 max), total: 1.7096 msec
TRIGGER '@userwarmode' called 7 times, took 0.1397 msec average (0.0863 min, 0.2073 max), total: 0.9784 msec
TRIGGER '@resourcefound' called 3 times, took 0.6253 msec average (0.5867 min, 0.6932 max), total: 1.8765 msec
TRIGGER '@damage' called 2 times, took 0.8563 msec average (0.8331 min, 0.8795 max), total: 1.7127 msec
Code:
Profiles ON: (10 sec total)
Thread 1596, Name=Main
IDLE = 8.4794s avg: 0.9732s [samples: 31140 avg: 71759 ] runtime: 4331s
OVERHEAD = 0.0109s avg: 0.0115s [samples: 4298 avg: 10635 ] runtime: 4331s
NETWORK_RX = 0.0654s avg: 0.0691s [samples: 26278 avg: 60129 ] runtime: 4331s
CLIENTS = 0.0259s avg: 0.0426s [samples: 439 avg: 1574 ] runtime: 4331s
NETWORK_TX = 0.0181s avg: 0.0206s [samples: 536 avg: 1064 ] runtime: 4331s
CHARS = 0.0973s avg: 0.1668s [samples: 10396 avg: 26701 ] runtime: 4331s
ITEMS = 0.0327s avg: 0.0348s [samples: 8096 avg: 20293 ] runtime: 4331s
MAP = 0.1375s avg: 0.1435s [samples: 49572 avg:101453 ] runtime: 4331s
NPC_AI = 1.1066s avg: 0.9617s [samples: 50458 avg:103388 ] runtime: 4331s
SCRIPTS = 0.0257s avg: 0.0420s [samples: 312 avg: 1138 ] runtime: 4331s
FAULTS = 0 (total: 0) instances
Scripts: called 2461830 times and took 285097.1058 msec (0.1156 msec average). Reporting with highest average.
FUNCTION 'isbanned' called 608 times, took 1.3601 msec average (1.2618 min, 9.0927 max), total: 827.1036 msec
FUNCTION 'list' called 81 times, took 10.7356 msec average (5.1905 min, 13.1793 max), total: 869.6110 msec
FUNCTION 'estado' called 15 times, took 3.6102 msec average (2.0103 min, 10.6454 max), total: 54.1545 msec
FUNCTION 'isfriend' called 25037 times, took 1.0564 msec average (0.0374 min, 55.3537 max), total: 26450.8776 msec
FUNCTION 'f_autotele' called 771 times, took 0.1983 msec average (0.0737 min, 0.8119 max), total: 153.1469 msec
FUNCTION 'helppage' called 18 times, took 0.1260 msec average (0.0919 min, 0.3514 max), total: 2.2699 msec
FUNCTION 'f_house_release' called 41 times, took 0.6021 msec average (0.0863 min, 0.8608 max), total: 24.6876 msec
FUNCTION 'f_house_lock' called 43 times, took 0.5034 msec average (0.0843 min, 0.7183 max), total: 21.6577 msec
FUNCTION 'f_house_secure' called 40 times, took 2.0444 msec average (0.0687 min, 3.0254 max), total: 81.7859 msec
FUNCTION 'admin' called 70 times, took 9.6906 msec average (7.4462 min, 15.7404 max), total: 678.3593 msec
FUNCTION 'admin_renderdialog' called 123 times, took 4.0413 msec average (0.3629 min, 4.6621 max), total: 497.0972 msec
FUNCTION 'f_onserver_save_ok' called 42 times, took 0.2998 msec average (0.1547 min, 0.4576 max), total: 12.5965 msec
FUNCTION 'online' called 58 times, took 24.2039 msec average (9.9681 min, 36.7893 max), total: 1403.8452 msec
FUNCTION 'conteoips' called 59 times, took 12.8141 msec average (3.4406 min, 22.5909 max), total: 756.0511 msec
FUNCTION 'f_msg_queue' called 104 times, took 0.1791 msec average (0.0712 min, 1.6429 max), total: 18.6362 msec
FUNCTION 'stuck' called 25 times, took 0.2425 msec average (0.0508 min, 0.4319 max), total: 6.0648 msec
FUNCTION 'f_unfreeze' called 18 times, took 0.4618 msec average (0.1964 min, 0.5998 max), total: 8.3140 msec
FUNCTION 'f_clear_elem' called 44 times, took 1.5381 msec average (1.1304 min, 2.2179 max), total: 67.6884 msec
FUNCTION 'f_house_eject' called 1 times, took 1.6811 msec average (1.6811 min, 1.6811 max), total: 1.6811 msec
FUNCTION 'f_terminada2' called 1 times, took 0.3663 msec average (0.3663 min, 0.3663 max), total: 0.3663 msec
FUNCTION 'f_guildsys_recruitguy' called 1 times, took 0.5820 msec average (0.5820 min, 0.5820 max), total: 0.5820 msec
FUNCTION 'f_guildsys_addchartoguild' called 1 times, took 0.2327 msec average (0.2327 min, 0.2327 max), total: 0.2327 msec
FUNCTION 'accadd' called 1 times, took 1.3749 msec average (1.3749 min, 1.3749 max), total: 1.3749 msec
FUNCTION 'g' called 18 times, took 2.0145 msec average (1.5917 min, 2.1891 max), total: 36.2648 msec
FUNCTION 'f_house_add_friend' called 3 times, took 1.8533 msec average (1.6655 min, 1.9491 max), total: 5.5599 msec
FUNCTION 'house_find_guild' called 2 times, took 0.2279 msec average (0.2184 min, 0.2374 max), total: 0.4559 msec
FUNCTION 'f_house_demolish' called 1 times, took 0.6901 msec average (0.6901 min, 0.6901 max), total: 0.6901 msec
FUNCTION 'check_account_typedef' called 11 times, took 0.8644 msec average (0.5115 min, 1.1603 max), total: 9.5107 msec
FUNCTION 'f_check_typedefs' called 18 times, took 0.4442 msec average (0.2774 min, 0.7203 max), total: 7.9966 msec
FUNCTION 'f_fix_house_chars' called 6 times, took 2.9175 msec average (0.7960 min, 5.8343 max), total: 17.5065 msec
FUNCTION 'f_check_house_chars' called 6 times, took 2.6856 msec average (0.5607 min, 5.6202 max), total: 16.1142 msec
FUNCTION 'area' called 1 times, took 0.1601 msec average (0.1601 min, 0.1601 max), total: 0.1601 msec
FUNCTION 'f_remove_keys' called 1 times, took 1.1547 msec average (1.1547 min, 1.1547 max), total: 1.1547 msec
FUNCTION 'f_house_transfer' called 1 times, took 108.4677 msec average (108.4677 min, 108.4677 max), total: 108.4677 msec
FUNCTION 'f_house_add_coowner' called 3 times, took 1.6303 msec average (1.6037 min, 1.6574 max), total: 4.8913 msec
FUNCTION 'f_lower_stat' called 25 times, took 3.0315 msec average (0.2310 min, 6.0815 max), total: 75.7940 msec
FUNCTION 'f_terminada' called 4 times, took 0.4325 msec average (0.3785 min, 0.4881 max), total: 1.7309 msec
FUNCTION 'f_sword' called 1 times, took 0.1693 msec average (0.1693 min, 0.1693 max), total: 0.1693 msec
FUNCTION 'regs' called 5 times, took 0.8723 msec average (0.4470 min, 1.4322 max), total: 4.3618 msec
FUNCTION 'follow' called 1 times, took 0.3277 msec average (0.3277 min, 0.3277 max), total: 0.3277 msec
FUNCTION 'static' called 17 times, took 0.1162 msec average (0.1036 min, 0.1802 max), total: 1.9796 msec
FUNCTION 'static_' called 14 times, took 0.1405 msec average (0.1187 min, 0.1905 max), total: 1.9698 msec
FUNCTION 'telenextchar' called 90 times, took 0.3316 msec average (0.0662 min, 1.0905 max), total: 29.8516 msec
FUNCTION 'j' called 3 times, took 0.1483 msec average (0.1419 min, 0.1545 max), total: 0.4450 msec
FUNCTION 'f_jail' called 1 times, took 6.7622 msec average (6.7622 min, 6.7622 max), total: 6.7622 msec
TRIGGER '@personalspace' called 8632 times, took 0.2875 msec average (0.0162 min, 0.9139 max), total: 2482.4621 msec
TRIGGER '@enter' called 13585 times, took 0.1282 msec average (0.0195 min, 9.1570 max), total: 1746.0413 msec
TRIGGER '@itemdclick' called 310624 times, took 0.1402 msec average (0.0779 min, 8.5945 max), total: 43629.1383 msec
TRIGGER '@dclick' called 243136 times, took 0.2073 msec average (0.0581 min, 55.5806 max), total: 50449.8359 msec
TRIGGER '@spellsuccess' called 23517 times, took 0.1271 msec average (0.1072 min, 1.4358 max), total: 2989.7896 msec
TRIGGER '@spelleffect' called 22728 times, took 0.1257 msec average (0.0265 min, 6.3347 max), total: 2862.4682 msec
TRIGGER '@targon_char' called 175367 times, took 0.3297 msec average (0.0421 min, 20.2372 max), total: 57838.4906 msec
TRIGGER '@npcheargreeting' called 626 times, took 0.3056 msec average (0.2704 min, 0.5143 max), total: 191.5054 msec
TRIGGER '@npchearunknown' called 245 times, took 0.7259 msec average (0.6417 min, 2.0061 max), total: 177.8547 msec
TRIGGER '@dropon_self' called 12667 times, took 0.1891 msec average (0.1517 min, 0.6445 max), total: 2399.3283 msec
TRIGGER '@step' called 656 times, took 0.1768 msec average (0.0273 min, 0.6591 max), total: 116.1480 msec
TRIGGER '@hit' called 57609 times, took 0.1187 msec average (0.0271 min, 8.4601 max), total: 6841.5210 msec
TRIGGER '@npcseewantitem' called 19 times, took 0.1433 msec average (0.1329 min, 0.1620 max), total: 2.7267 msec
TRIGGER '@targon_ground' called 85 times, took 0.3182 msec average (0.0522 min, 0.4674 max), total: 27.0508 msec
TRIGGER '@targon_item' called 10 times, took 0.1707 msec average (0.0472 min, 0.3006 max), total: 1.7096 msec
TRIGGER '@userwarmode' called 7 times, took 0.1397 msec average (0.0863 min, 0.2073 max), total: 0.9784 msec
TRIGGER '@resourcefound' called 3 times, took 0.6253 msec average (0.5867 min, 0.6932 max), total: 1.8765 msec
TRIGGER '@damage' called 2 times, took 0.8563 msec average (0.8331 min, 0.8795 max), total: 1.7127 msec
RE: Still have Main Threads error :( [last profiles] - Skul - 09-23-2012 03:10 AM
Well, seeing as you don't exactly know which script is causing the error then there is only 1 real solution. Reinstall sphereserver, then add each of your customize/custom scripts back into the server 1 at a time, testing each script thoroughly before adding the next. This should help you find the error(s). Be sure to follow through with this through each script you re-add. It is probably the only way to find your error, may even take hours, but at least you will know.
RE: Still have Main Threads error :( [last profiles] - Extreme - 09-23-2012 03:58 AM
IsFriend
IsBanned
conteoips this one is very slow
check_account_typedef wtf is this?
f_jail
@personalspace
estado
online
list
f_clear_elem
f_house_eject
accadd
g
f_house_add
f_house_transfer
f_lower_stat
f_jail
Post all these functions and the triggers.
Separated please.
RE: Still have Main Threads error :( [last profiles] - Lazarus - 09-23-2012 09:58 AM
(09-23-2012 03:58 AM)Extreme Wrote: IsFriend
IsBanned
conteoips this one is very slow
check_account_typedef wtf is this?
f_jail
@personalspace
estado
online
list
f_clear_elem
f_house_eject
accadd
g
f_house_add
f_house_transfer
f_lower_stat
f_jail
Post all these functions and the triggers.
Separated please.
Maybe it's best if I send you a link with the all custom scripts of that.
Are BIG scripts all.
This is a little
IsFriend = Housing
IsBanned = Housing
conteoips this one is very slow = This was not the problem at the first whe we was get main threads too... gets the number of total ips connected without multi-account
check_account_typedef wtf is this? = I guess housing...
f_jail = Jail System
@personalspace = Default in sphere_events_humans of sphere .
estado = This it's a status .
online = like a sphere status IN GAME
list = Chat list of morauder
f_clear_elem = This function works to clear items on a quest
f_house_eject = Housing
accadd = Creator of accounts
g = Guild chat
f_house_add = Housing
f_house_transfer = Housing
f_lower_stat = Event in Player events
f_jail = Jail system.
I will send you Extreme a copy of Custom scripts folder with a link in mediafire
Thanks for all. Really
Lazarus
RE: Still have Main Threads error :( [last profiles] - Extreme - 09-23-2012 03:18 PM
IsFriend = Housing
IsBanned = Housing
conteoips this one is very slow = This was not the problem at the first whe we was get main threads too... gets the number of total ips connected without multi-account
check_account_typedef wtf is this? = I guess housing... You don't know?
f_jail = Jail System
@personalspace = Default in sphere_events_humans of sphere . Put RETURN 0 before on=@personalspace
estado = This it's a status .
online = like a sphere status IN GAME You already have the .list why another player list?
list = Chat list of morauder Mordaunt
f_clear_elem = This function works to clear items on a quest
f_house_eject = Housing
accadd = Creator of accounts DELETE THIS, IS USELESS
g = Guild chat Looks okay, but I don't like the allclients funcion
f_house_add = Housing
f_house_transfer = Housing
f_lower_stat = Event in Player events
f_jail = Jail system.
accadd - remove it, do you want to create account? .serv.account add login password
PHP Code:
[FUNCTION conteoips] LOCAL.IPLIST <SERV.CLIENT.0.ACCOUNT.LASTIP> LOCAL.IPS 1 FOR X 1 <EVAL <SERV.CLIENTS>-1> IF !(STRMATCH(*<SERV.CLIENT.<dLOCAL.X>.ACCOUNT.LASTIP>*,<LOCAL.IPLIST>)) LOCAL.IPLIST .= <SERV.CLIENTS.<dLOCAL.X>.ACCOUNT.LASTIP> LOCAL.IPS ++ ENDIF ENDFOR sysmessageloc 036,1060659,IP's Reales, <EVAL <LOCAL.IPS>>
PHP Code:
[defname elem] item.1 aire item.2 fuego item.3 tierra item.4 agua
[FUNCTION f_clear_elem] SRC.TAG.CASTEANDOELEMENTAL = FINDLAYER.layer_talisman.REMOVE for 1 4 while <src.findid.i_gema_<def.item.<dlocal._for>>> src.findid.i_gema_<def.item.<dlocal._for>>.remove endwhile while <src.findid.i_talisman_<def.item.<dlocal._for>>> src.findid.i_talisman_<def.item.<dlocal._for>>.remove endwhile ENDFOR
RE: Still have Main Threads error :( [last profiles] - WRWR - 09-23-2012 07:58 PM
kill scripts with while and be happy )
RE: Still have Main Threads error :( [last profiles] - Extreme - 09-24-2012 12:22 AM
(09-23-2012 07:58 PM)WRWR Wrote: kill scripts with while and be happy )
In this case is not a problem.
Because "findid.i_item" will return 0 or 1
If the player don't have "i_item", it will do only one operation.
So, is better than check rescount at his pack and check of every air, fire, earth, water gem and talisman.
Or he can use:
PHP Code:
for 1 4 consume <rescount i_gema_<def.item.<dlocal._for>>> i_gema_<def.item.<dlocal._for>> consume <rescount i_talisman_<def.item.<dlocal._for>>> i_talisman_<def.item.<dlocal._for>> endfor
or
PHP Code:
consume <rescount i_gema_aire> i_gema_aire consume <rescount i_gema_tierra> i_gema_tierra consume <rescount i_gema_fuego> i_gema_fuego consume <rescount i_gema_agua> i_gema_agua consume <rescount i_talisman_aire> i_talisman_aire consume <rescount i_talisman_tierra> i_talisman_tierra consume <rescount i_talisman_fuego> i_talisman_fuego consume <rescount i_talisman_agua> i_talisman_agua
lol
=D
RE: Still have Main Threads error :( [last profiles] - Lazarus - 09-24-2012 09:08 AM
-I had take out the accadd... we was using this because it's nice for new admins.
-Changed the conteoips but doesn't works that you send me.
-put the return 0 before the on=@personal...
-using .online because it's a great check out of players... But... if this is the problem i will take out, but we have the main threads problem before this (So... .online it's like status, it's nice to see this. But the problem rly, not is this script, I have a custom folder before this and works bad too. THIS script and the F_CLEAR_ELEMENTALS are NEW scripts in the server.
-We had problems BEFORE the f_clear_Elementals. so before
I don't know this is a problem, but i will change it ^_^
-Mordaunt sry.
- account_typedef
Code:
[FUNCTION check_account_typedef]
FOR <ACCOUNT.CHARS>
LOCAL.RETURN=<eval <LOCAL.RETURN>+<ACCOUNT.CHAR.<eval <dLOCAL._FOR>-1>.f_check_typedefs <ARGS>>>
ENDFOR
return <LOCAL.RETURN>
It's on the housing script, not mine script, but is used by other server that works fine.
BTW
I can cast with weapons ON me ... I don't know why. This happend's when we has update the sphere. But the sphere.ini have the EQUIPED CAST on 0...
RE: Still have Main Threads error :( [last profiles] - Extreme - 09-24-2012 09:25 AM
Try this for f_clear_elem
PHP Code:
[FUNCTION f_clear_elem] SRC.TAG.CASTEANDOELEMENTAL = FINDLAYER.layer_talisman.REMOVE consume <rescount i_gema_aire> i_gema_aire consume <rescount i_gema_tierra> i_gema_tierra consume <rescount i_gema_fuego> i_gema_fuego consume <rescount i_gema_agua> i_gema_agua consume <rescount i_talisman_aire> i_talisman_aire consume <rescount i_talisman_tierra> i_talisman_tierra consume <rescount i_talisman_fuego> i_talisman_fuego consume <rescount i_talisman_agua> i_talisman_agua
conteoips fixed
PHP Code:
[FUNCTION conteoips] IF <SERV.CLIENTS> >= 1 LOCAL.IPLIST <SERV.CLIENT.0.ACCOUNT.LASTIP> LOCAL.IP 1 IF <SERV.CLIENTS> >= 2 FOR X 1 <EVAL <SERV.CLIENTS>-1> IF !(STRMATCH(*<SERV.CLIENT.<dLOCAL.X>.ACCOUNT.LASTIP>*,<LOCAL.IPLIST>)) LOCAL.IPLIST .= <SERV.CLIENT.<dLOCAL.X>.ACCOUNT.LASTIP> LOCAL.IP ++ ENDIF ENDFOR ENDIF sysmessageloc 036,1060659, IP's Reales, <dLOCAL.IP> RETURN <dLOCAL.IP> ENDIF RETURN 0
If you are GM you can cast while eqquiped
RE: Still have Main Threads error :( [last profiles] - Lazarus - 09-24-2012 09:30 AM
(09-24-2012 09:25 AM)Extreme Wrote: Try this for f_clear_elem
PHP Code:
[FUNCTION f_clear_elem] SRC.TAG.CASTEANDOELEMENTAL = FINDLAYER.layer_talisman.REMOVE consume <rescount i_gema_aire> i_gema_aire consume <rescount i_gema_tierra> i_gema_tierra consume <rescount i_gema_fuego> i_gema_fuego consume <rescount i_gema_agua> i_gema_agua consume <rescount i_talisman_aire> i_talisman_aire consume <rescount i_talisman_tierra> i_talisman_tierra consume <rescount i_talisman_fuego> i_talisman_fuego consume <rescount i_talisman_agua> i_talisman_agua
conteoips fixed
PHP Code:
[FUNCTION conteoips] LOCAL.IPLIST <SERV.CLIENT.0.ACCOUNT.LASTIP> LOCAL.IP 1 FOR X 1 <EVAL <SERV.CLIENTS>-1> IF !(STRMATCH(*<SERV.CLIENT.<dLOCAL.X>.ACCOUNT.LASTIP>*,<LOCAL.IPLIST>)) LOCAL.IPLIST .= <SERV.CLIENT.<dLOCAL.X>.ACCOUNT.LASTIP> LOCAL.IP ++ ENDIF ENDFOR sysmessageloc 036,1060659, IP's Reales, <dLOCAL.IP>
If you are GM you can cast while eqquiped
I'll try the 2 scripts now. Rly thanks.
I should now use the .online? and not the .conteoips?
You can cast equipped with a player ^_^ I have checked out it.
Im using Terrikate r1535 17.09.12 this last ...
When I have changed the sphere happend this, before not.
Can you check it and report it in the bug page?
|