Author Topic: Repeated resource loading  (Read 1458 times)

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Repeated resource loading
« on: May 18, 2010, 03:58:10 AM »
Thought this was fixed, but I still get stuff like this in my DEBUG log:
Quote
Copying and patching 1 file ...
[./override/fw41004.bcs] loaded, 871490 bytes
[./override/ARA100.ARE] loaded, 12816 bytes
[./override/ARA100.ARE] loaded, 12816 bytes
[./override/ARA100.ARE] loaded, 12816 bytes
... repeat 2600 times !!!
Now all I'm doing is decompiling and REPLACE_TEXTUALLY something in that script (from BGSpawn). I'm not patching ARA100 or *any* areas, yet it's loading it some 2600 times for some reason. The only possible thing causing it is that script uses ARA100 as an area variable quite a bit, possibly even 2600 times, but that's not reason enough to load the area in my opinion, at least not more than once.

Along vaguely similar lines of stuff I thought was already in, I thought you were (considering at least) adding some sort of descriptive text to accompany Not_found errors - either the variable name or code line or function where it bombed (see here for example). Or something at least, so it's at least somewhat informative?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Repeated resource loading
« Reply #1 on: May 18, 2010, 05:55:58 AM »
Some sort of MODDER still being stupid I guess. Can I have your ara100.bcs (in case mine didn't have the 3000 references to the MYAREA variable)?

I can't detail Not_found errors, because in OCaml they offer no parameter (and thus I'd have to sprinkle the 30kloc of WeiDU with code to initialize the current risky action each time a Not_found-able function is called).
« Last Edit: May 18, 2010, 06:03:00 AM by the bigg »
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Repeated resource loading
« Reply #2 on: May 18, 2010, 06:03:42 AM »
Quote
Some sort of MODDER still being stupid I guess.

Ouch. :) This was a good one.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Repeated resource loading
« Reply #3 on: May 18, 2010, 06:10:22 AM »
Ouch. :) This was a good one.
Wow, missed that one.
I was talking about the tp2 command MODDER by the way.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Repeated resource loading
« Reply #4 on: May 18, 2010, 06:21:04 AM »
I know, but it was a very good play on words, nevertheless.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Repeated resource loading
« Reply #5 on: May 18, 2010, 06:48:27 AM »
Fixed (in git, in beta location in 30 minutes).
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: Repeated resource loading
« Reply #6 on: May 18, 2010, 06:59:39 AM »
Fixed (in git, in beta location in 30 minutes).
That was quick... So do you still need ara100.bcs? It appears to be the default BGT one AFAICT (< 30 lines decompiled). But it's not loading ara100.bcs anyway, but ara100.are, and I've no idea why it'd need to do either, since it was fw41004.bcs I was modding.

Edit: Oh and incidentally, I do not have MODDER enabled, if that makes a difference.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Repeated resource loading
« Reply #7 on: May 18, 2010, 07:01:00 AM »
I already fixed it, no need to send your test case.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: