Jump to content

BUG: Tutu Tweaks-v17


Recommended Posts

Oops, that was me above, and I made a typo there myself.....

 

The '$' I removed was actually in the PATCH_IF line to start with

 

PATCH_IF (~%SOURCE_FILE%~ STRING_COMPARE_REGEXP ~^_?FRIEND$~ = 0) BEGIN

 

and It didn't match the REGEXP line so I changed it

 

COPY_EXISTING_REGEXP GLOB ~^_?FRIEND.sto$~ ~override~

 

----

 

I can CLUA in a working sw1h20 fine, but the stores still sell broken items. (no desc, no icon, 0gp cost, undroppable)

 

Winthrop who's .sto file says he sells _sw1h20 sells a working scimitar.

Link to comment
Oops, that was me above, and I made a typo there myself.....

 

The '$' I removed was actually in the PATCH_IF line to start with

 

PATCH_IF (~%SOURCE_FILE%~ STRING_COMPARE_REGEXP ~^_?FRIEND$~ = 0) BEGIN

 

and It didn't match the REGEXP line so I changed it

 

COPY_EXISTING_REGEXP GLOB ~^_?FRIEND.sto$~ ~override~

 

----

 

I can CLUA in a working sw1h20 fine, but the stores still sell broken items. (no desc, no icon, 0gp cost, undroppable)

 

Winthrop who's .sto file says he sells _sw1h20 sells a working scimitar.

Argh, I see my bug now. I should be comparing SOURCE_RES instead of SOURCE_FILE. When copying foo.sto, SOURCE_RES is foo while SOURCE_FILE is foo.sto. The strict regexp was hindering the loose match, which is why that works (tough it's not how I'm going to fix it for v18).

 

You're getting bags of holding at all of these stores because the logic is structured so that it's

 

If A is true...

otherwise if B is true...

otherwise if C is true...

otherwise do this (add bag of holding).

 

So, A or B or C should be true for non-Sorcerous Sundries stores, but due to the bad check they're returning false.

 

The scimitar is an even dumber bug. I'm not completely overwriting the previous entry; I need to add a #8.

 

Thanks for helping me track these down everyone.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...