SRL Archive - MSI Archives

[BUG] Progress Report


Coh3n

2010-06-27 17:47:58

[INDENT]Well, just had a 19 hour run. See the end of this thread for details, and the report information is not even close for players 1-3 (they were 3 of the 4 players that were set to bank). I don't have the time now to try and figure it out (yes, I have already looked), and I may not for the rest of the week, so hopefully someone else is willing to take a look. :) Here's the report:
[PHP]
Progress Report Saved:

This proggie was written June 27th, 2010 at 03:45:09 PM
{—————————————————————-}
{ MSI Phoenix Player Report }
{—————————— 2.0 —————————–}
{ Time Running: 19 Hours, 58 Minutes and 26 Seconds }
{—————————————————————-}
{ }
{ Player 0: *********** }
{ Location: Varrock east trees }
{ Time: 19m 12s }
{ Active: False }
{ Reason: Failed to use script: 0 }
{ }
{ Script: Varrock east trees }
{ Time: 19m 12s }
{ Skill: Woodcutting }
{ Loads: 4 }
{ Exp: 2,800 }
{ Level: Not yet defined }
{ Item: Normal logs }
{ Amount: 112 }
{ }
{—————————————————————-}
{ }
{ Player 1: *********** }
{ Location: Varrock east bank }
{ Time: 04h 39m 28s }
{ Active: True }
{ }
{ Script: Varrock east trees }
{ Time: 04h 39m 28s }
{ Skill: Woodcutting }
{ Loads: 10 }
{ Exp: 700 }
{ Level: 54 }
{ Item: Normal logs }
{ Amount: 28 }
{ }
{—————————————————————-}
{ }
{ Player 2: *********** }
{ Location: Varrock east bank }
{ Time: 05h 19m 52s }
{ Active: True }
{ }
{ Script: Varrock east trees }
{ Time: 05h 19m 52s }
{ Skill: Woodcutting }
{ Loads: 14 }
{ Exp: 2,800 }
{ Level: 52 }
{ Item: Normal logs }
{ Amount: 112 }
{ }
{—————————————————————-}
{ }
{ Player 3: *********** }
{ Location: Varrock east bank }
{ Time: 03h 50m 57s }
{ Active: True }
{ }
{ Script: Varrock east trees }
{ Time: 03h 50m 57s }
{ Skill: Woodcutting }
{ Loads: 11 }
{ Exp: 2,800 }
{ Level: 48 }
{ Item: Normal logs }
{ Amount: 112 }
{ }
{—————————————————————-}
{ }
{ Player 4: *********** }
{ Location: The wonderful world of Runescape! }
{ Time: 00s }
{ Active: False }
{ Reason: }
{ }
{ Script: Powerchopper }
{ Time: 00s }
{ Skill: Woodcutting }
{ Loads: 0 }
{ Exp: 0 }
{ Level: 60 }
{ Item: Willow logs }
{ Amount: 0 }
{ }
{—————————————————————-}
{ }
{ Player 5: *********** }
{ Location: The wonderful world of Runescape! }
{ Time: 01h 56m 41s }
{ Active: True }
{ }
{ Script: Powerchopper }
{ Time: 01h 56m 41s }
{ Skill: Woodcutting }
{ Loads: 16 }
{ Exp: 30,464 }
{ Level: 59 }
{ Item: Willow logs }
{ Amount: 448 }
{ }
{—————————————————————-}
{ }
{ Player 6: *********** }
{ Location: The wonderful world of Runescape! }
{ Time: 01h 39m 17s }
{ Active: True }
{ }
{ Script: Powerchopper }
{ Time: 01h 39m 17s }
{ Skill: Woodcutting }
{ Loads: 13 }
{ Exp: 24,752 }
{ Level: 57 }
{ Item: Willow logs }
{ Amount: 364 }
{ }
{—————————————————————-}
{ }
{ Player 7: *********** }
{ Location: The wonderful world of Runescape! }
{ Time: 01h 55m 00s }
{ Active: True }
{ }
{ Script: Powerchopper }
{ Time: 01h 55m 00s }
{ Skill: Woodcutting }
{ Loads: 15 }
{ Exp: 28,560 }
{ Level: 59 }
{ Item: Willow logs }
{ Amount: 420 }
{ }
{—————————————————————-}
{—————————————————————-}
[/PHP]
I'll try to narrow it down for you guys.
  • Debug.scar contains MSI_ProgressReport and MSI_AddToProggy (which are the only places I think the problem could be).
  • Since it happened to the players banking, maybe something's wrong with MSI_BankMaterials (MainLoop.scar).
  • I'm guessing that maybe there's a looping problem somewhere since it only happened for some of the players and not all.
  • I've determined that it only happens when using the default objects. Everything seems to work fine when I fill out PlayerObjects for each player. I've looked and still can't seem to find what's wrong.
Good luck, and I hope you can figure out what I couldn't. :)[/INDENT]

Sir R. M8gic1an

2010-06-27 20:43:16

You didn't post anything at the end of that thread…? :p

edit:
I was snooping around.

PlayerItems: array of array of TVariantArray; // --> these are variant arrays

I can't find anywhere where you actually load any information into that array?

~RM

Coh3n

2010-06-27 21:30:42

From: Rasta Magician
You didn't post anything at the end of that thread…? :p

edit:
I was snooping around.

PlayerItems: array of array of TVariantArray; // --> these are variant arrays

I can't find anywhere where you actually load any information into that array?

~RM

Lol, I wrote the post, but didn't actually post it before I left. :p

Those arrays are variants because the interpreter doesn't like 3D unless they're variants (by that I mean they can't be declared like this:

PlayerItems := [[ITEM_HATCHET_BRONZE], [ITEM_PICKAXE_IRON]];
with brackets inside brackets). Also the arrays (PlayerItems, PlayerItemNames, PlayerObjects, etc.) sometimes depend on each other and it's easier to have them all as variant arrays.

Oh, and PlayerItems is set in MSI_SetPlayerInfo (Mainloop.scar).

E: Lol I just realized that you didn't write "These are variant arrays", so just ignore my little explanation. :p

Coh3n

2010-06-28 18:47:02

Update: I found out that this only happens when you use the default objects (i.e. it doesn't happen when you fill out PlayerObjects). Since this is the case, the problem is most likely in MSI_SetPlayerInfo (MainLoop.scar), Scripts.scar or the records in Objects.scar.