Aller au contenu

Photo

PRCSCR - What am I doing wrong?


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
Okay, so I want a script to run within the single player campaign when the player enters specific areas.  So below is my PRCSCR:

ID             AreaListName                 Script
int             string                        string
1138500001     den200ar_market                amhe_almurder_en
1138500002     den211ar_arl_eamon_estate_1 amhe_almurder_dis


I compiled this into a .GDA file using ExcelProcessor.exe, then renamed the file to PRCSCR_alleymurders.GDA and copied the file to My Documents\\\\\\\\BioWare\\\\\\\\Dragon Age\\\\\\\\AddIns\\\\\\\\AmstHero_almurder\\\\\\\\core\\\\\\\\override folder.

I have a script that belong to my module named amhe_almurder_en.

But when I enter the market district... nothing. My script doesn't run.

Yes, the script actually works, because if enter "runscript amhe_almurder_en" from the developer console, the item appears as expected.

What gives?
What am I missing in order to make this work?

Any advice or solutions would be greatly appreciated.

Modifié par AmstradHero, 07 janvier 2010 - 01:05 .


#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
Your ID value is too high for the current version of ExcelProcesser.exe

social.bioware.com/wiki/datoolset/index.php/2DA#Adding_Strings


social.bioware.com/wiki/datoolset/index.php/2DA#Adding_Strings

#3
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
Many thanks Craig. I guess picking a high number to try and avoid clashing with other mods wasn't a good choice in this case. :-)

Update: Unfortunately, the frustration has not ended.

I've changed the numbers to 8113501 and 8113502, but the script still refuses to run. Is there anything else I am possibly missing?

Modifié par AmstradHero, 08 janvier 2010 - 07:53 .


#4
Craig Graff

Craig Graff
  • Members
  • 608 messages
Are other scripts from your addin running? You need to make sure that your addin module is both extending Single Player (in the module properties) and inheriting from it (in the Hierarchy setup).
More likely, you just need to be referencing the area list for the market rather than the area. Another trick is to use "any" in the arealist column and then do a check like
[dascript]
if (GetTag(GetArea(GetHero())) == "den200ar_market")
{
//do stuff
}
[/dascript]

Modifié par Craig Graff, 08 janvier 2010 - 08:40 .


#5
elys

elys
  • Members
  • 458 messages

Craig Graff wrote...

Your ID value is too high for the current version of ExcelProcesser.exe

social.bioware.com/wiki/datoolset/index.php/2DA#Adding_Strings


social.bioware.com/wiki/datoolset/index.php/2DA#Adding_Strings


The "high ID" rounding bug has been fixed by the last Toolset versionImage IPB

Modifié par elys, 08 janvier 2010 - 08:57 .


#6
AmstradHero

AmstradHero
  • Members
  • 1 239 messages

Craig Graff wrote...
More likely, you just need to be referencing the area list for the market rather than the area.


And therein, as the bard would say, lies the rub.

It is indeed the AreaList that must be referenced in the PRCSCR 2DA, not the area itself.  You would have thought I might have picked up on that, what with the second cell of the spreadsheet being "AreaListName", not "AreaName".

*facepalm*  Color me embarrassed once again.

And kind regards once more for the assistance.

Modifié par AmstradHero, 08 janvier 2010 - 09:29 .


#7
DLAN_Immortality

DLAN_Immortality
  • Members
  • 481 messages
Yeah, I can confirm that ID range can be brutally high without any problems whatsoever (I use 1140150041 - 1140150091).